Debian Codegraph @

js/src/ctypes/libffi/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libffi 3.3.
4 #
5 # Report bugs to <http://github.com/libffi/libffi/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and
278 $0: http://github.com/libffi/libffi/issues about your
279 $0: system, including any error possibly output before this
280 $0: message. Then install a modern shell, or manually run
281 $0: the script under such a shell if you do have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='libffi'
592 PACKAGE_TARNAME='libffi'
593 PACKAGE_VERSION='3.3'
594 PACKAGE_STRING='libffi 3.3'
595 PACKAGE_BUGREPORT='http://github.com/libffi/libffi/issues'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBOBJS
638 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE
639 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE
640 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE
641 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE
642 LIBFFI_BUILD_VERSIONED_SHLIB_FALSE
643 LIBFFI_BUILD_VERSIONED_SHLIB_TRUE
644 OPT_LDFLAGS
645 SECTION_LDFLAGS
646 toolexeclibdir
647 toolexecdir
648 FFI_DEBUG_FALSE
649 FFI_DEBUG_TRUE
650 TARGET_OBJ
651 TARGETDIR
652 TARGET
653 BUILD_DOCS_FALSE
654 BUILD_DOCS_TRUE
655 FFI_EXEC_TRAMPOLINE_TABLE
656 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
657 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
658 sys_symbol_underscore
659 HAVE_LONG_DOUBLE_VARIANT
660 HAVE_LONG_DOUBLE
661 ALLOCA
662 AM_LTLDFLAGS
663 AM_RUNTESTFLAGS
664 TESTSUBDIR_FALSE
665 TESTSUBDIR_TRUE
666 MAINT
667 MAINTAINER_MODE_FALSE
668 MAINTAINER_MODE_TRUE
669 PRTDIAG
670 CXXCPP
671 CPP
672 LT_SYS_LIBRARY_PATH
673 OTOOL64
674 OTOOL
675 LIPO
676 NMEDIT
677 DSYMUTIL
678 MANIFEST_TOOL
679 RANLIB
680 ac_ct_AR
681 AR
682 DLLTOOL
683 OBJDUMP
684 LN_S
685 NM
686 ac_ct_DUMPBIN
687 DUMPBIN
688 LD
689 FGREP
690 EGREP
691 GREP
692 SED
693 LIBTOOL
694 am__fastdepCCAS_FALSE
695 am__fastdepCCAS_TRUE
696 CCASDEPMODE
697 CCASFLAGS
698 CCAS
699 am__fastdepCXX_FALSE
700 am__fastdepCXX_TRUE
701 CXXDEPMODE
702 ac_ct_CXX
703 CXXFLAGS
704 CXX
705 am__fastdepCC_FALSE
706 am__fastdepCC_TRUE
707 CCDEPMODE
708 am__nodep
709 AMDEPBACKSLASH
710 AMDEP_FALSE
711 AMDEP_TRUE
712 am__include
713 DEPDIR
714 OBJEXT
715 EXEEXT
716 ac_ct_CC
717 CPPFLAGS
718 LDFLAGS
719 CFLAGS
720 CC
721 AM_BACKSLASH
722 AM_DEFAULT_VERBOSITY
723 AM_DEFAULT_V
724 AM_V
725 am__untar
726 am__tar
727 AMTAR
728 am__leading_dot
729 SET_MAKE
730 AWK
731 mkdir_p
732 MKDIR_P
733 INSTALL_STRIP_PROGRAM
734 STRIP
735 install_sh
736 MAKEINFO
737 AUTOHEADER
738 AUTOMAKE
739 AUTOCONF
740 ACLOCAL
741 VERSION
742 PACKAGE
743 CYGPATH_W
744 am__isrc
745 INSTALL_DATA
746 INSTALL_SCRIPT
747 INSTALL_PROGRAM
748 ax_enable_builddir_sed
749 target_os
750 target_vendor
751 target_cpu
752 target
753 host_os
754 host_vendor
755 host_cpu
756 host
757 build_os
758 build_vendor
759 build_cpu
760 build
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL
799 am__quote'
800 ac_subst_files=''
801 ac_user_opts='
802 enable_option_checking
803 enable_builddir
804 enable_silent_rules
805 enable_dependency_tracking
806 enable_shared
807 enable_static
808 with_pic
809 enable_fast_install
810 with_aix_soname
811 with_gnu_ld
812 with_sysroot
813 enable_libtool_lock
814 enable_portable_binary
815 with_gcc_arch
816 enable_maintainer_mode
817 enable_pax_emutramp
818 enable_docs
819 enable_debug
820 enable_structs
821 enable_raw_api
822 enable_purify_safety
823 enable_multi_os_directory
824 enable_symvers
825 '
826 ac_precious_vars='build_alias
827 host_alias
828 target_alias
829 CCAS
830 CCASFLAGS
831 LT_SYS_LIBRARY_PATH
832 CPP
833 CPPFLAGS
834 CXXCPP'
835
836
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
858
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
884
885 ac_prev=
886 ac_dashdash=
887 for ac_option
888 do
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
894 fi
895
896 case $ac_option in
897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
900 esac
901
902 # Accept the important Cygnus configure options, so we can diagnose typos.
903
904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
907
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
912
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
917
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
927
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
932
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
939
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
955
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
960
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
965
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1001
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1006
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1036
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1053
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1074
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1110
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1141
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1151
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1158
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1169
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=\$ac_optarg ;;
1185
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195 "with_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
1201
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1205
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1212
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1219
1220 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1222 ;;
1223
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1233
1234 *)
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1240 ;;
1241
1242 esac
1243 done
1244
1245 if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error $? "missing argument to $ac_option"
1248 fi
1249
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 esac
1256 fi
1257
1258 # Check all directory arguments for consistency.
1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1263 do
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
1272 case $ac_val in
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 esac
1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1278
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1285
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1292 fi
1293 fi
1294
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1297
1298 test "$silent" = yes && exec 6>/dev/null
1299
1300
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error $? "pwd does not report name of working directory"
1307
1308
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\/\)$/{
1328 s//\1/
1329 q
1330 }
1331 /^X\(\/\).*/{
1332 s//\1/
1333 q
1334 }
1335 s/.*/./; q'`
1336 srcdir=$ac_confdir
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 srcdir=..
1339 fi
1340 else
1341 ac_srcdir_defaulted=no
1342 fi
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1346 fi
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 srcdir=.
1354 fi
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1367
1368 #
1369 # Report the --help message.
1370 #
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1374 cat <<_ACEOF
1375 \`configure' configures libffi 3.3 to adapt to many kinds of systems.
1376
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1378
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1381
1382 Defaults for the options are specified in brackets.
1383
1384 Configuration:
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking ...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1394
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 [PREFIX]
1400
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1405
1406 For better control, use the options below.
1407
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1428 _ACEOF
1429
1430 cat <<\_ACEOF
1431
1432 Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1436
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 --target=TARGET configure for building compilers for TARGET [HOST]
1441 _ACEOF
1442 fi
1443
1444 if test -n "$ac_init_help"; then
1445 case $ac_init_help in
1446 short | recursive ) echo "Configuration of libffi 3.3:";;
1447 esac
1448 cat <<\_ACEOF
1449
1450 Optional Features:
1451 --disable-option-checking ignore unrecognized --enable/--with options
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --disable-builddir disable automatic build in subdir of sources
1455
1456 --enable-silent-rules less verbose build output (undo: "make V=1")
1457 --disable-silent-rules verbose build output (undo: "make V=0")
1458 --enable-dependency-tracking
1459 do not reject slow dependency extractors
1460 --disable-dependency-tracking
1461 speeds up one-time build
1462 --enable-shared[=PKGS] build shared libraries [default=yes]
1463 --enable-static[=PKGS] build static libraries [default=yes]
1464 --enable-fast-install[=PKGS]
1465 optimize for fast installation [default=yes]
1466 --disable-libtool-lock avoid locking (might break parallel builds)
1467 --enable-portable-binary
1468 disable compiler optimizations that would produce
1469 unportable binaries
1470 --enable-maintainer-mode
1471 enable make rules and dependencies not useful (and
1472 sometimes confusing) to the casual installer
1473 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1474 --disable-docs Disable building of docs (default: no)
1475 --enable-debug debugging mode
1476 --disable-structs omit code for struct support
1477 --disable-raw-api make the raw api unavailable
1478 --enable-purify-safety purify-safe mode
1479 --disable-multi-os-directory
1480 disable use of gcc --print-multi-os-directory to change the library installation directory
1481 --enable-symvers=STYLE enables symbol versioning of the shared library
1482 [default=yes]
1483
1484 Optional Packages:
1485 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1486 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1487 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1488 both]
1489 --with-aix-soname=aix|svr4|both
1490 shared library versioning (aka "SONAME") variant to
1491 provide on AIX, [default=aix].
1492 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1493 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1494 compiler's sysroot if not specified).
1495 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1496 instead of guessing
1497
1498 Some influential environment variables:
1499 CC C compiler command
1500 CFLAGS C compiler flags
1501 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1502 nonstandard directory <lib dir>
1503 LIBS libraries to pass to the linker, e.g. -l<library>
1504 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1505 you have headers in a nonstandard directory <include dir>
1506 CXX C++ compiler command
1507 CXXFLAGS C++ compiler flags
1508 CCAS assembler compiler command (defaults to CC)
1509 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1510 LT_SYS_LIBRARY_PATH
1511 User-defined run-time library search path.
1512 CPP C preprocessor
1513 CXXCPP C++ preprocessor
1514
1515 Use these variables to override the choices made by `configure' or to help
1516 it to find libraries and programs with nonstandard names/locations.
1517
1518 Report bugs to <http://github.com/libffi/libffi/issues>.
1519 _ACEOF
1520 ac_status=$?
1521 fi
1522
1523 if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" ||
1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1528 continue
1529 ac_builddir=.
1530
1531 case "$ac_dir" in
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533 *)
1534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540 esac ;;
1541 esac
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1546
1547 case $srcdir in
1548 .) # We are building in place.
1549 ac_srcdir=.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1556 *) # Relative name.
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 esac
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1562
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure" --help=recursive
1571 else
1572 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573 fi || ac_status=$?
1574 cd "$ac_pwd" || { ac_status=$?; break; }
1575 done
1576 fi
1577
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1580 cat <<\_ACEOF
1581 libffi configure 3.3
1582 generated by GNU Autoconf 2.69
1583
1584 Copyright (C) 2012 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1587 _ACEOF
1588 exit
1589 fi
1590
1591 ## ------------------------ ##
1592 ## Autoconf initialization. ##
1593 ## ------------------------ ##
1594
1595 # ac_fn_c_try_compile LINENO
1596 # --------------------------
1597 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_compile ()
1599 {
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext
1602 if { { ac_try="$ac_compile"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_compile") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest.$ac_objext; then :
1621 ac_retval=0
1622 else
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=1
1627 fi
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1630
1631 } # ac_fn_c_try_compile
1632
1633 # ac_fn_cxx_try_compile LINENO
1634 # ----------------------------
1635 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_cxx_try_compile ()
1637 {
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 rm -f conftest.$ac_objext
1640 if { { ac_try="$ac_compile"
1641 case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_compile") 2>conftest.err
1648 ac_status=$?
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1653 fi
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_cxx_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest.$ac_objext; then :
1659 ac_retval=0
1660 else
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1663
1664 ac_retval=1
1665 fi
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1668
1669 } # ac_fn_cxx_try_compile
1670
1671 # ac_fn_c_try_link LINENO
1672 # -----------------------
1673 # Try to link conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_link ()
1675 {
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext conftest$ac_exeext
1678 if { { ac_try="$ac_link"
1679 case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1691 fi
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest$ac_exeext && {
1697 test "$cross_compiling" = yes ||
1698 test -x conftest$ac_exeext
1699 }; then :
1700 ac_retval=0
1701 else
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1
1706 fi
1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1709 # interfere with the next link command; also delete a directory that is
1710 # left behind by Apple's compiler. We do this before executing the actions.
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1713 as_fn_set_status $ac_retval
1714
1715 } # ac_fn_c_try_link
1716
1717 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1718 # -------------------------------------------------------
1719 # Tests whether HEADER exists and can be compiled using the include files in
1720 # INCLUDES, setting the cache variable VAR accordingly.
1721 ac_fn_c_check_header_compile ()
1722 {
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1725 $as_echo_n "checking for $2... " >&6; }
1726 if eval \${$3+:} false; then :
1727 $as_echo_n "(cached) " >&6
1728 else
1729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1730 /* end confdefs.h. */
1731 $4
1732 #include <$2>
1733 _ACEOF
1734 if ac_fn_c_try_compile "$LINENO"; then :
1735 eval "$3=yes"
1736 else
1737 eval "$3=no"
1738 fi
1739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1740 fi
1741 eval ac_res=\$$3
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1744 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1745
1746 } # ac_fn_c_check_header_compile
1747
1748 # ac_fn_c_try_cpp LINENO
1749 # ----------------------
1750 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_c_try_cpp ()
1752 {
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if { { ac_try="$ac_cpp conftest.$ac_ext"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1767 fi
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } > conftest.i && {
1770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1772 }; then :
1773 ac_retval=0
1774 else
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=1
1779 fi
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1782
1783 } # ac_fn_c_try_cpp
1784
1785 # ac_fn_c_try_run LINENO
1786 # ----------------------
1787 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1788 # that executables *can* be run.
1789 ac_fn_c_try_run ()
1790 {
1791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1792 if { { ac_try="$ac_link"
1793 case "(($ac_try" in
1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1796 esac
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_link") 2>&5
1800 ac_status=$?
1801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1802 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1803 { { case "(($ac_try" in
1804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1806 esac
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_try") 2>&5
1810 ac_status=$?
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; }; }; then :
1813 ac_retval=0
1814 else
1815 $as_echo "$as_me: program exited with status $ac_status" >&5
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.$ac_ext >&5
1818
1819 ac_retval=$ac_status
1820 fi
1821 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status $ac_retval
1824
1825 } # ac_fn_c_try_run
1826
1827 # ac_fn_c_check_func LINENO FUNC VAR
1828 # ----------------------------------
1829 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1830 ac_fn_c_check_func ()
1831 {
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836 $as_echo_n "(cached) " >&6
1837 else
1838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839 /* end confdefs.h. */
1840 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1842 #define $2 innocuous_$2
1843
1844 /* System header to define __stub macros and hopefully few prototypes,
1845 which can conflict with char $2 (); below.
1846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1847 <limits.h> exists even on freestanding compilers. */
1848
1849 #ifdef __STDC__
1850 # include <limits.h>
1851 #else
1852 # include <assert.h>
1853 #endif
1854
1855 #undef $2
1856
1857 /* Override any GCC internal prototype to avoid an error.
1858 Use char because int might match the return type of a GCC
1859 builtin and then its argument prototype would still apply. */
1860 #ifdef __cplusplus
1861 extern "C"
1862 #endif
1863 char $2 ();
1864 /* The GNU C library defines this for functions which it implements
1865 to always fail with ENOSYS. Some functions are actually named
1866 something starting with __ and the normal name is an alias. */
1867 #if defined __stub_$2 || defined __stub___$2
1868 choke me
1869 #endif
1870
1871 int
1872 main ()
1873 {
1874 return $2 ();
1875 ;
1876 return 0;
1877 }
1878 _ACEOF
1879 if ac_fn_c_try_link "$LINENO"; then :
1880 eval "$3=yes"
1881 else
1882 eval "$3=no"
1883 fi
1884 rm -f core conftest.err conftest.$ac_objext \
1885 conftest$ac_exeext conftest.$ac_ext
1886 fi
1887 eval ac_res=\$$3
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891
1892 } # ac_fn_c_check_func
1893
1894 # ac_fn_cxx_try_cpp LINENO
1895 # ------------------------
1896 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_cxx_try_cpp ()
1898 {
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 if { { ac_try="$ac_cpp conftest.$ac_ext"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1913 fi
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } > conftest.i && {
1916 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1917 test ! -s conftest.err
1918 }; then :
1919 ac_retval=0
1920 else
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1923
1924 ac_retval=1
1925 fi
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1928
1929 } # ac_fn_cxx_try_cpp
1930
1931 # ac_fn_cxx_try_link LINENO
1932 # -------------------------
1933 # Try to link conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_cxx_try_link ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 rm -f conftest.$ac_objext conftest$ac_exeext
1938 if { { ac_try="$ac_link"
1939 case "(($ac_try" in
1940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941 *) ac_try_echo=$ac_try;;
1942 esac
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945 (eval "$ac_link") 2>conftest.err
1946 ac_status=$?
1947 if test -s conftest.err; then
1948 grep -v '^ *+' conftest.err >conftest.er1
1949 cat conftest.er1 >&5
1950 mv -f conftest.er1 conftest.err
1951 fi
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; } && {
1954 test -z "$ac_cxx_werror_flag" ||
1955 test ! -s conftest.err
1956 } && test -s conftest$ac_exeext && {
1957 test "$cross_compiling" = yes ||
1958 test -x conftest$ac_exeext
1959 }; then :
1960 ac_retval=0
1961 else
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1964
1965 ac_retval=1
1966 fi
1967 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1968 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1969 # interfere with the next link command; also delete a directory that is
1970 # left behind by Apple's compiler. We do this before executing the actions.
1971 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status $ac_retval
1974
1975 } # ac_fn_cxx_try_link
1976
1977 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1978 # --------------------------------------------
1979 # Tries to find the compile-time value of EXPR in a program that includes
1980 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1981 # computed
1982 ac_fn_c_compute_int ()
1983 {
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 if test "$cross_compiling" = yes; then
1986 # Depending upon the size, compute the lo and hi bounds.
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1989 $4
1990 int
1991 main ()
1992 {
1993 static int test_array [1 - 2 * !(($2) >= 0)];
1994 test_array [0] = 0;
1995 return test_array [0];
1996
1997 ;
1998 return 0;
1999 }
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2002 ac_lo=0 ac_mid=0
2003 while :; do
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2006 $4
2007 int
2008 main ()
2009 {
2010 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2011 test_array [0] = 0;
2012 return test_array [0];
2013
2014 ;
2015 return 0;
2016 }
2017 _ACEOF
2018 if ac_fn_c_try_compile "$LINENO"; then :
2019 ac_hi=$ac_mid; break
2020 else
2021 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2022 if test $ac_lo -le $ac_mid; then
2023 ac_lo= ac_hi=
2024 break
2025 fi
2026 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2027 fi
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 done
2030 else
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2033 $4
2034 int
2035 main ()
2036 {
2037 static int test_array [1 - 2 * !(($2) < 0)];
2038 test_array [0] = 0;
2039 return test_array [0];
2040
2041 ;
2042 return 0;
2043 }
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"; then :
2046 ac_hi=-1 ac_mid=-1
2047 while :; do
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2050 $4
2051 int
2052 main ()
2053 {
2054 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2055 test_array [0] = 0;
2056 return test_array [0];
2057
2058 ;
2059 return 0;
2060 }
2061 _ACEOF
2062 if ac_fn_c_try_compile "$LINENO"; then :
2063 ac_lo=$ac_mid; break
2064 else
2065 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2066 if test $ac_mid -le $ac_hi; then
2067 ac_lo= ac_hi=
2068 break
2069 fi
2070 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2071 fi
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 done
2074 else
2075 ac_lo= ac_hi=
2076 fi
2077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 fi
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 # Binary search between lo and hi bounds.
2081 while test "x$ac_lo" != "x$ac_hi"; do
2082 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2085 $4
2086 int
2087 main ()
2088 {
2089 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2090 test_array [0] = 0;
2091 return test_array [0];
2092
2093 ;
2094 return 0;
2095 }
2096 _ACEOF
2097 if ac_fn_c_try_compile "$LINENO"; then :
2098 ac_hi=$ac_mid
2099 else
2100 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 done
2104 case $ac_lo in #((
2105 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2106 '') ac_retval=1 ;;
2107 esac
2108 else
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2111 $4
2112 static long int longval () { return $2; }
2113 static unsigned long int ulongval () { return $2; }
2114 #include <stdio.h>
2115 #include <stdlib.h>
2116 int
2117 main ()
2118 {
2119
2120 FILE *f = fopen ("conftest.val", "w");
2121 if (! f)
2122 return 1;
2123 if (($2) < 0)
2124 {
2125 long int i = longval ();
2126 if (i != ($2))
2127 return 1;
2128 fprintf (f, "%ld", i);
2129 }
2130 else
2131 {
2132 unsigned long int i = ulongval ();
2133 if (i != ($2))
2134 return 1;
2135 fprintf (f, "%lu", i);
2136 }
2137 /* Do not output a trailing newline, as this causes \r\n confusion
2138 on some platforms. */
2139 return ferror (f) || fclose (f) != 0;
2140
2141 ;
2142 return 0;
2143 }
2144 _ACEOF
2145 if ac_fn_c_try_run "$LINENO"; then :
2146 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2147 else
2148 ac_retval=1
2149 fi
2150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2151 conftest.$ac_objext conftest.beam conftest.$ac_ext
2152 rm -f conftest.val
2153
2154 fi
2155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2156 as_fn_set_status $ac_retval
2157
2158 } # ac_fn_c_compute_int
2159
2160 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2161 # -------------------------------------------------------
2162 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2163 # the include files in INCLUDES and setting the cache variable VAR
2164 # accordingly.
2165 ac_fn_c_check_header_mongrel ()
2166 {
2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168 if eval \${$3+:} false; then :
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2170 $as_echo_n "checking for $2... " >&6; }
2171 if eval \${$3+:} false; then :
2172 $as_echo_n "(cached) " >&6
2173 fi
2174 eval ac_res=\$$3
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2176 $as_echo "$ac_res" >&6; }
2177 else
2178 # Is the header compilable?
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2180 $as_echo_n "checking $2 usability... " >&6; }
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182 /* end confdefs.h. */
2183 $4
2184 #include <$2>
2185 _ACEOF
2186 if ac_fn_c_try_compile "$LINENO"; then :
2187 ac_header_compiler=yes
2188 else
2189 ac_header_compiler=no
2190 fi
2191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2193 $as_echo "$ac_header_compiler" >&6; }
2194
2195 # Is the header present?
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2197 $as_echo_n "checking $2 presence... " >&6; }
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199 /* end confdefs.h. */
2200 #include <$2>
2201 _ACEOF
2202 if ac_fn_c_try_cpp "$LINENO"; then :
2203 ac_header_preproc=yes
2204 else
2205 ac_header_preproc=no
2206 fi
2207 rm -f conftest.err conftest.i conftest.$ac_ext
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2209 $as_echo "$ac_header_preproc" >&6; }
2210
2211 # So? What about this header?
2212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2213 yes:no: )
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2215 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2217 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2218 ;;
2219 no:yes:* )
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2221 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2223 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2225 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2227 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2229 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2230 ( $as_echo "## ----------------------------------------------------- ##
2231 ## Report this to http://github.com/libffi/libffi/issues ##
2232 ## ----------------------------------------------------- ##"
2233 ) | sed "s/^/$as_me: WARNING: /" >&2
2234 ;;
2235 esac
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2237 $as_echo_n "checking for $2... " >&6; }
2238 if eval \${$3+:} false; then :
2239 $as_echo_n "(cached) " >&6
2240 else
2241 eval "$3=\$ac_header_compiler"
2242 fi
2243 eval ac_res=\$$3
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2245 $as_echo "$ac_res" >&6; }
2246 fi
2247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248
2249 } # ac_fn_c_check_header_mongrel
2250
2251 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2252 # -------------------------------------------
2253 # Tests whether TYPE exists after having included INCLUDES, setting cache
2254 # variable VAR accordingly.
2255 ac_fn_c_check_type ()
2256 {
2257 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2259 $as_echo_n "checking for $2... " >&6; }
2260 if eval \${$3+:} false; then :
2261 $as_echo_n "(cached) " >&6
2262 else
2263 eval "$3=no"
2264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2265 /* end confdefs.h. */
2266 $4
2267 int
2268 main ()
2269 {
2270 if (sizeof ($2))
2271 return 0;
2272 ;
2273 return 0;
2274 }
2275 _ACEOF
2276 if ac_fn_c_try_compile "$LINENO"; then :
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2279 $4
2280 int
2281 main ()
2282 {
2283 if (sizeof (($2)))
2284 return 0;
2285 ;
2286 return 0;
2287 }
2288 _ACEOF
2289 if ac_fn_c_try_compile "$LINENO"; then :
2290
2291 else
2292 eval "$3=yes"
2293 fi
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 fi
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 fi
2298 eval ac_res=\$$3
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2300 $as_echo "$ac_res" >&6; }
2301 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2302
2303 } # ac_fn_c_check_type
2304 cat >config.log <<_ACEOF
2305 This file contains any messages produced by compilers while
2306 running configure, to aid debugging if configure makes a mistake.
2307
2308 It was created by libffi $as_me 3.3, which was
2309 generated by GNU Autoconf 2.69. Invocation command line was
2310
2311 $ $0 $@
2312
2313 _ACEOF
2314 exec 5>>config.log
2315 {
2316 cat <<_ASUNAME
2317 ## --------- ##
2318 ## Platform. ##
2319 ## --------- ##
2320
2321 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2322 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2323 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2324 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2325 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2326
2327 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2328 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2329
2330 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2331 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2332 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2333 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2334 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2335 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2336 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2337
2338 _ASUNAME
2339
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2341 for as_dir in $PATH
2342 do
2343 IFS=$as_save_IFS
2344 test -z "$as_dir" && as_dir=.
2345 $as_echo "PATH: $as_dir"
2346 done
2347 IFS=$as_save_IFS
2348
2349 } >&5
2350
2351 cat >&5 <<_ACEOF
2352
2353
2354 ## ----------- ##
2355 ## Core tests. ##
2356 ## ----------- ##
2357
2358 _ACEOF
2359
2360
2361 # Keep a trace of the command line.
2362 # Strip out --no-create and --no-recursion so they do not pile up.
2363 # Strip out --silent because we don't want to record it for future runs.
2364 # Also quote any args containing shell meta-characters.
2365 # Make two passes to allow for proper duplicate-argument suppression.
2366 ac_configure_args=
2367 ac_configure_args0=
2368 ac_configure_args1=
2369 ac_must_keep_next=false
2370 for ac_pass in 1 2
2371 do
2372 for ac_arg
2373 do
2374 case $ac_arg in
2375 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2376 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2377 | -silent | --silent | --silen | --sile | --sil)
2378 continue ;;
2379 *\'*)
2380 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2381 esac
2382 case $ac_pass in
2383 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2384 2)
2385 as_fn_append ac_configure_args1 " '$ac_arg'"
2386 if test $ac_must_keep_next = true; then
2387 ac_must_keep_next=false # Got value, back to normal.
2388 else
2389 case $ac_arg in
2390 *=* | --config-cache | -C | -disable-* | --disable-* \
2391 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2392 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2393 | -with-* | --with-* | -without-* | --without-* | --x)
2394 case "$ac_configure_args0 " in
2395 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2396 esac
2397 ;;
2398 -* ) ac_must_keep_next=true ;;
2399 esac
2400 fi
2401 as_fn_append ac_configure_args " '$ac_arg'"
2402 ;;
2403 esac
2404 done
2405 done
2406 { ac_configure_args0=; unset ac_configure_args0;}
2407 { ac_configure_args1=; unset ac_configure_args1;}
2408
2409 # When interrupted or exit'd, cleanup temporary files, and complete
2410 # config.log. We remove comments because anyway the quotes in there
2411 # would cause problems or look ugly.
2412 # WARNING: Use '\'' to represent an apostrophe within the trap.
2413 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2414 trap 'exit_status=$?
2415 # Save into config.log some information that might help in debugging.
2416 {
2417 echo
2418
2419 $as_echo "## ---------------- ##
2420 ## Cache variables. ##
2421 ## ---------------- ##"
2422 echo
2423 # The following way of writing the cache mishandles newlines in values,
2424 (
2425 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2426 eval ac_val=\$$ac_var
2427 case $ac_val in #(
2428 *${as_nl}*)
2429 case $ac_var in #(
2430 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2431 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2432 esac
2433 case $ac_var in #(
2434 _ | IFS | as_nl) ;; #(
2435 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2436 *) { eval $ac_var=; unset $ac_var;} ;;
2437 esac ;;
2438 esac
2439 done
2440 (set) 2>&1 |
2441 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2442 *${as_nl}ac_space=\ *)
2443 sed -n \
2444 "s/'\''/'\''\\\\'\'''\''/g;
2445 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2446 ;; #(
2447 *)
2448 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2449 ;;
2450 esac |
2451 sort
2452 )
2453 echo
2454
2455 $as_echo "## ----------------- ##
2456 ## Output variables. ##
2457 ## ----------------- ##"
2458 echo
2459 for ac_var in $ac_subst_vars
2460 do
2461 eval ac_val=\$$ac_var
2462 case $ac_val in
2463 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2464 esac
2465 $as_echo "$ac_var='\''$ac_val'\''"
2466 done | sort
2467 echo
2468
2469 if test -n "$ac_subst_files"; then
2470 $as_echo "## ------------------- ##
2471 ## File substitutions. ##
2472 ## ------------------- ##"
2473 echo
2474 for ac_var in $ac_subst_files
2475 do
2476 eval ac_val=\$$ac_var
2477 case $ac_val in
2478 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2479 esac
2480 $as_echo "$ac_var='\''$ac_val'\''"
2481 done | sort
2482 echo
2483 fi
2484
2485 if test -s confdefs.h; then
2486 $as_echo "## ----------- ##
2487 ## confdefs.h. ##
2488 ## ----------- ##"
2489 echo
2490 cat confdefs.h
2491 echo
2492 fi
2493 test "$ac_signal" != 0 &&
2494 $as_echo "$as_me: caught signal $ac_signal"
2495 $as_echo "$as_me: exit $exit_status"
2496 } >&5
2497 rm -f core *.core core.conftest.* &&
2498 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2499 exit $exit_status
2500 ' 0
2501 for ac_signal in 1 2 13 15; do
2502 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2503 done
2504 ac_signal=0
2505
2506 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2507 rm -f -r conftest* confdefs.h
2508
2509 $as_echo "/* confdefs.h */" > confdefs.h
2510
2511 # Predefined preprocessor variables.
2512
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_NAME "$PACKAGE_NAME"
2515 _ACEOF
2516
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2519 _ACEOF
2520
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2523 _ACEOF
2524
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_STRING "$PACKAGE_STRING"
2527 _ACEOF
2528
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2531 _ACEOF
2532
2533 cat >>confdefs.h <<_ACEOF
2534 #define PACKAGE_URL "$PACKAGE_URL"
2535 _ACEOF
2536
2537
2538 # Let the site file select an alternate cache file if it wants to.
2539 # Prefer an explicitly selected file to automatically selected ones.
2540 ac_site_file1=NONE
2541 ac_site_file2=NONE
2542 if test -n "$CONFIG_SITE"; then
2543 # We do not want a PATH search for config.site.
2544 case $CONFIG_SITE in #((
2545 -*) ac_site_file1=./$CONFIG_SITE;;
2546 */*) ac_site_file1=$CONFIG_SITE;;
2547 *) ac_site_file1=./$CONFIG_SITE;;
2548 esac
2549 elif test "x$prefix" != xNONE; then
2550 ac_site_file1=$prefix/share/config.site
2551 ac_site_file2=$prefix/etc/config.site
2552 else
2553 ac_site_file1=$ac_default_prefix/share/config.site
2554 ac_site_file2=$ac_default_prefix/etc/config.site
2555 fi
2556 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2557 do
2558 test "x$ac_site_file" = xNONE && continue
2559 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2561 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2562 sed 's/^/| /' "$ac_site_file" >&5
2563 . "$ac_site_file" \
2564 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2566 as_fn_error $? "failed to load site script $ac_site_file
2567 See \`config.log' for more details" "$LINENO" 5; }
2568 fi
2569 done
2570
2571 if test -r "$cache_file"; then
2572 # Some versions of bash will fail to source /dev/null (special files
2573 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2574 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2576 $as_echo "$as_me: loading cache $cache_file" >&6;}
2577 case $cache_file in
2578 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2579 *) . "./$cache_file";;
2580 esac
2581 fi
2582 else
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2584 $as_echo "$as_me: creating cache $cache_file" >&6;}
2585 >$cache_file
2586 fi
2587
2588 # Check that the precious variables saved in the cache have kept the same
2589 # value.
2590 ac_cache_corrupted=false
2591 for ac_var in $ac_precious_vars; do
2592 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2593 eval ac_new_set=\$ac_env_${ac_var}_set
2594 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2595 eval ac_new_val=\$ac_env_${ac_var}_value
2596 case $ac_old_set,$ac_new_set in
2597 set,)
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2599 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2600 ac_cache_corrupted=: ;;
2601 ,set)
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2603 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2604 ac_cache_corrupted=: ;;
2605 ,);;
2606 *)
2607 if test "x$ac_old_val" != "x$ac_new_val"; then
2608 # differences in whitespace do not lead to failure.
2609 ac_old_val_w=`echo x $ac_old_val`
2610 ac_new_val_w=`echo x $ac_new_val`
2611 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2613 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2614 ac_cache_corrupted=:
2615 else
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2617 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2618 eval $ac_var=\$ac_old_val
2619 fi
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2621 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2623 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2624 fi;;
2625 esac
2626 # Pass precious variables to config.status.
2627 if test "$ac_new_set" = set; then
2628 case $ac_new_val in
2629 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2630 *) ac_arg=$ac_var=$ac_new_val ;;
2631 esac
2632 case " $ac_configure_args " in
2633 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2634 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2635 esac
2636 fi
2637 done
2638 if $ac_cache_corrupted; then
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2642 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2643 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2644 fi
2645 ## -------------------- ##
2646 ## Main body of script. ##
2647 ## -------------------- ##
2648
2649 ac_ext=c
2650 ac_cpp='$CPP $CPPFLAGS'
2651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2654
2655
2656 ac_config_headers="$ac_config_headers fficonfig.h"
2657
2658
2659 ac_aux_dir=
2660 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2661 if test -f "$ac_dir/install-sh"; then
2662 ac_aux_dir=$ac_dir
2663 ac_install_sh="$ac_aux_dir/install-sh -c"
2664 break
2665 elif test -f "$ac_dir/install.sh"; then
2666 ac_aux_dir=$ac_dir
2667 ac_install_sh="$ac_aux_dir/install.sh -c"
2668 break
2669 elif test -f "$ac_dir/shtool"; then
2670 ac_aux_dir=$ac_dir
2671 ac_install_sh="$ac_aux_dir/shtool install -c"
2672 break
2673 fi
2674 done
2675 if test -z "$ac_aux_dir"; then
2676 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2677 fi
2678
2679 # These three variables are undocumented and unsupported,
2680 # and are intended to be withdrawn in a future Autoconf release.
2681 # They can cause serious problems if a builder's source tree is in a directory
2682 # whose full name contains unusual characters.
2683 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2684 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2685 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2686
2687
2688 # Make sure we can run config.sub.
2689 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2690 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2691
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2693 $as_echo_n "checking build system type... " >&6; }
2694 if ${ac_cv_build+:} false; then :
2695 $as_echo_n "(cached) " >&6
2696 else
2697 ac_build_alias=$build_alias
2698 test "x$ac_build_alias" = x &&
2699 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2700 test "x$ac_build_alias" = x &&
2701 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2702 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2703 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2704
2705 fi
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2707 $as_echo "$ac_cv_build" >&6; }
2708 case $ac_cv_build in
2709 *-*-*) ;;
2710 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2711 esac
2712 build=$ac_cv_build
2713 ac_save_IFS=$IFS; IFS='-'
2714 set x $ac_cv_build
2715 shift
2716 build_cpu=$1
2717 build_vendor=$2
2718 shift; shift
2719 # Remember, the first character of IFS is used to create $*,
2720 # except with old shells:
2721 build_os=$*
2722 IFS=$ac_save_IFS
2723 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2724
2725
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2727 $as_echo_n "checking host system type... " >&6; }
2728 if ${ac_cv_host+:} false; then :
2729 $as_echo_n "(cached) " >&6
2730 else
2731 if test "x$host_alias" = x; then
2732 ac_cv_host=$ac_cv_build
2733 else
2734 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2735 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2736 fi
2737
2738 fi
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2740 $as_echo "$ac_cv_host" >&6; }
2741 case $ac_cv_host in
2742 *-*-*) ;;
2743 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2744 esac
2745 host=$ac_cv_host
2746 ac_save_IFS=$IFS; IFS='-'
2747 set x $ac_cv_host
2748 shift
2749 host_cpu=$1
2750 host_vendor=$2
2751 shift; shift
2752 # Remember, the first character of IFS is used to create $*,
2753 # except with old shells:
2754 host_os=$*
2755 IFS=$ac_save_IFS
2756 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2757
2758
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2760 $as_echo_n "checking target system type... " >&6; }
2761 if ${ac_cv_target+:} false; then :
2762 $as_echo_n "(cached) " >&6
2763 else
2764 if test "x$target_alias" = x; then
2765 ac_cv_target=$ac_cv_host
2766 else
2767 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2768 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2769 fi
2770
2771 fi
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2773 $as_echo "$ac_cv_target" >&6; }
2774 case $ac_cv_target in
2775 *-*-*) ;;
2776 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2777 esac
2778 target=$ac_cv_target
2779 ac_save_IFS=$IFS; IFS='-'
2780 set x $ac_cv_target
2781 shift
2782 target_cpu=$1
2783 target_vendor=$2
2784 shift; shift
2785 # Remember, the first character of IFS is used to create $*,
2786 # except with old shells:
2787 target_os=$*
2788 IFS=$ac_save_IFS
2789 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2790
2791
2792 # The aliases save the names the user supplied, while $host etc.
2793 # will get canonicalized.
2794 test -n "$target_alias" &&
2795 test "$program_prefix$program_suffix$program_transform_name" = \
2796 NONENONEs,x,x, &&
2797 program_prefix=${target_alias}-
2798
2799 target_alias=${target_alias-$host_alias}
2800
2801 case "${host}" in
2802 frv*-elf)
2803 LDFLAGS=`echo $LDFLAGS | sed "s/\-B^ *libgloss\/frv\///"`\ -B`pwd`/../libgloss/frv/
2804 ;;
2805 esac
2806
2807
2808 # [$]@ is unusable in 2.60+ but earlier autoconf had no ac_configure_args
2809 if test "${ac_configure_args+set}" != "set" ; then
2810 ac_configure_args=
2811 for ac_arg in ${1+"$@"}; do
2812 ac_configure_args="$ac_configure_args '$ac_arg'"
2813 done
2814 fi
2815
2816 # Expand $ac_aux_dir to an absolute path.
2817 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2818
2819
2820 ax_enable_builddir="."
2821 # Check whether --enable-builddir was given.
2822 if test "${enable_builddir+set}" = set; then :
2823 enableval=$enable_builddir; ax_enable_builddir="$enableval"
2824 else
2825 ax_enable_builddir="auto"
2826 fi
2827
2828 if test ".$ac_srcdir_defaulted" != ".no" ; then
2829 if test ".$srcdir" = ".." ; then
2830 if test -f config.status ; then
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: toplevel srcdir already configured... skipping subdir build" >&5
2832 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2833 else
2834 test ".$ax_enable_builddir" = "." && ax_enable_builddir="."
2835 test ".$ax_enable_builddir" = ".no" && ax_enable_builddir="."
2836 test ".$TARGET" = "." && TARGET="$target"
2837 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="$TARGET"
2838 if test ".$ax_enable_builddir" != ".." ; then # we know where to go and
2839 as_dir=$ax_enable_builddir; as_fn_mkdir_p
2840 echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2841 cd $ax_enable_builddir
2842 if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2843 rm conftest.tmp
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2845 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2846 else
2847 as_fn_error $? "could not change to default builddir \"./$ax_enable_builddir\"" "$LINENO" 5
2848 fi
2849 srcdir=`echo "$ax_enable_builddir" |
2850 sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2851 # going to restart from subdirectory location
2852 test -f $srcdir/config.log && mv $srcdir/config.log .
2853 test -f $srcdir/confdefs.h && mv $srcdir/confdefs.h .
2854 test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2855 test -f $srcdir/$cache_file && mv $srcdir/$cache_file .
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&5
2857 $as_echo "....exec $SHELL $srcdir/$0 \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" ${1+\"$@\"}" >&6; }
2858 case "$0" in # restart
2859 [\\/]* | ?:[\\/]*) # Absolute name
2860 eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2861 *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2862 esac ; exit $?
2863 fi
2864 fi
2865 fi fi
2866 test ".$ax_enable_builddir" = ".auto" && ax_enable_builddir="."
2867 # Extract the first word of "gsed sed", so it can be a program name with args.
2868 set dummy gsed sed; ac_word=$2
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if ${ac_cv_path_ax_enable_builddir_sed+:} false; then :
2872 $as_echo_n "(cached) " >&6
2873 else
2874 case $ax_enable_builddir_sed in
2875 [\\/]* | ?:[\\/]*)
2876 ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2877 ;;
2878 *)
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2881 do
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2886 ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2889 fi
2890 done
2891 done
2892 IFS=$as_save_IFS
2893
2894 test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2895 ;;
2896 esac
2897 fi
2898 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2899 if test -n "$ax_enable_builddir_sed"; then
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_enable_builddir_sed" >&5
2901 $as_echo "$ax_enable_builddir_sed" >&6; }
2902 else
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 $as_echo "no" >&6; }
2905 fi
2906
2907
2908 ax_enable_builddir_auxdir="$am_aux_dir"
2909 ac_config_commands="$ac_config_commands buildir"
2910
2911
2912 am__api_version='1.16'
2913
2914 # Find a good install program. We prefer a C program (faster),
2915 # so one script is as good as another. But avoid the broken or
2916 # incompatible versions:
2917 # SysV /etc/install, /usr/sbin/install
2918 # SunOS /usr/etc/install
2919 # IRIX /sbin/install
2920 # AIX /bin/install
2921 # AmigaOS /C/install, which installs bootblocks on floppy discs
2922 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2923 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2924 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2925 # OS/2's system install, which has a completely different semantic
2926 # ./install, which can be erroneously created by make from ./install.sh.
2927 # Reject install programs that cannot install multiple files.
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2929 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2930 if test -z "$INSTALL"; then
2931 if ${ac_cv_path_install+:} false; then :
2932 $as_echo_n "(cached) " >&6
2933 else
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2935 for as_dir in $PATH
2936 do
2937 IFS=$as_save_IFS
2938 test -z "$as_dir" && as_dir=.
2939 # Account for people who put trailing slashes in PATH elements.
2940 case $as_dir/ in #((
2941 ./ | .// | /[cC]/* | \
2942 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2943 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2944 /usr/ucb/* ) ;;
2945 *)
2946 # OSF1 and SCO ODT 3.0 have their own names for install.
2947 # Don't use installbsd from OSF since it installs stuff as root
2948 # by default.
2949 for ac_prog in ginstall scoinst install; do
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2952 if test $ac_prog = install &&
2953 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2954 # AIX install. It has an incompatible calling convention.
2955 :
2956 elif test $ac_prog = install &&
2957 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2958 # program-specific install script used by HP pwplus--don't use.
2959 :
2960 else
2961 rm -rf conftest.one conftest.two conftest.dir
2962 echo one > conftest.one
2963 echo two > conftest.two
2964 mkdir conftest.dir
2965 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2966 test -s conftest.one && test -s conftest.two &&
2967 test -s conftest.dir/conftest.one &&
2968 test -s conftest.dir/conftest.two
2969 then
2970 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2971 break 3
2972 fi
2973 fi
2974 fi
2975 done
2976 done
2977 ;;
2978 esac
2979
2980 done
2981 IFS=$as_save_IFS
2982
2983 rm -rf conftest.one conftest.two conftest.dir
2984
2985 fi
2986 if test "${ac_cv_path_install+set}" = set; then
2987 INSTALL=$ac_cv_path_install
2988 else
2989 # As a last resort, use the slow shell script. Don't cache a
2990 # value for INSTALL within a source directory, because that will
2991 # break other packages using the cache if that directory is
2992 # removed, or if the value is a relative name.
2993 INSTALL=$ac_install_sh
2994 fi
2995 fi
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2997 $as_echo "$INSTALL" >&6; }
2998
2999 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3000 # It thinks the first close brace ends the variable substitution.
3001 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3002
3003 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3004
3005 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3006
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3008 $as_echo_n "checking whether build environment is sane... " >&6; }
3009 # Reject unsafe characters in $srcdir or the absolute working directory
3010 # name. Accept space and tab only in the latter.
3011 am_lf='
3012 '
3013 case `pwd` in
3014 *[\\\"\#\$\&\'\`$am_lf]*)
3015 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3016 esac
3017 case $srcdir in
3018 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3019 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3020 esac
3021
3022 # Do 'set' in a subshell so we don't clobber the current shell's
3023 # arguments. Must try -L first in case configure is actually a
3024 # symlink; some systems play weird games with the mod time of symlinks
3025 # (eg FreeBSD returns the mod time of the symlink's containing
3026 # directory).
3027 if (
3028 am_has_slept=no
3029 for am_try in 1 2; do
3030 echo "timestamp, slept: $am_has_slept" > conftest.file
3031 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3032 if test "$*" = "X"; then
3033 # -L didn't work.
3034 set X `ls -t "$srcdir/configure" conftest.file`
3035 fi
3036 if test "$*" != "X $srcdir/configure conftest.file" \
3037 && test "$*" != "X conftest.file $srcdir/configure"; then
3038
3039 # If neither matched, then we have a broken ls. This can happen
3040 # if, for instance, CONFIG_SHELL is bash and it inherits a
3041 # broken ls alias from the environment. This has actually
3042 # happened. Such a system could not be considered "sane".
3043 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3044 alias in your environment" "$LINENO" 5
3045 fi
3046 if test "$2" = conftest.file || test $am_try -eq 2; then
3047 break
3048 fi
3049 # Just in case.
3050 sleep 1
3051 am_has_slept=yes
3052 done
3053 test "$2" = conftest.file
3054 )
3055 then
3056 # Ok.
3057 :
3058 else
3059 as_fn_error $? "newly created file is older than distributed files!
3060 Check your system clock" "$LINENO" 5
3061 fi
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3063 $as_echo "yes" >&6; }
3064 # If we didn't sleep, we still need to ensure time stamps of config.status and
3065 # generated files are strictly newer.
3066 am_sleep_pid=
3067 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3068 ( sleep 1 ) &
3069 am_sleep_pid=$!
3070 fi
3071
3072 rm -f conftest.file
3073
3074 test "$program_prefix" != NONE &&
3075 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3076 # Use a double $ so make ignores it.
3077 test "$program_suffix" != NONE &&
3078 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3079 # Double any \ or $.
3080 # By default was `s,x,x', remove it if useless.
3081 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3082 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3083
3084 if test x"${MISSING+set}" != xset; then
3085 case $am_aux_dir in
3086 *\ * | *\ *)
3087 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3088 *)
3089 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3090 esac
3091 fi
3092 # Use eval to expand $SHELL
3093 if eval "$MISSING --is-lightweight"; then
3094 am_missing_run="$MISSING "
3095 else
3096 am_missing_run=
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3098 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3099 fi
3100
3101 if test x"${install_sh+set}" != xset; then
3102 case $am_aux_dir in
3103 *\ * | *\ *)
3104 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3105 *)
3106 install_sh="\${SHELL} $am_aux_dir/install-sh"
3107 esac
3108 fi
3109
3110 # Installed binaries are usually stripped using 'strip' when the user
3111 # run "make install-strip". However 'strip' might not be the right
3112 # tool to use in cross-compilation environments, therefore Automake
3113 # will honor the 'STRIP' environment variable to overrule this program.
3114 if test "$cross_compiling" != no; then
3115 if test -n "$ac_tool_prefix"; then
3116 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3117 set dummy ${ac_tool_prefix}strip; ac_word=$2
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3119 $as_echo_n "checking for $ac_word... " >&6; }
3120 if ${ac_cv_prog_STRIP+:} false; then :
3121 $as_echo_n "(cached) " >&6
3122 else
3123 if test -n "$STRIP"; then
3124 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3125 else
3126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3127 for as_dir in $PATH
3128 do
3129 IFS=$as_save_IFS
3130 test -z "$as_dir" && as_dir=.
3131 for ac_exec_ext in '' $ac_executable_extensions; do
3132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3133 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3135 break 2
3136 fi
3137 done
3138 done
3139 IFS=$as_save_IFS
3140
3141 fi
3142 fi
3143 STRIP=$ac_cv_prog_STRIP
3144 if test -n "$STRIP"; then
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3146 $as_echo "$STRIP" >&6; }
3147 else
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3149 $as_echo "no" >&6; }
3150 fi
3151
3152
3153 fi
3154 if test -z "$ac_cv_prog_STRIP"; then
3155 ac_ct_STRIP=$STRIP
3156 # Extract the first word of "strip", so it can be a program name with args.
3157 set dummy strip; ac_word=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3161 $as_echo_n "(cached) " >&6
3162 else
3163 if test -n "$ac_ct_STRIP"; then
3164 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3165 else
3166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3167 for as_dir in $PATH
3168 do
3169 IFS=$as_save_IFS
3170 test -z "$as_dir" && as_dir=.
3171 for ac_exec_ext in '' $ac_executable_extensions; do
3172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3173 ac_cv_prog_ac_ct_STRIP="strip"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 break 2
3176 fi
3177 done
3178 done
3179 IFS=$as_save_IFS
3180
3181 fi
3182 fi
3183 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3184 if test -n "$ac_ct_STRIP"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3186 $as_echo "$ac_ct_STRIP" >&6; }
3187 else
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3190 fi
3191
3192 if test "x$ac_ct_STRIP" = x; then
3193 STRIP=":"
3194 else
3195 case $cross_compiling:$ac_tool_warned in
3196 yes:)
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3199 ac_tool_warned=yes ;;
3200 esac
3201 STRIP=$ac_ct_STRIP
3202 fi
3203 else
3204 STRIP="$ac_cv_prog_STRIP"
3205 fi
3206
3207 fi
3208 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3209
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3211 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3212 if test -z "$MKDIR_P"; then
3213 if ${ac_cv_path_mkdir+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3218 do
3219 IFS=$as_save_IFS
3220 test -z "$as_dir" && as_dir=.
3221 for ac_prog in mkdir gmkdir; do
3222 for ac_exec_ext in '' $ac_executable_extensions; do
3223 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3224 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3225 'mkdir (GNU coreutils) '* | \
3226 'mkdir (coreutils) '* | \
3227 'mkdir (fileutils) '4.1*)
3228 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3229 break 3;;
3230 esac
3231 done
3232 done
3233 done
3234 IFS=$as_save_IFS
3235
3236 fi
3237
3238 test -d ./--version && rmdir ./--version
3239 if test "${ac_cv_path_mkdir+set}" = set; then
3240 MKDIR_P="$ac_cv_path_mkdir -p"
3241 else
3242 # As a last resort, use the slow shell script. Don't cache a
3243 # value for MKDIR_P within a source directory, because that will
3244 # break other packages using the cache if that directory is
3245 # removed, or if the value is a relative name.
3246 MKDIR_P="$ac_install_sh -d"
3247 fi
3248 fi
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3250 $as_echo "$MKDIR_P" >&6; }
3251
3252 for ac_prog in gawk mawk nawk awk
3253 do
3254 # Extract the first word of "$ac_prog", so it can be a program name with args.
3255 set dummy $ac_prog; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if ${ac_cv_prog_AWK+:} false; then :
3259 $as_echo_n "(cached) " >&6
3260 else
3261 if test -n "$AWK"; then
3262 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3263 else
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3266 do
3267 IFS=$as_save_IFS
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271 ac_cv_prog_AWK="$ac_prog"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 break 2
3274 fi
3275 done
3276 done
3277 IFS=$as_save_IFS
3278
3279 fi
3280 fi
3281 AWK=$ac_cv_prog_AWK
3282 if test -n "$AWK"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3284 $as_echo "$AWK" >&6; }
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 fi
3289
3290
3291 test -n "$AWK" && break
3292 done
3293
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3295 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3296 set x ${MAKE-make}
3297 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3298 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3299 $as_echo_n "(cached) " >&6
3300 else
3301 cat >conftest.make <<\_ACEOF
3302 SHELL = /bin/sh
3303 all:
3304 @echo '@@@%%%=$(MAKE)=@@@%%%'
3305 _ACEOF
3306 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3307 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3308 *@@@%%%=?*=@@@%%%*)
3309 eval ac_cv_prog_make_${ac_make}_set=yes;;
3310 *)
3311 eval ac_cv_prog_make_${ac_make}_set=no;;
3312 esac
3313 rm -f conftest.make
3314 fi
3315 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3317 $as_echo "yes" >&6; }
3318 SET_MAKE=
3319 else
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3322 SET_MAKE="MAKE=${MAKE-make}"
3323 fi
3324
3325 rm -rf .tst 2>/dev/null
3326 mkdir .tst 2>/dev/null
3327 if test -d .tst; then
3328 am__leading_dot=.
3329 else
3330 am__leading_dot=_
3331 fi
3332 rmdir .tst 2>/dev/null
3333
3334 # Check whether --enable-silent-rules was given.
3335 if test "${enable_silent_rules+set}" = set; then :
3336 enableval=$enable_silent_rules;
3337 fi
3338
3339 case $enable_silent_rules in # (((
3340 yes) AM_DEFAULT_VERBOSITY=0;;
3341 no) AM_DEFAULT_VERBOSITY=1;;
3342 *) AM_DEFAULT_VERBOSITY=1;;
3343 esac
3344 am_make=${MAKE-make}
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3346 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3347 if ${am_cv_make_support_nested_variables+:} false; then :
3348 $as_echo_n "(cached) " >&6
3349 else
3350 if $as_echo 'TRUE=$(BAR$(V))
3351 BAR0=false
3352 BAR1=true
3353 V=1
3354 am__doit:
3355 @$(TRUE)
3356 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3357 am_cv_make_support_nested_variables=yes
3358 else
3359 am_cv_make_support_nested_variables=no
3360 fi
3361 fi
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3363 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3364 if test $am_cv_make_support_nested_variables = yes; then
3365 AM_V='$(V)'
3366 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3367 else
3368 AM_V=$AM_DEFAULT_VERBOSITY
3369 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3370 fi
3371 AM_BACKSLASH='\'
3372
3373 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3374 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3375 # is not polluted with repeated "-I."
3376 am__isrc=' -I$(srcdir)'
3377 # test to see if srcdir already configured
3378 if test -f $srcdir/config.status; then
3379 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3380 fi
3381 fi
3382
3383 # test whether we have cygpath
3384 if test -z "$CYGPATH_W"; then
3385 if (cygpath --version) >/dev/null 2>/dev/null; then
3386 CYGPATH_W='cygpath -w'
3387 else
3388 CYGPATH_W=echo
3389 fi
3390 fi
3391
3392
3393 # Define the identity of the package.
3394 PACKAGE='libffi'
3395 VERSION='3.3'
3396
3397
3398 cat >>confdefs.h <<_ACEOF
3399 #define PACKAGE "$PACKAGE"
3400 _ACEOF
3401
3402
3403 cat >>confdefs.h <<_ACEOF
3404 #define VERSION "$VERSION"
3405 _ACEOF
3406
3407 # Some tools Automake needs.
3408
3409 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3410
3411
3412 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3413
3414
3415 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3416
3417
3418 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3419
3420
3421 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3422
3423 # For better backward compatibility. To be removed once Automake 1.9.x
3424 # dies out for good. For more background, see:
3425 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3426 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3427 mkdir_p='$(MKDIR_P)'
3428
3429 # We need awk for the "check" target (and possibly the TAP driver). The
3430 # system "awk" is bad on some platforms.
3431 # Always define AMTAR for backward compatibility. Yes, it's still used
3432 # in the wild :-( We should find a proper way to deprecate it ...
3433 AMTAR='$${TAR-tar}'
3434
3435
3436 # We'll loop over all known methods to create a tar archive until one works.
3437 _am_tools='gnutar pax cpio none'
3438
3439 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3440
3441
3442
3443
3444
3445
3446 # POSIX will say in a future version that running "rm -f" with no argument
3447 # is OK; and we want to be able to make that assumption in our Makefile
3448 # recipes. So use an aggressive probe to check that the usage we want is
3449 # actually supported "in the wild" to an acceptable degree.
3450 # See automake bug#10828.
3451 # To make any issue more visible, cause the running configure to be aborted
3452 # by default if the 'rm' program in use doesn't match our expectations; the
3453 # user can still override this though.
3454 if rm -f && rm -fr && rm -rf; then : OK; else
3455 cat >&2 <<'END'
3456 Oops!
3457
3458 Your 'rm' program seems unable to run without file operands specified
3459 on the command line, even when the '-f' option is present. This is contrary
3460 to the behaviour of most rm programs out there, and not conforming with
3461 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3462
3463 Please tell [email protected] about your system, including the value
3464 of your $PATH and any error possibly output before this message. This
3465 can help us improve future automake versions.
3466
3467 END
3468 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3469 echo 'Configuration will proceed anyway, since you have set the' >&2
3470 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3471 echo >&2
3472 else
3473 cat >&2 <<'END'
3474 Aborting the configuration process, to ensure you take notice of the issue.
3475
3476 You can download and install GNU coreutils to get an 'rm' implementation
3477 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3478
3479 If you want to complete the configuration process using your problematic
3480 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3481 to "yes", and re-run configure.
3482
3483 END
3484 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3485 fi
3486 fi
3487
3488
3489 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3490 # We must force CC to /not/ be precious variables; otherwise
3491 # the wrong, non-multilib-adjusted value will be used in multilibs.
3492 # As a side effect, we have to subst CFLAGS ourselves.
3493 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3494 # defaults of its own if none are provided.
3495
3496
3497
3498 save_CFLAGS=$CFLAGS
3499 ac_ext=c
3500 ac_cpp='$CPP $CPPFLAGS'
3501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3504 if test -n "$ac_tool_prefix"; then
3505 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3506 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3508 $as_echo_n "checking for $ac_word... " >&6; }
3509 if ${ac_cv_prog_CC+:} false; then :
3510 $as_echo_n "(cached) " >&6
3511 else
3512 if test -n "$CC"; then
3513 ac_cv_prog_CC="$CC" # Let the user override the test.
3514 else
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 for as_dir in $PATH
3517 do
3518 IFS=$as_save_IFS
3519 test -z "$as_dir" && as_dir=.
3520 for ac_exec_ext in '' $ac_executable_extensions; do
3521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3522 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 break 2
3525 fi
3526 done
3527 done
3528 IFS=$as_save_IFS
3529
3530 fi
3531 fi
3532 CC=$ac_cv_prog_CC
3533 if test -n "$CC"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3535 $as_echo "$CC" >&6; }
3536 else
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538 $as_echo "no" >&6; }
3539 fi
3540
3541
3542 fi
3543 if test -z "$ac_cv_prog_CC"; then
3544 ac_ct_CC=$CC
3545 # Extract the first word of "gcc", so it can be a program name with args.
3546 set dummy gcc; ac_word=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3550 $as_echo_n "(cached) " >&6
3551 else
3552 if test -n "$ac_ct_CC"; then
3553 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3554 else
3555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3556 for as_dir in $PATH
3557 do
3558 IFS=$as_save_IFS
3559 test -z "$as_dir" && as_dir=.
3560 for ac_exec_ext in '' $ac_executable_extensions; do
3561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3562 ac_cv_prog_ac_ct_CC="gcc"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3564 break 2
3565 fi
3566 done
3567 done
3568 IFS=$as_save_IFS
3569
3570 fi
3571 fi
3572 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3573 if test -n "$ac_ct_CC"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3575 $as_echo "$ac_ct_CC" >&6; }
3576 else
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3579 fi
3580
3581 if test "x$ac_ct_CC" = x; then
3582 CC=""
3583 else
3584 case $cross_compiling:$ac_tool_warned in
3585 yes:)
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3587 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3588 ac_tool_warned=yes ;;
3589 esac
3590 CC=$ac_ct_CC
3591 fi
3592 else
3593 CC="$ac_cv_prog_CC"
3594 fi
3595
3596 if test -z "$CC"; then
3597 if test -n "$ac_tool_prefix"; then
3598 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3599 set dummy ${ac_tool_prefix}cc; ac_word=$2
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601 $as_echo_n "checking for $ac_word... " >&6; }
3602 if ${ac_cv_prog_CC+:} false; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 if test -n "$CC"; then
3606 ac_cv_prog_CC="$CC" # Let the user override the test.
3607 else
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3610 do
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3615 ac_cv_prog_CC="${ac_tool_prefix}cc"
3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 break 2
3618 fi
3619 done
3620 done
3621 IFS=$as_save_IFS
3622
3623 fi
3624 fi
3625 CC=$ac_cv_prog_CC
3626 if test -n "$CC"; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3628 $as_echo "$CC" >&6; }
3629 else
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3632 fi
3633
3634
3635 fi
3636 fi
3637 if test -z "$CC"; then
3638 # Extract the first word of "cc", so it can be a program name with args.
3639 set dummy cc; ac_word=$2
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3641 $as_echo_n "checking for $ac_word... " >&6; }
3642 if ${ac_cv_prog_CC+:} false; then :
3643 $as_echo_n "(cached) " >&6
3644 else
3645 if test -n "$CC"; then
3646 ac_cv_prog_CC="$CC" # Let the user override the test.
3647 else
3648 ac_prog_rejected=no
3649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3650 for as_dir in $PATH
3651 do
3652 IFS=$as_save_IFS
3653 test -z "$as_dir" && as_dir=.
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3656 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3657 ac_prog_rejected=yes
3658 continue
3659 fi
3660 ac_cv_prog_CC="cc"
3661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3662 break 2
3663 fi
3664 done
3665 done
3666 IFS=$as_save_IFS
3667
3668 if test $ac_prog_rejected = yes; then
3669 # We found a bogon in the path, so make sure we never use it.
3670 set dummy $ac_cv_prog_CC
3671 shift
3672 if test $# != 0; then
3673 # We chose a different compiler from the bogus one.
3674 # However, it has the same basename, so the bogon will be chosen
3675 # first if we set CC to just the basename; use the full file name.
3676 shift
3677 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3678 fi
3679 fi
3680 fi
3681 fi
3682 CC=$ac_cv_prog_CC
3683 if test -n "$CC"; then
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3685 $as_echo "$CC" >&6; }
3686 else
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688 $as_echo "no" >&6; }
3689 fi
3690
3691
3692 fi
3693 if test -z "$CC"; then
3694 if test -n "$ac_tool_prefix"; then
3695 for ac_prog in cl.exe
3696 do
3697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3698 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3700 $as_echo_n "checking for $ac_word... " >&6; }
3701 if ${ac_cv_prog_CC+:} false; then :
3702 $as_echo_n "(cached) " >&6
3703 else
3704 if test -n "$CC"; then
3705 ac_cv_prog_CC="$CC" # Let the user override the test.
3706 else
3707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708 for as_dir in $PATH
3709 do
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3714 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3716 break 2
3717 fi
3718 done
3719 done
3720 IFS=$as_save_IFS
3721
3722 fi
3723 fi
3724 CC=$ac_cv_prog_CC
3725 if test -n "$CC"; then
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3727 $as_echo "$CC" >&6; }
3728 else
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3731 fi
3732
3733
3734 test -n "$CC" && break
3735 done
3736 fi
3737 if test -z "$CC"; then
3738 ac_ct_CC=$CC
3739 for ac_prog in cl.exe
3740 do
3741 # Extract the first word of "$ac_prog", so it can be a program name with args.
3742 set dummy $ac_prog; ac_word=$2
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3744 $as_echo_n "checking for $ac_word... " >&6; }
3745 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3746 $as_echo_n "(cached) " >&6
3747 else
3748 if test -n "$ac_ct_CC"; then
3749 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3750 else
3751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3752 for as_dir in $PATH
3753 do
3754 IFS=$as_save_IFS
3755 test -z "$as_dir" && as_dir=.
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3758 ac_cv_prog_ac_ct_CC="$ac_prog"
3759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3760 break 2
3761 fi
3762 done
3763 done
3764 IFS=$as_save_IFS
3765
3766 fi
3767 fi
3768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3769 if test -n "$ac_ct_CC"; then
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3771 $as_echo "$ac_ct_CC" >&6; }
3772 else
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3774 $as_echo "no" >&6; }
3775 fi
3776
3777
3778 test -n "$ac_ct_CC" && break
3779 done
3780
3781 if test "x$ac_ct_CC" = x; then
3782 CC=""
3783 else
3784 case $cross_compiling:$ac_tool_warned in
3785 yes:)
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3787 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3788 ac_tool_warned=yes ;;
3789 esac
3790 CC=$ac_ct_CC
3791 fi
3792 fi
3793
3794 fi
3795
3796
3797 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799 as_fn_error $? "no acceptable C compiler found in \$PATH
3800 See \`config.log' for more details" "$LINENO" 5; }
3801
3802 # Provide some information about the compiler.
3803 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3804 set X $ac_compile
3805 ac_compiler=$2
3806 for ac_option in --version -v -V -qversion; do
3807 { { ac_try="$ac_compiler $ac_option >&5"
3808 case "(($ac_try" in
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3811 esac
3812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813 $as_echo "$ac_try_echo"; } >&5
3814 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3815 ac_status=$?
3816 if test -s conftest.err; then
3817 sed '10a\
3818 ... rest of stderr output deleted ...
3819 10q' conftest.err >conftest.er1
3820 cat conftest.er1 >&5
3821 fi
3822 rm -f conftest.er1 conftest.err
3823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824 test $ac_status = 0; }
3825 done
3826
3827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h. */
3829
3830 int
3831 main ()
3832 {
3833
3834 ;
3835 return 0;
3836 }
3837 _ACEOF
3838 ac_clean_files_save=$ac_clean_files
3839 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3840 # Try to create an executable without -o first, disregard a.out.
3841 # It will help us diagnose broken compilers, and finding out an intuition
3842 # of exeext.
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3844 $as_echo_n "checking whether the C compiler works... " >&6; }
3845 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3846
3847 # The possible output files:
3848 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3849
3850 ac_rmfiles=
3851 for ac_file in $ac_files
3852 do
3853 case $ac_file in
3854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3855 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3856 esac
3857 done
3858 rm -f $ac_rmfiles
3859
3860 if { { ac_try="$ac_link_default"
3861 case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3864 esac
3865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3866 $as_echo "$ac_try_echo"; } >&5
3867 (eval "$ac_link_default") 2>&5
3868 ac_status=$?
3869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870 test $ac_status = 0; }; then :
3871 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3872 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3873 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3874 # so that the user can short-circuit this test for compilers unknown to
3875 # Autoconf.
3876 for ac_file in $ac_files ''
3877 do
3878 test -f "$ac_file" || continue
3879 case $ac_file in
3880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3881 ;;
3882 [ab].out )
3883 # We found the default executable, but exeext='' is most
3884 # certainly right.
3885 break;;
3886 *.* )
3887 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3888 then :; else
3889 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3890 fi
3891 # We set ac_cv_exeext here because the later test for it is not
3892 # safe: cross compilers may not add the suffix if given an `-o'
3893 # argument, so we may need to know it at that point already.
3894 # Even if this section looks crufty: it has the advantage of
3895 # actually working.
3896 break;;
3897 * )
3898 break;;
3899 esac
3900 done
3901 test "$ac_cv_exeext" = no && ac_cv_exeext=
3902
3903 else
3904 ac_file=''
3905 fi
3906 if test -z "$ac_file"; then :
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 $as_echo "no" >&6; }
3909 $as_echo "$as_me: failed program was:" >&5
3910 sed 's/^/| /' conftest.$ac_ext >&5
3911
3912 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3913 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3914 as_fn_error 77 "C compiler cannot create executables
3915 See \`config.log' for more details" "$LINENO" 5; }
3916 else
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3918 $as_echo "yes" >&6; }
3919 fi
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3921 $as_echo_n "checking for C compiler default output file name... " >&6; }
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3923 $as_echo "$ac_file" >&6; }
3924 ac_exeext=$ac_cv_exeext
3925
3926 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3927 ac_clean_files=$ac_clean_files_save
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3929 $as_echo_n "checking for suffix of executables... " >&6; }
3930 if { { ac_try="$ac_link"
3931 case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3934 esac
3935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936 $as_echo "$ac_try_echo"; } >&5
3937 (eval "$ac_link") 2>&5
3938 ac_status=$?
3939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940 test $ac_status = 0; }; then :
3941 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3942 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3943 # work properly (i.e., refer to `conftest.exe'), while it won't with
3944 # `rm'.
3945 for ac_file in conftest.exe conftest conftest.*; do
3946 test -f "$ac_file" || continue
3947 case $ac_file in
3948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3949 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3950 break;;
3951 * ) break;;
3952 esac
3953 done
3954 else
3955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3958 See \`config.log' for more details" "$LINENO" 5; }
3959 fi
3960 rm -f conftest conftest$ac_cv_exeext
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3962 $as_echo "$ac_cv_exeext" >&6; }
3963
3964 rm -f conftest.$ac_ext
3965 EXEEXT=$ac_cv_exeext
3966 ac_exeext=$EXEEXT
3967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3968 /* end confdefs.h. */
3969 #include <stdio.h>
3970 int
3971 main ()
3972 {
3973 FILE *f = fopen ("conftest.out", "w");
3974 return ferror (f) || fclose (f) != 0;
3975
3976 ;
3977 return 0;
3978 }
3979 _ACEOF
3980 ac_clean_files="$ac_clean_files conftest.out"
3981 # Check that the compiler produces executables we can run. If not, either
3982 # the compiler is broken, or we cross compile.
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3984 $as_echo_n "checking whether we are cross compiling... " >&6; }
3985 if test "$cross_compiling" != yes; then
3986 { { ac_try="$ac_link"
3987 case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990 esac
3991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992 $as_echo "$ac_try_echo"; } >&5
3993 (eval "$ac_link") 2>&5
3994 ac_status=$?
3995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3996 test $ac_status = 0; }
3997 if { ac_try='./conftest$ac_cv_exeext'
3998 { { case "(($ac_try" in
3999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4000 *) ac_try_echo=$ac_try;;
4001 esac
4002 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4003 $as_echo "$ac_try_echo"; } >&5
4004 (eval "$ac_try") 2>&5
4005 ac_status=$?
4006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4007 test $ac_status = 0; }; }; then
4008 cross_compiling=no
4009 else
4010 if test "$cross_compiling" = maybe; then
4011 cross_compiling=yes
4012 else
4013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4015 as_fn_error $? "cannot run C compiled programs.
4016 If you meant to cross compile, use \`--host'.
4017 See \`config.log' for more details" "$LINENO" 5; }
4018 fi
4019 fi
4020 fi
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4022 $as_echo "$cross_compiling" >&6; }
4023
4024 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4025 ac_clean_files=$ac_clean_files_save
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4027 $as_echo_n "checking for suffix of object files... " >&6; }
4028 if ${ac_cv_objext+:} false; then :
4029 $as_echo_n "(cached) " >&6
4030 else
4031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032 /* end confdefs.h. */
4033
4034 int
4035 main ()
4036 {
4037
4038 ;
4039 return 0;
4040 }
4041 _ACEOF
4042 rm -f conftest.o conftest.obj
4043 if { { ac_try="$ac_compile"
4044 case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047 esac
4048 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4049 $as_echo "$ac_try_echo"; } >&5
4050 (eval "$ac_compile") 2>&5
4051 ac_status=$?
4052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4053 test $ac_status = 0; }; then :
4054 for ac_file in conftest.o conftest.obj conftest.*; do
4055 test -f "$ac_file" || continue;
4056 case $ac_file in
4057 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4058 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4059 break;;
4060 esac
4061 done
4062 else
4063 $as_echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4065
4066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4068 as_fn_error $? "cannot compute suffix of object files: cannot compile
4069 See \`config.log' for more details" "$LINENO" 5; }
4070 fi
4071 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4072 fi
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4074 $as_echo "$ac_cv_objext" >&6; }
4075 OBJEXT=$ac_cv_objext
4076 ac_objext=$OBJEXT
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4078 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4079 if ${ac_cv_c_compiler_gnu+:} false; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4083 /* end confdefs.h. */
4084
4085 int
4086 main ()
4087 {
4088 #ifndef __GNUC__
4089 choke me
4090 #endif
4091
4092 ;
4093 return 0;
4094 }
4095 _ACEOF
4096 if ac_fn_c_try_compile "$LINENO"; then :
4097 ac_compiler_gnu=yes
4098 else
4099 ac_compiler_gnu=no
4100 fi
4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4103
4104 fi
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4106 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4107 if test $ac_compiler_gnu = yes; then
4108 GCC=yes
4109 else
4110 GCC=
4111 fi
4112 ac_test_CFLAGS=${CFLAGS+set}
4113 ac_save_CFLAGS=$CFLAGS
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4115 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4116 if ${ac_cv_prog_cc_g+:} false; then :
4117 $as_echo_n "(cached) " >&6
4118 else
4119 ac_save_c_werror_flag=$ac_c_werror_flag
4120 ac_c_werror_flag=yes
4121 ac_cv_prog_cc_g=no
4122 CFLAGS="-g"
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4125
4126 int
4127 main ()
4128 {
4129
4130 ;
4131 return 0;
4132 }
4133 _ACEOF
4134 if ac_fn_c_try_compile "$LINENO"; then :
4135 ac_cv_prog_cc_g=yes
4136 else
4137 CFLAGS=""
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4140
4141 int
4142 main ()
4143 {
4144
4145 ;
4146 return 0;
4147 }
4148 _ACEOF
4149 if ac_fn_c_try_compile "$LINENO"; then :
4150
4151 else
4152 ac_c_werror_flag=$ac_save_c_werror_flag
4153 CFLAGS="-g"
4154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155 /* end confdefs.h. */
4156
4157 int
4158 main ()
4159 {
4160
4161 ;
4162 return 0;
4163 }
4164 _ACEOF
4165 if ac_fn_c_try_compile "$LINENO"; then :
4166 ac_cv_prog_cc_g=yes
4167 fi
4168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4169 fi
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171 fi
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173 ac_c_werror_flag=$ac_save_c_werror_flag
4174 fi
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4176 $as_echo "$ac_cv_prog_cc_g" >&6; }
4177 if test "$ac_test_CFLAGS" = set; then
4178 CFLAGS=$ac_save_CFLAGS
4179 elif test $ac_cv_prog_cc_g = yes; then
4180 if test "$GCC" = yes; then
4181 CFLAGS="-g -O2"
4182 else
4183 CFLAGS="-g"
4184 fi
4185 else
4186 if test "$GCC" = yes; then
4187 CFLAGS="-O2"
4188 else
4189 CFLAGS=
4190 fi
4191 fi
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4193 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4194 if ${ac_cv_prog_cc_c89+:} false; then :
4195 $as_echo_n "(cached) " >&6
4196 else
4197 ac_cv_prog_cc_c89=no
4198 ac_save_CC=$CC
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200 /* end confdefs.h. */
4201 #include <stdarg.h>
4202 #include <stdio.h>
4203 struct stat;
4204 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4205 struct buf { int x; };
4206 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4207 static char *e (p, i)
4208 char **p;
4209 int i;
4210 {
4211 return p[i];
4212 }
4213 static char *f (char * (*g) (char **, int), char **p, ...)
4214 {
4215 char *s;
4216 va_list v;
4217 va_start (v,p);
4218 s = g (p, va_arg (v,int));
4219 va_end (v);
4220 return s;
4221 }
4222
4223 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4224 function prototypes and stuff, but not '\xHH' hex character constants.
4225 These don't provoke an error unfortunately, instead are silently treated
4226 as 'x'. The following induces an error, until -std is added to get
4227 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4228 array size at least. It's necessary to write '\x00'==0 to get something
4229 that's true only with -std. */
4230 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4231
4232 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4233 inside strings and character constants. */
4234 #define FOO(x) 'x'
4235 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4236
4237 int test (int i, double x);
4238 struct s1 {int (*f) (int a);};
4239 struct s2 {int (*f) (double a);};
4240 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4241 int argc;
4242 char **argv;
4243 int
4244 main ()
4245 {
4246 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4247 ;
4248 return 0;
4249 }
4250 _ACEOF
4251 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4252 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4253 do
4254 CC="$ac_save_CC $ac_arg"
4255 if ac_fn_c_try_compile "$LINENO"; then :
4256 ac_cv_prog_cc_c89=$ac_arg
4257 fi
4258 rm -f core conftest.err conftest.$ac_objext
4259 test "x$ac_cv_prog_cc_c89" != "xno" && break
4260 done
4261 rm -f conftest.$ac_ext
4262 CC=$ac_save_CC
4263
4264 fi
4265 # AC_CACHE_VAL
4266 case "x$ac_cv_prog_cc_c89" in
4267 x)
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4269 $as_echo "none needed" >&6; } ;;
4270 xno)
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4272 $as_echo "unsupported" >&6; } ;;
4273 *)
4274 CC="$CC $ac_cv_prog_cc_c89"
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4276 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4277 esac
4278 if test "x$ac_cv_prog_cc_c89" != xno; then :
4279
4280 fi
4281
4282 ac_ext=c
4283 ac_cpp='$CPP $CPPFLAGS'
4284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4287
4288 ac_ext=c
4289 ac_cpp='$CPP $CPPFLAGS'
4290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4294 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4295 if ${am_cv_prog_cc_c_o+:} false; then :
4296 $as_echo_n "(cached) " >&6
4297 else
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4300
4301 int
4302 main ()
4303 {
4304
4305 ;
4306 return 0;
4307 }
4308 _ACEOF
4309 # Make sure it works both with $CC and with simple cc.
4310 # Following AC_PROG_CC_C_O, we do the test twice because some
4311 # compilers refuse to overwrite an existing .o file with -o,
4312 # though they will create one.
4313 am_cv_prog_cc_c_o=yes
4314 for am_i in 1 2; do
4315 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4316 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4317 ac_status=$?
4318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4319 (exit $ac_status); } \
4320 && test -f conftest2.$ac_objext; then
4321 : OK
4322 else
4323 am_cv_prog_cc_c_o=no
4324 break
4325 fi
4326 done
4327 rm -f core conftest*
4328 unset am_i
4329 fi
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4331 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4332 if test "$am_cv_prog_cc_c_o" != yes; then
4333 # Losing compiler, so override with the script.
4334 # FIXME: It is wrong to rewrite CC.
4335 # But if we don't then we get into trouble of one sort or another.
4336 # A longer-term fix would be to have automake use am__CC in this case,
4337 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4338 CC="$am_aux_dir/compile $CC"
4339 fi
4340 ac_ext=c
4341 ac_cpp='$CPP $CPPFLAGS'
4342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4345
4346 DEPDIR="${am__leading_dot}deps"
4347
4348 ac_config_commands="$ac_config_commands depfiles"
4349
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4351 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4352 cat > confinc.mk << 'END'
4353 am__doit:
4354 @echo this is the am__doit target >confinc.out
4355 .PHONY: am__doit
4356 END
4357 am__include="#"
4358 am__quote=
4359 # BSD make does it like this.
4360 echo '.include "confinc.mk" # ignored' > confmf.BSD
4361 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4362 echo 'include confinc.mk # ignored' > confmf.GNU
4363 _am_result=no
4364 for s in GNU BSD; do
4365 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4366 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4367 ac_status=$?
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }
4370 case $?:`cat confinc.out 2>/dev/null` in #(
4371 '0:this is the am__doit target') :
4372 case $s in #(
4373 BSD) :
4374 am__include='.include' am__quote='"' ;; #(
4375 *) :
4376 am__include='include' am__quote='' ;;
4377 esac ;; #(
4378 *) :
4379 ;;
4380 esac
4381 if test "$am__include" != "#"; then
4382 _am_result="yes ($s style)"
4383 break
4384 fi
4385 done
4386 rm -f confinc.* confmf.*
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4388 $as_echo "${_am_result}" >&6; }
4389
4390 # Check whether --enable-dependency-tracking was given.
4391 if test "${enable_dependency_tracking+set}" = set; then :
4392 enableval=$enable_dependency_tracking;
4393 fi
4394
4395 if test "x$enable_dependency_tracking" != xno; then
4396 am_depcomp="$ac_aux_dir/depcomp"
4397 AMDEPBACKSLASH='\'
4398 am__nodep='_no'
4399 fi
4400 if test "x$enable_dependency_tracking" != xno; then
4401 AMDEP_TRUE=
4402 AMDEP_FALSE='#'
4403 else
4404 AMDEP_TRUE='#'
4405 AMDEP_FALSE=
4406 fi
4407
4408
4409
4410 depcc="$CC" am_compiler_list=
4411
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4413 $as_echo_n "checking dependency style of $depcc... " >&6; }
4414 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4415 $as_echo_n "(cached) " >&6
4416 else
4417 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4418 # We make a subdir and do the tests there. Otherwise we can end up
4419 # making bogus files that we don't know about and never remove. For
4420 # instance it was reported that on HP-UX the gcc test will end up
4421 # making a dummy file named 'D' -- because '-MD' means "put the output
4422 # in D".
4423 rm -rf conftest.dir
4424 mkdir conftest.dir
4425 # Copy depcomp to subdir because otherwise we won't find it if we're
4426 # using a relative directory.
4427 cp "$am_depcomp" conftest.dir
4428 cd conftest.dir
4429 # We will build objects and dependencies in a subdirectory because
4430 # it helps to detect inapplicable dependency modes. For instance
4431 # both Tru64's cc and ICC support -MD to output dependencies as a
4432 # side effect of compilation, but ICC will put the dependencies in
4433 # the current directory while Tru64 will put them in the object
4434 # directory.
4435 mkdir sub
4436
4437 am_cv_CC_dependencies_compiler_type=none
4438 if test "$am_compiler_list" = ""; then
4439 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4440 fi
4441 am__universal=false
4442 case " $depcc " in #(
4443 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4444 esac
4445
4446 for depmode in $am_compiler_list; do
4447 # Setup a source with many dependencies, because some compilers
4448 # like to wrap large dependency lists on column 80 (with \), and
4449 # we should not choose a depcomp mode which is confused by this.
4450 #
4451 # We need to recreate these files for each test, as the compiler may
4452 # overwrite some of them when testing with obscure command lines.
4453 # This happens at least with the AIX C compiler.
4454 : > sub/conftest.c
4455 for i in 1 2 3 4 5 6; do
4456 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4457 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4458 # Solaris 10 /bin/sh.
4459 echo '/* dummy */' > sub/conftst$i.h
4460 done
4461 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4462
4463 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4464 # mode. It turns out that the SunPro C++ compiler does not properly
4465 # handle '-M -o', and we need to detect this. Also, some Intel
4466 # versions had trouble with output in subdirs.
4467 am__obj=sub/conftest.${OBJEXT-o}
4468 am__minus_obj="-o $am__obj"
4469 case $depmode in
4470 gcc)
4471 # This depmode causes a compiler race in universal mode.
4472 test "$am__universal" = false || continue
4473 ;;
4474 nosideeffect)
4475 # After this tag, mechanisms are not by side-effect, so they'll
4476 # only be used when explicitly requested.
4477 if test "x$enable_dependency_tracking" = xyes; then
4478 continue
4479 else
4480 break
4481 fi
4482 ;;
4483 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4484 # This compiler won't grok '-c -o', but also, the minuso test has
4485 # not run yet. These depmodes are late enough in the game, and
4486 # so weak that their functioning should not be impacted.
4487 am__obj=conftest.${OBJEXT-o}
4488 am__minus_obj=
4489 ;;
4490 none) break ;;
4491 esac
4492 if depmode=$depmode \
4493 source=sub/conftest.c object=$am__obj \
4494 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4495 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4496 >/dev/null 2>conftest.err &&
4497 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4498 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4499 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4500 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4501 # icc doesn't choke on unknown options, it will just issue warnings
4502 # or remarks (even with -Werror). So we grep stderr for any message
4503 # that says an option was ignored or not supported.
4504 # When given -MP, icc 7.0 and 7.1 complain thusly:
4505 # icc: Command line warning: ignoring option '-M'; no argument required
4506 # The diagnosis changed in icc 8.0:
4507 # icc: Command line remark: option '-MP' not supported
4508 if (grep 'ignoring option' conftest.err ||
4509 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4510 am_cv_CC_dependencies_compiler_type=$depmode
4511 break
4512 fi
4513 fi
4514 done
4515
4516 cd ..
4517 rm -rf conftest.dir
4518 else
4519 am_cv_CC_dependencies_compiler_type=none
4520 fi
4521
4522 fi
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4524 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4525 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4526
4527 if
4528 test "x$enable_dependency_tracking" != xno \
4529 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4530 am__fastdepCC_TRUE=
4531 am__fastdepCC_FALSE='#'
4532 else
4533 am__fastdepCC_TRUE='#'
4534 am__fastdepCC_FALSE=
4535 fi
4536
4537
4538 ac_ext=cpp
4539 ac_cpp='$CXXCPP $CPPFLAGS'
4540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4543 if test -z "$CXX"; then
4544 if test -n "$CCC"; then
4545 CXX=$CCC
4546 else
4547 if test -n "$ac_tool_prefix"; then
4548 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4549 do
4550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553 $as_echo_n "checking for $ac_word... " >&6; }
4554 if ${ac_cv_prog_CXX+:} false; then :
4555 $as_echo_n "(cached) " >&6
4556 else
4557 if test -n "$CXX"; then
4558 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4559 else
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4561 for as_dir in $PATH
4562 do
4563 IFS=$as_save_IFS
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4567 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 break 2
4570 fi
4571 done
4572 done
4573 IFS=$as_save_IFS
4574
4575 fi
4576 fi
4577 CXX=$ac_cv_prog_CXX
4578 if test -n "$CXX"; then
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4580 $as_echo "$CXX" >&6; }
4581 else
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4583 $as_echo "no" >&6; }
4584 fi
4585
4586
4587 test -n "$CXX" && break
4588 done
4589 fi
4590 if test -z "$CXX"; then
4591 ac_ct_CXX=$CXX
4592 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4593 do
4594 # Extract the first word of "$ac_prog", so it can be a program name with args.
4595 set dummy $ac_prog; ac_word=$2
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4597 $as_echo_n "checking for $ac_word... " >&6; }
4598 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 if test -n "$ac_ct_CXX"; then
4602 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4603 else
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH
4606 do
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_exec_ext in '' $ac_executable_extensions; do
4610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4611 ac_cv_prog_ac_ct_CXX="$ac_prog"
4612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613 break 2
4614 fi
4615 done
4616 done
4617 IFS=$as_save_IFS
4618
4619 fi
4620 fi
4621 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4622 if test -n "$ac_ct_CXX"; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4624 $as_echo "$ac_ct_CXX" >&6; }
4625 else
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4627 $as_echo "no" >&6; }
4628 fi
4629
4630
4631 test -n "$ac_ct_CXX" && break
4632 done
4633
4634 if test "x$ac_ct_CXX" = x; then
4635 CXX="g++"
4636 else
4637 case $cross_compiling:$ac_tool_warned in
4638 yes:)
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4641 ac_tool_warned=yes ;;
4642 esac
4643 CXX=$ac_ct_CXX
4644 fi
4645 fi
4646
4647 fi
4648 fi
4649 # Provide some information about the compiler.
4650 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4651 set X $ac_compile
4652 ac_compiler=$2
4653 for ac_option in --version -v -V -qversion; do
4654 { { ac_try="$ac_compiler $ac_option >&5"
4655 case "(($ac_try" in
4656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657 *) ac_try_echo=$ac_try;;
4658 esac
4659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4660 $as_echo "$ac_try_echo"; } >&5
4661 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4662 ac_status=$?
4663 if test -s conftest.err; then
4664 sed '10a\
4665 ... rest of stderr output deleted ...
4666 10q' conftest.err >conftest.er1
4667 cat conftest.er1 >&5
4668 fi
4669 rm -f conftest.er1 conftest.err
4670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4671 test $ac_status = 0; }
4672 done
4673
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4675 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4676 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4681
4682 int
4683 main ()
4684 {
4685 #ifndef __GNUC__
4686 choke me
4687 #endif
4688
4689 ;
4690 return 0;
4691 }
4692 _ACEOF
4693 if ac_fn_cxx_try_compile "$LINENO"; then :
4694 ac_compiler_gnu=yes
4695 else
4696 ac_compiler_gnu=no
4697 fi
4698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4699 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4700
4701 fi
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4703 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4704 if test $ac_compiler_gnu = yes; then
4705 GXX=yes
4706 else
4707 GXX=
4708 fi
4709 ac_test_CXXFLAGS=${CXXFLAGS+set}
4710 ac_save_CXXFLAGS=$CXXFLAGS
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4712 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4713 if ${ac_cv_prog_cxx_g+:} false; then :
4714 $as_echo_n "(cached) " >&6
4715 else
4716 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4717 ac_cxx_werror_flag=yes
4718 ac_cv_prog_cxx_g=no
4719 CXXFLAGS="-g"
4720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4721 /* end confdefs.h. */
4722
4723 int
4724 main ()
4725 {
4726
4727 ;
4728 return 0;
4729 }
4730 _ACEOF
4731 if ac_fn_cxx_try_compile "$LINENO"; then :
4732 ac_cv_prog_cxx_g=yes
4733 else
4734 CXXFLAGS=""
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736 /* end confdefs.h. */
4737
4738 int
4739 main ()
4740 {
4741
4742 ;
4743 return 0;
4744 }
4745 _ACEOF
4746 if ac_fn_cxx_try_compile "$LINENO"; then :
4747
4748 else
4749 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4750 CXXFLAGS="-g"
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4753
4754 int
4755 main ()
4756 {
4757
4758 ;
4759 return 0;
4760 }
4761 _ACEOF
4762 if ac_fn_cxx_try_compile "$LINENO"; then :
4763 ac_cv_prog_cxx_g=yes
4764 fi
4765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 fi
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4768 fi
4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4770 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4771 fi
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4773 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4774 if test "$ac_test_CXXFLAGS" = set; then
4775 CXXFLAGS=$ac_save_CXXFLAGS
4776 elif test $ac_cv_prog_cxx_g = yes; then
4777 if test "$GXX" = yes; then
4778 CXXFLAGS="-g -O2"
4779 else
4780 CXXFLAGS="-g"
4781 fi
4782 else
4783 if test "$GXX" = yes; then
4784 CXXFLAGS="-O2"
4785 else
4786 CXXFLAGS=
4787 fi
4788 fi
4789 ac_ext=c
4790 ac_cpp='$CPP $CPPFLAGS'
4791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4794
4795 depcc="$CXX" am_compiler_list=
4796
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4798 $as_echo_n "checking dependency style of $depcc... " >&6; }
4799 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4800 $as_echo_n "(cached) " >&6
4801 else
4802 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4803 # We make a subdir and do the tests there. Otherwise we can end up
4804 # making bogus files that we don't know about and never remove. For
4805 # instance it was reported that on HP-UX the gcc test will end up
4806 # making a dummy file named 'D' -- because '-MD' means "put the output
4807 # in D".
4808 rm -rf conftest.dir
4809 mkdir conftest.dir
4810 # Copy depcomp to subdir because otherwise we won't find it if we're
4811 # using a relative directory.
4812 cp "$am_depcomp" conftest.dir
4813 cd conftest.dir
4814 # We will build objects and dependencies in a subdirectory because
4815 # it helps to detect inapplicable dependency modes. For instance
4816 # both Tru64's cc and ICC support -MD to output dependencies as a
4817 # side effect of compilation, but ICC will put the dependencies in
4818 # the current directory while Tru64 will put them in the object
4819 # directory.
4820 mkdir sub
4821
4822 am_cv_CXX_dependencies_compiler_type=none
4823 if test "$am_compiler_list" = ""; then
4824 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4825 fi
4826 am__universal=false
4827 case " $depcc " in #(
4828 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4829 esac
4830
4831 for depmode in $am_compiler_list; do
4832 # Setup a source with many dependencies, because some compilers
4833 # like to wrap large dependency lists on column 80 (with \), and
4834 # we should not choose a depcomp mode which is confused by this.
4835 #
4836 # We need to recreate these files for each test, as the compiler may
4837 # overwrite some of them when testing with obscure command lines.
4838 # This happens at least with the AIX C compiler.
4839 : > sub/conftest.c
4840 for i in 1 2 3 4 5 6; do
4841 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4842 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4843 # Solaris 10 /bin/sh.
4844 echo '/* dummy */' > sub/conftst$i.h
4845 done
4846 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4847
4848 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4849 # mode. It turns out that the SunPro C++ compiler does not properly
4850 # handle '-M -o', and we need to detect this. Also, some Intel
4851 # versions had trouble with output in subdirs.
4852 am__obj=sub/conftest.${OBJEXT-o}
4853 am__minus_obj="-o $am__obj"
4854 case $depmode in
4855 gcc)
4856 # This depmode causes a compiler race in universal mode.
4857 test "$am__universal" = false || continue
4858 ;;
4859 nosideeffect)
4860 # After this tag, mechanisms are not by side-effect, so they'll
4861 # only be used when explicitly requested.
4862 if test "x$enable_dependency_tracking" = xyes; then
4863 continue
4864 else
4865 break
4866 fi
4867 ;;
4868 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4869 # This compiler won't grok '-c -o', but also, the minuso test has
4870 # not run yet. These depmodes are late enough in the game, and
4871 # so weak that their functioning should not be impacted.
4872 am__obj=conftest.${OBJEXT-o}
4873 am__minus_obj=
4874 ;;
4875 none) break ;;
4876 esac
4877 if depmode=$depmode \
4878 source=sub/conftest.c object=$am__obj \
4879 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4880 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4881 >/dev/null 2>conftest.err &&
4882 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4883 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4884 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4885 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4886 # icc doesn't choke on unknown options, it will just issue warnings
4887 # or remarks (even with -Werror). So we grep stderr for any message
4888 # that says an option was ignored or not supported.
4889 # When given -MP, icc 7.0 and 7.1 complain thusly:
4890 # icc: Command line warning: ignoring option '-M'; no argument required
4891 # The diagnosis changed in icc 8.0:
4892 # icc: Command line remark: option '-MP' not supported
4893 if (grep 'ignoring option' conftest.err ||
4894 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4895 am_cv_CXX_dependencies_compiler_type=$depmode
4896 break
4897 fi
4898 fi
4899 done
4900
4901 cd ..
4902 rm -rf conftest.dir
4903 else
4904 am_cv_CXX_dependencies_compiler_type=none
4905 fi
4906
4907 fi
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4909 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4910 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4911
4912 if
4913 test "x$enable_dependency_tracking" != xno \
4914 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4915 am__fastdepCXX_TRUE=
4916 am__fastdepCXX_FALSE='#'
4917 else
4918 am__fastdepCXX_TRUE='#'
4919 am__fastdepCXX_FALSE=
4920 fi
4921
4922
4923 CFLAGS=$save_CFLAGS
4924
4925
4926
4927
4928
4929 # By default we simply use the C compiler to build assembly code.
4930
4931 test "${CCAS+set}" = set || CCAS=$CC
4932 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4933
4934
4935
4936 depcc="$CCAS" am_compiler_list=
4937
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4939 $as_echo_n "checking dependency style of $depcc... " >&6; }
4940 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4944 # We make a subdir and do the tests there. Otherwise we can end up
4945 # making bogus files that we don't know about and never remove. For
4946 # instance it was reported that on HP-UX the gcc test will end up
4947 # making a dummy file named 'D' -- because '-MD' means "put the output
4948 # in D".
4949 rm -rf conftest.dir
4950 mkdir conftest.dir
4951 # Copy depcomp to subdir because otherwise we won't find it if we're
4952 # using a relative directory.
4953 cp "$am_depcomp" conftest.dir
4954 cd conftest.dir
4955 # We will build objects and dependencies in a subdirectory because
4956 # it helps to detect inapplicable dependency modes. For instance
4957 # both Tru64's cc and ICC support -MD to output dependencies as a
4958 # side effect of compilation, but ICC will put the dependencies in
4959 # the current directory while Tru64 will put them in the object
4960 # directory.
4961 mkdir sub
4962
4963 am_cv_CCAS_dependencies_compiler_type=none
4964 if test "$am_compiler_list" = ""; then
4965 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4966 fi
4967 am__universal=false
4968
4969
4970 for depmode in $am_compiler_list; do
4971 # Setup a source with many dependencies, because some compilers
4972 # like to wrap large dependency lists on column 80 (with \), and
4973 # we should not choose a depcomp mode which is confused by this.
4974 #
4975 # We need to recreate these files for each test, as the compiler may
4976 # overwrite some of them when testing with obscure command lines.
4977 # This happens at least with the AIX C compiler.
4978 : > sub/conftest.c
4979 for i in 1 2 3 4 5 6; do
4980 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4981 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4982 # Solaris 10 /bin/sh.
4983 echo '/* dummy */' > sub/conftst$i.h
4984 done
4985 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4986
4987 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4988 # mode. It turns out that the SunPro C++ compiler does not properly
4989 # handle '-M -o', and we need to detect this. Also, some Intel
4990 # versions had trouble with output in subdirs.
4991 am__obj=sub/conftest.${OBJEXT-o}
4992 am__minus_obj="-o $am__obj"
4993 case $depmode in
4994 gcc)
4995 # This depmode causes a compiler race in universal mode.
4996 test "$am__universal" = false || continue
4997 ;;
4998 nosideeffect)
4999 # After this tag, mechanisms are not by side-effect, so they'll
5000 # only be used when explicitly requested.
5001 if test "x$enable_dependency_tracking" = xyes; then
5002 continue
5003 else
5004 break
5005 fi
5006 ;;
5007 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5008 # This compiler won't grok '-c -o', but also, the minuso test has
5009 # not run yet. These depmodes are late enough in the game, and
5010 # so weak that their functioning should not be impacted.
5011 am__obj=conftest.${OBJEXT-o}
5012 am__minus_obj=
5013 ;;
5014 none) break ;;
5015 esac
5016 if depmode=$depmode \
5017 source=sub/conftest.c object=$am__obj \
5018 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5019 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5020 >/dev/null 2>conftest.err &&
5021 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5022 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5023 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5024 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5025 # icc doesn't choke on unknown options, it will just issue warnings
5026 # or remarks (even with -Werror). So we grep stderr for any message
5027 # that says an option was ignored or not supported.
5028 # When given -MP, icc 7.0 and 7.1 complain thusly:
5029 # icc: Command line warning: ignoring option '-M'; no argument required
5030 # The diagnosis changed in icc 8.0:
5031 # icc: Command line remark: option '-MP' not supported
5032 if (grep 'ignoring option' conftest.err ||
5033 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5034 am_cv_CCAS_dependencies_compiler_type=$depmode
5035 break
5036 fi
5037 fi
5038 done
5039
5040 cd ..
5041 rm -rf conftest.dir
5042 else
5043 am_cv_CCAS_dependencies_compiler_type=none
5044 fi
5045
5046 fi
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5048 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5049 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5050
5051 if
5052 test "x$enable_dependency_tracking" != xno \
5053 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5054 am__fastdepCCAS_TRUE=
5055 am__fastdepCCAS_FALSE='#'
5056 else
5057 am__fastdepCCAS_TRUE='#'
5058 am__fastdepCCAS_FALSE=
5059 fi
5060
5061
5062
5063 case `pwd` in
5064 *\ * | *\ *)
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5066 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5067 esac
5068
5069
5070
5071 macro_version='2.4.6'
5072 macro_revision='2.4.6'
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086 ltmain=$ac_aux_dir/ltmain.sh
5087
5088 # Backslashify metacharacters that are still active within
5089 # double-quoted strings.
5090 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5091
5092 # Same as above, but do not quote variable references.
5093 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5094
5095 # Sed substitution to delay expansion of an escaped shell variable in a
5096 # double_quote_subst'ed string.
5097 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5098
5099 # Sed substitution to delay expansion of an escaped single quote.
5100 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5101
5102 # Sed substitution to avoid accidental globbing in evaled expressions
5103 no_glob_subst='s/\*/\\\*/g'
5104
5105 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5106 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5107 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5108
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5110 $as_echo_n "checking how to print strings... " >&6; }
5111 # Test print first, because it will be a builtin if present.
5112 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5113 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5114 ECHO='print -r --'
5115 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5116 ECHO='printf %s\n'
5117 else
5118 # Use this function as a fallback that always works.
5119 func_fallback_echo ()
5120 {
5121 eval 'cat <<_LTECHO_EOF
5122 $1
5123 _LTECHO_EOF'
5124 }
5125 ECHO='func_fallback_echo'
5126 fi
5127
5128 # func_echo_all arg...
5129 # Invoke $ECHO with all args, space-separated.
5130 func_echo_all ()
5131 {
5132 $ECHO ""
5133 }
5134
5135 case $ECHO in
5136 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5137 $as_echo "printf" >&6; } ;;
5138 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5139 $as_echo "print -r" >&6; } ;;
5140 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5141 $as_echo "cat" >&6; } ;;
5142 esac
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5158 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5159 if ${ac_cv_path_SED+:} false; then :
5160 $as_echo_n "(cached) " >&6
5161 else
5162 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5163 for ac_i in 1 2 3 4 5 6 7; do
5164 ac_script="$ac_script$as_nl$ac_script"
5165 done
5166 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5167 { ac_script=; unset ac_script;}
5168 if test -z "$SED"; then
5169 ac_path_SED_found=false
5170 # Loop through the user's path and test for each of PROGNAME-LIST
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5173 do
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_prog in sed gsed; do
5177 for ac_exec_ext in '' $ac_executable_extensions; do
5178 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5179 as_fn_executable_p "$ac_path_SED" || continue
5180 # Check for GNU ac_path_SED and select it if it is found.
5181 # Check for GNU $ac_path_SED
5182 case `"$ac_path_SED" --version 2>&1` in
5183 *GNU*)
5184 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5185 *)
5186 ac_count=0
5187 $as_echo_n 0123456789 >"conftest.in"
5188 while :
5189 do
5190 cat "conftest.in" "conftest.in" >"conftest.tmp"
5191 mv "conftest.tmp" "conftest.in"
5192 cp "conftest.in" "conftest.nl"
5193 $as_echo '' >> "conftest.nl"
5194 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5195 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5196 as_fn_arith $ac_count + 1 && ac_count=$as_val
5197 if test $ac_count -gt ${ac_path_SED_max-0}; then
5198 # Best one so far, save it but keep looking for a better one
5199 ac_cv_path_SED="$ac_path_SED"
5200 ac_path_SED_max=$ac_count
5201 fi
5202 # 10*(2^10) chars as input seems more than enough
5203 test $ac_count -gt 10 && break
5204 done
5205 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5206 esac
5207
5208 $ac_path_SED_found && break 3
5209 done
5210 done
5211 done
5212 IFS=$as_save_IFS
5213 if test -z "$ac_cv_path_SED"; then
5214 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5215 fi
5216 else
5217 ac_cv_path_SED=$SED
5218 fi
5219
5220 fi
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5222 $as_echo "$ac_cv_path_SED" >&6; }
5223 SED="$ac_cv_path_SED"
5224 rm -f conftest.sed
5225
5226 test -z "$SED" && SED=sed
5227 Xsed="$SED -e 1s/^X//"
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5240 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5241 if ${ac_cv_path_GREP+:} false; then :
5242 $as_echo_n "(cached) " >&6
5243 else
5244 if test -z "$GREP"; then
5245 ac_path_GREP_found=false
5246 # Loop through the user's path and test for each of PROGNAME-LIST
5247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5249 do
5250 IFS=$as_save_IFS
5251 test -z "$as_dir" && as_dir=.
5252 for ac_prog in grep ggrep; do
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5255 as_fn_executable_p "$ac_path_GREP" || continue
5256 # Check for GNU ac_path_GREP and select it if it is found.
5257 # Check for GNU $ac_path_GREP
5258 case `"$ac_path_GREP" --version 2>&1` in
5259 *GNU*)
5260 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5261 *)
5262 ac_count=0
5263 $as_echo_n 0123456789 >"conftest.in"
5264 while :
5265 do
5266 cat "conftest.in" "conftest.in" >"conftest.tmp"
5267 mv "conftest.tmp" "conftest.in"
5268 cp "conftest.in" "conftest.nl"
5269 $as_echo 'GREP' >> "conftest.nl"
5270 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5271 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5272 as_fn_arith $ac_count + 1 && ac_count=$as_val
5273 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5274 # Best one so far, save it but keep looking for a better one
5275 ac_cv_path_GREP="$ac_path_GREP"
5276 ac_path_GREP_max=$ac_count
5277 fi
5278 # 10*(2^10) chars as input seems more than enough
5279 test $ac_count -gt 10 && break
5280 done
5281 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5282 esac
5283
5284 $ac_path_GREP_found && break 3
5285 done
5286 done
5287 done
5288 IFS=$as_save_IFS
5289 if test -z "$ac_cv_path_GREP"; then
5290 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5291 fi
5292 else
5293 ac_cv_path_GREP=$GREP
5294 fi
5295
5296 fi
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5298 $as_echo "$ac_cv_path_GREP" >&6; }
5299 GREP="$ac_cv_path_GREP"
5300
5301
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5303 $as_echo_n "checking for egrep... " >&6; }
5304 if ${ac_cv_path_EGREP+:} false; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5308 then ac_cv_path_EGREP="$GREP -E"
5309 else
5310 if test -z "$EGREP"; then
5311 ac_path_EGREP_found=false
5312 # Loop through the user's path and test for each of PROGNAME-LIST
5313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5315 do
5316 IFS=$as_save_IFS
5317 test -z "$as_dir" && as_dir=.
5318 for ac_prog in egrep; do
5319 for ac_exec_ext in '' $ac_executable_extensions; do
5320 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5321 as_fn_executable_p "$ac_path_EGREP" || continue
5322 # Check for GNU ac_path_EGREP and select it if it is found.
5323 # Check for GNU $ac_path_EGREP
5324 case `"$ac_path_EGREP" --version 2>&1` in
5325 *GNU*)
5326 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5327 *)
5328 ac_count=0
5329 $as_echo_n 0123456789 >"conftest.in"
5330 while :
5331 do
5332 cat "conftest.in" "conftest.in" >"conftest.tmp"
5333 mv "conftest.tmp" "conftest.in"
5334 cp "conftest.in" "conftest.nl"
5335 $as_echo 'EGREP' >> "conftest.nl"
5336 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5337 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5338 as_fn_arith $ac_count + 1 && ac_count=$as_val
5339 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5340 # Best one so far, save it but keep looking for a better one
5341 ac_cv_path_EGREP="$ac_path_EGREP"
5342 ac_path_EGREP_max=$ac_count
5343 fi
5344 # 10*(2^10) chars as input seems more than enough
5345 test $ac_count -gt 10 && break
5346 done
5347 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5348 esac
5349
5350 $ac_path_EGREP_found && break 3
5351 done
5352 done
5353 done
5354 IFS=$as_save_IFS
5355 if test -z "$ac_cv_path_EGREP"; then
5356 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5357 fi
5358 else
5359 ac_cv_path_EGREP=$EGREP
5360 fi
5361
5362 fi
5363 fi
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5365 $as_echo "$ac_cv_path_EGREP" >&6; }
5366 EGREP="$ac_cv_path_EGREP"
5367
5368
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5370 $as_echo_n "checking for fgrep... " >&6; }
5371 if ${ac_cv_path_FGREP+:} false; then :
5372 $as_echo_n "(cached) " >&6
5373 else
5374 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5375 then ac_cv_path_FGREP="$GREP -F"
5376 else
5377 if test -z "$FGREP"; then
5378 ac_path_FGREP_found=false
5379 # Loop through the user's path and test for each of PROGNAME-LIST
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5382 do
5383 IFS=$as_save_IFS
5384 test -z "$as_dir" && as_dir=.
5385 for ac_prog in fgrep; do
5386 for ac_exec_ext in '' $ac_executable_extensions; do
5387 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5388 as_fn_executable_p "$ac_path_FGREP" || continue
5389 # Check for GNU ac_path_FGREP and select it if it is found.
5390 # Check for GNU $ac_path_FGREP
5391 case `"$ac_path_FGREP" --version 2>&1` in
5392 *GNU*)
5393 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5394 *)
5395 ac_count=0
5396 $as_echo_n 0123456789 >"conftest.in"
5397 while :
5398 do
5399 cat "conftest.in" "conftest.in" >"conftest.tmp"
5400 mv "conftest.tmp" "conftest.in"
5401 cp "conftest.in" "conftest.nl"
5402 $as_echo 'FGREP' >> "conftest.nl"
5403 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5405 as_fn_arith $ac_count + 1 && ac_count=$as_val
5406 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5407 # Best one so far, save it but keep looking for a better one
5408 ac_cv_path_FGREP="$ac_path_FGREP"
5409 ac_path_FGREP_max=$ac_count
5410 fi
5411 # 10*(2^10) chars as input seems more than enough
5412 test $ac_count -gt 10 && break
5413 done
5414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5415 esac
5416
5417 $ac_path_FGREP_found && break 3
5418 done
5419 done
5420 done
5421 IFS=$as_save_IFS
5422 if test -z "$ac_cv_path_FGREP"; then
5423 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5424 fi
5425 else
5426 ac_cv_path_FGREP=$FGREP
5427 fi
5428
5429 fi
5430 fi
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5432 $as_echo "$ac_cv_path_FGREP" >&6; }
5433 FGREP="$ac_cv_path_FGREP"
5434
5435
5436 test -z "$GREP" && GREP=grep
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456 # Check whether --with-gnu-ld was given.
5457 if test "${with_gnu_ld+set}" = set; then :
5458 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5459 else
5460 with_gnu_ld=no
5461 fi
5462
5463 ac_prog=ld
5464 if test yes = "$GCC"; then
5465 # Check if gcc -print-prog-name=ld gives a path.
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5467 $as_echo_n "checking for ld used by $CC... " >&6; }
5468 case $host in
5469 *-*-mingw*)
5470 # gcc leaves a trailing carriage return, which upsets mingw
5471 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5472 *)
5473 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5474 esac
5475 case $ac_prog in
5476 # Accept absolute paths.
5477 [\\/]* | ?:[\\/]*)
5478 re_direlt='/[^/][^/]*/\.\./'
5479 # Canonicalize the pathname of ld
5480 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5481 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5482 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5483 done
5484 test -z "$LD" && LD=$ac_prog
5485 ;;
5486 "")
5487 # If it fails, then pretend we aren't using GCC.
5488 ac_prog=ld
5489 ;;
5490 *)
5491 # If it is relative, then search for the first ld in PATH.
5492 with_gnu_ld=unknown
5493 ;;
5494 esac
5495 elif test yes = "$with_gnu_ld"; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5497 $as_echo_n "checking for GNU ld... " >&6; }
5498 else
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5500 $as_echo_n "checking for non-GNU ld... " >&6; }
5501 fi
5502 if ${lt_cv_path_LD+:} false; then :
5503 $as_echo_n "(cached) " >&6
5504 else
5505 if test -z "$LD"; then
5506 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5507 for ac_dir in $PATH; do
5508 IFS=$lt_save_ifs
5509 test -z "$ac_dir" && ac_dir=.
5510 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5511 lt_cv_path_LD=$ac_dir/$ac_prog
5512 # Check to see if the program is GNU ld. I'd rather use --version,
5513 # but apparently some variants of GNU ld only accept -v.
5514 # Break only if it was the GNU/non-GNU ld that we prefer.
5515 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5516 *GNU* | *'with BFD'*)
5517 test no != "$with_gnu_ld" && break
5518 ;;
5519 *)
5520 test yes != "$with_gnu_ld" && break
5521 ;;
5522 esac
5523 fi
5524 done
5525 IFS=$lt_save_ifs
5526 else
5527 lt_cv_path_LD=$LD # Let the user override the test with a path.
5528 fi
5529 fi
5530
5531 LD=$lt_cv_path_LD
5532 if test -n "$LD"; then
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5534 $as_echo "$LD" >&6; }
5535 else
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5538 fi
5539 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5541 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5542 if ${lt_cv_prog_gnu_ld+:} false; then :
5543 $as_echo_n "(cached) " >&6
5544 else
5545 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5546 case `$LD -v 2>&1 </dev/null` in
5547 *GNU* | *'with BFD'*)
5548 lt_cv_prog_gnu_ld=yes
5549 ;;
5550 *)
5551 lt_cv_prog_gnu_ld=no
5552 ;;
5553 esac
5554 fi
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5556 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5557 with_gnu_ld=$lt_cv_prog_gnu_ld
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5568 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5569 if ${lt_cv_path_NM+:} false; then :
5570 $as_echo_n "(cached) " >&6
5571 else
5572 if test -n "$NM"; then
5573 # Let the user override the test.
5574 lt_cv_path_NM=$NM
5575 else
5576 lt_nm_to_check=${ac_tool_prefix}nm
5577 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5578 lt_nm_to_check="$lt_nm_to_check nm"
5579 fi
5580 for lt_tmp_nm in $lt_nm_to_check; do
5581 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5582 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5583 IFS=$lt_save_ifs
5584 test -z "$ac_dir" && ac_dir=.
5585 tmp_nm=$ac_dir/$lt_tmp_nm
5586 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5587 # Check to see if the nm accepts a BSD-compat flag.
5588 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5589 # nm: unknown option "B" ignored
5590 # Tru64's nm complains that /dev/null is an invalid object file
5591 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5592 case $build_os in
5593 mingw*) lt_bad_file=conftest.nm/nofile ;;
5594 *) lt_bad_file=/dev/null ;;
5595 esac
5596 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5597 *$lt_bad_file* | *'Invalid file or object type'*)
5598 lt_cv_path_NM="$tmp_nm -B"
5599 break 2
5600 ;;
5601 *)
5602 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5603 */dev/null*)
5604 lt_cv_path_NM="$tmp_nm -p"
5605 break 2
5606 ;;
5607 *)
5608 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5609 continue # so that we can try to find one that supports BSD flags
5610 ;;
5611 esac
5612 ;;
5613 esac
5614 fi
5615 done
5616 IFS=$lt_save_ifs
5617 done
5618 : ${lt_cv_path_NM=no}
5619 fi
5620 fi
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5622 $as_echo "$lt_cv_path_NM" >&6; }
5623 if test no != "$lt_cv_path_NM"; then
5624 NM=$lt_cv_path_NM
5625 else
5626 # Didn't find any BSD compatible name lister, look for dumpbin.
5627 if test -n "$DUMPBIN"; then :
5628 # Let the user override the test.
5629 else
5630 if test -n "$ac_tool_prefix"; then
5631 for ac_prog in dumpbin "link -dump"
5632 do
5633 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5634 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5636 $as_echo_n "checking for $ac_word... " >&6; }
5637 if ${ac_cv_prog_DUMPBIN+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if test -n "$DUMPBIN"; then
5641 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5642 else
5643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646 IFS=$as_save_IFS
5647 test -z "$as_dir" && as_dir=.
5648 for ac_exec_ext in '' $ac_executable_extensions; do
5649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5650 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652 break 2
5653 fi
5654 done
5655 done
5656 IFS=$as_save_IFS
5657
5658 fi
5659 fi
5660 DUMPBIN=$ac_cv_prog_DUMPBIN
5661 if test -n "$DUMPBIN"; then
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5663 $as_echo "$DUMPBIN" >&6; }
5664 else
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668
5669
5670 test -n "$DUMPBIN" && break
5671 done
5672 fi
5673 if test -z "$DUMPBIN"; then
5674 ac_ct_DUMPBIN=$DUMPBIN
5675 for ac_prog in dumpbin "link -dump"
5676 do
5677 # Extract the first word of "$ac_prog", so it can be a program name with args.
5678 set dummy $ac_prog; ac_word=$2
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5680 $as_echo_n "checking for $ac_word... " >&6; }
5681 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5682 $as_echo_n "(cached) " >&6
5683 else
5684 if test -n "$ac_ct_DUMPBIN"; then
5685 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5686 else
5687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 for as_dir in $PATH
5689 do
5690 IFS=$as_save_IFS
5691 test -z "$as_dir" && as_dir=.
5692 for ac_exec_ext in '' $ac_executable_extensions; do
5693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5694 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5696 break 2
5697 fi
5698 done
5699 done
5700 IFS=$as_save_IFS
5701
5702 fi
5703 fi
5704 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5705 if test -n "$ac_ct_DUMPBIN"; then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5707 $as_echo "$ac_ct_DUMPBIN" >&6; }
5708 else
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5710 $as_echo "no" >&6; }
5711 fi
5712
5713
5714 test -n "$ac_ct_DUMPBIN" && break
5715 done
5716
5717 if test "x$ac_ct_DUMPBIN" = x; then
5718 DUMPBIN=":"
5719 else
5720 case $cross_compiling:$ac_tool_warned in
5721 yes:)
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5723 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5724 ac_tool_warned=yes ;;
5725 esac
5726 DUMPBIN=$ac_ct_DUMPBIN
5727 fi
5728 fi
5729
5730 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5731 *COFF*)
5732 DUMPBIN="$DUMPBIN -symbols -headers"
5733 ;;
5734 *)
5735 DUMPBIN=:
5736 ;;
5737 esac
5738 fi
5739
5740 if test : != "$DUMPBIN"; then
5741 NM=$DUMPBIN
5742 fi
5743 fi
5744 test -z "$NM" && NM=nm
5745
5746
5747
5748
5749
5750
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5752 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5753 if ${lt_cv_nm_interface+:} false; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 lt_cv_nm_interface="BSD nm"
5757 echo "int some_variable = 0;" > conftest.$ac_ext
5758 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5759 (eval "$ac_compile" 2>conftest.err)
5760 cat conftest.err >&5
5761 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5762 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5763 cat conftest.err >&5
5764 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5765 cat conftest.out >&5
5766 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5767 lt_cv_nm_interface="MS dumpbin"
5768 fi
5769 rm -f conftest*
5770 fi
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5772 $as_echo "$lt_cv_nm_interface" >&6; }
5773
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5775 $as_echo_n "checking whether ln -s works... " >&6; }
5776 LN_S=$as_ln_s
5777 if test "$LN_S" = "ln -s"; then
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5779 $as_echo "yes" >&6; }
5780 else
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5782 $as_echo "no, using $LN_S" >&6; }
5783 fi
5784
5785 # find the maximum length of command line arguments
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5787 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5788 if ${lt_cv_sys_max_cmd_len+:} false; then :
5789 $as_echo_n "(cached) " >&6
5790 else
5791 i=0
5792 teststring=ABCD
5793
5794 case $build_os in
5795 msdosdjgpp*)
5796 # On DJGPP, this test can blow up pretty badly due to problems in libc
5797 # (any single argument exceeding 2000 bytes causes a buffer overrun
5798 # during glob expansion). Even if it were fixed, the result of this
5799 # check would be larger than it should be.
5800 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5801 ;;
5802
5803 gnu*)
5804 # Under GNU Hurd, this test is not required because there is
5805 # no limit to the length of command line arguments.
5806 # Libtool will interpret -1 as no limit whatsoever
5807 lt_cv_sys_max_cmd_len=-1;
5808 ;;
5809
5810 cygwin* | mingw* | cegcc*)
5811 # On Win9x/ME, this test blows up -- it succeeds, but takes
5812 # about 5 minutes as the teststring grows exponentially.
5813 # Worse, since 9x/ME are not pre-emptively multitasking,
5814 # you end up with a "frozen" computer, even though with patience
5815 # the test eventually succeeds (with a max line length of 256k).
5816 # Instead, let's just punt: use the minimum linelength reported by
5817 # all of the supported platforms: 8192 (on NT/2K/XP).
5818 lt_cv_sys_max_cmd_len=8192;
5819 ;;
5820
5821 mint*)
5822 # On MiNT this can take a long time and run out of memory.
5823 lt_cv_sys_max_cmd_len=8192;
5824 ;;
5825
5826 amigaos*)
5827 # On AmigaOS with pdksh, this test takes hours, literally.
5828 # So we just punt and use a minimum line length of 8192.
5829 lt_cv_sys_max_cmd_len=8192;
5830 ;;
5831
5832 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5833 # This has been around since 386BSD, at least. Likely further.
5834 if test -x /sbin/sysctl; then
5835 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5836 elif test -x /usr/sbin/sysctl; then
5837 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5838 else
5839 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5840 fi
5841 # And add a safety zone
5842 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5843 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5844 ;;
5845
5846 interix*)
5847 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5848 lt_cv_sys_max_cmd_len=196608
5849 ;;
5850
5851 os2*)
5852 # The test takes a long time on OS/2.
5853 lt_cv_sys_max_cmd_len=8192
5854 ;;
5855
5856 osf*)
5857 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5858 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5859 # nice to cause kernel panics so lets avoid the loop below.
5860 # First set a reasonable default.
5861 lt_cv_sys_max_cmd_len=16384
5862 #
5863 if test -x /sbin/sysconfig; then
5864 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5865 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5866 esac
5867 fi
5868 ;;
5869 sco3.2v5*)
5870 lt_cv_sys_max_cmd_len=102400
5871 ;;
5872 sysv5* | sco5v6* | sysv4.2uw2*)
5873 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5874 if test -n "$kargmax"; then
5875 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5876 else
5877 lt_cv_sys_max_cmd_len=32768
5878 fi
5879 ;;
5880 *)
5881 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5882 if test -n "$lt_cv_sys_max_cmd_len" && \
5883 test undefined != "$lt_cv_sys_max_cmd_len"; then
5884 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5885 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5886 else
5887 # Make teststring a little bigger before we do anything with it.
5888 # a 1K string should be a reasonable start.
5889 for i in 1 2 3 4 5 6 7 8; do
5890 teststring=$teststring$teststring
5891 done
5892 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5893 # If test is not a shell built-in, we'll probably end up computing a
5894 # maximum length that is only half of the actual maximum length, but
5895 # we can't tell.
5896 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5897 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5898 test 17 != "$i" # 1/2 MB should be enough
5899 do
5900 i=`expr $i + 1`
5901 teststring=$teststring$teststring
5902 done
5903 # Only check the string length outside the loop.
5904 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5905 teststring=
5906 # Add a significant safety factor because C++ compilers can tack on
5907 # massive amounts of additional arguments before passing them to the
5908 # linker. It appears as though 1/2 is a usable value.
5909 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5910 fi
5911 ;;
5912 esac
5913
5914 fi
5915
5916 if test -n "$lt_cv_sys_max_cmd_len"; then
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5918 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5919 else
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5921 $as_echo "none" >&6; }
5922 fi
5923 max_cmd_len=$lt_cv_sys_max_cmd_len
5924
5925
5926
5927
5928
5929
5930 : ${CP="cp -f"}
5931 : ${MV="mv -f"}
5932 : ${RM="rm -f"}
5933
5934 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5935 lt_unset=unset
5936 else
5937 lt_unset=false
5938 fi
5939
5940
5941
5942
5943
5944 # test EBCDIC or ASCII
5945 case `echo X|tr X '\101'` in
5946 A) # ASCII based system
5947 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5948 lt_SP2NL='tr \040 \012'
5949 lt_NL2SP='tr \015\012 \040\040'
5950 ;;
5951 *) # EBCDIC based system
5952 lt_SP2NL='tr \100 \n'
5953 lt_NL2SP='tr \r\n \100\100'
5954 ;;
5955 esac
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5966 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5967 if ${lt_cv_to_host_file_cmd+:} false; then :
5968 $as_echo_n "(cached) " >&6
5969 else
5970 case $host in
5971 *-*-mingw* )
5972 case $build in
5973 *-*-mingw* ) # actually msys
5974 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5975 ;;
5976 *-*-cygwin* )
5977 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5978 ;;
5979 * ) # otherwise, assume *nix
5980 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5981 ;;
5982 esac
5983 ;;
5984 *-*-cygwin* )
5985 case $build in
5986 *-*-mingw* ) # actually msys
5987 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5988 ;;
5989 *-*-cygwin* )
5990 lt_cv_to_host_file_cmd=func_convert_file_noop
5991 ;;
5992 * ) # otherwise, assume *nix
5993 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5994 ;;
5995 esac
5996 ;;
5997 * ) # unhandled hosts (and "normal" native builds)
5998 lt_cv_to_host_file_cmd=func_convert_file_noop
5999 ;;
6000 esac
6001
6002 fi
6003
6004 to_host_file_cmd=$lt_cv_to_host_file_cmd
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6006 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6007
6008
6009
6010
6011
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6013 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6014 if ${lt_cv_to_tool_file_cmd+:} false; then :
6015 $as_echo_n "(cached) " >&6
6016 else
6017 #assume ordinary cross tools, or native build.
6018 lt_cv_to_tool_file_cmd=func_convert_file_noop
6019 case $host in
6020 *-*-mingw* )
6021 case $build in
6022 *-*-mingw* ) # actually msys
6023 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6024 ;;
6025 esac
6026 ;;
6027 esac
6028
6029 fi
6030
6031 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6033 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6034
6035
6036
6037
6038
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6040 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6041 if ${lt_cv_ld_reload_flag+:} false; then :
6042 $as_echo_n "(cached) " >&6
6043 else
6044 lt_cv_ld_reload_flag='-r'
6045 fi
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6047 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6048 reload_flag=$lt_cv_ld_reload_flag
6049 case $reload_flag in
6050 "" | " "*) ;;
6051 *) reload_flag=" $reload_flag" ;;
6052 esac
6053 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6054 case $host_os in
6055 cygwin* | mingw* | pw32* | cegcc*)
6056 if test yes != "$GCC"; then
6057 reload_cmds=false
6058 fi
6059 ;;
6060 darwin*)
6061 if test yes = "$GCC"; then
6062 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6063 else
6064 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6065 fi
6066 ;;
6067 esac
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077 if test -n "$ac_tool_prefix"; then
6078 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6079 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081 $as_echo_n "checking for $ac_word... " >&6; }
6082 if ${ac_cv_prog_OBJDUMP+:} false; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6085 if test -n "$OBJDUMP"; then
6086 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6098 fi
6099 done
6100 done
6101 IFS=$as_save_IFS
6102
6103 fi
6104 fi
6105 OBJDUMP=$ac_cv_prog_OBJDUMP
6106 if test -n "$OBJDUMP"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6108 $as_echo "$OBJDUMP" >&6; }
6109 else
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6112 fi
6113
6114
6115 fi
6116 if test -z "$ac_cv_prog_OBJDUMP"; then
6117 ac_ct_OBJDUMP=$OBJDUMP
6118 # Extract the first word of "objdump", so it can be a program name with args.
6119 set dummy objdump; ac_word=$2
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6121 $as_echo_n "checking for $ac_word... " >&6; }
6122 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6123 $as_echo_n "(cached) " >&6
6124 else
6125 if test -n "$ac_ct_OBJDUMP"; then
6126 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6127 else
6128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH
6130 do
6131 IFS=$as_save_IFS
6132 test -z "$as_dir" && as_dir=.
6133 for ac_exec_ext in '' $ac_executable_extensions; do
6134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6135 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 break 2
6138 fi
6139 done
6140 done
6141 IFS=$as_save_IFS
6142
6143 fi
6144 fi
6145 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6146 if test -n "$ac_ct_OBJDUMP"; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6148 $as_echo "$ac_ct_OBJDUMP" >&6; }
6149 else
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6151 $as_echo "no" >&6; }
6152 fi
6153
6154 if test "x$ac_ct_OBJDUMP" = x; then
6155 OBJDUMP="false"
6156 else
6157 case $cross_compiling:$ac_tool_warned in
6158 yes:)
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6161 ac_tool_warned=yes ;;
6162 esac
6163 OBJDUMP=$ac_ct_OBJDUMP
6164 fi
6165 else
6166 OBJDUMP="$ac_cv_prog_OBJDUMP"
6167 fi
6168
6169 test -z "$OBJDUMP" && OBJDUMP=objdump
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6180 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6181 if ${lt_cv_deplibs_check_method+:} false; then :
6182 $as_echo_n "(cached) " >&6
6183 else
6184 lt_cv_file_magic_cmd='$MAGIC_CMD'
6185 lt_cv_file_magic_test_file=
6186 lt_cv_deplibs_check_method='unknown'
6187 # Need to set the preceding variable on all platforms that support
6188 # interlibrary dependencies.
6189 # 'none' -- dependencies not supported.
6190 # 'unknown' -- same as none, but documents that we really don't know.
6191 # 'pass_all' -- all dependencies passed with no checks.
6192 # 'test_compile' -- check by making test program.
6193 # 'file_magic [[regex]]' -- check by looking for files in library path
6194 # that responds to the $file_magic_cmd with a given extended regex.
6195 # If you have 'file' or equivalent on your system and you're not sure
6196 # whether 'pass_all' will *always* work, you probably want this one.
6197
6198 case $host_os in
6199 aix[4-9]*)
6200 lt_cv_deplibs_check_method=pass_all
6201 ;;
6202
6203 beos*)
6204 lt_cv_deplibs_check_method=pass_all
6205 ;;
6206
6207 bsdi[45]*)
6208 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6209 lt_cv_file_magic_cmd='/usr/bin/file -L'
6210 lt_cv_file_magic_test_file=/shlib/libc.so
6211 ;;
6212
6213 cygwin*)
6214 # func_win32_libid is a shell function defined in ltmain.sh
6215 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6216 lt_cv_file_magic_cmd='func_win32_libid'
6217 ;;
6218
6219 mingw* | pw32*)
6220 # Base MSYS/MinGW do not provide the 'file' command needed by
6221 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6222 # unless we find 'file', for example because we are cross-compiling.
6223 if ( file / ) >/dev/null 2>&1; then
6224 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6225 lt_cv_file_magic_cmd='func_win32_libid'
6226 else
6227 # Keep this pattern in sync with the one in func_win32_libid.
6228 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6229 lt_cv_file_magic_cmd='$OBJDUMP -f'
6230 fi
6231 ;;
6232
6233 cegcc*)
6234 # use the weaker test based on 'objdump'. See mingw*.
6235 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6236 lt_cv_file_magic_cmd='$OBJDUMP -f'
6237 ;;
6238
6239 darwin* | rhapsody*)
6240 lt_cv_deplibs_check_method=pass_all
6241 ;;
6242
6243 freebsd* | dragonfly*)
6244 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6245 case $host_cpu in
6246 i*86 )
6247 # Not sure whether the presence of OpenBSD here was a mistake.
6248 # Let's accept both of them until this is cleared up.
6249 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6250 lt_cv_file_magic_cmd=/usr/bin/file
6251 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6252 ;;
6253 esac
6254 else
6255 lt_cv_deplibs_check_method=pass_all
6256 fi
6257 ;;
6258
6259 haiku*)
6260 lt_cv_deplibs_check_method=pass_all
6261 ;;
6262
6263 hpux10.20* | hpux11*)
6264 lt_cv_file_magic_cmd=/usr/bin/file
6265 case $host_cpu in
6266 ia64*)
6267 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6268 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6269 ;;
6270 hppa*64*)
6271 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]'
6272 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6273 ;;
6274 *)
6275 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6276 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6277 ;;
6278 esac
6279 ;;
6280
6281 interix[3-9]*)
6282 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6284 ;;
6285
6286 irix5* | irix6* | nonstopux*)
6287 case $LD in
6288 *-32|*"-32 ") libmagic=32-bit;;
6289 *-n32|*"-n32 ") libmagic=N32;;
6290 *-64|*"-64 ") libmagic=64-bit;;
6291 *) libmagic=never-match;;
6292 esac
6293 lt_cv_deplibs_check_method=pass_all
6294 ;;
6295
6296 # This must be glibc/ELF.
6297 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6298 lt_cv_deplibs_check_method=pass_all
6299 ;;
6300
6301 netbsd*)
6302 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6304 else
6305 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6306 fi
6307 ;;
6308
6309 newos6*)
6310 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6311 lt_cv_file_magic_cmd=/usr/bin/file
6312 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6313 ;;
6314
6315 *nto* | *qnx*)
6316 lt_cv_deplibs_check_method=pass_all
6317 ;;
6318
6319 openbsd* | bitrig*)
6320 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6322 else
6323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6324 fi
6325 ;;
6326
6327 osf3* | osf4* | osf5*)
6328 lt_cv_deplibs_check_method=pass_all
6329 ;;
6330
6331 rdos*)
6332 lt_cv_deplibs_check_method=pass_all
6333 ;;
6334
6335 solaris*)
6336 lt_cv_deplibs_check_method=pass_all
6337 ;;
6338
6339 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6340 lt_cv_deplibs_check_method=pass_all
6341 ;;
6342
6343 sysv4 | sysv4.3*)
6344 case $host_vendor in
6345 motorola)
6346 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]'
6347 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6348 ;;
6349 ncr)
6350 lt_cv_deplibs_check_method=pass_all
6351 ;;
6352 sequent)
6353 lt_cv_file_magic_cmd='/bin/file'
6354 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6355 ;;
6356 sni)
6357 lt_cv_file_magic_cmd='/bin/file'
6358 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6359 lt_cv_file_magic_test_file=/lib/libc.so
6360 ;;
6361 siemens)
6362 lt_cv_deplibs_check_method=pass_all
6363 ;;
6364 pc)
6365 lt_cv_deplibs_check_method=pass_all
6366 ;;
6367 esac
6368 ;;
6369
6370 tpf*)
6371 lt_cv_deplibs_check_method=pass_all
6372 ;;
6373 os2*)
6374 lt_cv_deplibs_check_method=pass_all
6375 ;;
6376 esac
6377
6378 fi
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6380 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6381
6382 file_magic_glob=
6383 want_nocaseglob=no
6384 if test "$build" = "$host"; then
6385 case $host_os in
6386 mingw* | pw32*)
6387 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6388 want_nocaseglob=yes
6389 else
6390 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6391 fi
6392 ;;
6393 esac
6394 fi
6395
6396 file_magic_cmd=$lt_cv_file_magic_cmd
6397 deplibs_check_method=$lt_cv_deplibs_check_method
6398 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421 if test -n "$ac_tool_prefix"; then
6422 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6423 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6425 $as_echo_n "checking for $ac_word... " >&6; }
6426 if ${ac_cv_prog_DLLTOOL+:} false; then :
6427 $as_echo_n "(cached) " >&6
6428 else
6429 if test -n "$DLLTOOL"; then
6430 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6431 else
6432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 for as_dir in $PATH
6434 do
6435 IFS=$as_save_IFS
6436 test -z "$as_dir" && as_dir=.
6437 for ac_exec_ext in '' $ac_executable_extensions; do
6438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6439 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 break 2
6442 fi
6443 done
6444 done
6445 IFS=$as_save_IFS
6446
6447 fi
6448 fi
6449 DLLTOOL=$ac_cv_prog_DLLTOOL
6450 if test -n "$DLLTOOL"; then
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6452 $as_echo "$DLLTOOL" >&6; }
6453 else
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6455 $as_echo "no" >&6; }
6456 fi
6457
6458
6459 fi
6460 if test -z "$ac_cv_prog_DLLTOOL"; then
6461 ac_ct_DLLTOOL=$DLLTOOL
6462 # Extract the first word of "dlltool", so it can be a program name with args.
6463 set dummy dlltool; ac_word=$2
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6465 $as_echo_n "checking for $ac_word... " >&6; }
6466 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6467 $as_echo_n "(cached) " >&6
6468 else
6469 if test -n "$ac_ct_DLLTOOL"; then
6470 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6471 else
6472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 for as_dir in $PATH
6474 do
6475 IFS=$as_save_IFS
6476 test -z "$as_dir" && as_dir=.
6477 for ac_exec_ext in '' $ac_executable_extensions; do
6478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6479 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6481 break 2
6482 fi
6483 done
6484 done
6485 IFS=$as_save_IFS
6486
6487 fi
6488 fi
6489 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6490 if test -n "$ac_ct_DLLTOOL"; then
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6492 $as_echo "$ac_ct_DLLTOOL" >&6; }
6493 else
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6495 $as_echo "no" >&6; }
6496 fi
6497
6498 if test "x$ac_ct_DLLTOOL" = x; then
6499 DLLTOOL="false"
6500 else
6501 case $cross_compiling:$ac_tool_warned in
6502 yes:)
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6505 ac_tool_warned=yes ;;
6506 esac
6507 DLLTOOL=$ac_ct_DLLTOOL
6508 fi
6509 else
6510 DLLTOOL="$ac_cv_prog_DLLTOOL"
6511 fi
6512
6513 test -z "$DLLTOOL" && DLLTOOL=dlltool
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6525 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6526 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 lt_cv_sharedlib_from_linklib_cmd='unknown'
6530
6531 case $host_os in
6532 cygwin* | mingw* | pw32* | cegcc*)
6533 # two different shell functions defined in ltmain.sh;
6534 # decide which one to use based on capabilities of $DLLTOOL
6535 case `$DLLTOOL --help 2>&1` in
6536 *--identify-strict*)
6537 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6538 ;;
6539 *)
6540 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6541 ;;
6542 esac
6543 ;;
6544 *)
6545 # fallback: assume linklib IS sharedlib
6546 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6547 ;;
6548 esac
6549
6550 fi
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6552 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6553 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6554 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6555
6556
6557
6558
6559
6560
6561
6562
6563 if test -n "$ac_tool_prefix"; then
6564 for ac_prog in ar
6565 do
6566 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6567 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6569 $as_echo_n "checking for $ac_word... " >&6; }
6570 if ${ac_cv_prog_AR+:} false; then :
6571 $as_echo_n "(cached) " >&6
6572 else
6573 if test -n "$AR"; then
6574 ac_cv_prog_AR="$AR" # Let the user override the test.
6575 else
6576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6577 for as_dir in $PATH
6578 do
6579 IFS=$as_save_IFS
6580 test -z "$as_dir" && as_dir=.
6581 for ac_exec_ext in '' $ac_executable_extensions; do
6582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6583 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6585 break 2
6586 fi
6587 done
6588 done
6589 IFS=$as_save_IFS
6590
6591 fi
6592 fi
6593 AR=$ac_cv_prog_AR
6594 if test -n "$AR"; then
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6596 $as_echo "$AR" >&6; }
6597 else
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599 $as_echo "no" >&6; }
6600 fi
6601
6602
6603 test -n "$AR" && break
6604 done
6605 fi
6606 if test -z "$AR"; then
6607 ac_ct_AR=$AR
6608 for ac_prog in ar
6609 do
6610 # Extract the first word of "$ac_prog", so it can be a program name with args.
6611 set dummy $ac_prog; ac_word=$2
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6613 $as_echo_n "checking for $ac_word... " >&6; }
6614 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6617 if test -n "$ac_ct_AR"; then
6618 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6619 else
6620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621 for as_dir in $PATH
6622 do
6623 IFS=$as_save_IFS
6624 test -z "$as_dir" && as_dir=.
6625 for ac_exec_ext in '' $ac_executable_extensions; do
6626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6627 ac_cv_prog_ac_ct_AR="$ac_prog"
6628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6629 break 2
6630 fi
6631 done
6632 done
6633 IFS=$as_save_IFS
6634
6635 fi
6636 fi
6637 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6638 if test -n "$ac_ct_AR"; then
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6640 $as_echo "$ac_ct_AR" >&6; }
6641 else
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6643 $as_echo "no" >&6; }
6644 fi
6645
6646
6647 test -n "$ac_ct_AR" && break
6648 done
6649
6650 if test "x$ac_ct_AR" = x; then
6651 AR="false"
6652 else
6653 case $cross_compiling:$ac_tool_warned in
6654 yes:)
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6657 ac_tool_warned=yes ;;
6658 esac
6659 AR=$ac_ct_AR
6660 fi
6661 fi
6662
6663 : ${AR=ar}
6664 : ${AR_FLAGS=cru}
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6677 $as_echo_n "checking for archiver @FILE support... " >&6; }
6678 if ${lt_cv_ar_at_file+:} false; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 lt_cv_ar_at_file=no
6682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6683 /* end confdefs.h. */
6684
6685 int
6686 main ()
6687 {
6688
6689 ;
6690 return 0;
6691 }
6692 _ACEOF
6693 if ac_fn_c_try_compile "$LINENO"; then :
6694 echo conftest.$ac_objext > conftest.lst
6695 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6697 (eval $lt_ar_try) 2>&5
6698 ac_status=$?
6699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6700 test $ac_status = 0; }
6701 if test 0 -eq "$ac_status"; then
6702 # Ensure the archiver fails upon bogus file names.
6703 rm -f conftest.$ac_objext libconftest.a
6704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6705 (eval $lt_ar_try) 2>&5
6706 ac_status=$?
6707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6708 test $ac_status = 0; }
6709 if test 0 -ne "$ac_status"; then
6710 lt_cv_ar_at_file=@
6711 fi
6712 fi
6713 rm -f conftest.* libconftest.a
6714
6715 fi
6716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6717
6718 fi
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6720 $as_echo "$lt_cv_ar_at_file" >&6; }
6721
6722 if test no = "$lt_cv_ar_at_file"; then
6723 archiver_list_spec=
6724 else
6725 archiver_list_spec=$lt_cv_ar_at_file
6726 fi
6727
6728
6729
6730
6731
6732
6733
6734 if test -n "$ac_tool_prefix"; then
6735 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6736 set dummy ${ac_tool_prefix}strip; ac_word=$2
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6738 $as_echo_n "checking for $ac_word... " >&6; }
6739 if ${ac_cv_prog_STRIP+:} false; then :
6740 $as_echo_n "(cached) " >&6
6741 else
6742 if test -n "$STRIP"; then
6743 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6744 else
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748 IFS=$as_save_IFS
6749 test -z "$as_dir" && as_dir=.
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6752 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6754 break 2
6755 fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6759
6760 fi
6761 fi
6762 STRIP=$ac_cv_prog_STRIP
6763 if test -n "$STRIP"; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6765 $as_echo "$STRIP" >&6; }
6766 else
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 $as_echo "no" >&6; }
6769 fi
6770
6771
6772 fi
6773 if test -z "$ac_cv_prog_STRIP"; then
6774 ac_ct_STRIP=$STRIP
6775 # Extract the first word of "strip", so it can be a program name with args.
6776 set dummy strip; ac_word=$2
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778 $as_echo_n "checking for $ac_word... " >&6; }
6779 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6780 $as_echo_n "(cached) " >&6
6781 else
6782 if test -n "$ac_ct_STRIP"; then
6783 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6784 else
6785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6786 for as_dir in $PATH
6787 do
6788 IFS=$as_save_IFS
6789 test -z "$as_dir" && as_dir=.
6790 for ac_exec_ext in '' $ac_executable_extensions; do
6791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6792 ac_cv_prog_ac_ct_STRIP="strip"
6793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6794 break 2
6795 fi
6796 done
6797 done
6798 IFS=$as_save_IFS
6799
6800 fi
6801 fi
6802 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6803 if test -n "$ac_ct_STRIP"; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6805 $as_echo "$ac_ct_STRIP" >&6; }
6806 else
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808 $as_echo "no" >&6; }
6809 fi
6810
6811 if test "x$ac_ct_STRIP" = x; then
6812 STRIP=":"
6813 else
6814 case $cross_compiling:$ac_tool_warned in
6815 yes:)
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6818 ac_tool_warned=yes ;;
6819 esac
6820 STRIP=$ac_ct_STRIP
6821 fi
6822 else
6823 STRIP="$ac_cv_prog_STRIP"
6824 fi
6825
6826 test -z "$STRIP" && STRIP=:
6827
6828
6829
6830
6831
6832
6833 if test -n "$ac_tool_prefix"; then
6834 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6835 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6837 $as_echo_n "checking for $ac_word... " >&6; }
6838 if ${ac_cv_prog_RANLIB+:} false; then :
6839 $as_echo_n "(cached) " >&6
6840 else
6841 if test -n "$RANLIB"; then
6842 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6843 else
6844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6845 for as_dir in $PATH
6846 do
6847 IFS=$as_save_IFS
6848 test -z "$as_dir" && as_dir=.
6849 for ac_exec_ext in '' $ac_executable_extensions; do
6850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6851 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 break 2
6854 fi
6855 done
6856 done
6857 IFS=$as_save_IFS
6858
6859 fi
6860 fi
6861 RANLIB=$ac_cv_prog_RANLIB
6862 if test -n "$RANLIB"; then
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6864 $as_echo "$RANLIB" >&6; }
6865 else
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6867 $as_echo "no" >&6; }
6868 fi
6869
6870
6871 fi
6872 if test -z "$ac_cv_prog_RANLIB"; then
6873 ac_ct_RANLIB=$RANLIB
6874 # Extract the first word of "ranlib", so it can be a program name with args.
6875 set dummy ranlib; ac_word=$2
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6877 $as_echo_n "checking for $ac_word... " >&6; }
6878 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6879 $as_echo_n "(cached) " >&6
6880 else
6881 if test -n "$ac_ct_RANLIB"; then
6882 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6883 else
6884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6885 for as_dir in $PATH
6886 do
6887 IFS=$as_save_IFS
6888 test -z "$as_dir" && as_dir=.
6889 for ac_exec_ext in '' $ac_executable_extensions; do
6890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6891 ac_cv_prog_ac_ct_RANLIB="ranlib"
6892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 break 2
6894 fi
6895 done
6896 done
6897 IFS=$as_save_IFS
6898
6899 fi
6900 fi
6901 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6902 if test -n "$ac_ct_RANLIB"; then
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6904 $as_echo "$ac_ct_RANLIB" >&6; }
6905 else
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6908 fi
6909
6910 if test "x$ac_ct_RANLIB" = x; then
6911 RANLIB=":"
6912 else
6913 case $cross_compiling:$ac_tool_warned in
6914 yes:)
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6917 ac_tool_warned=yes ;;
6918 esac
6919 RANLIB=$ac_ct_RANLIB
6920 fi
6921 else
6922 RANLIB="$ac_cv_prog_RANLIB"
6923 fi
6924
6925 test -z "$RANLIB" && RANLIB=:
6926
6927
6928
6929
6930
6931
6932 # Determine commands to create old-style static archives.
6933 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6934 old_postinstall_cmds='chmod 644 $oldlib'
6935 old_postuninstall_cmds=
6936
6937 if test -n "$RANLIB"; then
6938 case $host_os in
6939 bitrig* | openbsd*)
6940 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6941 ;;
6942 *)
6943 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6944 ;;
6945 esac
6946 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6947 fi
6948
6949 case $host_os in
6950 darwin*)
6951 lock_old_archive_extraction=yes ;;
6952 *)
6953 lock_old_archive_extraction=no ;;
6954 esac
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994 # If no C compiler was specified, use CC.
6995 LTCC=${LTCC-"$CC"}
6996
6997 # If no C compiler flags were specified, use CFLAGS.
6998 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6999
7000 # Allow CC to be a program name with arguments.
7001 compiler=$CC
7002
7003
7004 # Check for command to grab the raw symbol name followed by C symbol from nm.
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7006 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7007 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7008 $as_echo_n "(cached) " >&6
7009 else
7010
7011 # These are sane defaults that work on at least a few old systems.
7012 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7013
7014 # Character class describing NM global symbol codes.
7015 symcode='[BCDEGRST]'
7016
7017 # Regexp to match symbols that can be accessed directly from C.
7018 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7019
7020 # Define system-specific variables.
7021 case $host_os in
7022 aix*)
7023 symcode='[BCDT]'
7024 ;;
7025 cygwin* | mingw* | pw32* | cegcc*)
7026 symcode='[ABCDGISTW]'
7027 ;;
7028 hpux*)
7029 if test ia64 = "$host_cpu"; then
7030 symcode='[ABCDEGRST]'
7031 fi
7032 ;;
7033 irix* | nonstopux*)
7034 symcode='[BCDEGRST]'
7035 ;;
7036 osf*)
7037 symcode='[BCDEGQRST]'
7038 ;;
7039 solaris*)
7040 symcode='[BDRT]'
7041 ;;
7042 sco3.2v5*)
7043 symcode='[DT]'
7044 ;;
7045 sysv4.2uw2*)
7046 symcode='[DT]'
7047 ;;
7048 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7049 symcode='[ABDT]'
7050 ;;
7051 sysv4)
7052 symcode='[DFNSTU]'
7053 ;;
7054 esac
7055
7056 # If we're using GNU nm, then use its standard symbol codes.
7057 case `$NM -V 2>&1` in
7058 *GNU* | *'with BFD'*)
7059 symcode='[ABCDGIRSTW]' ;;
7060 esac
7061
7062 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7063 # Gets list of data symbols to import.
7064 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7065 # Adjust the below global symbol transforms to fixup imported variables.
7066 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7067 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7068 lt_c_name_lib_hook="\
7069 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7070 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7071 else
7072 # Disable hooks by default.
7073 lt_cv_sys_global_symbol_to_import=
7074 lt_cdecl_hook=
7075 lt_c_name_hook=
7076 lt_c_name_lib_hook=
7077 fi
7078
7079 # Transform an extracted symbol line into a proper C declaration.
7080 # Some systems (esp. on ia64) link data and code symbols differently,
7081 # so use this general approach.
7082 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7083 $lt_cdecl_hook\
7084 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7085 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7086
7087 # Transform an extracted symbol line into symbol name and symbol address
7088 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7089 $lt_c_name_hook\
7090 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7091 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7092
7093 # Transform an extracted symbol line into symbol name with lib prefix and
7094 # symbol address.
7095 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7096 $lt_c_name_lib_hook\
7097 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7098 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7099 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7100
7101 # Handle CRLF in mingw tool chain
7102 opt_cr=
7103 case $build_os in
7104 mingw*)
7105 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7106 ;;
7107 esac
7108
7109 # Try without a prefix underscore, then with it.
7110 for ac_symprfx in "" "_"; do
7111
7112 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7113 symxfrm="\\1 $ac_symprfx\\2 \\2"
7114
7115 # Write the raw and C identifiers.
7116 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7117 # Fake it for dumpbin and say T for any non-static function,
7118 # D for any global variable and I for any imported variable.
7119 # Also find C++ and __fastcall symbols from MSVC++,
7120 # which start with @ or ?.
7121 lt_cv_sys_global_symbol_pipe="$AWK '"\
7122 " {last_section=section; section=\$ 3};"\
7123 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7124 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7125 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7126 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7127 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7128 " \$ 0!~/External *\|/{next};"\
7129 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7130 " {if(hide[section]) next};"\
7131 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7132 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7133 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7134 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7135 " ' prfx=^$ac_symprfx"
7136 else
7137 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7138 fi
7139 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7140
7141 # Check to see that the pipe works correctly.
7142 pipe_works=no
7143
7144 rm -f conftest*
7145 cat > conftest.$ac_ext <<_LT_EOF
7146 #ifdef __cplusplus
7147 extern "C" {
7148 #endif
7149 char nm_test_var;
7150 void nm_test_func(void);
7151 void nm_test_func(void){}
7152 #ifdef __cplusplus
7153 }
7154 #endif
7155 int main(){nm_test_var='a';nm_test_func();return(0);}
7156 _LT_EOF
7157
7158 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7159 (eval $ac_compile) 2>&5
7160 ac_status=$?
7161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7162 test $ac_status = 0; }; then
7163 # Now try to grab the symbols.
7164 nlist=conftest.nm
7165 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7166 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7167 ac_status=$?
7168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7169 test $ac_status = 0; } && test -s "$nlist"; then
7170 # Try sorting and uniquifying the output.
7171 if sort "$nlist" | uniq > "$nlist"T; then
7172 mv -f "$nlist"T "$nlist"
7173 else
7174 rm -f "$nlist"T
7175 fi
7176
7177 # Make sure that we snagged all the symbols we need.
7178 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7179 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7180 cat <<_LT_EOF > conftest.$ac_ext
7181 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7182 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7183 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7184 relocations are performed -- see ld's documentation on pseudo-relocs. */
7185 # define LT_DLSYM_CONST
7186 #elif defined __osf__
7187 /* This system does not cope well with relocations in const data. */
7188 # define LT_DLSYM_CONST
7189 #else
7190 # define LT_DLSYM_CONST const
7191 #endif
7192
7193 #ifdef __cplusplus
7194 extern "C" {
7195 #endif
7196
7197 _LT_EOF
7198 # Now generate the symbol file.
7199 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7200
7201 cat <<_LT_EOF >> conftest.$ac_ext
7202
7203 /* The mapping between symbol names and symbols. */
7204 LT_DLSYM_CONST struct {
7205 const char *name;
7206 void *address;
7207 }
7208 lt__PROGRAM__LTX_preloaded_symbols[] =
7209 {
7210 { "@PROGRAM@", (void *) 0 },
7211 _LT_EOF
7212 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7213 cat <<\_LT_EOF >> conftest.$ac_ext
7214 {0, (void *) 0}
7215 };
7216
7217 /* This works around a problem in FreeBSD linker */
7218 #ifdef FREEBSD_WORKAROUND
7219 static const void *lt_preloaded_setup() {
7220 return lt__PROGRAM__LTX_preloaded_symbols;
7221 }
7222 #endif
7223
7224 #ifdef __cplusplus
7225 }
7226 #endif
7227 _LT_EOF
7228 # Now try linking the two files.
7229 mv conftest.$ac_objext conftstm.$ac_objext
7230 lt_globsym_save_LIBS=$LIBS
7231 lt_globsym_save_CFLAGS=$CFLAGS
7232 LIBS=conftstm.$ac_objext
7233 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7235 (eval $ac_link) 2>&5
7236 ac_status=$?
7237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7238 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7239 pipe_works=yes
7240 fi
7241 LIBS=$lt_globsym_save_LIBS
7242 CFLAGS=$lt_globsym_save_CFLAGS
7243 else
7244 echo "cannot find nm_test_func in $nlist" >&5
7245 fi
7246 else
7247 echo "cannot find nm_test_var in $nlist" >&5
7248 fi
7249 else
7250 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7251 fi
7252 else
7253 echo "$progname: failed program was:" >&5
7254 cat conftest.$ac_ext >&5
7255 fi
7256 rm -rf conftest* conftst*
7257
7258 # Do not use the global_symbol_pipe unless it works.
7259 if test yes = "$pipe_works"; then
7260 break
7261 else
7262 lt_cv_sys_global_symbol_pipe=
7263 fi
7264 done
7265
7266 fi
7267
7268 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7269 lt_cv_sys_global_symbol_to_cdecl=
7270 fi
7271 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7273 $as_echo "failed" >&6; }
7274 else
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7276 $as_echo "ok" >&6; }
7277 fi
7278
7279 # Response file support.
7280 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7281 nm_file_list_spec='@'
7282 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7283 nm_file_list_spec='@'
7284 fi
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7323 $as_echo_n "checking for sysroot... " >&6; }
7324
7325 # Check whether --with-sysroot was given.
7326 if test "${with_sysroot+set}" = set; then :
7327 withval=$with_sysroot;
7328 else
7329 with_sysroot=no
7330 fi
7331
7332
7333 lt_sysroot=
7334 case $with_sysroot in #(
7335 yes)
7336 if test yes = "$GCC"; then
7337 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7338 fi
7339 ;; #(
7340 /*)
7341 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7342 ;; #(
7343 no|'')
7344 ;; #(
7345 *)
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7347 $as_echo "$with_sysroot" >&6; }
7348 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7349 ;;
7350 esac
7351
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7353 $as_echo "${lt_sysroot:-no}" >&6; }
7354
7355
7356
7357
7358
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7360 $as_echo_n "checking for a working dd... " >&6; }
7361 if ${ac_cv_path_lt_DD+:} false; then :
7362 $as_echo_n "(cached) " >&6
7363 else
7364 printf 0123456789abcdef0123456789abcdef >conftest.i
7365 cat conftest.i conftest.i >conftest2.i
7366 : ${lt_DD:=$DD}
7367 if test -z "$lt_DD"; then
7368 ac_path_lt_DD_found=false
7369 # Loop through the user's path and test for each of PROGNAME-LIST
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7372 do
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_prog in dd; do
7376 for ac_exec_ext in '' $ac_executable_extensions; do
7377 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7378 as_fn_executable_p "$ac_path_lt_DD" || continue
7379 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7380 cmp -s conftest.i conftest.out \
7381 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7382 fi
7383 $ac_path_lt_DD_found && break 3
7384 done
7385 done
7386 done
7387 IFS=$as_save_IFS
7388 if test -z "$ac_cv_path_lt_DD"; then
7389 :
7390 fi
7391 else
7392 ac_cv_path_lt_DD=$lt_DD
7393 fi
7394
7395 rm -f conftest.i conftest2.i conftest.out
7396 fi
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7398 $as_echo "$ac_cv_path_lt_DD" >&6; }
7399
7400
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7402 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7403 if ${lt_cv_truncate_bin+:} false; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 printf 0123456789abcdef0123456789abcdef >conftest.i
7407 cat conftest.i conftest.i >conftest2.i
7408 lt_cv_truncate_bin=
7409 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7410 cmp -s conftest.i conftest.out \
7411 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7412 fi
7413 rm -f conftest.i conftest2.i conftest.out
7414 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7415 fi
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7417 $as_echo "$lt_cv_truncate_bin" >&6; }
7418
7419
7420
7421
7422
7423
7424
7425 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7426 func_cc_basename ()
7427 {
7428 for cc_temp in $*""; do
7429 case $cc_temp in
7430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7432 \-*) ;;
7433 *) break;;
7434 esac
7435 done
7436 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7437 }
7438
7439 # Check whether --enable-libtool-lock was given.
7440 if test "${enable_libtool_lock+set}" = set; then :
7441 enableval=$enable_libtool_lock;
7442 fi
7443
7444 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7445
7446 # Some flags need to be propagated to the compiler or linker for good
7447 # libtool support.
7448 case $host in
7449 ia64-*-hpux*)
7450 # Find out what ABI is being produced by ac_compile, and set mode
7451 # options accordingly.
7452 echo 'int i;' > conftest.$ac_ext
7453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7454 (eval $ac_compile) 2>&5
7455 ac_status=$?
7456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7457 test $ac_status = 0; }; then
7458 case `/usr/bin/file conftest.$ac_objext` in
7459 *ELF-32*)
7460 HPUX_IA64_MODE=32
7461 ;;
7462 *ELF-64*)
7463 HPUX_IA64_MODE=64
7464 ;;
7465 esac
7466 fi
7467 rm -rf conftest*
7468 ;;
7469 *-*-irix6*)
7470 # Find out what ABI is being produced by ac_compile, and set linker
7471 # options accordingly.
7472 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7473 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7474 (eval $ac_compile) 2>&5
7475 ac_status=$?
7476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7477 test $ac_status = 0; }; then
7478 if test yes = "$lt_cv_prog_gnu_ld"; then
7479 case `/usr/bin/file conftest.$ac_objext` in
7480 *32-bit*)
7481 LD="${LD-ld} -melf32bsmip"
7482 ;;
7483 *N32*)
7484 LD="${LD-ld} -melf32bmipn32"
7485 ;;
7486 *64-bit*)
7487 LD="${LD-ld} -melf64bmip"
7488 ;;
7489 esac
7490 else
7491 case `/usr/bin/file conftest.$ac_objext` in
7492 *32-bit*)
7493 LD="${LD-ld} -32"
7494 ;;
7495 *N32*)
7496 LD="${LD-ld} -n32"
7497 ;;
7498 *64-bit*)
7499 LD="${LD-ld} -64"
7500 ;;
7501 esac
7502 fi
7503 fi
7504 rm -rf conftest*
7505 ;;
7506
7507 mips64*-*linux*)
7508 # Find out what ABI is being produced by ac_compile, and set linker
7509 # options accordingly.
7510 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7511 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7512 (eval $ac_compile) 2>&5
7513 ac_status=$?
7514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7515 test $ac_status = 0; }; then
7516 emul=elf
7517 case `/usr/bin/file conftest.$ac_objext` in
7518 *32-bit*)
7519 emul="${emul}32"
7520 ;;
7521 *64-bit*)
7522 emul="${emul}64"
7523 ;;
7524 esac
7525 case `/usr/bin/file conftest.$ac_objext` in
7526 *MSB*)
7527 emul="${emul}btsmip"
7528 ;;
7529 *LSB*)
7530 emul="${emul}ltsmip"
7531 ;;
7532 esac
7533 case `/usr/bin/file conftest.$ac_objext` in
7534 *N32*)
7535 emul="${emul}n32"
7536 ;;
7537 esac
7538 LD="${LD-ld} -m $emul"
7539 fi
7540 rm -rf conftest*
7541 ;;
7542
7543 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7544 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7545 # Find out what ABI is being produced by ac_compile, and set linker
7546 # options accordingly. Note that the listed cases only cover the
7547 # situations where additional linker options are needed (such as when
7548 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7549 # vice versa); the common cases where no linker options are needed do
7550 # not appear in the list.
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 yes != "$lt_cv_cc_needs_belf"; 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 *-*solaris*)
7662 # Find out what ABI is being produced by ac_compile, and set linker
7663 # options accordingly.
7664 echo 'int i;' > conftest.$ac_ext
7665 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7666 (eval $ac_compile) 2>&5
7667 ac_status=$?
7668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7669 test $ac_status = 0; }; then
7670 case `/usr/bin/file conftest.o` in
7671 *64-bit*)
7672 case $lt_cv_prog_gnu_ld in
7673 yes*)
7674 case $host in
7675 i?86-*-solaris*|x86_64-*-solaris*)
7676 LD="${LD-ld} -m elf_x86_64"
7677 ;;
7678 sparc*-*-solaris*)
7679 LD="${LD-ld} -m elf64_sparc"
7680 ;;
7681 esac
7682 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7683 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7684 LD=${LD-ld}_sol2
7685 fi
7686 ;;
7687 *)
7688 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7689 LD="${LD-ld} -64"
7690 fi
7691 ;;
7692 esac
7693 ;;
7694 esac
7695 fi
7696 rm -rf conftest*
7697 ;;
7698 esac
7699
7700 need_locks=$enable_libtool_lock
7701
7702 if test -n "$ac_tool_prefix"; then
7703 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7704 set dummy ${ac_tool_prefix}mt; ac_word=$2
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7706 $as_echo_n "checking for $ac_word... " >&6; }
7707 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7708 $as_echo_n "(cached) " >&6
7709 else
7710 if test -n "$MANIFEST_TOOL"; then
7711 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7712 else
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 for as_dir in $PATH
7715 do
7716 IFS=$as_save_IFS
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7720 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7722 break 2
7723 fi
7724 done
7725 done
7726 IFS=$as_save_IFS
7727
7728 fi
7729 fi
7730 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7731 if test -n "$MANIFEST_TOOL"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7733 $as_echo "$MANIFEST_TOOL" >&6; }
7734 else
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7737 fi
7738
7739
7740 fi
7741 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7742 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7743 # Extract the first word of "mt", so it can be a program name with args.
7744 set dummy mt; ac_word=$2
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746 $as_echo_n "checking for $ac_word... " >&6; }
7747 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7748 $as_echo_n "(cached) " >&6
7749 else
7750 if test -n "$ac_ct_MANIFEST_TOOL"; then
7751 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7752 else
7753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754 for as_dir in $PATH
7755 do
7756 IFS=$as_save_IFS
7757 test -z "$as_dir" && as_dir=.
7758 for ac_exec_ext in '' $ac_executable_extensions; do
7759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7760 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762 break 2
7763 fi
7764 done
7765 done
7766 IFS=$as_save_IFS
7767
7768 fi
7769 fi
7770 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7771 if test -n "$ac_ct_MANIFEST_TOOL"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7773 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7774 else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7777 fi
7778
7779 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7780 MANIFEST_TOOL=":"
7781 else
7782 case $cross_compiling:$ac_tool_warned in
7783 yes:)
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7785 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7786 ac_tool_warned=yes ;;
7787 esac
7788 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7789 fi
7790 else
7791 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7792 fi
7793
7794 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7796 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7797 if ${lt_cv_path_mainfest_tool+:} false; then :
7798 $as_echo_n "(cached) " >&6
7799 else
7800 lt_cv_path_mainfest_tool=no
7801 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7802 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7803 cat conftest.err >&5
7804 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7805 lt_cv_path_mainfest_tool=yes
7806 fi
7807 rm -f conftest*
7808 fi
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7810 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7811 if test yes != "$lt_cv_path_mainfest_tool"; then
7812 MANIFEST_TOOL=:
7813 fi
7814
7815
7816
7817
7818
7819
7820 case $host_os in
7821 rhapsody* | darwin*)
7822 if test -n "$ac_tool_prefix"; then
7823 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7824 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 $as_echo_n "checking for $ac_word... " >&6; }
7827 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7828 $as_echo_n "(cached) " >&6
7829 else
7830 if test -n "$DSYMUTIL"; then
7831 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7832 else
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 for as_dir in $PATH
7835 do
7836 IFS=$as_save_IFS
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7840 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 break 2
7843 fi
7844 done
7845 done
7846 IFS=$as_save_IFS
7847
7848 fi
7849 fi
7850 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7851 if test -n "$DSYMUTIL"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7853 $as_echo "$DSYMUTIL" >&6; }
7854 else
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7857 fi
7858
7859
7860 fi
7861 if test -z "$ac_cv_prog_DSYMUTIL"; then
7862 ac_ct_DSYMUTIL=$DSYMUTIL
7863 # Extract the first word of "dsymutil", so it can be a program name with args.
7864 set dummy dsymutil; ac_word=$2
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7866 $as_echo_n "checking for $ac_word... " >&6; }
7867 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7868 $as_echo_n "(cached) " >&6
7869 else
7870 if test -n "$ac_ct_DSYMUTIL"; then
7871 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7872 else
7873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7874 for as_dir in $PATH
7875 do
7876 IFS=$as_save_IFS
7877 test -z "$as_dir" && as_dir=.
7878 for ac_exec_ext in '' $ac_executable_extensions; do
7879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7880 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7882 break 2
7883 fi
7884 done
7885 done
7886 IFS=$as_save_IFS
7887
7888 fi
7889 fi
7890 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7891 if test -n "$ac_ct_DSYMUTIL"; then
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7893 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7894 else
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7896 $as_echo "no" >&6; }
7897 fi
7898
7899 if test "x$ac_ct_DSYMUTIL" = x; then
7900 DSYMUTIL=":"
7901 else
7902 case $cross_compiling:$ac_tool_warned in
7903 yes:)
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7906 ac_tool_warned=yes ;;
7907 esac
7908 DSYMUTIL=$ac_ct_DSYMUTIL
7909 fi
7910 else
7911 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7912 fi
7913
7914 if test -n "$ac_tool_prefix"; then
7915 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7916 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7918 $as_echo_n "checking for $ac_word... " >&6; }
7919 if ${ac_cv_prog_NMEDIT+:} false; then :
7920 $as_echo_n "(cached) " >&6
7921 else
7922 if test -n "$NMEDIT"; then
7923 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7924 else
7925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 for as_dir in $PATH
7927 do
7928 IFS=$as_save_IFS
7929 test -z "$as_dir" && as_dir=.
7930 for ac_exec_ext in '' $ac_executable_extensions; do
7931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7932 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7934 break 2
7935 fi
7936 done
7937 done
7938 IFS=$as_save_IFS
7939
7940 fi
7941 fi
7942 NMEDIT=$ac_cv_prog_NMEDIT
7943 if test -n "$NMEDIT"; then
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7945 $as_echo "$NMEDIT" >&6; }
7946 else
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7949 fi
7950
7951
7952 fi
7953 if test -z "$ac_cv_prog_NMEDIT"; then
7954 ac_ct_NMEDIT=$NMEDIT
7955 # Extract the first word of "nmedit", so it can be a program name with args.
7956 set dummy nmedit; ac_word=$2
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7958 $as_echo_n "checking for $ac_word... " >&6; }
7959 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7960 $as_echo_n "(cached) " >&6
7961 else
7962 if test -n "$ac_ct_NMEDIT"; then
7963 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7964 else
7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7966 for as_dir in $PATH
7967 do
7968 IFS=$as_save_IFS
7969 test -z "$as_dir" && as_dir=.
7970 for ac_exec_ext in '' $ac_executable_extensions; do
7971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7972 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7974 break 2
7975 fi
7976 done
7977 done
7978 IFS=$as_save_IFS
7979
7980 fi
7981 fi
7982 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7983 if test -n "$ac_ct_NMEDIT"; then
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7985 $as_echo "$ac_ct_NMEDIT" >&6; }
7986 else
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7988 $as_echo "no" >&6; }
7989 fi
7990
7991 if test "x$ac_ct_NMEDIT" = x; then
7992 NMEDIT=":"
7993 else
7994 case $cross_compiling:$ac_tool_warned in
7995 yes:)
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7998 ac_tool_warned=yes ;;
7999 esac
8000 NMEDIT=$ac_ct_NMEDIT
8001 fi
8002 else
8003 NMEDIT="$ac_cv_prog_NMEDIT"
8004 fi
8005
8006 if test -n "$ac_tool_prefix"; then
8007 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8008 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010 $as_echo_n "checking for $ac_word... " >&6; }
8011 if ${ac_cv_prog_LIPO+:} false; then :
8012 $as_echo_n "(cached) " >&6
8013 else
8014 if test -n "$LIPO"; then
8015 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8016 else
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 for as_dir in $PATH
8019 do
8020 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8024 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 break 2
8027 fi
8028 done
8029 done
8030 IFS=$as_save_IFS
8031
8032 fi
8033 fi
8034 LIPO=$ac_cv_prog_LIPO
8035 if test -n "$LIPO"; then
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8037 $as_echo "$LIPO" >&6; }
8038 else
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040 $as_echo "no" >&6; }
8041 fi
8042
8043
8044 fi
8045 if test -z "$ac_cv_prog_LIPO"; then
8046 ac_ct_LIPO=$LIPO
8047 # Extract the first word of "lipo", so it can be a program name with args.
8048 set dummy lipo; ac_word=$2
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8050 $as_echo_n "checking for $ac_word... " >&6; }
8051 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8052 $as_echo_n "(cached) " >&6
8053 else
8054 if test -n "$ac_ct_LIPO"; then
8055 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8056 else
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8058 for as_dir in $PATH
8059 do
8060 IFS=$as_save_IFS
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8064 ac_cv_prog_ac_ct_LIPO="lipo"
8065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8066 break 2
8067 fi
8068 done
8069 done
8070 IFS=$as_save_IFS
8071
8072 fi
8073 fi
8074 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8075 if test -n "$ac_ct_LIPO"; then
8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8077 $as_echo "$ac_ct_LIPO" >&6; }
8078 else
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8080 $as_echo "no" >&6; }
8081 fi
8082
8083 if test "x$ac_ct_LIPO" = x; then
8084 LIPO=":"
8085 else
8086 case $cross_compiling:$ac_tool_warned in
8087 yes:)
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8090 ac_tool_warned=yes ;;
8091 esac
8092 LIPO=$ac_ct_LIPO
8093 fi
8094 else
8095 LIPO="$ac_cv_prog_LIPO"
8096 fi
8097
8098 if test -n "$ac_tool_prefix"; then
8099 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8100 set dummy ${ac_tool_prefix}otool; ac_word=$2
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8102 $as_echo_n "checking for $ac_word... " >&6; }
8103 if ${ac_cv_prog_OTOOL+:} false; then :
8104 $as_echo_n "(cached) " >&6
8105 else
8106 if test -n "$OTOOL"; then
8107 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8108 else
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8111 do
8112 IFS=$as_save_IFS
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8116 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 break 2
8119 fi
8120 done
8121 done
8122 IFS=$as_save_IFS
8123
8124 fi
8125 fi
8126 OTOOL=$ac_cv_prog_OTOOL
8127 if test -n "$OTOOL"; then
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8129 $as_echo "$OTOOL" >&6; }
8130 else
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132 $as_echo "no" >&6; }
8133 fi
8134
8135
8136 fi
8137 if test -z "$ac_cv_prog_OTOOL"; then
8138 ac_ct_OTOOL=$OTOOL
8139 # Extract the first word of "otool", so it can be a program name with args.
8140 set dummy otool; ac_word=$2
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8142 $as_echo_n "checking for $ac_word... " >&6; }
8143 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8144 $as_echo_n "(cached) " >&6
8145 else
8146 if test -n "$ac_ct_OTOOL"; then
8147 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8148 else
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 for as_dir in $PATH
8151 do
8152 IFS=$as_save_IFS
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8156 ac_cv_prog_ac_ct_OTOOL="otool"
8157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8158 break 2
8159 fi
8160 done
8161 done
8162 IFS=$as_save_IFS
8163
8164 fi
8165 fi
8166 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8167 if test -n "$ac_ct_OTOOL"; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8169 $as_echo "$ac_ct_OTOOL" >&6; }
8170 else
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172 $as_echo "no" >&6; }
8173 fi
8174
8175 if test "x$ac_ct_OTOOL" = x; then
8176 OTOOL=":"
8177 else
8178 case $cross_compiling:$ac_tool_warned in
8179 yes:)
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8182 ac_tool_warned=yes ;;
8183 esac
8184 OTOOL=$ac_ct_OTOOL
8185 fi
8186 else
8187 OTOOL="$ac_cv_prog_OTOOL"
8188 fi
8189
8190 if test -n "$ac_tool_prefix"; then
8191 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8192 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194 $as_echo_n "checking for $ac_word... " >&6; }
8195 if ${ac_cv_prog_OTOOL64+:} false; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 if test -n "$OTOOL64"; then
8199 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8200 else
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 for as_dir in $PATH
8203 do
8204 IFS=$as_save_IFS
8205 test -z "$as_dir" && as_dir=.
8206 for ac_exec_ext in '' $ac_executable_extensions; do
8207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8208 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8210 break 2
8211 fi
8212 done
8213 done
8214 IFS=$as_save_IFS
8215
8216 fi
8217 fi
8218 OTOOL64=$ac_cv_prog_OTOOL64
8219 if test -n "$OTOOL64"; then
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8221 $as_echo "$OTOOL64" >&6; }
8222 else
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224 $as_echo "no" >&6; }
8225 fi
8226
8227
8228 fi
8229 if test -z "$ac_cv_prog_OTOOL64"; then
8230 ac_ct_OTOOL64=$OTOOL64
8231 # Extract the first word of "otool64", so it can be a program name with args.
8232 set dummy otool64; ac_word=$2
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8234 $as_echo_n "checking for $ac_word... " >&6; }
8235 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8236 $as_echo_n "(cached) " >&6
8237 else
8238 if test -n "$ac_ct_OTOOL64"; then
8239 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8240 else
8241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8242 for as_dir in $PATH
8243 do
8244 IFS=$as_save_IFS
8245 test -z "$as_dir" && as_dir=.
8246 for ac_exec_ext in '' $ac_executable_extensions; do
8247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8248 ac_cv_prog_ac_ct_OTOOL64="otool64"
8249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8250 break 2
8251 fi
8252 done
8253 done
8254 IFS=$as_save_IFS
8255
8256 fi
8257 fi
8258 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8259 if test -n "$ac_ct_OTOOL64"; then
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8261 $as_echo "$ac_ct_OTOOL64" >&6; }
8262 else
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8264 $as_echo "no" >&6; }
8265 fi
8266
8267 if test "x$ac_ct_OTOOL64" = x; then
8268 OTOOL64=":"
8269 else
8270 case $cross_compiling:$ac_tool_warned in
8271 yes:)
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8273 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8274 ac_tool_warned=yes ;;
8275 esac
8276 OTOOL64=$ac_ct_OTOOL64
8277 fi
8278 else
8279 OTOOL64="$ac_cv_prog_OTOOL64"
8280 fi
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8309 $as_echo_n "checking for -single_module linker flag... " >&6; }
8310 if ${lt_cv_apple_cc_single_mod+:} false; then :
8311 $as_echo_n "(cached) " >&6
8312 else
8313 lt_cv_apple_cc_single_mod=no
8314 if test -z "$LT_MULTI_MODULE"; then
8315 # By default we will add the -single_module flag. You can override
8316 # by either setting the environment variable LT_MULTI_MODULE
8317 # non-empty at configure time, or by adding -multi_module to the
8318 # link flags.
8319 rm -rf libconftest.dylib*
8320 echo "int foo(void){return 1;}" > conftest.c
8321 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8322 -dynamiclib -Wl,-single_module conftest.c" >&5
8323 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8324 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8325 _lt_result=$?
8326 # If there is a non-empty error log, and "single_module"
8327 # appears in it, assume the flag caused a linker warning
8328 if test -s conftest.err && $GREP single_module conftest.err; then
8329 cat conftest.err >&5
8330 # Otherwise, if the output was created with a 0 exit code from
8331 # the compiler, it worked.
8332 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8333 lt_cv_apple_cc_single_mod=yes
8334 else
8335 cat conftest.err >&5
8336 fi
8337 rm -rf libconftest.dylib*
8338 rm -f conftest.*
8339 fi
8340 fi
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8342 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8343
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8345 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8346 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 lt_cv_ld_exported_symbols_list=no
8350 save_LDFLAGS=$LDFLAGS
8351 echo "_main" > conftest.sym
8352 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8354 /* end confdefs.h. */
8355
8356 int
8357 main ()
8358 {
8359
8360 ;
8361 return 0;
8362 }
8363 _ACEOF
8364 if ac_fn_c_try_link "$LINENO"; then :
8365 lt_cv_ld_exported_symbols_list=yes
8366 else
8367 lt_cv_ld_exported_symbols_list=no
8368 fi
8369 rm -f core conftest.err conftest.$ac_objext \
8370 conftest$ac_exeext conftest.$ac_ext
8371 LDFLAGS=$save_LDFLAGS
8372
8373 fi
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8375 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8376
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8378 $as_echo_n "checking for -force_load linker flag... " >&6; }
8379 if ${lt_cv_ld_force_load+:} false; then :
8380 $as_echo_n "(cached) " >&6
8381 else
8382 lt_cv_ld_force_load=no
8383 cat > conftest.c << _LT_EOF
8384 int forced_loaded() { return 2;}
8385 _LT_EOF
8386 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8387 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8388 echo "$AR cru libconftest.a conftest.o" >&5
8389 $AR cru libconftest.a conftest.o 2>&5
8390 echo "$RANLIB libconftest.a" >&5
8391 $RANLIB libconftest.a 2>&5
8392 cat > conftest.c << _LT_EOF
8393 int main() { return 0;}
8394 _LT_EOF
8395 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8396 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8397 _lt_result=$?
8398 if test -s conftest.err && $GREP force_load conftest.err; then
8399 cat conftest.err >&5
8400 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8401 lt_cv_ld_force_load=yes
8402 else
8403 cat conftest.err >&5
8404 fi
8405 rm -f conftest.err libconftest.a conftest conftest.c
8406 rm -rf conftest.dSYM
8407
8408 fi
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8410 $as_echo "$lt_cv_ld_force_load" >&6; }
8411 case $host_os in
8412 rhapsody* | darwin1.[012])
8413 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8414 darwin1.*)
8415 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8416 darwin*) # darwin 5.x on
8417 # if running on 10.5 or later, the deployment target defaults
8418 # to the OS version, if on x86, and 10.4, the deployment
8419 # target defaults to 10.4. Don't you love it?
8420 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8421 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8422 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8423 10.[012][,.]*)
8424 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8425 10.*)
8426 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8427 esac
8428 ;;
8429 esac
8430 if test yes = "$lt_cv_apple_cc_single_mod"; then
8431 _lt_dar_single_mod='$single_module'
8432 fi
8433 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8434 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8435 else
8436 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8437 fi
8438 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8439 _lt_dsymutil='~$DSYMUTIL $lib || :'
8440 else
8441 _lt_dsymutil=
8442 fi
8443 ;;
8444 esac
8445
8446 # func_munge_path_list VARIABLE PATH
8447 # -----------------------------------
8448 # VARIABLE is name of variable containing _space_ separated list of
8449 # directories to be munged by the contents of PATH, which is string
8450 # having a format:
8451 # "DIR[:DIR]:"
8452 # string "DIR[ DIR]" will be prepended to VARIABLE
8453 # ":DIR[:DIR]"
8454 # string "DIR[ DIR]" will be appended to VARIABLE
8455 # "DIRP[:DIRP]::[DIRA:]DIRA"
8456 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8457 # "DIRA[ DIRA]" will be appended to VARIABLE
8458 # "DIR[:DIR]"
8459 # VARIABLE will be replaced by "DIR[ DIR]"
8460 func_munge_path_list ()
8461 {
8462 case x$2 in
8463 x)
8464 ;;
8465 *:)
8466 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8467 ;;
8468 x:*)
8469 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8470 ;;
8471 *::*)
8472 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8473 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8474 ;;
8475 *)
8476 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8477 ;;
8478 esac
8479 }
8480
8481 ac_ext=c
8482 ac_cpp='$CPP $CPPFLAGS'
8483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8487 $as_echo_n "checking how to run the C preprocessor... " >&6; }
8488 # On Suns, sometimes $CPP names a directory.
8489 if test -n "$CPP" && test -d "$CPP"; then
8490 CPP=
8491 fi
8492 if test -z "$CPP"; then
8493 if ${ac_cv_prog_CPP+:} false; then :
8494 $as_echo_n "(cached) " >&6
8495 else
8496 # Double quotes because CPP needs to be expanded
8497 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8498 do
8499 ac_preproc_ok=false
8500 for ac_c_preproc_warn_flag in '' yes
8501 do
8502 # Use a header file that comes with gcc, so configuring glibc
8503 # with a fresh cross-compiler works.
8504 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8505 # <limits.h> exists even on freestanding compilers.
8506 # On the NeXT, cc -E runs the code through the compiler's parser,
8507 # not just through cpp. "Syntax error" is here to catch this case.
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8510 #ifdef __STDC__
8511 # include <limits.h>
8512 #else
8513 # include <assert.h>
8514 #endif
8515 Syntax error
8516 _ACEOF
8517 if ac_fn_c_try_cpp "$LINENO"; then :
8518
8519 else
8520 # Broken: fails on valid input.
8521 continue
8522 fi
8523 rm -f conftest.err conftest.i conftest.$ac_ext
8524
8525 # OK, works on sane cases. Now check whether nonexistent headers
8526 # can be detected and how.
8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8528 /* end confdefs.h. */
8529 #include <ac_nonexistent.h>
8530 _ACEOF
8531 if ac_fn_c_try_cpp "$LINENO"; then :
8532 # Broken: success on invalid input.
8533 continue
8534 else
8535 # Passes both tests.
8536 ac_preproc_ok=:
8537 break
8538 fi
8539 rm -f conftest.err conftest.i conftest.$ac_ext
8540
8541 done
8542 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8543 rm -f conftest.i conftest.err conftest.$ac_ext
8544 if $ac_preproc_ok; then :
8545 break
8546 fi
8547
8548 done
8549 ac_cv_prog_CPP=$CPP
8550
8551 fi
8552 CPP=$ac_cv_prog_CPP
8553 else
8554 ac_cv_prog_CPP=$CPP
8555 fi
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8557 $as_echo "$CPP" >&6; }
8558 ac_preproc_ok=false
8559 for ac_c_preproc_warn_flag in '' yes
8560 do
8561 # Use a header file that comes with gcc, so configuring glibc
8562 # with a fresh cross-compiler works.
8563 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8564 # <limits.h> exists even on freestanding compilers.
8565 # On the NeXT, cc -E runs the code through the compiler's parser,
8566 # not just through cpp. "Syntax error" is here to catch this case.
8567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8568 /* end confdefs.h. */
8569 #ifdef __STDC__
8570 # include <limits.h>
8571 #else
8572 # include <assert.h>
8573 #endif
8574 Syntax error
8575 _ACEOF
8576 if ac_fn_c_try_cpp "$LINENO"; then :
8577
8578 else
8579 # Broken: fails on valid input.
8580 continue
8581 fi
8582 rm -f conftest.err conftest.i conftest.$ac_ext
8583
8584 # OK, works on sane cases. Now check whether nonexistent headers
8585 # can be detected and how.
8586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587 /* end confdefs.h. */
8588 #include <ac_nonexistent.h>
8589 _ACEOF
8590 if ac_fn_c_try_cpp "$LINENO"; then :
8591 # Broken: success on invalid input.
8592 continue
8593 else
8594 # Passes both tests.
8595 ac_preproc_ok=:
8596 break
8597 fi
8598 rm -f conftest.err conftest.i conftest.$ac_ext
8599
8600 done
8601 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8602 rm -f conftest.i conftest.err conftest.$ac_ext
8603 if $ac_preproc_ok; then :
8604
8605 else
8606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8608 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8609 See \`config.log' for more details" "$LINENO" 5; }
8610 fi
8611
8612 ac_ext=c
8613 ac_cpp='$CPP $CPPFLAGS'
8614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8617
8618
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8620 $as_echo_n "checking for ANSI C header files... " >&6; }
8621 if ${ac_cv_header_stdc+:} false; then :
8622 $as_echo_n "(cached) " >&6
8623 else
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8626 #include <stdlib.h>
8627 #include <stdarg.h>
8628 #include <string.h>
8629 #include <float.h>
8630
8631 int
8632 main ()
8633 {
8634
8635 ;
8636 return 0;
8637 }
8638 _ACEOF
8639 if ac_fn_c_try_compile "$LINENO"; then :
8640 ac_cv_header_stdc=yes
8641 else
8642 ac_cv_header_stdc=no
8643 fi
8644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645
8646 if test $ac_cv_header_stdc = yes; then
8647 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8649 /* end confdefs.h. */
8650 #include <string.h>
8651
8652 _ACEOF
8653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8654 $EGREP "memchr" >/dev/null 2>&1; then :
8655
8656 else
8657 ac_cv_header_stdc=no
8658 fi
8659 rm -f conftest*
8660
8661 fi
8662
8663 if test $ac_cv_header_stdc = yes; then
8664 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8666 /* end confdefs.h. */
8667 #include <stdlib.h>
8668
8669 _ACEOF
8670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8671 $EGREP "free" >/dev/null 2>&1; then :
8672
8673 else
8674 ac_cv_header_stdc=no
8675 fi
8676 rm -f conftest*
8677
8678 fi
8679
8680 if test $ac_cv_header_stdc = yes; then
8681 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8682 if test "$cross_compiling" = yes; then :
8683 :
8684 else
8685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8686 /* end confdefs.h. */
8687 #include <ctype.h>
8688 #include <stdlib.h>
8689 #if ((' ' & 0x0FF) == 0x020)
8690 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8691 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8692 #else
8693 # define ISLOWER(c) \
8694 (('a' <= (c) && (c) <= 'i') \
8695 || ('j' <= (c) && (c) <= 'r') \
8696 || ('s' <= (c) && (c) <= 'z'))
8697 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8698 #endif
8699
8700 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8701 int
8702 main ()
8703 {
8704 int i;
8705 for (i = 0; i < 256; i++)
8706 if (XOR (islower (i), ISLOWER (i))
8707 || toupper (i) != TOUPPER (i))
8708 return 2;
8709 return 0;
8710 }
8711 _ACEOF
8712 if ac_fn_c_try_run "$LINENO"; then :
8713
8714 else
8715 ac_cv_header_stdc=no
8716 fi
8717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8718 conftest.$ac_objext conftest.beam conftest.$ac_ext
8719 fi
8720
8721 fi
8722 fi
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8724 $as_echo "$ac_cv_header_stdc" >&6; }
8725 if test $ac_cv_header_stdc = yes; then
8726
8727 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8728
8729 fi
8730
8731 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8732 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8733 inttypes.h stdint.h unistd.h
8734 do :
8735 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8736 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8737 "
8738 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8739 cat >>confdefs.h <<_ACEOF
8740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8741 _ACEOF
8742
8743 fi
8744
8745 done
8746
8747
8748 for ac_header in dlfcn.h
8749 do :
8750 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8751 "
8752 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8753 cat >>confdefs.h <<_ACEOF
8754 #define HAVE_DLFCN_H 1
8755 _ACEOF
8756
8757 fi
8758
8759 done
8760
8761
8762
8763
8764 func_stripname_cnf ()
8765 {
8766 case $2 in
8767 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
8768 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
8769 esac
8770 } # func_stripname_cnf
8771
8772
8773
8774
8775
8776 # Set options
8777
8778
8779
8780 enable_dlopen=no
8781
8782
8783 enable_win32_dll=no
8784
8785
8786 # Check whether --enable-shared was given.
8787 if test "${enable_shared+set}" = set; then :
8788 enableval=$enable_shared; p=${PACKAGE-default}
8789 case $enableval in
8790 yes) enable_shared=yes ;;
8791 no) enable_shared=no ;;
8792 *)
8793 enable_shared=no
8794 # Look at the argument we got. We use all the common list separators.
8795 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8796 for pkg in $enableval; do
8797 IFS=$lt_save_ifs
8798 if test "X$pkg" = "X$p"; then
8799 enable_shared=yes
8800 fi
8801 done
8802 IFS=$lt_save_ifs
8803 ;;
8804 esac
8805 else
8806 enable_shared=yes
8807 fi
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817 # Check whether --enable-static was given.
8818 if test "${enable_static+set}" = set; then :
8819 enableval=$enable_static; p=${PACKAGE-default}
8820 case $enableval in
8821 yes) enable_static=yes ;;
8822 no) enable_static=no ;;
8823 *)
8824 enable_static=no
8825 # Look at the argument we got. We use all the common list separators.
8826 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8827 for pkg in $enableval; do
8828 IFS=$lt_save_ifs
8829 if test "X$pkg" = "X$p"; then
8830 enable_static=yes
8831 fi
8832 done
8833 IFS=$lt_save_ifs
8834 ;;
8835 esac
8836 else
8837 enable_static=yes
8838 fi
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849 # Check whether --with-pic was given.
8850 if test "${with_pic+set}" = set; then :
8851 withval=$with_pic; lt_p=${PACKAGE-default}
8852 case $withval in
8853 yes|no) pic_mode=$withval ;;
8854 *)
8855 pic_mode=default
8856 # Look at the argument we got. We use all the common list separators.
8857 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8858 for lt_pkg in $withval; do
8859 IFS=$lt_save_ifs
8860 if test "X$lt_pkg" = "X$lt_p"; then
8861 pic_mode=yes
8862 fi
8863 done
8864 IFS=$lt_save_ifs
8865 ;;
8866 esac
8867 else
8868 pic_mode=default
8869 fi
8870
8871
8872
8873
8874
8875
8876
8877
8878 # Check whether --enable-fast-install was given.
8879 if test "${enable_fast_install+set}" = set; then :
8880 enableval=$enable_fast_install; p=${PACKAGE-default}
8881 case $enableval in
8882 yes) enable_fast_install=yes ;;
8883 no) enable_fast_install=no ;;
8884 *)
8885 enable_fast_install=no
8886 # Look at the argument we got. We use all the common list separators.
8887 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8888 for pkg in $enableval; do
8889 IFS=$lt_save_ifs
8890 if test "X$pkg" = "X$p"; then
8891 enable_fast_install=yes
8892 fi
8893 done
8894 IFS=$lt_save_ifs
8895 ;;
8896 esac
8897 else
8898 enable_fast_install=yes
8899 fi
8900
8901
8902
8903
8904
8905
8906
8907
8908 shared_archive_member_spec=
8909 case $host,$enable_shared in
8910 power*-*-aix[5-9]*,yes)
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8912 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8913
8914 # Check whether --with-aix-soname was given.
8915 if test "${with_aix_soname+set}" = set; then :
8916 withval=$with_aix_soname; case $withval in
8917 aix|svr4|both)
8918 ;;
8919 *)
8920 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8921 ;;
8922 esac
8923 lt_cv_with_aix_soname=$with_aix_soname
8924 else
8925 if ${lt_cv_with_aix_soname+:} false; then :
8926 $as_echo_n "(cached) " >&6
8927 else
8928 lt_cv_with_aix_soname=aix
8929 fi
8930
8931 with_aix_soname=$lt_cv_with_aix_soname
8932 fi
8933
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8935 $as_echo "$with_aix_soname" >&6; }
8936 if test aix != "$with_aix_soname"; then
8937 # For the AIX way of multilib, we name the shared archive member
8938 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8939 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8940 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8941 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8942 if test 64 = "${OBJECT_MODE-32}"; then
8943 shared_archive_member_spec=shr_64
8944 else
8945 shared_archive_member_spec=shr
8946 fi
8947 fi
8948 ;;
8949 *)
8950 with_aix_soname=aix
8951 ;;
8952 esac
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963 # This can be used to rebuild libtool when needed
8964 LIBTOOL_DEPS=$ltmain
8965
8966 # Always use our own libtool.
8967 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998 test -z "$LN_S" && LN_S="ln -s"
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013 if test -n "${ZSH_VERSION+set}"; then
9014 setopt NO_GLOB_SUBST
9015 fi
9016
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9018 $as_echo_n "checking for objdir... " >&6; }
9019 if ${lt_cv_objdir+:} false; then :
9020 $as_echo_n "(cached) " >&6
9021 else
9022 rm -f .libs 2>/dev/null
9023 mkdir .libs 2>/dev/null
9024 if test -d .libs; then
9025 lt_cv_objdir=.libs
9026 else
9027 # MS-DOS does not allow filenames that begin with a dot.
9028 lt_cv_objdir=_libs
9029 fi
9030 rmdir .libs 2>/dev/null
9031 fi
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9033 $as_echo "$lt_cv_objdir" >&6; }
9034 objdir=$lt_cv_objdir
9035
9036
9037
9038
9039
9040 cat >>confdefs.h <<_ACEOF
9041 #define LT_OBJDIR "$lt_cv_objdir/"
9042 _ACEOF
9043
9044
9045
9046
9047 case $host_os in
9048 aix3*)
9049 # AIX sometimes has problems with the GCC collect2 program. For some
9050 # reason, if we set the COLLECT_NAMES environment variable, the problems
9051 # vanish in a puff of smoke.
9052 if test set != "${COLLECT_NAMES+set}"; then
9053 COLLECT_NAMES=
9054 export COLLECT_NAMES
9055 fi
9056 ;;
9057 esac
9058
9059 # Global variables:
9060 ofile=libtool
9061 can_build_shared=yes
9062
9063 # All known linkers require a '.a' archive for static linking (except MSVC,
9064 # which needs '.lib').
9065 libext=a
9066
9067 with_gnu_ld=$lt_cv_prog_gnu_ld
9068
9069 old_CC=$CC
9070 old_CFLAGS=$CFLAGS
9071
9072 # Set sane defaults for various variables
9073 test -z "$CC" && CC=cc
9074 test -z "$LTCC" && LTCC=$CC
9075 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9076 test -z "$LD" && LD=ld
9077 test -z "$ac_objext" && ac_objext=o
9078
9079 func_cc_basename $compiler
9080 cc_basename=$func_cc_basename_result
9081
9082
9083 # Only perform the check for file, if the check method requires it
9084 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9085 case $deplibs_check_method in
9086 file_magic*)
9087 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9089 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9090 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9093 case $MAGIC_CMD in
9094 [\\/*] | ?:[\\/]*)
9095 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9096 ;;
9097 *)
9098 lt_save_MAGIC_CMD=$MAGIC_CMD
9099 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9100 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9101 for ac_dir in $ac_dummy; do
9102 IFS=$lt_save_ifs
9103 test -z "$ac_dir" && ac_dir=.
9104 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9105 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9106 if test -n "$file_magic_test_file"; then
9107 case $deplibs_check_method in
9108 "file_magic "*)
9109 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9110 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9111 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9112 $EGREP "$file_magic_regex" > /dev/null; then
9113 :
9114 else
9115 cat <<_LT_EOF 1>&2
9116
9117 *** Warning: the command libtool uses to detect shared libraries,
9118 *** $file_magic_cmd, produces output that libtool cannot recognize.
9119 *** The result is that libtool may fail to recognize shared libraries
9120 *** as such. This will affect the creation of libtool libraries that
9121 *** depend on shared libraries, but programs linked with such libtool
9122 *** libraries will work regardless of this problem. Nevertheless, you
9123 *** may want to report the problem to your system manager and/or to
9124 *** [email protected]
9125
9126 _LT_EOF
9127 fi ;;
9128 esac
9129 fi
9130 break
9131 fi
9132 done
9133 IFS=$lt_save_ifs
9134 MAGIC_CMD=$lt_save_MAGIC_CMD
9135 ;;
9136 esac
9137 fi
9138
9139 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9140 if test -n "$MAGIC_CMD"; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9142 $as_echo "$MAGIC_CMD" >&6; }
9143 else
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145 $as_echo "no" >&6; }
9146 fi
9147
9148
9149
9150
9151
9152 if test -z "$lt_cv_path_MAGIC_CMD"; then
9153 if test -n "$ac_tool_prefix"; then
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9155 $as_echo_n "checking for file... " >&6; }
9156 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9157 $as_echo_n "(cached) " >&6
9158 else
9159 case $MAGIC_CMD in
9160 [\\/*] | ?:[\\/]*)
9161 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9162 ;;
9163 *)
9164 lt_save_MAGIC_CMD=$MAGIC_CMD
9165 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9166 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9167 for ac_dir in $ac_dummy; do
9168 IFS=$lt_save_ifs
9169 test -z "$ac_dir" && ac_dir=.
9170 if test -f "$ac_dir/file"; then
9171 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9172 if test -n "$file_magic_test_file"; then
9173 case $deplibs_check_method in
9174 "file_magic "*)
9175 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9176 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9177 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9178 $EGREP "$file_magic_regex" > /dev/null; then
9179 :
9180 else
9181 cat <<_LT_EOF 1>&2
9182
9183 *** Warning: the command libtool uses to detect shared libraries,
9184 *** $file_magic_cmd, produces output that libtool cannot recognize.
9185 *** The result is that libtool may fail to recognize shared libraries
9186 *** as such. This will affect the creation of libtool libraries that
9187 *** depend on shared libraries, but programs linked with such libtool
9188 *** libraries will work regardless of this problem. Nevertheless, you
9189 *** may want to report the problem to your system manager and/or to
9190 *** [email protected]
9191
9192 _LT_EOF
9193 fi ;;
9194 esac
9195 fi
9196 break
9197 fi
9198 done
9199 IFS=$lt_save_ifs
9200 MAGIC_CMD=$lt_save_MAGIC_CMD
9201 ;;
9202 esac
9203 fi
9204
9205 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9206 if test -n "$MAGIC_CMD"; then
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9208 $as_echo "$MAGIC_CMD" >&6; }
9209 else
9210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9211 $as_echo "no" >&6; }
9212 fi
9213
9214
9215 else
9216 MAGIC_CMD=:
9217 fi
9218 fi
9219
9220 fi
9221 ;;
9222 esac
9223
9224 # Use C for the default configuration in the libtool script
9225
9226 lt_save_CC=$CC
9227 ac_ext=c
9228 ac_cpp='$CPP $CPPFLAGS'
9229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9232
9233
9234 # Source file extension for C test sources.
9235 ac_ext=c
9236
9237 # Object file extension for compiled C test sources.
9238 objext=o
9239 objext=$objext
9240
9241 # Code to be used in simple compile tests
9242 lt_simple_compile_test_code="int some_variable = 0;"
9243
9244 # Code to be used in simple link tests
9245 lt_simple_link_test_code='int main(){return(0);}'
9246
9247
9248
9249
9250
9251
9252
9253 # If no C compiler was specified, use CC.
9254 LTCC=${LTCC-"$CC"}
9255
9256 # If no C compiler flags were specified, use CFLAGS.
9257 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9258
9259 # Allow CC to be a program name with arguments.
9260 compiler=$CC
9261
9262 # Save the default compiler, since it gets overwritten when the other
9263 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9264 compiler_DEFAULT=$CC
9265
9266 # save warnings/boilerplate of simple test code
9267 ac_outfile=conftest.$ac_objext
9268 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9269 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9270 _lt_compiler_boilerplate=`cat conftest.err`
9271 $RM conftest*
9272
9273 ac_outfile=conftest.$ac_objext
9274 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9275 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9276 _lt_linker_boilerplate=`cat conftest.err`
9277 $RM -r conftest*
9278
9279
9280 ## CAVEAT EMPTOR:
9281 ## There is no encapsulation within the following macros, do not change
9282 ## the running order or otherwise move them around unless you know exactly
9283 ## what you are doing...
9284 if test -n "$compiler"; then
9285
9286 lt_prog_compiler_no_builtin_flag=
9287
9288 if test yes = "$GCC"; then
9289 case $cc_basename in
9290 nvcc*)
9291 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9292 *)
9293 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9294 esac
9295
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9297 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9298 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9299 $as_echo_n "(cached) " >&6
9300 else
9301 lt_cv_prog_compiler_rtti_exceptions=no
9302 ac_outfile=conftest.$ac_objext
9303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9304 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9305 # Insert the option either (1) after the last *FLAGS variable, or
9306 # (2) before a word containing "conftest.", or (3) at the end.
9307 # Note that $ac_compile itself does not contain backslashes and begins
9308 # with a dollar sign (not a hyphen), so the echo should work correctly.
9309 # The option is referenced via a variable to avoid confusing sed.
9310 lt_compile=`echo "$ac_compile" | $SED \
9311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9313 -e 's:$: $lt_compiler_flag:'`
9314 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9315 (eval "$lt_compile" 2>conftest.err)
9316 ac_status=$?
9317 cat conftest.err >&5
9318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9319 if (exit $ac_status) && test -s "$ac_outfile"; then
9320 # The compiler can only warn and ignore the option if not recognized
9321 # So say no if there are warnings other than the usual output.
9322 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9324 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9325 lt_cv_prog_compiler_rtti_exceptions=yes
9326 fi
9327 fi
9328 $RM conftest*
9329
9330 fi
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9332 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9333
9334 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9335 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9336 else
9337 :
9338 fi
9339
9340 fi
9341
9342
9343
9344
9345
9346
9347 lt_prog_compiler_wl=
9348 lt_prog_compiler_pic=
9349 lt_prog_compiler_static=
9350
9351
9352 if test yes = "$GCC"; then
9353 lt_prog_compiler_wl='-Wl,'
9354 lt_prog_compiler_static='-static'
9355
9356 case $host_os in
9357 aix*)
9358 # All AIX code is PIC.
9359 if test ia64 = "$host_cpu"; then
9360 # AIX 5 now supports IA64 processor
9361 lt_prog_compiler_static='-Bstatic'
9362 fi
9363 lt_prog_compiler_pic='-fPIC'
9364 ;;
9365
9366 amigaos*)
9367 case $host_cpu in
9368 powerpc)
9369 # see comment about AmigaOS4 .so support
9370 lt_prog_compiler_pic='-fPIC'
9371 ;;
9372 m68k)
9373 # FIXME: we need at least 68020 code to build shared libraries, but
9374 # adding the '-m68020' flag to GCC prevents building anything better,
9375 # like '-m68040'.
9376 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9377 ;;
9378 esac
9379 ;;
9380
9381 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9382 # PIC is the default for these OSes.
9383 ;;
9384
9385 mingw* | cygwin* | pw32* | os2* | cegcc*)
9386 # This hack is so that the source file can tell whether it is being
9387 # built for inclusion in a dll (and should export symbols for example).
9388 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9389 # (--disable-auto-import) libraries
9390 lt_prog_compiler_pic='-DDLL_EXPORT'
9391 case $host_os in
9392 os2*)
9393 lt_prog_compiler_static='$wl-static'
9394 ;;
9395 esac
9396 ;;
9397
9398 darwin* | rhapsody*)
9399 # PIC is the default on this platform
9400 # Common symbols not allowed in MH_DYLIB files
9401 lt_prog_compiler_pic='-fno-common'
9402 ;;
9403
9404 haiku*)
9405 # PIC is the default for Haiku.
9406 # The "-static" flag exists, but is broken.
9407 lt_prog_compiler_static=
9408 ;;
9409
9410 hpux*)
9411 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9412 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9413 # sets the default TLS model and affects inlining.
9414 case $host_cpu in
9415 hppa*64*)
9416 # +Z the default
9417 ;;
9418 *)
9419 lt_prog_compiler_pic='-fPIC'
9420 ;;
9421 esac
9422 ;;
9423
9424 interix[3-9]*)
9425 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9426 # Instead, we relocate shared libraries at runtime.
9427 ;;
9428
9429 msdosdjgpp*)
9430 # Just because we use GCC doesn't mean we suddenly get shared libraries
9431 # on systems that don't support them.
9432 lt_prog_compiler_can_build_shared=no
9433 enable_shared=no
9434 ;;
9435
9436 *nto* | *qnx*)
9437 # QNX uses GNU C++, but need to define -shared option too, otherwise
9438 # it will coredump.
9439 lt_prog_compiler_pic='-fPIC -shared'
9440 ;;
9441
9442 sysv4*MP*)
9443 if test -d /usr/nec; then
9444 lt_prog_compiler_pic=-Kconform_pic
9445 fi
9446 ;;
9447
9448 *)
9449 lt_prog_compiler_pic='-fPIC'
9450 ;;
9451 esac
9452
9453 case $cc_basename in
9454 nvcc*) # Cuda Compiler Driver 2.2
9455 lt_prog_compiler_wl='-Xlinker '
9456 if test -n "$lt_prog_compiler_pic"; then
9457 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9458 fi
9459 ;;
9460 esac
9461 else
9462 # PORTME Check for flag to pass linker flags through the system compiler.
9463 case $host_os in
9464 aix*)
9465 lt_prog_compiler_wl='-Wl,'
9466 if test ia64 = "$host_cpu"; then
9467 # AIX 5 now supports IA64 processor
9468 lt_prog_compiler_static='-Bstatic'
9469 else
9470 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9471 fi
9472 ;;
9473
9474 darwin* | rhapsody*)
9475 # PIC is the default on this platform
9476 # Common symbols not allowed in MH_DYLIB files
9477 lt_prog_compiler_pic='-fno-common'
9478 case $cc_basename in
9479 nagfor*)
9480 # NAG Fortran compiler
9481 lt_prog_compiler_wl='-Wl,-Wl,,'
9482 lt_prog_compiler_pic='-PIC'
9483 lt_prog_compiler_static='-Bstatic'
9484 ;;
9485 esac
9486 ;;
9487
9488 mingw* | cygwin* | pw32* | os2* | cegcc*)
9489 # This hack is so that the source file can tell whether it is being
9490 # built for inclusion in a dll (and should export symbols for example).
9491 lt_prog_compiler_pic='-DDLL_EXPORT'
9492 case $host_os in
9493 os2*)
9494 lt_prog_compiler_static='$wl-static'
9495 ;;
9496 esac
9497 ;;
9498
9499 hpux9* | hpux10* | hpux11*)
9500 lt_prog_compiler_wl='-Wl,'
9501 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9502 # not for PA HP-UX.
9503 case $host_cpu in
9504 hppa*64*|ia64*)
9505 # +Z the default
9506 ;;
9507 *)
9508 lt_prog_compiler_pic='+Z'
9509 ;;
9510 esac
9511 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9512 lt_prog_compiler_static='$wl-a ${wl}archive'
9513 ;;
9514
9515 irix5* | irix6* | nonstopux*)
9516 lt_prog_compiler_wl='-Wl,'
9517 # PIC (with -KPIC) is the default.
9518 lt_prog_compiler_static='-non_shared'
9519 ;;
9520
9521 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9522 case $cc_basename in
9523 # old Intel for x86_64, which still supported -KPIC.
9524 ecc*)
9525 lt_prog_compiler_wl='-Wl,'
9526 lt_prog_compiler_pic='-KPIC'
9527 lt_prog_compiler_static='-static'
9528 ;;
9529 # icc used to be incompatible with GCC.
9530 # ICC 10 doesn't accept -KPIC any more.
9531 icc* | ifort*)
9532 lt_prog_compiler_wl='-Wl,'
9533 lt_prog_compiler_pic='-fPIC'
9534 lt_prog_compiler_static='-static'
9535 ;;
9536 # Lahey Fortran 8.1.
9537 lf95*)
9538 lt_prog_compiler_wl='-Wl,'
9539 lt_prog_compiler_pic='--shared'
9540 lt_prog_compiler_static='--static'
9541 ;;
9542 nagfor*)
9543 # NAG Fortran compiler
9544 lt_prog_compiler_wl='-Wl,-Wl,,'
9545 lt_prog_compiler_pic='-PIC'
9546 lt_prog_compiler_static='-Bstatic'
9547 ;;
9548 tcc*)
9549 # Fabrice Bellard et al's Tiny C Compiler
9550 lt_prog_compiler_wl='-Wl,'
9551 lt_prog_compiler_pic='-fPIC'
9552 lt_prog_compiler_static='-static'
9553 ;;
9554 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9555 # Portland Group compilers (*not* the Pentium gcc compiler,
9556 # which looks to be a dead project)
9557 lt_prog_compiler_wl='-Wl,'
9558 lt_prog_compiler_pic='-fpic'
9559 lt_prog_compiler_static='-Bstatic'
9560 ;;
9561 ccc*)
9562 lt_prog_compiler_wl='-Wl,'
9563 # All Alpha code is PIC.
9564 lt_prog_compiler_static='-non_shared'
9565 ;;
9566 xl* | bgxl* | bgf* | mpixl*)
9567 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9568 lt_prog_compiler_wl='-Wl,'
9569 lt_prog_compiler_pic='-qpic'
9570 lt_prog_compiler_static='-qstaticlink'
9571 ;;
9572 *)
9573 case `$CC -V 2>&1 | sed 5q` in
9574 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9575 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9576 lt_prog_compiler_pic='-KPIC'
9577 lt_prog_compiler_static='-Bstatic'
9578 lt_prog_compiler_wl=''
9579 ;;
9580 *Sun\ F* | *Sun*Fortran*)
9581 lt_prog_compiler_pic='-KPIC'
9582 lt_prog_compiler_static='-Bstatic'
9583 lt_prog_compiler_wl='-Qoption ld '
9584 ;;
9585 *Sun\ C*)
9586 # Sun C 5.9
9587 lt_prog_compiler_pic='-KPIC'
9588 lt_prog_compiler_static='-Bstatic'
9589 lt_prog_compiler_wl='-Wl,'
9590 ;;
9591 *Intel*\ [CF]*Compiler*)
9592 lt_prog_compiler_wl='-Wl,'
9593 lt_prog_compiler_pic='-fPIC'
9594 lt_prog_compiler_static='-static'
9595 ;;
9596 *Portland\ Group*)
9597 lt_prog_compiler_wl='-Wl,'
9598 lt_prog_compiler_pic='-fpic'
9599 lt_prog_compiler_static='-Bstatic'
9600 ;;
9601 esac
9602 ;;
9603 esac
9604 ;;
9605
9606 newsos6)
9607 lt_prog_compiler_pic='-KPIC'
9608 lt_prog_compiler_static='-Bstatic'
9609 ;;
9610
9611 *nto* | *qnx*)
9612 # QNX uses GNU C++, but need to define -shared option too, otherwise
9613 # it will coredump.
9614 lt_prog_compiler_pic='-fPIC -shared'
9615 ;;
9616
9617 osf3* | osf4* | osf5*)
9618 lt_prog_compiler_wl='-Wl,'
9619 # All OSF/1 code is PIC.
9620 lt_prog_compiler_static='-non_shared'
9621 ;;
9622
9623 rdos*)
9624 lt_prog_compiler_static='-non_shared'
9625 ;;
9626
9627 solaris*)
9628 lt_prog_compiler_pic='-KPIC'
9629 lt_prog_compiler_static='-Bstatic'
9630 case $cc_basename in
9631 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9632 lt_prog_compiler_wl='-Qoption ld ';;
9633 *)
9634 lt_prog_compiler_wl='-Wl,';;
9635 esac
9636 ;;
9637
9638 sunos4*)
9639 lt_prog_compiler_wl='-Qoption ld '
9640 lt_prog_compiler_pic='-PIC'
9641 lt_prog_compiler_static='-Bstatic'
9642 ;;
9643
9644 sysv4 | sysv4.2uw2* | sysv4.3*)
9645 lt_prog_compiler_wl='-Wl,'
9646 lt_prog_compiler_pic='-KPIC'
9647 lt_prog_compiler_static='-Bstatic'
9648 ;;
9649
9650 sysv4*MP*)
9651 if test -d /usr/nec; then
9652 lt_prog_compiler_pic='-Kconform_pic'
9653 lt_prog_compiler_static='-Bstatic'
9654 fi
9655 ;;
9656
9657 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9658 lt_prog_compiler_wl='-Wl,'
9659 lt_prog_compiler_pic='-KPIC'
9660 lt_prog_compiler_static='-Bstatic'
9661 ;;
9662
9663 unicos*)
9664 lt_prog_compiler_wl='-Wl,'
9665 lt_prog_compiler_can_build_shared=no
9666 ;;
9667
9668 uts4*)
9669 lt_prog_compiler_pic='-pic'
9670 lt_prog_compiler_static='-Bstatic'
9671 ;;
9672
9673 *)
9674 lt_prog_compiler_can_build_shared=no
9675 ;;
9676 esac
9677 fi
9678
9679 case $host_os in
9680 # For platforms that do not support PIC, -DPIC is meaningless:
9681 *djgpp*)
9682 lt_prog_compiler_pic=
9683 ;;
9684 *)
9685 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9686 ;;
9687 esac
9688
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9690 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9691 if ${lt_cv_prog_compiler_pic+:} false; then :
9692 $as_echo_n "(cached) " >&6
9693 else
9694 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9695 fi
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9697 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9698 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9699
9700 #
9701 # Check to make sure the PIC flag actually works.
9702 #
9703 if test -n "$lt_prog_compiler_pic"; then
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9705 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9706 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9707 $as_echo_n "(cached) " >&6
9708 else
9709 lt_cv_prog_compiler_pic_works=no
9710 ac_outfile=conftest.$ac_objext
9711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9712 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9713 # Insert the option either (1) after the last *FLAGS variable, or
9714 # (2) before a word containing "conftest.", or (3) at the end.
9715 # Note that $ac_compile itself does not contain backslashes and begins
9716 # with a dollar sign (not a hyphen), so the echo should work correctly.
9717 # The option is referenced via a variable to avoid confusing sed.
9718 lt_compile=`echo "$ac_compile" | $SED \
9719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9721 -e 's:$: $lt_compiler_flag:'`
9722 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9723 (eval "$lt_compile" 2>conftest.err)
9724 ac_status=$?
9725 cat conftest.err >&5
9726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 if (exit $ac_status) && test -s "$ac_outfile"; then
9728 # The compiler can only warn and ignore the option if not recognized
9729 # So say no if there are warnings other than the usual output.
9730 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9732 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9733 lt_cv_prog_compiler_pic_works=yes
9734 fi
9735 fi
9736 $RM conftest*
9737
9738 fi
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9740 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9741
9742 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9743 case $lt_prog_compiler_pic in
9744 "" | " "*) ;;
9745 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9746 esac
9747 else
9748 lt_prog_compiler_pic=
9749 lt_prog_compiler_can_build_shared=no
9750 fi
9751
9752 fi
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764 #
9765 # Check to make sure the static flag actually works.
9766 #
9767 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9769 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9770 if ${lt_cv_prog_compiler_static_works+:} false; then :
9771 $as_echo_n "(cached) " >&6
9772 else
9773 lt_cv_prog_compiler_static_works=no
9774 save_LDFLAGS=$LDFLAGS
9775 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9776 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9777 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9778 # The linker can only warn and ignore the option if not recognized
9779 # So say no if there are warnings
9780 if test -s conftest.err; then
9781 # Append any errors to the config.log.
9782 cat conftest.err 1>&5
9783 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9784 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9785 if diff conftest.exp conftest.er2 >/dev/null; then
9786 lt_cv_prog_compiler_static_works=yes
9787 fi
9788 else
9789 lt_cv_prog_compiler_static_works=yes
9790 fi
9791 fi
9792 $RM -r conftest*
9793 LDFLAGS=$save_LDFLAGS
9794
9795 fi
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9797 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9798
9799 if test yes = "$lt_cv_prog_compiler_static_works"; then
9800 :
9801 else
9802 lt_prog_compiler_static=
9803 fi
9804
9805
9806
9807
9808
9809
9810
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9812 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9813 if ${lt_cv_prog_compiler_c_o+:} false; then :
9814 $as_echo_n "(cached) " >&6
9815 else
9816 lt_cv_prog_compiler_c_o=no
9817 $RM -r conftest 2>/dev/null
9818 mkdir conftest
9819 cd conftest
9820 mkdir out
9821 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9822
9823 lt_compiler_flag="-o out/conftest2.$ac_objext"
9824 # Insert the option either (1) after the last *FLAGS variable, or
9825 # (2) before a word containing "conftest.", or (3) at the end.
9826 # Note that $ac_compile itself does not contain backslashes and begins
9827 # with a dollar sign (not a hyphen), so the echo should work correctly.
9828 lt_compile=`echo "$ac_compile" | $SED \
9829 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9830 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9831 -e 's:$: $lt_compiler_flag:'`
9832 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9833 (eval "$lt_compile" 2>out/conftest.err)
9834 ac_status=$?
9835 cat out/conftest.err >&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9838 then
9839 # The compiler can only warn and ignore the option if not recognized
9840 # So say no if there are warnings
9841 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9842 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9843 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9844 lt_cv_prog_compiler_c_o=yes
9845 fi
9846 fi
9847 chmod u+w . 2>&5
9848 $RM conftest*
9849 # SGI C++ compiler will create directory out/ii_files/ for
9850 # template instantiation
9851 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9852 $RM out/* && rmdir out
9853 cd ..
9854 $RM -r conftest
9855 $RM conftest*
9856
9857 fi
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9859 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9860
9861
9862
9863
9864
9865
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9867 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9868 if ${lt_cv_prog_compiler_c_o+:} false; then :
9869 $as_echo_n "(cached) " >&6
9870 else
9871 lt_cv_prog_compiler_c_o=no
9872 $RM -r conftest 2>/dev/null
9873 mkdir conftest
9874 cd conftest
9875 mkdir out
9876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9877
9878 lt_compiler_flag="-o out/conftest2.$ac_objext"
9879 # Insert the option either (1) after the last *FLAGS variable, or
9880 # (2) before a word containing "conftest.", or (3) at the end.
9881 # Note that $ac_compile itself does not contain backslashes and begins
9882 # with a dollar sign (not a hyphen), so the echo should work correctly.
9883 lt_compile=`echo "$ac_compile" | $SED \
9884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9886 -e 's:$: $lt_compiler_flag:'`
9887 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9888 (eval "$lt_compile" 2>out/conftest.err)
9889 ac_status=$?
9890 cat out/conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9893 then
9894 # The compiler can only warn and ignore the option if not recognized
9895 # So say no if there are warnings
9896 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9897 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9898 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9899 lt_cv_prog_compiler_c_o=yes
9900 fi
9901 fi
9902 chmod u+w . 2>&5
9903 $RM conftest*
9904 # SGI C++ compiler will create directory out/ii_files/ for
9905 # template instantiation
9906 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9907 $RM out/* && rmdir out
9908 cd ..
9909 $RM -r conftest
9910 $RM conftest*
9911
9912 fi
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9914 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9915
9916
9917
9918
9919 hard_links=nottested
9920 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9921 # do not overwrite the value of need_locks provided by the user
9922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9923 $as_echo_n "checking if we can lock with hard links... " >&6; }
9924 hard_links=yes
9925 $RM conftest*
9926 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9927 touch conftest.a
9928 ln conftest.a conftest.b 2>&5 || hard_links=no
9929 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9931 $as_echo "$hard_links" >&6; }
9932 if test no = "$hard_links"; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9934 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9935 need_locks=warn
9936 fi
9937 else
9938 need_locks=no
9939 fi
9940
9941
9942
9943
9944
9945
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9947 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9948
9949 runpath_var=
9950 allow_undefined_flag=
9951 always_export_symbols=no
9952 archive_cmds=
9953 archive_expsym_cmds=
9954 compiler_needs_object=no
9955 enable_shared_with_static_runtimes=no
9956 export_dynamic_flag_spec=
9957 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9958 hardcode_automatic=no
9959 hardcode_direct=no
9960 hardcode_direct_absolute=no
9961 hardcode_libdir_flag_spec=
9962 hardcode_libdir_separator=
9963 hardcode_minus_L=no
9964 hardcode_shlibpath_var=unsupported
9965 inherit_rpath=no
9966 link_all_deplibs=unknown
9967 module_cmds=
9968 module_expsym_cmds=
9969 old_archive_from_new_cmds=
9970 old_archive_from_expsyms_cmds=
9971 thread_safe_flag_spec=
9972 whole_archive_flag_spec=
9973 # include_expsyms should be a list of space-separated symbols to be *always*
9974 # included in the symbol list
9975 include_expsyms=
9976 # exclude_expsyms can be an extended regexp of symbols to exclude
9977 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9978 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9979 # as well as any symbol that contains 'd'.
9980 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9981 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9982 # platforms (ab)use it in PIC code, but their linkers get confused if
9983 # the symbol is explicitly referenced. Since portable code cannot
9984 # rely on this symbol name, it's probably fine to never include it in
9985 # preloaded symbol tables.
9986 # Exclude shared library initialization/finalization symbols.
9987 extract_expsyms_cmds=
9988
9989 case $host_os in
9990 cygwin* | mingw* | pw32* | cegcc*)
9991 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9992 # When not using gcc, we currently assume that we are using
9993 # Microsoft Visual C++.
9994 if test yes != "$GCC"; then
9995 with_gnu_ld=no
9996 fi
9997 ;;
9998 interix*)
9999 # we just hope/assume this is gcc and not c89 (= MSVC++)
10000 with_gnu_ld=yes
10001 ;;
10002 openbsd* | bitrig*)
10003 with_gnu_ld=no
10004 ;;
10005 esac
10006
10007 ld_shlibs=yes
10008
10009 # On some targets, GNU ld is compatible enough with the native linker
10010 # that we're better off using the native interface for both.
10011 lt_use_gnu_ld_interface=no
10012 if test yes = "$with_gnu_ld"; then
10013 case $host_os in
10014 aix*)
10015 # The AIX port of GNU ld has always aspired to compatibility
10016 # with the native linker. However, as the warning in the GNU ld
10017 # block says, versions before 2.19.5* couldn't really create working
10018 # shared libraries, regardless of the interface used.
10019 case `$LD -v 2>&1` in
10020 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10021 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10022 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10023 *)
10024 lt_use_gnu_ld_interface=yes
10025 ;;
10026 esac
10027 ;;
10028 *)
10029 lt_use_gnu_ld_interface=yes
10030 ;;
10031 esac
10032 fi
10033
10034 if test yes = "$lt_use_gnu_ld_interface"; then
10035 # If archive_cmds runs LD, not CC, wlarc should be empty
10036 wlarc='$wl'
10037
10038 # Set some defaults for GNU ld with shared library support. These
10039 # are reset later if shared libraries are not supported. Putting them
10040 # here allows them to be overridden if necessary.
10041 runpath_var=LD_RUN_PATH
10042 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10043 export_dynamic_flag_spec='$wl--export-dynamic'
10044 # ancient GNU ld didn't support --whole-archive et. al.
10045 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10046 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10047 else
10048 whole_archive_flag_spec=
10049 fi
10050 supports_anon_versioning=no
10051 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10052 *GNU\ gold*) supports_anon_versioning=yes ;;
10053 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10054 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10055 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10056 *\ 2.11.*) ;; # other 2.11 versions
10057 *) supports_anon_versioning=yes ;;
10058 esac
10059
10060 # See if GNU ld supports shared libraries.
10061 case $host_os in
10062 aix[3-9]*)
10063 # On AIX/PPC, the GNU linker is very broken
10064 if test ia64 != "$host_cpu"; then
10065 ld_shlibs=no
10066 cat <<_LT_EOF 1>&2
10067
10068 *** Warning: the GNU linker, at least up to release 2.19, is reported
10069 *** to be unable to reliably create shared libraries on AIX.
10070 *** Therefore, libtool is disabling shared libraries support. If you
10071 *** really care for shared libraries, you may want to install binutils
10072 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10073 *** You will then need to restart the configuration process.
10074
10075 _LT_EOF
10076 fi
10077 ;;
10078
10079 amigaos*)
10080 case $host_cpu in
10081 powerpc)
10082 # see comment about AmigaOS4 .so support
10083 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10084 archive_expsym_cmds=''
10085 ;;
10086 m68k)
10087 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)'
10088 hardcode_libdir_flag_spec='-L$libdir'
10089 hardcode_minus_L=yes
10090 ;;
10091 esac
10092 ;;
10093
10094 beos*)
10095 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10096 allow_undefined_flag=unsupported
10097 # Joseph Beckenbach <[email protected]> says some releases of gcc
10098 # support --undefined. This deserves some investigation. FIXME
10099 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10100 else
10101 ld_shlibs=no
10102 fi
10103 ;;
10104
10105 cygwin* | mingw* | pw32* | cegcc*)
10106 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10107 # as there is no search path for DLLs.
10108 hardcode_libdir_flag_spec='-L$libdir'
10109 export_dynamic_flag_spec='$wl--export-all-symbols'
10110 allow_undefined_flag=unsupported
10111 always_export_symbols=no
10112 enable_shared_with_static_runtimes=yes
10113 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10114 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10115
10116 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10117 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10118 # If the export-symbols file already is a .def file, use it as
10119 # is; otherwise, prepend EXPORTS...
10120 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10121 cp $export_symbols $output_objdir/$soname.def;
10122 else
10123 echo EXPORTS > $output_objdir/$soname.def;
10124 cat $export_symbols >> $output_objdir/$soname.def;
10125 fi~
10126 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10127 else
10128 ld_shlibs=no
10129 fi
10130 ;;
10131
10132 haiku*)
10133 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10134 link_all_deplibs=yes
10135 ;;
10136
10137 os2*)
10138 hardcode_libdir_flag_spec='-L$libdir'
10139 hardcode_minus_L=yes
10140 allow_undefined_flag=unsupported
10141 shrext_cmds=.dll
10142 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10143 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10144 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10145 $ECHO EXPORTS >> $output_objdir/$libname.def~
10146 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10147 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10148 emximp -o $lib $output_objdir/$libname.def'
10149 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10150 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10151 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10152 $ECHO EXPORTS >> $output_objdir/$libname.def~
10153 prefix_cmds="$SED"~
10154 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10155 prefix_cmds="$prefix_cmds -e 1d";
10156 fi~
10157 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10158 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10159 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10160 emximp -o $lib $output_objdir/$libname.def'
10161 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10162 enable_shared_with_static_runtimes=yes
10163 ;;
10164
10165 interix[3-9]*)
10166 hardcode_direct=no
10167 hardcode_shlibpath_var=no
10168 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10169 export_dynamic_flag_spec='$wl-E'
10170 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10171 # Instead, shared libraries are loaded at an image base (0x10000000 by
10172 # default) and relocated if they conflict, which is a slow very memory
10173 # consuming and fragmenting process. To avoid this, we pick a random,
10174 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10175 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10176 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10177 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'
10178 ;;
10179
10180 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10181 tmp_diet=no
10182 if test linux-dietlibc = "$host_os"; then
10183 case $cc_basename in
10184 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10185 esac
10186 fi
10187 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10188 && test no = "$tmp_diet"
10189 then
10190 tmp_addflag=' $pic_flag'
10191 tmp_sharedflag='-shared'
10192 case $cc_basename,$host_cpu in
10193 pgcc*) # Portland Group C compiler
10194 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'
10195 tmp_addflag=' $pic_flag'
10196 ;;
10197 pgf77* | pgf90* | pgf95* | pgfortran*)
10198 # Portland Group f77 and f90 compilers
10199 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'
10200 tmp_addflag=' $pic_flag -Mnomain' ;;
10201 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10202 tmp_addflag=' -i_dynamic' ;;
10203 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10204 tmp_addflag=' -i_dynamic -nofor_main' ;;
10205 ifc* | ifort*) # Intel Fortran compiler
10206 tmp_addflag=' -nofor_main' ;;
10207 lf95*) # Lahey Fortran 8.1
10208 whole_archive_flag_spec=
10209 tmp_sharedflag='--shared' ;;
10210 nagfor*) # NAGFOR 5.3
10211 tmp_sharedflag='-Wl,-shared' ;;
10212 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10213 tmp_sharedflag='-qmkshrobj'
10214 tmp_addflag= ;;
10215 nvcc*) # Cuda Compiler Driver 2.2
10216 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'
10217 compiler_needs_object=yes
10218 ;;
10219 esac
10220 case `$CC -V 2>&1 | sed 5q` in
10221 *Sun\ C*) # Sun C 5.9
10222 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'
10223 compiler_needs_object=yes
10224 tmp_sharedflag='-G' ;;
10225 *Sun\ F*) # Sun Fortran 8.3
10226 tmp_sharedflag='-G' ;;
10227 esac
10228 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10229
10230 if test yes = "$supports_anon_versioning"; then
10231 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10232 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10233 echo "local: *; };" >> $output_objdir/$libname.ver~
10234 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10235 fi
10236
10237 case $cc_basename in
10238 tcc*)
10239 export_dynamic_flag_spec='-rdynamic'
10240 ;;
10241 xlf* | bgf* | bgxlf* | mpixlf*)
10242 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10243 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10244 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10245 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10246 if test yes = "$supports_anon_versioning"; then
10247 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10248 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10249 echo "local: *; };" >> $output_objdir/$libname.ver~
10250 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10251 fi
10252 ;;
10253 esac
10254 else
10255 ld_shlibs=no
10256 fi
10257 ;;
10258
10259 netbsd*)
10260 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10261 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10262 wlarc=
10263 else
10264 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10265 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10266 fi
10267 ;;
10268
10269 solaris*)
10270 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10271 ld_shlibs=no
10272 cat <<_LT_EOF 1>&2
10273
10274 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10275 *** create shared libraries on Solaris systems. Therefore, libtool
10276 *** is disabling shared libraries support. We urge you to upgrade GNU
10277 *** binutils to release 2.9.1 or newer. Another option is to modify
10278 *** your PATH or compiler configuration so that the native linker is
10279 *** used, and then restart.
10280
10281 _LT_EOF
10282 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10283 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10284 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10285 else
10286 ld_shlibs=no
10287 fi
10288 ;;
10289
10290 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10291 case `$LD -v 2>&1` in
10292 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10293 ld_shlibs=no
10294 cat <<_LT_EOF 1>&2
10295
10296 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10297 *** reliably create shared libraries on SCO systems. Therefore, libtool
10298 *** is disabling shared libraries support. We urge you to upgrade GNU
10299 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10300 *** your PATH or compiler configuration so that the native linker is
10301 *** used, and then restart.
10302
10303 _LT_EOF
10304 ;;
10305 *)
10306 # For security reasons, it is highly recommended that you always
10307 # use absolute paths for naming shared libraries, and exclude the
10308 # DT_RUNPATH tag from executables and libraries. But doing so
10309 # requires that you compile everything twice, which is a pain.
10310 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10311 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10312 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10313 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10314 else
10315 ld_shlibs=no
10316 fi
10317 ;;
10318 esac
10319 ;;
10320
10321 sunos4*)
10322 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10323 wlarc=
10324 hardcode_direct=yes
10325 hardcode_shlibpath_var=no
10326 ;;
10327
10328 *)
10329 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10330 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10331 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10332 else
10333 ld_shlibs=no
10334 fi
10335 ;;
10336 esac
10337
10338 if test no = "$ld_shlibs"; then
10339 runpath_var=
10340 hardcode_libdir_flag_spec=
10341 export_dynamic_flag_spec=
10342 whole_archive_flag_spec=
10343 fi
10344 else
10345 # PORTME fill in a description of your system's linker (not GNU ld)
10346 case $host_os in
10347 aix3*)
10348 allow_undefined_flag=unsupported
10349 always_export_symbols=yes
10350 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'
10351 # Note: this linker hardcodes the directories in LIBPATH if there
10352 # are no directories specified by -L.
10353 hardcode_minus_L=yes
10354 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10355 # Neither direct hardcoding nor static linking is supported with a
10356 # broken collect2.
10357 hardcode_direct=unsupported
10358 fi
10359 ;;
10360
10361 aix[4-9]*)
10362 if test ia64 = "$host_cpu"; then
10363 # On IA64, the linker does run time linking by default, so we don't
10364 # have to do anything special.
10365 aix_use_runtimelinking=no
10366 exp_sym_flag='-Bexport'
10367 no_entry_flag=
10368 else
10369 # If we're using GNU nm, then we don't want the "-C" option.
10370 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10371 # Without the "-l" option, or with the "-B" option, AIX nm treats
10372 # weak defined symbols like other global defined symbols, whereas
10373 # GNU nm marks them as "W".
10374 # While the 'weak' keyword is ignored in the Export File, we need
10375 # it in the Import File for the 'aix-soname' feature, so we have
10376 # to replace the "-B" option with "-P" for AIX nm.
10377 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10378 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10379 else
10380 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10381 fi
10382 aix_use_runtimelinking=no
10383
10384 # Test if we are trying to use run time linking or normal
10385 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10386 # have runtime linking enabled, and use it for executables.
10387 # For shared libraries, we enable/disable runtime linking
10388 # depending on the kind of the shared library created -
10389 # when "with_aix_soname,aix_use_runtimelinking" is:
10390 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10391 # "aix,yes" lib.so shared, rtl:yes, for executables
10392 # lib.a static archive
10393 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10394 # lib.a(lib.so.V) shared, rtl:no, for executables
10395 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10396 # lib.a(lib.so.V) shared, rtl:no
10397 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10398 # lib.a static archive
10399 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10400 for ld_flag in $LDFLAGS; do
10401 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10402 aix_use_runtimelinking=yes
10403 break
10404 fi
10405 done
10406 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10407 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10408 # so we don't have lib.a shared libs to link our executables.
10409 # We have to force runtime linking in this case.
10410 aix_use_runtimelinking=yes
10411 LDFLAGS="$LDFLAGS -Wl,-brtl"
10412 fi
10413 ;;
10414 esac
10415
10416 exp_sym_flag='-bexport'
10417 no_entry_flag='-bnoentry'
10418 fi
10419
10420 # When large executables or shared objects are built, AIX ld can
10421 # have problems creating the table of contents. If linking a library
10422 # or program results in "error TOC overflow" add -mminimal-toc to
10423 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10424 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10425
10426 archive_cmds=''
10427 hardcode_direct=yes
10428 hardcode_direct_absolute=yes
10429 hardcode_libdir_separator=':'
10430 link_all_deplibs=yes
10431 file_list_spec='$wl-f,'
10432 case $with_aix_soname,$aix_use_runtimelinking in
10433 aix,*) ;; # traditional, no import file
10434 svr4,* | *,yes) # use import file
10435 # The Import File defines what to hardcode.
10436 hardcode_direct=no
10437 hardcode_direct_absolute=no
10438 ;;
10439 esac
10440
10441 if test yes = "$GCC"; then
10442 case $host_os in aix4.[012]|aix4.[012].*)
10443 # We only want to do this on AIX 4.2 and lower, the check
10444 # below for broken collect2 doesn't work under 4.3+
10445 collect2name=`$CC -print-prog-name=collect2`
10446 if test -f "$collect2name" &&
10447 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10448 then
10449 # We have reworked collect2
10450 :
10451 else
10452 # We have old collect2
10453 hardcode_direct=unsupported
10454 # It fails to find uninstalled libraries when the uninstalled
10455 # path is not listed in the libpath. Setting hardcode_minus_L
10456 # to unsupported forces relinking
10457 hardcode_minus_L=yes
10458 hardcode_libdir_flag_spec='-L$libdir'
10459 hardcode_libdir_separator=
10460 fi
10461 ;;
10462 esac
10463 shared_flag='-shared'
10464 if test yes = "$aix_use_runtimelinking"; then
10465 shared_flag="$shared_flag "'$wl-G'
10466 fi
10467 # Need to ensure runtime linking is disabled for the traditional
10468 # shared library, or the linker may eventually find shared libraries
10469 # /with/ Import File - we do not want to mix them.
10470 shared_flag_aix='-shared'
10471 shared_flag_svr4='-shared $wl-G'
10472 else
10473 # not using gcc
10474 if test ia64 = "$host_cpu"; then
10475 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10476 # chokes on -Wl,-G. The following line is correct:
10477 shared_flag='-G'
10478 else
10479 if test yes = "$aix_use_runtimelinking"; then
10480 shared_flag='$wl-G'
10481 else
10482 shared_flag='$wl-bM:SRE'
10483 fi
10484 shared_flag_aix='$wl-bM:SRE'
10485 shared_flag_svr4='$wl-G'
10486 fi
10487 fi
10488
10489 export_dynamic_flag_spec='$wl-bexpall'
10490 # It seems that -bexpall does not export symbols beginning with
10491 # underscore (_), so it is better to generate a list of symbols to export.
10492 always_export_symbols=yes
10493 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10494 # Warning - without using the other runtime loading flags (-brtl),
10495 # -berok will link without error, but may produce a broken library.
10496 allow_undefined_flag='-berok'
10497 # Determine the default libpath from the value encoded in an
10498 # empty executable.
10499 if test set = "${lt_cv_aix_libpath+set}"; then
10500 aix_libpath=$lt_cv_aix_libpath
10501 else
10502 if ${lt_cv_aix_libpath_+:} false; then :
10503 $as_echo_n "(cached) " >&6
10504 else
10505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10506 /* end confdefs.h. */
10507
10508 int
10509 main ()
10510 {
10511
10512 ;
10513 return 0;
10514 }
10515 _ACEOF
10516 if ac_fn_c_try_link "$LINENO"; then :
10517
10518 lt_aix_libpath_sed='
10519 /Import File Strings/,/^$/ {
10520 /^0/ {
10521 s/^0 *\([^ ]*\) *$/\1/
10522 p
10523 }
10524 }'
10525 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10526 # Check for a 64-bit object if we didn't find anything.
10527 if test -z "$lt_cv_aix_libpath_"; then
10528 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10529 fi
10530 fi
10531 rm -f core conftest.err conftest.$ac_objext \
10532 conftest$ac_exeext conftest.$ac_ext
10533 if test -z "$lt_cv_aix_libpath_"; then
10534 lt_cv_aix_libpath_=/usr/lib:/lib
10535 fi
10536
10537 fi
10538
10539 aix_libpath=$lt_cv_aix_libpath_
10540 fi
10541
10542 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10543 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10544 else
10545 if test ia64 = "$host_cpu"; then
10546 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10547 allow_undefined_flag="-z nodefs"
10548 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"
10549 else
10550 # Determine the default libpath from the value encoded in an
10551 # empty executable.
10552 if test set = "${lt_cv_aix_libpath+set}"; then
10553 aix_libpath=$lt_cv_aix_libpath
10554 else
10555 if ${lt_cv_aix_libpath_+:} false; then :
10556 $as_echo_n "(cached) " >&6
10557 else
10558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10559 /* end confdefs.h. */
10560
10561 int
10562 main ()
10563 {
10564
10565 ;
10566 return 0;
10567 }
10568 _ACEOF
10569 if ac_fn_c_try_link "$LINENO"; then :
10570
10571 lt_aix_libpath_sed='
10572 /Import File Strings/,/^$/ {
10573 /^0/ {
10574 s/^0 *\([^ ]*\) *$/\1/
10575 p
10576 }
10577 }'
10578 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10579 # Check for a 64-bit object if we didn't find anything.
10580 if test -z "$lt_cv_aix_libpath_"; then
10581 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10582 fi
10583 fi
10584 rm -f core conftest.err conftest.$ac_objext \
10585 conftest$ac_exeext conftest.$ac_ext
10586 if test -z "$lt_cv_aix_libpath_"; then
10587 lt_cv_aix_libpath_=/usr/lib:/lib
10588 fi
10589
10590 fi
10591
10592 aix_libpath=$lt_cv_aix_libpath_
10593 fi
10594
10595 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10596 # Warning - without using the other run time loading flags,
10597 # -berok will link without error, but may produce a broken library.
10598 no_undefined_flag=' $wl-bernotok'
10599 allow_undefined_flag=' $wl-berok'
10600 if test yes = "$with_gnu_ld"; then
10601 # We only use this code for GNU lds that support --whole-archive.
10602 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10603 else
10604 # Exported symbols can be pulled into shared objects from archives
10605 whole_archive_flag_spec='$convenience'
10606 fi
10607 archive_cmds_need_lc=yes
10608 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10609 # -brtl affects multiple linker settings, -berok does not and is overridden later
10610 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10611 if test svr4 != "$with_aix_soname"; then
10612 # This is similar to how AIX traditionally builds its shared libraries.
10613 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
10614 fi
10615 if test aix != "$with_aix_soname"; then
10616 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
10617 else
10618 # used by -dlpreopen to get the symbols
10619 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10620 fi
10621 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10622 fi
10623 fi
10624 ;;
10625
10626 amigaos*)
10627 case $host_cpu in
10628 powerpc)
10629 # see comment about AmigaOS4 .so support
10630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10631 archive_expsym_cmds=''
10632 ;;
10633 m68k)
10634 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)'
10635 hardcode_libdir_flag_spec='-L$libdir'
10636 hardcode_minus_L=yes
10637 ;;
10638 esac
10639 ;;
10640
10641 bsdi[45]*)
10642 export_dynamic_flag_spec=-rdynamic
10643 ;;
10644
10645 cygwin* | mingw* | pw32* | cegcc*)
10646 # When not using gcc, we currently assume that we are using
10647 # Microsoft Visual C++.
10648 # hardcode_libdir_flag_spec is actually meaningless, as there is
10649 # no search path for DLLs.
10650 case $cc_basename in
10651 cl*)
10652 # Native MSVC
10653 hardcode_libdir_flag_spec=' '
10654 allow_undefined_flag=unsupported
10655 always_export_symbols=yes
10656 file_list_spec='@'
10657 # Tell ltmain to make .lib files, not .a files.
10658 libext=lib
10659 # Tell ltmain to make .dll files, not .so files.
10660 shrext_cmds=.dll
10661 # FIXME: Setting linknames here is a bad hack.
10662 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10663 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10664 cp "$export_symbols" "$output_objdir/$soname.def";
10665 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10666 else
10667 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10668 fi~
10669 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10670 linknames='
10671 # The linker will not automatically build a static lib if we build a DLL.
10672 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10673 enable_shared_with_static_runtimes=yes
10674 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10675 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10676 # Don't use ranlib
10677 old_postinstall_cmds='chmod 644 $oldlib'
10678 postlink_cmds='lt_outputfile="@OUTPUT@"~
10679 lt_tool_outputfile="@TOOL_OUTPUT@"~
10680 case $lt_outputfile in
10681 *.exe|*.EXE) ;;
10682 *)
10683 lt_outputfile=$lt_outputfile.exe
10684 lt_tool_outputfile=$lt_tool_outputfile.exe
10685 ;;
10686 esac~
10687 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10688 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10689 $RM "$lt_outputfile.manifest";
10690 fi'
10691 ;;
10692 *)
10693 # Assume MSVC wrapper
10694 hardcode_libdir_flag_spec=' '
10695 allow_undefined_flag=unsupported
10696 # Tell ltmain to make .lib files, not .a files.
10697 libext=lib
10698 # Tell ltmain to make .dll files, not .so files.
10699 shrext_cmds=.dll
10700 # FIXME: Setting linknames here is a bad hack.
10701 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10702 # The linker will automatically build a .lib file if we build a DLL.
10703 old_archive_from_new_cmds='true'
10704 # FIXME: Should let the user specify the lib program.
10705 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10706 enable_shared_with_static_runtimes=yes
10707 ;;
10708 esac
10709 ;;
10710
10711 darwin* | rhapsody*)
10712
10713
10714 archive_cmds_need_lc=no
10715 hardcode_direct=no
10716 hardcode_automatic=yes
10717 hardcode_shlibpath_var=unsupported
10718 if test yes = "$lt_cv_ld_force_load"; then
10719 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\"`'
10720
10721 else
10722 whole_archive_flag_spec=''
10723 fi
10724 link_all_deplibs=yes
10725 allow_undefined_flag=$_lt_dar_allow_undefined
10726 case $cc_basename in
10727 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10728 *) _lt_dar_can_shared=$GCC ;;
10729 esac
10730 if test yes = "$_lt_dar_can_shared"; then
10731 output_verbose_link_cmd=func_echo_all
10732 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10733 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10734 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"
10735 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"
10736
10737 else
10738 ld_shlibs=no
10739 fi
10740
10741 ;;
10742
10743 dgux*)
10744 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10745 hardcode_libdir_flag_spec='-L$libdir'
10746 hardcode_shlibpath_var=no
10747 ;;
10748
10749 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10750 # support. Future versions do this automatically, but an explicit c++rt0.o
10751 # does not break anything, and helps significantly (at the cost of a little
10752 # extra space).
10753 freebsd2.2*)
10754 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10755 hardcode_libdir_flag_spec='-R$libdir'
10756 hardcode_direct=yes
10757 hardcode_shlibpath_var=no
10758 ;;
10759
10760 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10761 freebsd2.*)
10762 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10763 hardcode_direct=yes
10764 hardcode_minus_L=yes
10765 hardcode_shlibpath_var=no
10766 ;;
10767
10768 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10769 freebsd* | dragonfly*)
10770 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10771 hardcode_libdir_flag_spec='-R$libdir'
10772 hardcode_direct=yes
10773 hardcode_shlibpath_var=no
10774 ;;
10775
10776 hpux9*)
10777 if test yes = "$GCC"; then
10778 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10779 else
10780 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10781 fi
10782 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10783 hardcode_libdir_separator=:
10784 hardcode_direct=yes
10785
10786 # hardcode_minus_L: Not really in the search PATH,
10787 # but as the default location of the library.
10788 hardcode_minus_L=yes
10789 export_dynamic_flag_spec='$wl-E'
10790 ;;
10791
10792 hpux10*)
10793 if test yes,no = "$GCC,$with_gnu_ld"; then
10794 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10795 else
10796 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10797 fi
10798 if test no = "$with_gnu_ld"; then
10799 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10800 hardcode_libdir_separator=:
10801 hardcode_direct=yes
10802 hardcode_direct_absolute=yes
10803 export_dynamic_flag_spec='$wl-E'
10804 # hardcode_minus_L: Not really in the search PATH,
10805 # but as the default location of the library.
10806 hardcode_minus_L=yes
10807 fi
10808 ;;
10809
10810 hpux11*)
10811 if test yes,no = "$GCC,$with_gnu_ld"; then
10812 case $host_cpu in
10813 hppa*64*)
10814 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10815 ;;
10816 ia64*)
10817 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10818 ;;
10819 *)
10820 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10821 ;;
10822 esac
10823 else
10824 case $host_cpu in
10825 hppa*64*)
10826 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10827 ;;
10828 ia64*)
10829 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10830 ;;
10831 *)
10832
10833 # Older versions of the 11.00 compiler do not understand -b yet
10834 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10836 $as_echo_n "checking if $CC understands -b... " >&6; }
10837 if ${lt_cv_prog_compiler__b+:} false; then :
10838 $as_echo_n "(cached) " >&6
10839 else
10840 lt_cv_prog_compiler__b=no
10841 save_LDFLAGS=$LDFLAGS
10842 LDFLAGS="$LDFLAGS -b"
10843 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10844 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10845 # The linker can only warn and ignore the option if not recognized
10846 # So say no if there are warnings
10847 if test -s conftest.err; then
10848 # Append any errors to the config.log.
10849 cat conftest.err 1>&5
10850 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10852 if diff conftest.exp conftest.er2 >/dev/null; then
10853 lt_cv_prog_compiler__b=yes
10854 fi
10855 else
10856 lt_cv_prog_compiler__b=yes
10857 fi
10858 fi
10859 $RM -r conftest*
10860 LDFLAGS=$save_LDFLAGS
10861
10862 fi
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10864 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10865
10866 if test yes = "$lt_cv_prog_compiler__b"; then
10867 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10868 else
10869 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10870 fi
10871
10872 ;;
10873 esac
10874 fi
10875 if test no = "$with_gnu_ld"; then
10876 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10877 hardcode_libdir_separator=:
10878
10879 case $host_cpu in
10880 hppa*64*|ia64*)
10881 hardcode_direct=no
10882 hardcode_shlibpath_var=no
10883 ;;
10884 *)
10885 hardcode_direct=yes
10886 hardcode_direct_absolute=yes
10887 export_dynamic_flag_spec='$wl-E'
10888
10889 # hardcode_minus_L: Not really in the search PATH,
10890 # but as the default location of the library.
10891 hardcode_minus_L=yes
10892 ;;
10893 esac
10894 fi
10895 ;;
10896
10897 irix5* | irix6* | nonstopux*)
10898 if test yes = "$GCC"; then
10899 archive_cmds='$CC -shared $pic_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'
10900 # Try to use the -exported_symbol ld option, if it does not
10901 # work, assume that -exports_file does not work either and
10902 # implicitly export all symbols.
10903 # This should be the same for all languages, so no per-tag cache variable.
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10905 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10906 if ${lt_cv_irix_exported_symbol+:} false; then :
10907 $as_echo_n "(cached) " >&6
10908 else
10909 save_LDFLAGS=$LDFLAGS
10910 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10912 /* end confdefs.h. */
10913 int foo (void) { return 0; }
10914 _ACEOF
10915 if ac_fn_c_try_link "$LINENO"; then :
10916 lt_cv_irix_exported_symbol=yes
10917 else
10918 lt_cv_irix_exported_symbol=no
10919 fi
10920 rm -f core conftest.err conftest.$ac_objext \
10921 conftest$ac_exeext conftest.$ac_ext
10922 LDFLAGS=$save_LDFLAGS
10923 fi
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10925 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10926 if test yes = "$lt_cv_irix_exported_symbol"; then
10927 archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
10928 fi
10929 else
10930 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'
10931 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'
10932 fi
10933 archive_cmds_need_lc='no'
10934 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10935 hardcode_libdir_separator=:
10936 inherit_rpath=yes
10937 link_all_deplibs=yes
10938 ;;
10939
10940 linux*)
10941 case $cc_basename in
10942 tcc*)
10943 # Fabrice Bellard et al's Tiny C Compiler
10944 ld_shlibs=yes
10945 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10946 ;;
10947 esac
10948 ;;
10949
10950 netbsd*)
10951 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10952 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10953 else
10954 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10955 fi
10956 hardcode_libdir_flag_spec='-R$libdir'
10957 hardcode_direct=yes
10958 hardcode_shlibpath_var=no
10959 ;;
10960
10961 newsos6)
10962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10963 hardcode_direct=yes
10964 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10965 hardcode_libdir_separator=:
10966 hardcode_shlibpath_var=no
10967 ;;
10968
10969 *nto* | *qnx*)
10970 ;;
10971
10972 openbsd* | bitrig*)
10973 if test -f /usr/libexec/ld.so; then
10974 hardcode_direct=yes
10975 hardcode_shlibpath_var=no
10976 hardcode_direct_absolute=yes
10977 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10978 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10979 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10980 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10981 export_dynamic_flag_spec='$wl-E'
10982 else
10983 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10984 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10985 fi
10986 else
10987 ld_shlibs=no
10988 fi
10989 ;;
10990
10991 os2*)
10992 hardcode_libdir_flag_spec='-L$libdir'
10993 hardcode_minus_L=yes
10994 allow_undefined_flag=unsupported
10995 shrext_cmds=.dll
10996 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10997 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10998 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10999 $ECHO EXPORTS >> $output_objdir/$libname.def~
11000 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11001 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11002 emximp -o $lib $output_objdir/$libname.def'
11003 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11004 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11005 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11006 $ECHO EXPORTS >> $output_objdir/$libname.def~
11007 prefix_cmds="$SED"~
11008 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11009 prefix_cmds="$prefix_cmds -e 1d";
11010 fi~
11011 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11012 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11013 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11014 emximp -o $lib $output_objdir/$libname.def'
11015 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11016 enable_shared_with_static_runtimes=yes
11017 ;;
11018
11019 osf3*)
11020 if test yes = "$GCC"; then
11021 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11022 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'
11023 else
11024 allow_undefined_flag=' -expect_unresolved \*'
11025 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'
11026 fi
11027 archive_cmds_need_lc='no'
11028 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11029 hardcode_libdir_separator=:
11030 ;;
11031
11032 osf4* | osf5*) # as osf3* with the addition of -msym flag
11033 if test yes = "$GCC"; then
11034 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11035 archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
11036 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11037 else
11038 allow_undefined_flag=' -expect_unresolved \*'
11039 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'
11040 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~
11041 $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'
11042
11043 # Both c and cxx compiler support -rpath directly
11044 hardcode_libdir_flag_spec='-rpath $libdir'
11045 fi
11046 archive_cmds_need_lc='no'
11047 hardcode_libdir_separator=:
11048 ;;
11049
11050 solaris*)
11051 no_undefined_flag=' -z defs'
11052 if test yes = "$GCC"; then
11053 wlarc='$wl'
11054 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11055 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11056 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11057 else
11058 case `$CC -V 2>&1` in
11059 *"Compilers 5.0"*)
11060 wlarc=''
11061 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11062 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11063 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11064 ;;
11065 *)
11066 wlarc='$wl'
11067 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11068 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11069 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11070 ;;
11071 esac
11072 fi
11073 hardcode_libdir_flag_spec='-R$libdir'
11074 hardcode_shlibpath_var=no
11075 case $host_os in
11076 solaris2.[0-5] | solaris2.[0-5].*) ;;
11077 *)
11078 # The compiler driver will combine and reorder linker options,
11079 # but understands '-z linker_flag'. GCC discards it without '$wl',
11080 # but is careful enough not to reorder.
11081 # Supported since Solaris 2.6 (maybe 2.5.1?)
11082 if test yes = "$GCC"; then
11083 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11084 else
11085 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11086 fi
11087 ;;
11088 esac
11089 link_all_deplibs=yes
11090 ;;
11091
11092 sunos4*)
11093 if test sequent = "$host_vendor"; then
11094 # Use $CC to link under sequent, because it throws in some extra .o
11095 # files that make .init and .fini sections work.
11096 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11097 else
11098 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11099 fi
11100 hardcode_libdir_flag_spec='-L$libdir'
11101 hardcode_direct=yes
11102 hardcode_minus_L=yes
11103 hardcode_shlibpath_var=no
11104 ;;
11105
11106 sysv4)
11107 case $host_vendor in
11108 sni)
11109 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11110 hardcode_direct=yes # is this really true???
11111 ;;
11112 siemens)
11113 ## LD is ld it makes a PLAMLIB
11114 ## CC just makes a GrossModule.
11115 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11116 reload_cmds='$CC -r -o $output$reload_objs'
11117 hardcode_direct=no
11118 ;;
11119 motorola)
11120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11121 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11122 ;;
11123 esac
11124 runpath_var='LD_RUN_PATH'
11125 hardcode_shlibpath_var=no
11126 ;;
11127
11128 sysv4.3*)
11129 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11130 hardcode_shlibpath_var=no
11131 export_dynamic_flag_spec='-Bexport'
11132 ;;
11133
11134 sysv4*MP*)
11135 if test -d /usr/nec; then
11136 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11137 hardcode_shlibpath_var=no
11138 runpath_var=LD_RUN_PATH
11139 hardcode_runpath_var=yes
11140 ld_shlibs=yes
11141 fi
11142 ;;
11143
11144 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11145 no_undefined_flag='$wl-z,text'
11146 archive_cmds_need_lc=no
11147 hardcode_shlibpath_var=no
11148 runpath_var='LD_RUN_PATH'
11149
11150 if test yes = "$GCC"; then
11151 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11152 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11153 else
11154 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11155 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11156 fi
11157 ;;
11158
11159 sysv5* | sco3.2v5* | sco5v6*)
11160 # Note: We CANNOT use -z defs as we might desire, because we do not
11161 # link with -lc, and that would cause any symbols used from libc to
11162 # always be unresolved, which means just about no library would
11163 # ever link correctly. If we're not using GNU ld we use -z text
11164 # though, which does catch some bad symbols but isn't as heavy-handed
11165 # as -z defs.
11166 no_undefined_flag='$wl-z,text'
11167 allow_undefined_flag='$wl-z,nodefs'
11168 archive_cmds_need_lc=no
11169 hardcode_shlibpath_var=no
11170 hardcode_libdir_flag_spec='$wl-R,$libdir'
11171 hardcode_libdir_separator=':'
11172 link_all_deplibs=yes
11173 export_dynamic_flag_spec='$wl-Bexport'
11174 runpath_var='LD_RUN_PATH'
11175
11176 if test yes = "$GCC"; then
11177 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11178 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11179 else
11180 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11181 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11182 fi
11183 ;;
11184
11185 uts4*)
11186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11187 hardcode_libdir_flag_spec='-L$libdir'
11188 hardcode_shlibpath_var=no
11189 ;;
11190
11191 *)
11192 ld_shlibs=no
11193 ;;
11194 esac
11195
11196 if test sni = "$host_vendor"; then
11197 case $host in
11198 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11199 export_dynamic_flag_spec='$wl-Blargedynsym'
11200 ;;
11201 esac
11202 fi
11203 fi
11204
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11206 $as_echo "$ld_shlibs" >&6; }
11207 test no = "$ld_shlibs" && can_build_shared=no
11208
11209 with_gnu_ld=$with_gnu_ld
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225 #
11226 # Do we need to explicitly link libc?
11227 #
11228 case "x$archive_cmds_need_lc" in
11229 x|xyes)
11230 # Assume -lc should be added
11231 archive_cmds_need_lc=yes
11232
11233 if test yes,yes = "$GCC,$enable_shared"; then
11234 case $archive_cmds in
11235 *'~'*)
11236 # FIXME: we may have to deal with multi-command sequences.
11237 ;;
11238 '$CC '*)
11239 # Test whether the compiler implicitly links with -lc since on some
11240 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11241 # to ld, don't add -lc before -lgcc.
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11243 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11244 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11245 $as_echo_n "(cached) " >&6
11246 else
11247 $RM conftest*
11248 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11249
11250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11251 (eval $ac_compile) 2>&5
11252 ac_status=$?
11253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11254 test $ac_status = 0; } 2>conftest.err; then
11255 soname=conftest
11256 lib=conftest
11257 libobjs=conftest.$ac_objext
11258 deplibs=
11259 wl=$lt_prog_compiler_wl
11260 pic_flag=$lt_prog_compiler_pic
11261 compiler_flags=-v
11262 linker_flags=-v
11263 verstring=
11264 output_objdir=.
11265 libname=conftest
11266 lt_save_allow_undefined_flag=$allow_undefined_flag
11267 allow_undefined_flag=
11268 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11269 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11270 ac_status=$?
11271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11272 test $ac_status = 0; }
11273 then
11274 lt_cv_archive_cmds_need_lc=no
11275 else
11276 lt_cv_archive_cmds_need_lc=yes
11277 fi
11278 allow_undefined_flag=$lt_save_allow_undefined_flag
11279 else
11280 cat conftest.err 1>&5
11281 fi
11282 $RM conftest*
11283
11284 fi
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11286 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11287 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11288 ;;
11289 esac
11290 fi
11291 ;;
11292 esac
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11446 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11447
11448 if test yes = "$GCC"; then
11449 case $host_os in
11450 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11451 *) lt_awk_arg='/^libraries:/' ;;
11452 esac
11453 case $host_os in
11454 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11455 *) lt_sed_strip_eq='s|=/|/|g' ;;
11456 esac
11457 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11458 case $lt_search_path_spec in
11459 *\;*)
11460 # if the path contains ";" then we assume it to be the separator
11461 # otherwise default to the standard path separator (i.e. ":") - it is
11462 # assumed that no part of a normal pathname contains ";" but that should
11463 # okay in the real world where ";" in dirpaths is itself problematic.
11464 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11465 ;;
11466 *)
11467 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11468 ;;
11469 esac
11470 # Ok, now we have the path, separated by spaces, we can step through it
11471 # and add multilib dir if necessary...
11472 lt_tmp_lt_search_path_spec=
11473 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11474 # ...but if some path component already ends with the multilib dir we assume
11475 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11476 case "$lt_multi_os_dir; $lt_search_path_spec " in
11477 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11478 lt_multi_os_dir=
11479 ;;
11480 esac
11481 for lt_sys_path in $lt_search_path_spec; do
11482 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11483 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11484 elif test -n "$lt_multi_os_dir"; then
11485 test -d "$lt_sys_path" && \
11486 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11487 fi
11488 done
11489 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11490 BEGIN {RS = " "; FS = "/|\n";} {
11491 lt_foo = "";
11492 lt_count = 0;
11493 for (lt_i = NF; lt_i > 0; lt_i--) {
11494 if ($lt_i != "" && $lt_i != ".") {
11495 if ($lt_i == "..") {
11496 lt_count++;
11497 } else {
11498 if (lt_count == 0) {
11499 lt_foo = "/" $lt_i lt_foo;
11500 } else {
11501 lt_count--;
11502 }
11503 }
11504 }
11505 }
11506 if (lt_foo != "") { lt_freq[lt_foo]++; }
11507 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11508 }'`
11509 # AWK program above erroneously prepends '/' to C:/dos/paths
11510 # for these hosts.
11511 case $host_os in
11512 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11513 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11514 esac
11515 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11516 else
11517 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11518 fi
11519 library_names_spec=
11520 libname_spec='lib$name'
11521 soname_spec=
11522 shrext_cmds=.so
11523 postinstall_cmds=
11524 postuninstall_cmds=
11525 finish_cmds=
11526 finish_eval=
11527 shlibpath_var=
11528 shlibpath_overrides_runpath=unknown
11529 version_type=none
11530 dynamic_linker="$host_os ld.so"
11531 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11532 need_lib_prefix=unknown
11533 hardcode_into_libs=no
11534
11535 # when you set need_version to no, make sure it does not cause -set_version
11536 # flags to be left without arguments
11537 need_version=unknown
11538
11539
11540
11541 case $host_os in
11542 aix3*)
11543 version_type=linux # correct to gnu/linux during the next big refactor
11544 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11545 shlibpath_var=LIBPATH
11546
11547 # AIX 3 has no versioning support, so we append a major version to the name.
11548 soname_spec='$libname$release$shared_ext$major'
11549 ;;
11550
11551 aix[4-9]*)
11552 version_type=linux # correct to gnu/linux during the next big refactor
11553 need_lib_prefix=no
11554 need_version=no
11555 hardcode_into_libs=yes
11556 if test ia64 = "$host_cpu"; then
11557 # AIX 5 supports IA64
11558 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11559 shlibpath_var=LD_LIBRARY_PATH
11560 else
11561 # With GCC up to 2.95.x, collect2 would create an import file
11562 # for dependence libraries. The import file would start with
11563 # the line '#! .'. This would cause the generated library to
11564 # depend on '.', always an invalid library. This was fixed in
11565 # development snapshots of GCC prior to 3.0.
11566 case $host_os in
11567 aix4 | aix4.[01] | aix4.[01].*)
11568 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11569 echo ' yes '
11570 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11571 :
11572 else
11573 can_build_shared=no
11574 fi
11575 ;;
11576 esac
11577 # Using Import Files as archive members, it is possible to support
11578 # filename-based versioning of shared library archives on AIX. While
11579 # this would work for both with and without runtime linking, it will
11580 # prevent static linking of such archives. So we do filename-based
11581 # shared library versioning with .so extension only, which is used
11582 # when both runtime linking and shared linking is enabled.
11583 # Unfortunately, runtime linking may impact performance, so we do
11584 # not want this to be the default eventually. Also, we use the
11585 # versioned .so libs for executables only if there is the -brtl
11586 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11587 # To allow for filename-based versioning support, we need to create
11588 # libNAME.so.V as an archive file, containing:
11589 # *) an Import File, referring to the versioned filename of the
11590 # archive as well as the shared archive member, telling the
11591 # bitwidth (32 or 64) of that shared object, and providing the
11592 # list of exported symbols of that shared object, eventually
11593 # decorated with the 'weak' keyword
11594 # *) the shared object with the F_LOADONLY flag set, to really avoid
11595 # it being seen by the linker.
11596 # At run time we better use the real file rather than another symlink,
11597 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11598
11599 case $with_aix_soname,$aix_use_runtimelinking in
11600 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11601 # soname into executable. Probably we can add versioning support to
11602 # collect2, so additional links can be useful in future.
11603 aix,yes) # traditional libtool
11604 dynamic_linker='AIX unversionable lib.so'
11605 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11606 # instead of lib<name>.a to let people know that these are not
11607 # typical AIX shared libraries.
11608 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11609 ;;
11610 aix,no) # traditional AIX only
11611 dynamic_linker='AIX lib.a(lib.so.V)'
11612 # We preserve .a as extension for shared libraries through AIX4.2
11613 # and later when we are not doing run time linking.
11614 library_names_spec='$libname$release.a $libname.a'
11615 soname_spec='$libname$release$shared_ext$major'
11616 ;;
11617 svr4,*) # full svr4 only
11618 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11619 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11620 # We do not specify a path in Import Files, so LIBPATH fires.
11621 shlibpath_overrides_runpath=yes
11622 ;;
11623 *,yes) # both, prefer svr4
11624 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11625 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11626 # unpreferred sharedlib libNAME.a needs extra handling
11627 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11628 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11629 # We do not specify a path in Import Files, so LIBPATH fires.
11630 shlibpath_overrides_runpath=yes
11631 ;;
11632 *,no) # both, prefer aix
11633 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11634 library_names_spec='$libname$release.a $libname.a'
11635 soname_spec='$libname$release$shared_ext$major'
11636 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11637 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11638 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11639 ;;
11640 esac
11641 shlibpath_var=LIBPATH
11642 fi
11643 ;;
11644
11645 amigaos*)
11646 case $host_cpu in
11647 powerpc)
11648 # Since July 2007 AmigaOS4 officially supports .so libraries.
11649 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11650 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11651 ;;
11652 m68k)
11653 library_names_spec='$libname.ixlibrary $libname.a'
11654 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11655 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11656 ;;
11657 esac
11658 ;;
11659
11660 beos*)
11661 library_names_spec='$libname$shared_ext'
11662 dynamic_linker="$host_os ld.so"
11663 shlibpath_var=LIBRARY_PATH
11664 ;;
11665
11666 bsdi[45]*)
11667 version_type=linux # correct to gnu/linux during the next big refactor
11668 need_version=no
11669 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11670 soname_spec='$libname$release$shared_ext$major'
11671 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11672 shlibpath_var=LD_LIBRARY_PATH
11673 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11674 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11675 # the default ld.so.conf also contains /usr/contrib/lib and
11676 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11677 # libtool to hard-code these into programs
11678 ;;
11679
11680 cygwin* | mingw* | pw32* | cegcc*)
11681 version_type=windows
11682 shrext_cmds=.dll
11683 need_version=no
11684 need_lib_prefix=no
11685
11686 case $GCC,$cc_basename in
11687 yes,*)
11688 # gcc
11689 library_names_spec='$libname.dll.a'
11690 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11691 postinstall_cmds='base_file=`basename \$file`~
11692 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11693 dldir=$destdir/`dirname \$dlpath`~
11694 test -d \$dldir || mkdir -p \$dldir~
11695 $install_prog $dir/$dlname \$dldir/$dlname~
11696 chmod a+x \$dldir/$dlname~
11697 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11698 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11699 fi'
11700 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11701 dlpath=$dir/\$dldll~
11702 $RM \$dlpath'
11703 shlibpath_overrides_runpath=yes
11704
11705 case $host_os in
11706 cygwin*)
11707 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11708 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11709
11710 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11711 ;;
11712 mingw* | cegcc*)
11713 # MinGW DLLs use traditional 'lib' prefix
11714 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11715 ;;
11716 pw32*)
11717 # pw32 DLLs use 'pw' prefix rather than 'lib'
11718 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11719 ;;
11720 esac
11721 dynamic_linker='Win32 ld.exe'
11722 ;;
11723
11724 *,cl*)
11725 # Native MSVC
11726 libname_spec='$name'
11727 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11728 library_names_spec='$libname.dll.lib'
11729
11730 case $build_os in
11731 mingw*)
11732 sys_lib_search_path_spec=
11733 lt_save_ifs=$IFS
11734 IFS=';'
11735 for lt_path in $LIB
11736 do
11737 IFS=$lt_save_ifs
11738 # Let DOS variable expansion print the short 8.3 style file name.
11739 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11740 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11741 done
11742 IFS=$lt_save_ifs
11743 # Convert to MSYS style.
11744 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11745 ;;
11746 cygwin*)
11747 # Convert to unix form, then to dos form, then back to unix form
11748 # but this time dos style (no spaces!) so that the unix form looks
11749 # like /cygdrive/c/PROGRA~1:/cygdr...
11750 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11751 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11752 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11753 ;;
11754 *)
11755 sys_lib_search_path_spec=$LIB
11756 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11757 # It is most probably a Windows format PATH.
11758 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11759 else
11760 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11761 fi
11762 # FIXME: find the short name or the path components, as spaces are
11763 # common. (e.g. "Program Files" -> "PROGRA~1")
11764 ;;
11765 esac
11766
11767 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11768 postinstall_cmds='base_file=`basename \$file`~
11769 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11770 dldir=$destdir/`dirname \$dlpath`~
11771 test -d \$dldir || mkdir -p \$dldir~
11772 $install_prog $dir/$dlname \$dldir/$dlname'
11773 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11774 dlpath=$dir/\$dldll~
11775 $RM \$dlpath'
11776 shlibpath_overrides_runpath=yes
11777 dynamic_linker='Win32 link.exe'
11778 ;;
11779
11780 *)
11781 # Assume MSVC wrapper
11782 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11783 dynamic_linker='Win32 ld.exe'
11784 ;;
11785 esac
11786 # FIXME: first we should search . and the directory the executable is in
11787 shlibpath_var=PATH
11788 ;;
11789
11790 darwin* | rhapsody*)
11791 dynamic_linker="$host_os dyld"
11792 version_type=darwin
11793 need_lib_prefix=no
11794 need_version=no
11795 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11796 soname_spec='$libname$release$major$shared_ext'
11797 shlibpath_overrides_runpath=yes
11798 shlibpath_var=DYLD_LIBRARY_PATH
11799 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11800
11801 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11802 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11803 ;;
11804
11805 dgux*)
11806 version_type=linux # correct to gnu/linux during the next big refactor
11807 need_lib_prefix=no
11808 need_version=no
11809 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11810 soname_spec='$libname$release$shared_ext$major'
11811 shlibpath_var=LD_LIBRARY_PATH
11812 ;;
11813
11814 freebsd* | dragonfly*)
11815 # DragonFly does not have aout. When/if they implement a new
11816 # versioning mechanism, adjust this.
11817 if test -x /usr/bin/objformat; then
11818 objformat=`/usr/bin/objformat`
11819 else
11820 case $host_os in
11821 freebsd[23].*) objformat=aout ;;
11822 *) objformat=elf ;;
11823 esac
11824 fi
11825 version_type=freebsd-$objformat
11826 case $version_type in
11827 freebsd-elf*)
11828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11829 soname_spec='$libname$release$shared_ext$major'
11830 need_version=no
11831 need_lib_prefix=no
11832 ;;
11833 freebsd-*)
11834 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11835 need_version=yes
11836 ;;
11837 esac
11838 shlibpath_var=LD_LIBRARY_PATH
11839 case $host_os in
11840 freebsd2.*)
11841 shlibpath_overrides_runpath=yes
11842 ;;
11843 freebsd3.[01]* | freebsdelf3.[01]*)
11844 shlibpath_overrides_runpath=yes
11845 hardcode_into_libs=yes
11846 ;;
11847 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11848 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11849 shlibpath_overrides_runpath=no
11850 hardcode_into_libs=yes
11851 ;;
11852 *) # from 4.6 on, and DragonFly
11853 shlibpath_overrides_runpath=yes
11854 hardcode_into_libs=yes
11855 ;;
11856 esac
11857 ;;
11858
11859 haiku*)
11860 version_type=linux # correct to gnu/linux during the next big refactor
11861 need_lib_prefix=no
11862 need_version=no
11863 dynamic_linker="$host_os runtime_loader"
11864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11865 soname_spec='$libname$release$shared_ext$major'
11866 shlibpath_var=LIBRARY_PATH
11867 shlibpath_overrides_runpath=no
11868 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11869 hardcode_into_libs=yes
11870 ;;
11871
11872 hpux9* | hpux10* | hpux11*)
11873 # Give a soname corresponding to the major version so that dld.sl refuses to
11874 # link against other versions.
11875 version_type=sunos
11876 need_lib_prefix=no
11877 need_version=no
11878 case $host_cpu in
11879 ia64*)
11880 shrext_cmds='.so'
11881 hardcode_into_libs=yes
11882 dynamic_linker="$host_os dld.so"
11883 shlibpath_var=LD_LIBRARY_PATH
11884 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11885 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11886 soname_spec='$libname$release$shared_ext$major'
11887 if test 32 = "$HPUX_IA64_MODE"; then
11888 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11889 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11890 else
11891 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11892 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11893 fi
11894 ;;
11895 hppa*64*)
11896 shrext_cmds='.sl'
11897 hardcode_into_libs=yes
11898 dynamic_linker="$host_os dld.sl"
11899 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11900 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11901 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11902 soname_spec='$libname$release$shared_ext$major'
11903 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11904 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11905 ;;
11906 *)
11907 shrext_cmds='.sl'
11908 dynamic_linker="$host_os dld.sl"
11909 shlibpath_var=SHLIB_PATH
11910 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11911 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11912 soname_spec='$libname$release$shared_ext$major'
11913 ;;
11914 esac
11915 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11916 postinstall_cmds='chmod 555 $lib'
11917 # or fails outright, so override atomically:
11918 install_override_mode=555
11919 ;;
11920
11921 interix[3-9]*)
11922 version_type=linux # correct to gnu/linux during the next big refactor
11923 need_lib_prefix=no
11924 need_version=no
11925 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11926 soname_spec='$libname$release$shared_ext$major'
11927 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11928 shlibpath_var=LD_LIBRARY_PATH
11929 shlibpath_overrides_runpath=no
11930 hardcode_into_libs=yes
11931 ;;
11932
11933 irix5* | irix6* | nonstopux*)
11934 case $host_os in
11935 nonstopux*) version_type=nonstopux ;;
11936 *)
11937 if test yes = "$lt_cv_prog_gnu_ld"; then
11938 version_type=linux # correct to gnu/linux during the next big refactor
11939 else
11940 version_type=irix
11941 fi ;;
11942 esac
11943 need_lib_prefix=no
11944 need_version=no
11945 soname_spec='$libname$release$shared_ext$major'
11946 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11947 case $host_os in
11948 irix5* | nonstopux*)
11949 libsuff= shlibsuff=
11950 ;;
11951 *)
11952 case $LD in # libtool.m4 will add one of these switches to LD
11953 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11954 libsuff= shlibsuff= libmagic=32-bit;;
11955 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11956 libsuff=32 shlibsuff=N32 libmagic=N32;;
11957 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11958 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11959 *) libsuff= shlibsuff= libmagic=never-match;;
11960 esac
11961 ;;
11962 esac
11963 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11964 shlibpath_overrides_runpath=no
11965 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11966 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11967 hardcode_into_libs=yes
11968 ;;
11969
11970 # No shared lib support for Linux oldld, aout, or coff.
11971 linux*oldld* | linux*aout* | linux*coff*)
11972 dynamic_linker=no
11973 ;;
11974
11975 linux*android*)
11976 version_type=none # Android doesn't support versioned libraries.
11977 need_lib_prefix=no
11978 need_version=no
11979 library_names_spec='$libname$release$shared_ext'
11980 soname_spec='$libname$release$shared_ext'
11981 finish_cmds=
11982 shlibpath_var=LD_LIBRARY_PATH
11983 shlibpath_overrides_runpath=yes
11984
11985 # This implies no fast_install, which is unacceptable.
11986 # Some rework will be needed to allow for fast_install
11987 # before this can be enabled.
11988 hardcode_into_libs=yes
11989
11990 dynamic_linker='Android linker'
11991 # Don't embed -rpath directories since the linker doesn't support them.
11992 hardcode_libdir_flag_spec='-L$libdir'
11993 ;;
11994
11995 # This must be glibc/ELF.
11996 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11997 version_type=linux # correct to gnu/linux during the next big refactor
11998 need_lib_prefix=no
11999 need_version=no
12000 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12001 soname_spec='$libname$release$shared_ext$major'
12002 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12003 shlibpath_var=LD_LIBRARY_PATH
12004 shlibpath_overrides_runpath=no
12005
12006 # Some binutils ld are patched to set DT_RUNPATH
12007 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12008 $as_echo_n "(cached) " >&6
12009 else
12010 lt_cv_shlibpath_overrides_runpath=no
12011 save_LDFLAGS=$LDFLAGS
12012 save_libdir=$libdir
12013 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12014 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12016 /* end confdefs.h. */
12017
12018 int
12019 main ()
12020 {
12021
12022 ;
12023 return 0;
12024 }
12025 _ACEOF
12026 if ac_fn_c_try_link "$LINENO"; then :
12027 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12028 lt_cv_shlibpath_overrides_runpath=yes
12029 fi
12030 fi
12031 rm -f core conftest.err conftest.$ac_objext \
12032 conftest$ac_exeext conftest.$ac_ext
12033 LDFLAGS=$save_LDFLAGS
12034 libdir=$save_libdir
12035
12036 fi
12037
12038 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12039
12040 # This implies no fast_install, which is unacceptable.
12041 # Some rework will be needed to allow for fast_install
12042 # before this can be enabled.
12043 hardcode_into_libs=yes
12044
12045 # Add ABI-specific directories to the system library path.
12046 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12047
12048 # Ideally, we could use ldconfig to report *all* directores which are
12049 # searched for libraries, however this is still not possible. Aside from not
12050 # being certain /sbin/ldconfig is available, command
12051 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12052 # even though it is searched at run-time. Try to do the best guess by
12053 # appending ld.so.conf contents (and includes) to the search path.
12054 if test -f /etc/ld.so.conf; then
12055 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' ' '`
12056 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12057 fi
12058
12059 # We used to test for /lib/ld.so.1 and disable shared libraries on
12060 # powerpc, because MkLinux only supported shared libraries with the
12061 # GNU dynamic linker. Since this was broken with cross compilers,
12062 # most powerpc-linux boxes support dynamic linking these days and
12063 # people can always --disable-shared, the test was removed, and we
12064 # assume the GNU/Linux dynamic linker is in use.
12065 dynamic_linker='GNU/Linux ld.so'
12066 ;;
12067
12068 netbsd*)
12069 version_type=sunos
12070 need_lib_prefix=no
12071 need_version=no
12072 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12073 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12074 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12075 dynamic_linker='NetBSD (a.out) ld.so'
12076 else
12077 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12078 soname_spec='$libname$release$shared_ext$major'
12079 dynamic_linker='NetBSD ld.elf_so'
12080 fi
12081 shlibpath_var=LD_LIBRARY_PATH
12082 shlibpath_overrides_runpath=yes
12083 hardcode_into_libs=yes
12084 ;;
12085
12086 newsos6)
12087 version_type=linux # correct to gnu/linux during the next big refactor
12088 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12089 shlibpath_var=LD_LIBRARY_PATH
12090 shlibpath_overrides_runpath=yes
12091 ;;
12092
12093 *nto* | *qnx*)
12094 version_type=qnx
12095 need_lib_prefix=no
12096 need_version=no
12097 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12098 soname_spec='$libname$release$shared_ext$major'
12099 shlibpath_var=LD_LIBRARY_PATH
12100 shlibpath_overrides_runpath=no
12101 hardcode_into_libs=yes
12102 dynamic_linker='ldqnx.so'
12103 ;;
12104
12105 openbsd* | bitrig*)
12106 version_type=sunos
12107 sys_lib_dlsearch_path_spec=/usr/lib
12108 need_lib_prefix=no
12109 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12110 need_version=no
12111 else
12112 need_version=yes
12113 fi
12114 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12116 shlibpath_var=LD_LIBRARY_PATH
12117 shlibpath_overrides_runpath=yes
12118 ;;
12119
12120 os2*)
12121 libname_spec='$name'
12122 version_type=windows
12123 shrext_cmds=.dll
12124 need_version=no
12125 need_lib_prefix=no
12126 # OS/2 can only load a DLL with a base name of 8 characters or less.
12127 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12128 v=$($ECHO $release$versuffix | tr -d .-);
12129 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12130 $ECHO $n$v`$shared_ext'
12131 library_names_spec='${libname}_dll.$libext'
12132 dynamic_linker='OS/2 ld.exe'
12133 shlibpath_var=BEGINLIBPATH
12134 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12136 postinstall_cmds='base_file=`basename \$file`~
12137 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12138 dldir=$destdir/`dirname \$dlpath`~
12139 test -d \$dldir || mkdir -p \$dldir~
12140 $install_prog $dir/$dlname \$dldir/$dlname~
12141 chmod a+x \$dldir/$dlname~
12142 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12143 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12144 fi'
12145 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12146 dlpath=$dir/\$dldll~
12147 $RM \$dlpath'
12148 ;;
12149
12150 osf3* | osf4* | osf5*)
12151 version_type=osf
12152 need_lib_prefix=no
12153 need_version=no
12154 soname_spec='$libname$release$shared_ext$major'
12155 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12156 shlibpath_var=LD_LIBRARY_PATH
12157 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12158 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12159 ;;
12160
12161 rdos*)
12162 dynamic_linker=no
12163 ;;
12164
12165 solaris*)
12166 version_type=linux # correct to gnu/linux during the next big refactor
12167 need_lib_prefix=no
12168 need_version=no
12169 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12170 soname_spec='$libname$release$shared_ext$major'
12171 shlibpath_var=LD_LIBRARY_PATH
12172 shlibpath_overrides_runpath=yes
12173 hardcode_into_libs=yes
12174 # ldd complains unless libraries are executable
12175 postinstall_cmds='chmod +x $lib'
12176 ;;
12177
12178 sunos4*)
12179 version_type=sunos
12180 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12181 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12182 shlibpath_var=LD_LIBRARY_PATH
12183 shlibpath_overrides_runpath=yes
12184 if test yes = "$with_gnu_ld"; then
12185 need_lib_prefix=no
12186 fi
12187 need_version=yes
12188 ;;
12189
12190 sysv4 | sysv4.3*)
12191 version_type=linux # correct to gnu/linux during the next big refactor
12192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12193 soname_spec='$libname$release$shared_ext$major'
12194 shlibpath_var=LD_LIBRARY_PATH
12195 case $host_vendor in
12196 sni)
12197 shlibpath_overrides_runpath=no
12198 need_lib_prefix=no
12199 runpath_var=LD_RUN_PATH
12200 ;;
12201 siemens)
12202 need_lib_prefix=no
12203 ;;
12204 motorola)
12205 need_lib_prefix=no
12206 need_version=no
12207 shlibpath_overrides_runpath=no
12208 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12209 ;;
12210 esac
12211 ;;
12212
12213 sysv4*MP*)
12214 if test -d /usr/nec; then
12215 version_type=linux # correct to gnu/linux during the next big refactor
12216 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12217 soname_spec='$libname$shared_ext.$major'
12218 shlibpath_var=LD_LIBRARY_PATH
12219 fi
12220 ;;
12221
12222 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12223 version_type=sco
12224 need_lib_prefix=no
12225 need_version=no
12226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12227 soname_spec='$libname$release$shared_ext$major'
12228 shlibpath_var=LD_LIBRARY_PATH
12229 shlibpath_overrides_runpath=yes
12230 hardcode_into_libs=yes
12231 if test yes = "$with_gnu_ld"; then
12232 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12233 else
12234 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12235 case $host_os in
12236 sco3.2v5*)
12237 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12238 ;;
12239 esac
12240 fi
12241 sys_lib_dlsearch_path_spec='/usr/lib'
12242 ;;
12243
12244 tpf*)
12245 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12246 version_type=linux # correct to gnu/linux during the next big refactor
12247 need_lib_prefix=no
12248 need_version=no
12249 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12250 shlibpath_var=LD_LIBRARY_PATH
12251 shlibpath_overrides_runpath=no
12252 hardcode_into_libs=yes
12253 ;;
12254
12255 uts4*)
12256 version_type=linux # correct to gnu/linux during the next big refactor
12257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12258 soname_spec='$libname$release$shared_ext$major'
12259 shlibpath_var=LD_LIBRARY_PATH
12260 ;;
12261
12262 *)
12263 dynamic_linker=no
12264 ;;
12265 esac
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12267 $as_echo "$dynamic_linker" >&6; }
12268 test no = "$dynamic_linker" && can_build_shared=no
12269
12270 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12271 if test yes = "$GCC"; then
12272 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12273 fi
12274
12275 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12276 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12277 fi
12278
12279 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12280 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12281 fi
12282
12283 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12284 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12285
12286 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12287 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12288
12289 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12290 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12389 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12390 hardcode_action=
12391 if test -n "$hardcode_libdir_flag_spec" ||
12392 test -n "$runpath_var" ||
12393 test yes = "$hardcode_automatic"; then
12394
12395 # We can hardcode non-existent directories.
12396 if test no != "$hardcode_direct" &&
12397 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12398 # have to relink, otherwise we might link with an installed library
12399 # when we should be linking with a yet-to-be-installed one
12400 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12401 test no != "$hardcode_minus_L"; then
12402 # Linking always hardcodes the temporary library directory.
12403 hardcode_action=relink
12404 else
12405 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12406 hardcode_action=immediate
12407 fi
12408 else
12409 # We cannot hardcode anything, or else we can only hardcode existing
12410 # directories.
12411 hardcode_action=unsupported
12412 fi
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12414 $as_echo "$hardcode_action" >&6; }
12415
12416 if test relink = "$hardcode_action" ||
12417 test yes = "$inherit_rpath"; then
12418 # Fast installation is not supported
12419 enable_fast_install=no
12420 elif test yes = "$shlibpath_overrides_runpath" ||
12421 test no = "$enable_shared"; then
12422 # Fast installation is not necessary
12423 enable_fast_install=needless
12424 fi
12425
12426
12427
12428
12429
12430
12431 if test yes != "$enable_dlopen"; then
12432 enable_dlopen=unknown
12433 enable_dlopen_self=unknown
12434 enable_dlopen_self_static=unknown
12435 else
12436 lt_cv_dlopen=no
12437 lt_cv_dlopen_libs=
12438
12439 case $host_os in
12440 beos*)
12441 lt_cv_dlopen=load_add_on
12442 lt_cv_dlopen_libs=
12443 lt_cv_dlopen_self=yes
12444 ;;
12445
12446 mingw* | pw32* | cegcc*)
12447 lt_cv_dlopen=LoadLibrary
12448 lt_cv_dlopen_libs=
12449 ;;
12450
12451 cygwin*)
12452 lt_cv_dlopen=dlopen
12453 lt_cv_dlopen_libs=
12454 ;;
12455
12456 darwin*)
12457 # if libdl is installed we need to link against it
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12459 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12460 if ${ac_cv_lib_dl_dlopen+:} false; then :
12461 $as_echo_n "(cached) " >&6
12462 else
12463 ac_check_lib_save_LIBS=$LIBS
12464 LIBS="-ldl $LIBS"
12465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12466 /* end confdefs.h. */
12467
12468 /* Override any GCC internal prototype to avoid an error.
12469 Use char because int might match the return type of a GCC
12470 builtin and then its argument prototype would still apply. */
12471 #ifdef __cplusplus
12472 extern "C"
12473 #endif
12474 char dlopen ();
12475 int
12476 main ()
12477 {
12478 return dlopen ();
12479 ;
12480 return 0;
12481 }
12482 _ACEOF
12483 if ac_fn_c_try_link "$LINENO"; then :
12484 ac_cv_lib_dl_dlopen=yes
12485 else
12486 ac_cv_lib_dl_dlopen=no
12487 fi
12488 rm -f core conftest.err conftest.$ac_objext \
12489 conftest$ac_exeext conftest.$ac_ext
12490 LIBS=$ac_check_lib_save_LIBS
12491 fi
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12493 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12494 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12495 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12496 else
12497
12498 lt_cv_dlopen=dyld
12499 lt_cv_dlopen_libs=
12500 lt_cv_dlopen_self=yes
12501
12502 fi
12503
12504 ;;
12505
12506 tpf*)
12507 # Don't try to run any link tests for TPF. We know it's impossible
12508 # because TPF is a cross-compiler, and we know how we open DSOs.
12509 lt_cv_dlopen=dlopen
12510 lt_cv_dlopen_libs=
12511 lt_cv_dlopen_self=no
12512 ;;
12513
12514 *)
12515 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12516 if test "x$ac_cv_func_shl_load" = xyes; then :
12517 lt_cv_dlopen=shl_load
12518 else
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12520 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12521 if ${ac_cv_lib_dld_shl_load+:} false; then :
12522 $as_echo_n "(cached) " >&6
12523 else
12524 ac_check_lib_save_LIBS=$LIBS
12525 LIBS="-ldld $LIBS"
12526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12528
12529 /* Override any GCC internal prototype to avoid an error.
12530 Use char because int might match the return type of a GCC
12531 builtin and then its argument prototype would still apply. */
12532 #ifdef __cplusplus
12533 extern "C"
12534 #endif
12535 char shl_load ();
12536 int
12537 main ()
12538 {
12539 return shl_load ();
12540 ;
12541 return 0;
12542 }
12543 _ACEOF
12544 if ac_fn_c_try_link "$LINENO"; then :
12545 ac_cv_lib_dld_shl_load=yes
12546 else
12547 ac_cv_lib_dld_shl_load=no
12548 fi
12549 rm -f core conftest.err conftest.$ac_objext \
12550 conftest$ac_exeext conftest.$ac_ext
12551 LIBS=$ac_check_lib_save_LIBS
12552 fi
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12554 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12555 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12556 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12557 else
12558 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12559 if test "x$ac_cv_func_dlopen" = xyes; then :
12560 lt_cv_dlopen=dlopen
12561 else
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12563 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12564 if ${ac_cv_lib_dl_dlopen+:} false; then :
12565 $as_echo_n "(cached) " >&6
12566 else
12567 ac_check_lib_save_LIBS=$LIBS
12568 LIBS="-ldl $LIBS"
12569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h. */
12571
12572 /* Override any GCC internal prototype to avoid an error.
12573 Use char because int might match the return type of a GCC
12574 builtin and then its argument prototype would still apply. */
12575 #ifdef __cplusplus
12576 extern "C"
12577 #endif
12578 char dlopen ();
12579 int
12580 main ()
12581 {
12582 return dlopen ();
12583 ;
12584 return 0;
12585 }
12586 _ACEOF
12587 if ac_fn_c_try_link "$LINENO"; then :
12588 ac_cv_lib_dl_dlopen=yes
12589 else
12590 ac_cv_lib_dl_dlopen=no
12591 fi
12592 rm -f core conftest.err conftest.$ac_objext \
12593 conftest$ac_exeext conftest.$ac_ext
12594 LIBS=$ac_check_lib_save_LIBS
12595 fi
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12597 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12598 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12599 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12600 else
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12602 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12603 if ${ac_cv_lib_svld_dlopen+:} false; then :
12604 $as_echo_n "(cached) " >&6
12605 else
12606 ac_check_lib_save_LIBS=$LIBS
12607 LIBS="-lsvld $LIBS"
12608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12609 /* end confdefs.h. */
12610
12611 /* Override any GCC internal prototype to avoid an error.
12612 Use char because int might match the return type of a GCC
12613 builtin and then its argument prototype would still apply. */
12614 #ifdef __cplusplus
12615 extern "C"
12616 #endif
12617 char dlopen ();
12618 int
12619 main ()
12620 {
12621 return dlopen ();
12622 ;
12623 return 0;
12624 }
12625 _ACEOF
12626 if ac_fn_c_try_link "$LINENO"; then :
12627 ac_cv_lib_svld_dlopen=yes
12628 else
12629 ac_cv_lib_svld_dlopen=no
12630 fi
12631 rm -f core conftest.err conftest.$ac_objext \
12632 conftest$ac_exeext conftest.$ac_ext
12633 LIBS=$ac_check_lib_save_LIBS
12634 fi
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12636 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12637 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12638 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12639 else
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12641 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12642 if ${ac_cv_lib_dld_dld_link+:} false; then :
12643 $as_echo_n "(cached) " >&6
12644 else
12645 ac_check_lib_save_LIBS=$LIBS
12646 LIBS="-ldld $LIBS"
12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648 /* end confdefs.h. */
12649
12650 /* Override any GCC internal prototype to avoid an error.
12651 Use char because int might match the return type of a GCC
12652 builtin and then its argument prototype would still apply. */
12653 #ifdef __cplusplus
12654 extern "C"
12655 #endif
12656 char dld_link ();
12657 int
12658 main ()
12659 {
12660 return dld_link ();
12661 ;
12662 return 0;
12663 }
12664 _ACEOF
12665 if ac_fn_c_try_link "$LINENO"; then :
12666 ac_cv_lib_dld_dld_link=yes
12667 else
12668 ac_cv_lib_dld_dld_link=no
12669 fi
12670 rm -f core conftest.err conftest.$ac_objext \
12671 conftest$ac_exeext conftest.$ac_ext
12672 LIBS=$ac_check_lib_save_LIBS
12673 fi
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12675 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12676 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12677 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12678 fi
12679
12680
12681 fi
12682
12683
12684 fi
12685
12686
12687 fi
12688
12689
12690 fi
12691
12692
12693 fi
12694
12695 ;;
12696 esac
12697
12698 if test no = "$lt_cv_dlopen"; then
12699 enable_dlopen=no
12700 else
12701 enable_dlopen=yes
12702 fi
12703
12704 case $lt_cv_dlopen in
12705 dlopen)
12706 save_CPPFLAGS=$CPPFLAGS
12707 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12708
12709 save_LDFLAGS=$LDFLAGS
12710 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12711
12712 save_LIBS=$LIBS
12713 LIBS="$lt_cv_dlopen_libs $LIBS"
12714
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12716 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12717 if ${lt_cv_dlopen_self+:} false; then :
12718 $as_echo_n "(cached) " >&6
12719 else
12720 if test yes = "$cross_compiling"; then :
12721 lt_cv_dlopen_self=cross
12722 else
12723 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12724 lt_status=$lt_dlunknown
12725 cat > conftest.$ac_ext <<_LT_EOF
12726 #line $LINENO "configure"
12727 #include "confdefs.h"
12728
12729 #if HAVE_DLFCN_H
12730 #include <dlfcn.h>
12731 #endif
12732
12733 #include <stdio.h>
12734
12735 #ifdef RTLD_GLOBAL
12736 # define LT_DLGLOBAL RTLD_GLOBAL
12737 #else
12738 # ifdef DL_GLOBAL
12739 # define LT_DLGLOBAL DL_GLOBAL
12740 # else
12741 # define LT_DLGLOBAL 0
12742 # endif
12743 #endif
12744
12745 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12746 find out it does not work in some platform. */
12747 #ifndef LT_DLLAZY_OR_NOW
12748 # ifdef RTLD_LAZY
12749 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12750 # else
12751 # ifdef DL_LAZY
12752 # define LT_DLLAZY_OR_NOW DL_LAZY
12753 # else
12754 # ifdef RTLD_NOW
12755 # define LT_DLLAZY_OR_NOW RTLD_NOW
12756 # else
12757 # ifdef DL_NOW
12758 # define LT_DLLAZY_OR_NOW DL_NOW
12759 # else
12760 # define LT_DLLAZY_OR_NOW 0
12761 # endif
12762 # endif
12763 # endif
12764 # endif
12765 #endif
12766
12767 /* When -fvisibility=hidden is used, assume the code has been annotated
12768 correspondingly for the symbols needed. */
12769 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12770 int fnord () __attribute__((visibility("default")));
12771 #endif
12772
12773 int fnord () { return 42; }
12774 int main ()
12775 {
12776 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12777 int status = $lt_dlunknown;
12778
12779 if (self)
12780 {
12781 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12782 else
12783 {
12784 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12785 else puts (dlerror ());
12786 }
12787 /* dlclose (self); */
12788 }
12789 else
12790 puts (dlerror ());
12791
12792 return status;
12793 }
12794 _LT_EOF
12795 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12796 (eval $ac_link) 2>&5
12797 ac_status=$?
12798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12799 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12800 (./conftest; exit; ) >&5 2>/dev/null
12801 lt_status=$?
12802 case x$lt_status in
12803 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12804 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12805 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12806 esac
12807 else :
12808 # compilation failed
12809 lt_cv_dlopen_self=no
12810 fi
12811 fi
12812 rm -fr conftest*
12813
12814
12815 fi
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12817 $as_echo "$lt_cv_dlopen_self" >&6; }
12818
12819 if test yes = "$lt_cv_dlopen_self"; then
12820 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12822 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12823 if ${lt_cv_dlopen_self_static+:} false; then :
12824 $as_echo_n "(cached) " >&6
12825 else
12826 if test yes = "$cross_compiling"; then :
12827 lt_cv_dlopen_self_static=cross
12828 else
12829 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12830 lt_status=$lt_dlunknown
12831 cat > conftest.$ac_ext <<_LT_EOF
12832 #line $LINENO "configure"
12833 #include "confdefs.h"
12834
12835 #if HAVE_DLFCN_H
12836 #include <dlfcn.h>
12837 #endif
12838
12839 #include <stdio.h>
12840
12841 #ifdef RTLD_GLOBAL
12842 # define LT_DLGLOBAL RTLD_GLOBAL
12843 #else
12844 # ifdef DL_GLOBAL
12845 # define LT_DLGLOBAL DL_GLOBAL
12846 # else
12847 # define LT_DLGLOBAL 0
12848 # endif
12849 #endif
12850
12851 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12852 find out it does not work in some platform. */
12853 #ifndef LT_DLLAZY_OR_NOW
12854 # ifdef RTLD_LAZY
12855 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12856 # else
12857 # ifdef DL_LAZY
12858 # define LT_DLLAZY_OR_NOW DL_LAZY
12859 # else
12860 # ifdef RTLD_NOW
12861 # define LT_DLLAZY_OR_NOW RTLD_NOW
12862 # else
12863 # ifdef DL_NOW
12864 # define LT_DLLAZY_OR_NOW DL_NOW
12865 # else
12866 # define LT_DLLAZY_OR_NOW 0
12867 # endif
12868 # endif
12869 # endif
12870 # endif
12871 #endif
12872
12873 /* When -fvisibility=hidden is used, assume the code has been annotated
12874 correspondingly for the symbols needed. */
12875 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12876 int fnord () __attribute__((visibility("default")));
12877 #endif
12878
12879 int fnord () { return 42; }
12880 int main ()
12881 {
12882 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12883 int status = $lt_dlunknown;
12884
12885 if (self)
12886 {
12887 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12888 else
12889 {
12890 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12891 else puts (dlerror ());
12892 }
12893 /* dlclose (self); */
12894 }
12895 else
12896 puts (dlerror ());
12897
12898 return status;
12899 }
12900 _LT_EOF
12901 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12902 (eval $ac_link) 2>&5
12903 ac_status=$?
12904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12905 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12906 (./conftest; exit; ) >&5 2>/dev/null
12907 lt_status=$?
12908 case x$lt_status in
12909 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12910 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12911 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12912 esac
12913 else :
12914 # compilation failed
12915 lt_cv_dlopen_self_static=no
12916 fi
12917 fi
12918 rm -fr conftest*
12919
12920
12921 fi
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12923 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12924 fi
12925
12926 CPPFLAGS=$save_CPPFLAGS
12927 LDFLAGS=$save_LDFLAGS
12928 LIBS=$save_LIBS
12929 ;;
12930 esac
12931
12932 case $lt_cv_dlopen_self in
12933 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12934 *) enable_dlopen_self=unknown ;;
12935 esac
12936
12937 case $lt_cv_dlopen_self_static in
12938 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12939 *) enable_dlopen_self_static=unknown ;;
12940 esac
12941 fi
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959 striplib=
12960 old_striplib=
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12962 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12963 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12964 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12965 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12967 $as_echo "yes" >&6; }
12968 else
12969 # FIXME - insert some real tests, host_os isn't really good enough
12970 case $host_os in
12971 darwin*)
12972 if test -n "$STRIP"; then
12973 striplib="$STRIP -x"
12974 old_striplib="$STRIP -S"
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12976 $as_echo "yes" >&6; }
12977 else
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12979 $as_echo "no" >&6; }
12980 fi
12981 ;;
12982 *)
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12984 $as_echo "no" >&6; }
12985 ;;
12986 esac
12987 fi
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000 # Report what library types will actually be built
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13002 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13004 $as_echo "$can_build_shared" >&6; }
13005
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13007 $as_echo_n "checking whether to build shared libraries... " >&6; }
13008 test no = "$can_build_shared" && enable_shared=no
13009
13010 # On AIX, shared libraries and static libraries use the same namespace, and
13011 # are all built from PIC.
13012 case $host_os in
13013 aix3*)
13014 test yes = "$enable_shared" && enable_static=no
13015 if test -n "$RANLIB"; then
13016 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13017 postinstall_cmds='$RANLIB $lib'
13018 fi
13019 ;;
13020
13021 aix[4-9]*)
13022 if test ia64 != "$host_cpu"; then
13023 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13024 yes,aix,yes) ;; # shared object as lib.so file only
13025 yes,svr4,*) ;; # shared object as lib.so archive member only
13026 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13027 esac
13028 fi
13029 ;;
13030 esac
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13032 $as_echo "$enable_shared" >&6; }
13033
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13035 $as_echo_n "checking whether to build static libraries... " >&6; }
13036 # Make sure either enable_shared or enable_static is yes.
13037 test yes = "$enable_shared" || enable_static=yes
13038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13039 $as_echo "$enable_static" >&6; }
13040
13041
13042
13043
13044 fi
13045 ac_ext=c
13046 ac_cpp='$CPP $CPPFLAGS'
13047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13050
13051 CC=$lt_save_CC
13052
13053 if test -n "$CXX" && ( test no != "$CXX" &&
13054 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
13055 (test g++ != "$CXX"))); then
13056 ac_ext=cpp
13057 ac_cpp='$CXXCPP $CPPFLAGS'
13058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13062 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13063 if test -z "$CXXCPP"; then
13064 if ${ac_cv_prog_CXXCPP+:} false; then :
13065 $as_echo_n "(cached) " >&6
13066 else
13067 # Double quotes because CXXCPP needs to be expanded
13068 for CXXCPP in "$CXX -E" "/lib/cpp"
13069 do
13070 ac_preproc_ok=false
13071 for ac_cxx_preproc_warn_flag in '' yes
13072 do
13073 # Use a header file that comes with gcc, so configuring glibc
13074 # with a fresh cross-compiler works.
13075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13076 # <limits.h> exists even on freestanding compilers.
13077 # On the NeXT, cc -E runs the code through the compiler's parser,
13078 # not just through cpp. "Syntax error" is here to catch this case.
13079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13080 /* end confdefs.h. */
13081 #ifdef __STDC__
13082 # include <limits.h>
13083 #else
13084 # include <assert.h>
13085 #endif
13086 Syntax error
13087 _ACEOF
13088 if ac_fn_cxx_try_cpp "$LINENO"; then :
13089
13090 else
13091 # Broken: fails on valid input.
13092 continue
13093 fi
13094 rm -f conftest.err conftest.i conftest.$ac_ext
13095
13096 # OK, works on sane cases. Now check whether nonexistent headers
13097 # can be detected and how.
13098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13099 /* end confdefs.h. */
13100 #include <ac_nonexistent.h>
13101 _ACEOF
13102 if ac_fn_cxx_try_cpp "$LINENO"; then :
13103 # Broken: success on invalid input.
13104 continue
13105 else
13106 # Passes both tests.
13107 ac_preproc_ok=:
13108 break
13109 fi
13110 rm -f conftest.err conftest.i conftest.$ac_ext
13111
13112 done
13113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13114 rm -f conftest.i conftest.err conftest.$ac_ext
13115 if $ac_preproc_ok; then :
13116 break
13117 fi
13118
13119 done
13120 ac_cv_prog_CXXCPP=$CXXCPP
13121
13122 fi
13123 CXXCPP=$ac_cv_prog_CXXCPP
13124 else
13125 ac_cv_prog_CXXCPP=$CXXCPP
13126 fi
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13128 $as_echo "$CXXCPP" >&6; }
13129 ac_preproc_ok=false
13130 for ac_cxx_preproc_warn_flag in '' yes
13131 do
13132 # Use a header file that comes with gcc, so configuring glibc
13133 # with a fresh cross-compiler works.
13134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13135 # <limits.h> exists even on freestanding compilers.
13136 # On the NeXT, cc -E runs the code through the compiler's parser,
13137 # not just through cpp. "Syntax error" is here to catch this case.
13138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13139 /* end confdefs.h. */
13140 #ifdef __STDC__
13141 # include <limits.h>
13142 #else
13143 # include <assert.h>
13144 #endif
13145 Syntax error
13146 _ACEOF
13147 if ac_fn_cxx_try_cpp "$LINENO"; then :
13148
13149 else
13150 # Broken: fails on valid input.
13151 continue
13152 fi
13153 rm -f conftest.err conftest.i conftest.$ac_ext
13154
13155 # OK, works on sane cases. Now check whether nonexistent headers
13156 # can be detected and how.
13157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158 /* end confdefs.h. */
13159 #include <ac_nonexistent.h>
13160 _ACEOF
13161 if ac_fn_cxx_try_cpp "$LINENO"; then :
13162 # Broken: success on invalid input.
13163 continue
13164 else
13165 # Passes both tests.
13166 ac_preproc_ok=:
13167 break
13168 fi
13169 rm -f conftest.err conftest.i conftest.$ac_ext
13170
13171 done
13172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13173 rm -f conftest.i conftest.err conftest.$ac_ext
13174 if $ac_preproc_ok; then :
13175
13176 else
13177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13179 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13180 See \`config.log' for more details" "$LINENO" 5; }
13181 fi
13182
13183 ac_ext=c
13184 ac_cpp='$CPP $CPPFLAGS'
13185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13188
13189 else
13190 _lt_caught_CXX_error=yes
13191 fi
13192
13193 ac_ext=cpp
13194 ac_cpp='$CXXCPP $CPPFLAGS'
13195 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13196 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13197 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13198
13199 archive_cmds_need_lc_CXX=no
13200 allow_undefined_flag_CXX=
13201 always_export_symbols_CXX=no
13202 archive_expsym_cmds_CXX=
13203 compiler_needs_object_CXX=no
13204 export_dynamic_flag_spec_CXX=
13205 hardcode_direct_CXX=no
13206 hardcode_direct_absolute_CXX=no
13207 hardcode_libdir_flag_spec_CXX=
13208 hardcode_libdir_separator_CXX=
13209 hardcode_minus_L_CXX=no
13210 hardcode_shlibpath_var_CXX=unsupported
13211 hardcode_automatic_CXX=no
13212 inherit_rpath_CXX=no
13213 module_cmds_CXX=
13214 module_expsym_cmds_CXX=
13215 link_all_deplibs_CXX=unknown
13216 old_archive_cmds_CXX=$old_archive_cmds
13217 reload_flag_CXX=$reload_flag
13218 reload_cmds_CXX=$reload_cmds
13219 no_undefined_flag_CXX=
13220 whole_archive_flag_spec_CXX=
13221 enable_shared_with_static_runtimes_CXX=no
13222
13223 # Source file extension for C++ test sources.
13224 ac_ext=cpp
13225
13226 # Object file extension for compiled C++ test sources.
13227 objext=o
13228 objext_CXX=$objext
13229
13230 # No sense in running all these tests if we already determined that
13231 # the CXX compiler isn't working. Some variables (like enable_shared)
13232 # are currently assumed to apply to all compilers on this platform,
13233 # and will be corrupted by setting them based on a non-working compiler.
13234 if test yes != "$_lt_caught_CXX_error"; then
13235 # Code to be used in simple compile tests
13236 lt_simple_compile_test_code="int some_variable = 0;"
13237
13238 # Code to be used in simple link tests
13239 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13240
13241 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13242
13243
13244
13245
13246
13247
13248 # If no C compiler was specified, use CC.
13249 LTCC=${LTCC-"$CC"}
13250
13251 # If no C compiler flags were specified, use CFLAGS.
13252 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13253
13254 # Allow CC to be a program name with arguments.
13255 compiler=$CC
13256
13257
13258 # save warnings/boilerplate of simple test code
13259 ac_outfile=conftest.$ac_objext
13260 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13261 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13262 _lt_compiler_boilerplate=`cat conftest.err`
13263 $RM conftest*
13264
13265 ac_outfile=conftest.$ac_objext
13266 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13267 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13268 _lt_linker_boilerplate=`cat conftest.err`
13269 $RM -r conftest*
13270
13271
13272 # Allow CC to be a program name with arguments.
13273 lt_save_CC=$CC
13274 lt_save_CFLAGS=$CFLAGS
13275 lt_save_LD=$LD
13276 lt_save_GCC=$GCC
13277 GCC=$GXX
13278 lt_save_with_gnu_ld=$with_gnu_ld
13279 lt_save_path_LD=$lt_cv_path_LD
13280 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13281 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13282 else
13283 $as_unset lt_cv_prog_gnu_ld
13284 fi
13285 if test -n "${lt_cv_path_LDCXX+set}"; then
13286 lt_cv_path_LD=$lt_cv_path_LDCXX
13287 else
13288 $as_unset lt_cv_path_LD
13289 fi
13290 test -z "${LDCXX+set}" || LD=$LDCXX
13291 CC=${CXX-"c++"}
13292 CFLAGS=$CXXFLAGS
13293 compiler=$CC
13294 compiler_CXX=$CC
13295 func_cc_basename $compiler
13296 cc_basename=$func_cc_basename_result
13297
13298
13299 if test -n "$compiler"; then
13300 # We don't want -fno-exception when compiling C++ code, so set the
13301 # no_builtin_flag separately
13302 if test yes = "$GXX"; then
13303 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13304 else
13305 lt_prog_compiler_no_builtin_flag_CXX=
13306 fi
13307
13308 if test yes = "$GXX"; then
13309 # Set up default GNU C++ configuration
13310
13311
13312
13313 # Check whether --with-gnu-ld was given.
13314 if test "${with_gnu_ld+set}" = set; then :
13315 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
13316 else
13317 with_gnu_ld=no
13318 fi
13319
13320 ac_prog=ld
13321 if test yes = "$GCC"; then
13322 # Check if gcc -print-prog-name=ld gives a path.
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13324 $as_echo_n "checking for ld used by $CC... " >&6; }
13325 case $host in
13326 *-*-mingw*)
13327 # gcc leaves a trailing carriage return, which upsets mingw
13328 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13329 *)
13330 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13331 esac
13332 case $ac_prog in
13333 # Accept absolute paths.
13334 [\\/]* | ?:[\\/]*)
13335 re_direlt='/[^/][^/]*/\.\./'
13336 # Canonicalize the pathname of ld
13337 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13338 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13339 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13340 done
13341 test -z "$LD" && LD=$ac_prog
13342 ;;
13343 "")
13344 # If it fails, then pretend we aren't using GCC.
13345 ac_prog=ld
13346 ;;
13347 *)
13348 # If it is relative, then search for the first ld in PATH.
13349 with_gnu_ld=unknown
13350 ;;
13351 esac
13352 elif test yes = "$with_gnu_ld"; then
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13354 $as_echo_n "checking for GNU ld... " >&6; }
13355 else
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13357 $as_echo_n "checking for non-GNU ld... " >&6; }
13358 fi
13359 if ${lt_cv_path_LD+:} false; then :
13360 $as_echo_n "(cached) " >&6
13361 else
13362 if test -z "$LD"; then
13363 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
13364 for ac_dir in $PATH; do
13365 IFS=$lt_save_ifs
13366 test -z "$ac_dir" && ac_dir=.
13367 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13368 lt_cv_path_LD=$ac_dir/$ac_prog
13369 # Check to see if the program is GNU ld. I'd rather use --version,
13370 # but apparently some variants of GNU ld only accept -v.
13371 # Break only if it was the GNU/non-GNU ld that we prefer.
13372 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13373 *GNU* | *'with BFD'*)
13374 test no != "$with_gnu_ld" && break
13375 ;;
13376 *)
13377 test yes != "$with_gnu_ld" && break
13378 ;;
13379 esac
13380 fi
13381 done
13382 IFS=$lt_save_ifs
13383 else
13384 lt_cv_path_LD=$LD # Let the user override the test with a path.
13385 fi
13386 fi
13387
13388 LD=$lt_cv_path_LD
13389 if test -n "$LD"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13391 $as_echo "$LD" >&6; }
13392 else
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13394 $as_echo "no" >&6; }
13395 fi
13396 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13398 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13399 if ${lt_cv_prog_gnu_ld+:} false; then :
13400 $as_echo_n "(cached) " >&6
13401 else
13402 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13403 case `$LD -v 2>&1 </dev/null` in
13404 *GNU* | *'with BFD'*)
13405 lt_cv_prog_gnu_ld=yes
13406 ;;
13407 *)
13408 lt_cv_prog_gnu_ld=no
13409 ;;
13410 esac
13411 fi
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13413 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13414 with_gnu_ld=$lt_cv_prog_gnu_ld
13415
13416
13417
13418
13419
13420
13421
13422 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13423 # archiving commands below assume that GNU ld is being used.
13424 if test yes = "$with_gnu_ld"; then
13425 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13426 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'
13427
13428 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13429 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13430
13431 # If archive_cmds runs LD, not CC, wlarc should be empty
13432 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13433 # investigate it a little bit more. (MM)
13434 wlarc='$wl'
13435
13436 # ancient GNU ld didn't support --whole-archive et. al.
13437 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13438 $GREP 'no-whole-archive' > /dev/null; then
13439 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13440 else
13441 whole_archive_flag_spec_CXX=
13442 fi
13443 else
13444 with_gnu_ld=no
13445 wlarc=
13446
13447 # A generic and very simple default shared library creation
13448 # command for GNU C++ for the case where it uses the native
13449 # linker, instead of GNU ld. If possible, this setting should
13450 # overridden to take advantage of the native linker features on
13451 # the platform it is being used on.
13452 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13453 fi
13454
13455 # Commands to make compiler produce verbose output that lists
13456 # what "hidden" libraries, object files and flags are used when
13457 # linking a shared library.
13458 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13459
13460 else
13461 GXX=no
13462 with_gnu_ld=no
13463 wlarc=
13464 fi
13465
13466 # PORTME: fill in a description of your system's C++ link characteristics
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13468 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13469 ld_shlibs_CXX=yes
13470 case $host_os in
13471 aix3*)
13472 # FIXME: insert proper C++ library support
13473 ld_shlibs_CXX=no
13474 ;;
13475 aix[4-9]*)
13476 if test ia64 = "$host_cpu"; then
13477 # On IA64, the linker does run time linking by default, so we don't
13478 # have to do anything special.
13479 aix_use_runtimelinking=no
13480 exp_sym_flag='-Bexport'
13481 no_entry_flag=
13482 else
13483 aix_use_runtimelinking=no
13484
13485 # Test if we are trying to use run time linking or normal
13486 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13487 # have runtime linking enabled, and use it for executables.
13488 # For shared libraries, we enable/disable runtime linking
13489 # depending on the kind of the shared library created -
13490 # when "with_aix_soname,aix_use_runtimelinking" is:
13491 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13492 # "aix,yes" lib.so shared, rtl:yes, for executables
13493 # lib.a static archive
13494 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13495 # lib.a(lib.so.V) shared, rtl:no, for executables
13496 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13497 # lib.a(lib.so.V) shared, rtl:no
13498 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13499 # lib.a static archive
13500 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13501 for ld_flag in $LDFLAGS; do
13502 case $ld_flag in
13503 *-brtl*)
13504 aix_use_runtimelinking=yes
13505 break
13506 ;;
13507 esac
13508 done
13509 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13510 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13511 # so we don't have lib.a shared libs to link our executables.
13512 # We have to force runtime linking in this case.
13513 aix_use_runtimelinking=yes
13514 LDFLAGS="$LDFLAGS -Wl,-brtl"
13515 fi
13516 ;;
13517 esac
13518
13519 exp_sym_flag='-bexport'
13520 no_entry_flag='-bnoentry'
13521 fi
13522
13523 # When large executables or shared objects are built, AIX ld can
13524 # have problems creating the table of contents. If linking a library
13525 # or program results in "error TOC overflow" add -mminimal-toc to
13526 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13527 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13528
13529 archive_cmds_CXX=''
13530 hardcode_direct_CXX=yes
13531 hardcode_direct_absolute_CXX=yes
13532 hardcode_libdir_separator_CXX=':'
13533 link_all_deplibs_CXX=yes
13534 file_list_spec_CXX='$wl-f,'
13535 case $with_aix_soname,$aix_use_runtimelinking in
13536 aix,*) ;; # no import file
13537 svr4,* | *,yes) # use import file
13538 # The Import File defines what to hardcode.
13539 hardcode_direct_CXX=no
13540 hardcode_direct_absolute_CXX=no
13541 ;;
13542 esac
13543
13544 if test yes = "$GXX"; then
13545 case $host_os in aix4.[012]|aix4.[012].*)
13546 # We only want to do this on AIX 4.2 and lower, the check
13547 # below for broken collect2 doesn't work under 4.3+
13548 collect2name=`$CC -print-prog-name=collect2`
13549 if test -f "$collect2name" &&
13550 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13551 then
13552 # We have reworked collect2
13553 :
13554 else
13555 # We have old collect2
13556 hardcode_direct_CXX=unsupported
13557 # It fails to find uninstalled libraries when the uninstalled
13558 # path is not listed in the libpath. Setting hardcode_minus_L
13559 # to unsupported forces relinking
13560 hardcode_minus_L_CXX=yes
13561 hardcode_libdir_flag_spec_CXX='-L$libdir'
13562 hardcode_libdir_separator_CXX=
13563 fi
13564 esac
13565 shared_flag='-shared'
13566 if test yes = "$aix_use_runtimelinking"; then
13567 shared_flag=$shared_flag' $wl-G'
13568 fi
13569 # Need to ensure runtime linking is disabled for the traditional
13570 # shared library, or the linker may eventually find shared libraries
13571 # /with/ Import File - we do not want to mix them.
13572 shared_flag_aix='-shared'
13573 shared_flag_svr4='-shared $wl-G'
13574 else
13575 # not using gcc
13576 if test ia64 = "$host_cpu"; then
13577 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13578 # chokes on -Wl,-G. The following line is correct:
13579 shared_flag='-G'
13580 else
13581 if test yes = "$aix_use_runtimelinking"; then
13582 shared_flag='$wl-G'
13583 else
13584 shared_flag='$wl-bM:SRE'
13585 fi
13586 shared_flag_aix='$wl-bM:SRE'
13587 shared_flag_svr4='$wl-G'
13588 fi
13589 fi
13590
13591 export_dynamic_flag_spec_CXX='$wl-bexpall'
13592 # It seems that -bexpall does not export symbols beginning with
13593 # underscore (_), so it is better to generate a list of symbols to
13594 # export.
13595 always_export_symbols_CXX=yes
13596 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13597 # Warning - without using the other runtime loading flags (-brtl),
13598 # -berok will link without error, but may produce a broken library.
13599 # The "-G" linker flag allows undefined symbols.
13600 no_undefined_flag_CXX='-bernotok'
13601 # Determine the default libpath from the value encoded in an empty
13602 # executable.
13603 if test set = "${lt_cv_aix_libpath+set}"; then
13604 aix_libpath=$lt_cv_aix_libpath
13605 else
13606 if ${lt_cv_aix_libpath__CXX+:} false; then :
13607 $as_echo_n "(cached) " >&6
13608 else
13609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13610 /* end confdefs.h. */
13611
13612 int
13613 main ()
13614 {
13615
13616 ;
13617 return 0;
13618 }
13619 _ACEOF
13620 if ac_fn_cxx_try_link "$LINENO"; then :
13621
13622 lt_aix_libpath_sed='
13623 /Import File Strings/,/^$/ {
13624 /^0/ {
13625 s/^0 *\([^ ]*\) *$/\1/
13626 p
13627 }
13628 }'
13629 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13630 # Check for a 64-bit object if we didn't find anything.
13631 if test -z "$lt_cv_aix_libpath__CXX"; then
13632 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13633 fi
13634 fi
13635 rm -f core conftest.err conftest.$ac_objext \
13636 conftest$ac_exeext conftest.$ac_ext
13637 if test -z "$lt_cv_aix_libpath__CXX"; then
13638 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13639 fi
13640
13641 fi
13642
13643 aix_libpath=$lt_cv_aix_libpath__CXX
13644 fi
13645
13646 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13647
13648 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
13649 else
13650 if test ia64 = "$host_cpu"; then
13651 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
13652 allow_undefined_flag_CXX="-z nodefs"
13653 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"
13654 else
13655 # Determine the default libpath from the value encoded in an
13656 # empty executable.
13657 if test set = "${lt_cv_aix_libpath+set}"; then
13658 aix_libpath=$lt_cv_aix_libpath
13659 else
13660 if ${lt_cv_aix_libpath__CXX+:} false; then :
13661 $as_echo_n "(cached) " >&6
13662 else
13663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13664 /* end confdefs.h. */
13665
13666 int
13667 main ()
13668 {
13669
13670 ;
13671 return 0;
13672 }
13673 _ACEOF
13674 if ac_fn_cxx_try_link "$LINENO"; then :
13675
13676 lt_aix_libpath_sed='
13677 /Import File Strings/,/^$/ {
13678 /^0/ {
13679 s/^0 *\([^ ]*\) *$/\1/
13680 p
13681 }
13682 }'
13683 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13684 # Check for a 64-bit object if we didn't find anything.
13685 if test -z "$lt_cv_aix_libpath__CXX"; then
13686 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13687 fi
13688 fi
13689 rm -f core conftest.err conftest.$ac_objext \
13690 conftest$ac_exeext conftest.$ac_ext
13691 if test -z "$lt_cv_aix_libpath__CXX"; then
13692 lt_cv_aix_libpath__CXX=/usr/lib:/lib
13693 fi
13694
13695 fi
13696
13697 aix_libpath=$lt_cv_aix_libpath__CXX
13698 fi
13699
13700 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
13701 # Warning - without using the other run time loading flags,
13702 # -berok will link without error, but may produce a broken library.
13703 no_undefined_flag_CXX=' $wl-bernotok'
13704 allow_undefined_flag_CXX=' $wl-berok'
13705 if test yes = "$with_gnu_ld"; then
13706 # We only use this code for GNU lds that support --whole-archive.
13707 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13708 else
13709 # Exported symbols can be pulled into shared objects from archives
13710 whole_archive_flag_spec_CXX='$convenience'
13711 fi
13712 archive_cmds_need_lc_CXX=yes
13713 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13714 # -brtl affects multiple linker settings, -berok does not and is overridden later
13715 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13716 if test svr4 != "$with_aix_soname"; then
13717 # This is similar to how AIX traditionally builds its shared
13718 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
13719 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
13720 fi
13721 if test aix != "$with_aix_soname"; then
13722 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
13723 else
13724 # used by -dlpreopen to get the symbols
13725 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13726 fi
13727 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
13728 fi
13729 fi
13730 ;;
13731
13732 beos*)
13733 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13734 allow_undefined_flag_CXX=unsupported
13735 # Joseph Beckenbach <[email protected]> says some releases of gcc
13736 # support --undefined. This deserves some investigation. FIXME
13737 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13738 else
13739 ld_shlibs_CXX=no
13740 fi
13741 ;;
13742
13743 chorus*)
13744 case $cc_basename in
13745 *)
13746 # FIXME: insert proper C++ library support
13747 ld_shlibs_CXX=no
13748 ;;
13749 esac
13750 ;;
13751
13752 cygwin* | mingw* | pw32* | cegcc*)
13753 case $GXX,$cc_basename in
13754 ,cl* | no,cl*)
13755 # Native MSVC
13756 # hardcode_libdir_flag_spec is actually meaningless, as there is
13757 # no search path for DLLs.
13758 hardcode_libdir_flag_spec_CXX=' '
13759 allow_undefined_flag_CXX=unsupported
13760 always_export_symbols_CXX=yes
13761 file_list_spec_CXX='@'
13762 # Tell ltmain to make .lib files, not .a files.
13763 libext=lib
13764 # Tell ltmain to make .dll files, not .so files.
13765 shrext_cmds=.dll
13766 # FIXME: Setting linknames here is a bad hack.
13767 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13768 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13769 cp "$export_symbols" "$output_objdir/$soname.def";
13770 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13771 else
13772 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13773 fi~
13774 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13775 linknames='
13776 # The linker will not automatically build a static lib if we build a DLL.
13777 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13778 enable_shared_with_static_runtimes_CXX=yes
13779 # Don't use ranlib
13780 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13781 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13782 lt_tool_outputfile="@TOOL_OUTPUT@"~
13783 case $lt_outputfile in
13784 *.exe|*.EXE) ;;
13785 *)
13786 lt_outputfile=$lt_outputfile.exe
13787 lt_tool_outputfile=$lt_tool_outputfile.exe
13788 ;;
13789 esac~
13790 func_to_tool_file "$lt_outputfile"~
13791 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13792 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13793 $RM "$lt_outputfile.manifest";
13794 fi'
13795 ;;
13796 *)
13797 # g++
13798 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13799 # as there is no search path for DLLs.
13800 hardcode_libdir_flag_spec_CXX='-L$libdir'
13801 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13802 allow_undefined_flag_CXX=unsupported
13803 always_export_symbols_CXX=no
13804 enable_shared_with_static_runtimes_CXX=yes
13805
13806 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13807 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'
13808 # If the export-symbols file already is a .def file, use it as
13809 # is; otherwise, prepend EXPORTS...
13810 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13811 cp $export_symbols $output_objdir/$soname.def;
13812 else
13813 echo EXPORTS > $output_objdir/$soname.def;
13814 cat $export_symbols >> $output_objdir/$soname.def;
13815 fi~
13816 $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'
13817 else
13818 ld_shlibs_CXX=no
13819 fi
13820 ;;
13821 esac
13822 ;;
13823 darwin* | rhapsody*)
13824
13825
13826 archive_cmds_need_lc_CXX=no
13827 hardcode_direct_CXX=no
13828 hardcode_automatic_CXX=yes
13829 hardcode_shlibpath_var_CXX=unsupported
13830 if test yes = "$lt_cv_ld_force_load"; then
13831 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\"`'
13832
13833 else
13834 whole_archive_flag_spec_CXX=''
13835 fi
13836 link_all_deplibs_CXX=yes
13837 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13838 case $cc_basename in
13839 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13840 *) _lt_dar_can_shared=$GCC ;;
13841 esac
13842 if test yes = "$_lt_dar_can_shared"; then
13843 output_verbose_link_cmd=func_echo_all
13844 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"
13845 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13846 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"
13847 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"
13848 if test yes != "$lt_cv_apple_cc_single_mod"; then
13849 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"
13850 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"
13851 fi
13852
13853 else
13854 ld_shlibs_CXX=no
13855 fi
13856
13857 ;;
13858
13859 os2*)
13860 hardcode_libdir_flag_spec_CXX='-L$libdir'
13861 hardcode_minus_L_CXX=yes
13862 allow_undefined_flag_CXX=unsupported
13863 shrext_cmds=.dll
13864 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13865 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13866 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13867 $ECHO EXPORTS >> $output_objdir/$libname.def~
13868 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13869 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13870 emximp -o $lib $output_objdir/$libname.def'
13871 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13872 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13873 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13874 $ECHO EXPORTS >> $output_objdir/$libname.def~
13875 prefix_cmds="$SED"~
13876 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13877 prefix_cmds="$prefix_cmds -e 1d";
13878 fi~
13879 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13880 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13881 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13882 emximp -o $lib $output_objdir/$libname.def'
13883 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13884 enable_shared_with_static_runtimes_CXX=yes
13885 ;;
13886
13887 dgux*)
13888 case $cc_basename in
13889 ec++*)
13890 # FIXME: insert proper C++ library support
13891 ld_shlibs_CXX=no
13892 ;;
13893 ghcx*)
13894 # Green Hills C++ Compiler
13895 # FIXME: insert proper C++ library support
13896 ld_shlibs_CXX=no
13897 ;;
13898 *)
13899 # FIXME: insert proper C++ library support
13900 ld_shlibs_CXX=no
13901 ;;
13902 esac
13903 ;;
13904
13905 freebsd2.*)
13906 # C++ shared libraries reported to be fairly broken before
13907 # switch to ELF
13908 ld_shlibs_CXX=no
13909 ;;
13910
13911 freebsd-elf*)
13912 archive_cmds_need_lc_CXX=no
13913 ;;
13914
13915 freebsd* | dragonfly*)
13916 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13917 # conventions
13918 ld_shlibs_CXX=yes
13919 ;;
13920
13921 haiku*)
13922 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13923 link_all_deplibs_CXX=yes
13924 ;;
13925
13926 hpux9*)
13927 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13928 hardcode_libdir_separator_CXX=:
13929 export_dynamic_flag_spec_CXX='$wl-E'
13930 hardcode_direct_CXX=yes
13931 hardcode_minus_L_CXX=yes # Not in the search PATH,
13932 # but as the default
13933 # location of the library.
13934
13935 case $cc_basename in
13936 CC*)
13937 # FIXME: insert proper C++ library support
13938 ld_shlibs_CXX=no
13939 ;;
13940 aCC*)
13941 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13942 # Commands to make compiler produce verbose output that lists
13943 # what "hidden" libraries, object files and flags are used when
13944 # linking a shared library.
13945 #
13946 # There doesn't appear to be a way to prevent this compiler from
13947 # explicitly linking system object files so we need to strip them
13948 # from the output so that they don't get included in the library
13949 # dependencies.
13950 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"'
13951 ;;
13952 *)
13953 if test yes = "$GXX"; then
13954 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13955 else
13956 # FIXME: insert proper C++ library support
13957 ld_shlibs_CXX=no
13958 fi
13959 ;;
13960 esac
13961 ;;
13962
13963 hpux10*|hpux11*)
13964 if test no = "$with_gnu_ld"; then
13965 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13966 hardcode_libdir_separator_CXX=:
13967
13968 case $host_cpu in
13969 hppa*64*|ia64*)
13970 ;;
13971 *)
13972 export_dynamic_flag_spec_CXX='$wl-E'
13973 ;;
13974 esac
13975 fi
13976 case $host_cpu in
13977 hppa*64*|ia64*)
13978 hardcode_direct_CXX=no
13979 hardcode_shlibpath_var_CXX=no
13980 ;;
13981 *)
13982 hardcode_direct_CXX=yes
13983 hardcode_direct_absolute_CXX=yes
13984 hardcode_minus_L_CXX=yes # Not in the search PATH,
13985 # but as the default
13986 # location of the library.
13987 ;;
13988 esac
13989
13990 case $cc_basename in
13991 CC*)
13992 # FIXME: insert proper C++ library support
13993 ld_shlibs_CXX=no
13994 ;;
13995 aCC*)
13996 case $host_cpu in
13997 hppa*64*)
13998 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13999 ;;
14000 ia64*)
14001 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14002 ;;
14003 *)
14004 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14005 ;;
14006 esac
14007 # Commands to make compiler produce verbose output that lists
14008 # what "hidden" libraries, object files and flags are used when
14009 # linking a shared library.
14010 #
14011 # There doesn't appear to be a way to prevent this compiler from
14012 # explicitly linking system object files so we need to strip them
14013 # from the output so that they don't get included in the library
14014 # dependencies.
14015 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"'
14016 ;;
14017 *)
14018 if test yes = "$GXX"; then
14019 if test no = "$with_gnu_ld"; then
14020 case $host_cpu in
14021 hppa*64*)
14022 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14023 ;;
14024 ia64*)
14025 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14026 ;;
14027 *)
14028 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14029 ;;
14030 esac
14031 fi
14032 else
14033 # FIXME: insert proper C++ library support
14034 ld_shlibs_CXX=no
14035 fi
14036 ;;
14037 esac
14038 ;;
14039
14040 interix[3-9]*)
14041 hardcode_direct_CXX=no
14042 hardcode_shlibpath_var_CXX=no
14043 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14044 export_dynamic_flag_spec_CXX='$wl-E'
14045 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14046 # Instead, shared libraries are loaded at an image base (0x10000000 by
14047 # default) and relocated if they conflict, which is a slow very memory
14048 # consuming and fragmenting process. To avoid this, we pick a random,
14049 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14050 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14051 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'
14052 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'
14053 ;;
14054 irix5* | irix6*)
14055 case $cc_basename in
14056 CC*)
14057 # SGI C++
14058 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'
14059
14060 # Archives containing C++ object files must be created using
14061 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14062 # necessary to make sure instantiated templates are included
14063 # in the archive.
14064 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14065 ;;
14066 *)
14067 if test yes = "$GXX"; then
14068 if test no = "$with_gnu_ld"; then
14069 archive_cmds_CXX='$CC -shared $pic_flag -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'
14070 else
14071 archive_cmds_CXX='$CC -shared $pic_flag -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'
14072 fi
14073 fi
14074 link_all_deplibs_CXX=yes
14075 ;;
14076 esac
14077 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14078 hardcode_libdir_separator_CXX=:
14079 inherit_rpath_CXX=yes
14080 ;;
14081
14082 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14083 case $cc_basename in
14084 KCC*)
14085 # Kuck and Associates, Inc. (KAI) C++ Compiler
14086
14087 # KCC will only create a shared library if the output file
14088 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14089 # to its proper name (with version) after linking.
14090 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'
14091 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'
14092 # Commands to make compiler produce verbose output that lists
14093 # what "hidden" libraries, object files and flags are used when
14094 # linking a shared library.
14095 #
14096 # There doesn't appear to be a way to prevent this compiler from
14097 # explicitly linking system object files so we need to strip them
14098 # from the output so that they don't get included in the library
14099 # dependencies.
14100 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"'
14101
14102 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14103 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14104
14105 # Archives containing C++ object files must be created using
14106 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14107 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14108 ;;
14109 icpc* | ecpc* )
14110 # Intel C++
14111 with_gnu_ld=yes
14112 # version 8.0 and above of icpc choke on multiply defined symbols
14113 # if we add $predep_objects and $postdep_objects, however 7.1 and
14114 # earlier do not add the objects themselves.
14115 case `$CC -V 2>&1` in
14116 *"Version 7."*)
14117 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14118 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'
14119 ;;
14120 *) # Version 8.0 or newer
14121 tmp_idyn=
14122 case $host_cpu in
14123 ia64*) tmp_idyn=' -i_dynamic';;
14124 esac
14125 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14126 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'
14127 ;;
14128 esac
14129 archive_cmds_need_lc_CXX=no
14130 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14131 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14132 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
14133 ;;
14134 pgCC* | pgcpp*)
14135 # Portland Group C++ compiler
14136 case `$CC -V` in
14137 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14138 prelink_cmds_CXX='tpldir=Template.dir~
14139 rm -rf $tpldir~
14140 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14141 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14142 old_archive_cmds_CXX='tpldir=Template.dir~
14143 rm -rf $tpldir~
14144 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14145 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14146 $RANLIB $oldlib'
14147 archive_cmds_CXX='tpldir=Template.dir~
14148 rm -rf $tpldir~
14149 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14150 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14151 archive_expsym_cmds_CXX='tpldir=Template.dir~
14152 rm -rf $tpldir~
14153 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14154 $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'
14155 ;;
14156 *) # Version 6 and above use weak symbols
14157 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14158 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'
14159 ;;
14160 esac
14161
14162 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
14163 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14164 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'
14165 ;;
14166 cxx*)
14167 # Compaq C++
14168 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
14169 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'
14170
14171 runpath_var=LD_RUN_PATH
14172 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14173 hardcode_libdir_separator_CXX=:
14174
14175 # Commands to make compiler produce verbose output that lists
14176 # what "hidden" libraries, object files and flags are used when
14177 # linking a shared library.
14178 #
14179 # There doesn't appear to be a way to prevent this compiler from
14180 # explicitly linking system object files so we need to strip them
14181 # from the output so that they don't get included in the library
14182 # dependencies.
14183 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'
14184 ;;
14185 xl* | mpixl* | bgxl*)
14186 # IBM XL 8.0 on PPC, with GNU ld
14187 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14188 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
14189 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
14190 if test yes = "$supports_anon_versioning"; then
14191 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14192 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14193 echo "local: *; };" >> $output_objdir/$libname.ver~
14194 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
14195 fi
14196 ;;
14197 *)
14198 case `$CC -V 2>&1 | sed 5q` in
14199 *Sun\ C*)
14200 # Sun C++ 5.9
14201 no_undefined_flag_CXX=' -zdefs'
14202 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14203 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'
14204 hardcode_libdir_flag_spec_CXX='-R$libdir'
14205 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'
14206 compiler_needs_object_CXX=yes
14207
14208 # Not sure whether something based on
14209 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14210 # would be better.
14211 output_verbose_link_cmd='func_echo_all'
14212
14213 # Archives containing C++ object files must be created using
14214 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14215 # necessary to make sure instantiated templates are included
14216 # in the archive.
14217 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14218 ;;
14219 esac
14220 ;;
14221 esac
14222 ;;
14223
14224 lynxos*)
14225 # FIXME: insert proper C++ library support
14226 ld_shlibs_CXX=no
14227 ;;
14228
14229 m88k*)
14230 # FIXME: insert proper C++ library support
14231 ld_shlibs_CXX=no
14232 ;;
14233
14234 mvs*)
14235 case $cc_basename in
14236 cxx*)
14237 # FIXME: insert proper C++ library support
14238 ld_shlibs_CXX=no
14239 ;;
14240 *)
14241 # FIXME: insert proper C++ library support
14242 ld_shlibs_CXX=no
14243 ;;
14244 esac
14245 ;;
14246
14247 netbsd*)
14248 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14249 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14250 wlarc=
14251 hardcode_libdir_flag_spec_CXX='-R$libdir'
14252 hardcode_direct_CXX=yes
14253 hardcode_shlibpath_var_CXX=no
14254 fi
14255 # Workaround some broken pre-1.5 toolchains
14256 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14257 ;;
14258
14259 *nto* | *qnx*)
14260 ld_shlibs_CXX=yes
14261 ;;
14262
14263 openbsd* | bitrig*)
14264 if test -f /usr/libexec/ld.so; then
14265 hardcode_direct_CXX=yes
14266 hardcode_shlibpath_var_CXX=no
14267 hardcode_direct_absolute_CXX=yes
14268 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14269 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14270 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
14271 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
14272 export_dynamic_flag_spec_CXX='$wl-E'
14273 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
14274 fi
14275 output_verbose_link_cmd=func_echo_all
14276 else
14277 ld_shlibs_CXX=no
14278 fi
14279 ;;
14280
14281 osf3* | osf4* | osf5*)
14282 case $cc_basename in
14283 KCC*)
14284 # Kuck and Associates, Inc. (KAI) C++ Compiler
14285
14286 # KCC will only create a shared library if the output file
14287 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14288 # to its proper name (with version) after linking.
14289 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'
14290
14291 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
14292 hardcode_libdir_separator_CXX=:
14293
14294 # Archives containing C++ object files must be created using
14295 # the KAI C++ compiler.
14296 case $host in
14297 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14298 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14299 esac
14300 ;;
14301 RCC*)
14302 # Rational C++ 2.4.1
14303 # FIXME: insert proper C++ library support
14304 ld_shlibs_CXX=no
14305 ;;
14306 cxx*)
14307 case $host in
14308 osf3*)
14309 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14310 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'
14311 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14312 ;;
14313 *)
14314 allow_undefined_flag_CXX=' -expect_unresolved \*'
14315 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'
14316 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14317 echo "-hidden">> $lib.exp~
14318 $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~
14319 $RM $lib.exp'
14320 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14321 ;;
14322 esac
14323
14324 hardcode_libdir_separator_CXX=:
14325
14326 # Commands to make compiler produce verbose output that lists
14327 # what "hidden" libraries, object files and flags are used when
14328 # linking a shared library.
14329 #
14330 # There doesn't appear to be a way to prevent this compiler from
14331 # explicitly linking system object files so we need to strip them
14332 # from the output so that they don't get included in the library
14333 # dependencies.
14334 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"'
14335 ;;
14336 *)
14337 if test yes,no = "$GXX,$with_gnu_ld"; then
14338 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
14339 case $host in
14340 osf3*)
14341 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'
14342 ;;
14343 *)
14344 archive_cmds_CXX='$CC -shared $pic_flag -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'
14345 ;;
14346 esac
14347
14348 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
14349 hardcode_libdir_separator_CXX=:
14350
14351 # Commands to make compiler produce verbose output that lists
14352 # what "hidden" libraries, object files and flags are used when
14353 # linking a shared library.
14354 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14355
14356 else
14357 # FIXME: insert proper C++ library support
14358 ld_shlibs_CXX=no
14359 fi
14360 ;;
14361 esac
14362 ;;
14363
14364 psos*)
14365 # FIXME: insert proper C++ library support
14366 ld_shlibs_CXX=no
14367 ;;
14368
14369 sunos4*)
14370 case $cc_basename in
14371 CC*)
14372 # Sun C++ 4.x
14373 # FIXME: insert proper C++ library support
14374 ld_shlibs_CXX=no
14375 ;;
14376 lcc*)
14377 # Lucid
14378 # FIXME: insert proper C++ library support
14379 ld_shlibs_CXX=no
14380 ;;
14381 *)
14382 # FIXME: insert proper C++ library support
14383 ld_shlibs_CXX=no
14384 ;;
14385 esac
14386 ;;
14387
14388 solaris*)
14389 case $cc_basename in
14390 CC* | sunCC*)
14391 # Sun C++ 4.2, 5.x and Centerline C++
14392 archive_cmds_need_lc_CXX=yes
14393 no_undefined_flag_CXX=' -zdefs'
14394 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14395 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14396 $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'
14397
14398 hardcode_libdir_flag_spec_CXX='-R$libdir'
14399 hardcode_shlibpath_var_CXX=no
14400 case $host_os in
14401 solaris2.[0-5] | solaris2.[0-5].*) ;;
14402 *)
14403 # The compiler driver will combine and reorder linker options,
14404 # but understands '-z linker_flag'.
14405 # Supported since Solaris 2.6 (maybe 2.5.1?)
14406 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14407 ;;
14408 esac
14409 link_all_deplibs_CXX=yes
14410
14411 output_verbose_link_cmd='func_echo_all'
14412
14413 # Archives containing C++ object files must be created using
14414 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14415 # necessary to make sure instantiated templates are included
14416 # in the archive.
14417 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14418 ;;
14419 gcx*)
14420 # Green Hills C++ Compiler
14421 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14422
14423 # The C++ compiler must be used to create the archive.
14424 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14425 ;;
14426 *)
14427 # GNU C++ compiler with Solaris linker
14428 if test yes,no = "$GXX,$with_gnu_ld"; then
14429 no_undefined_flag_CXX=' $wl-z ${wl}defs'
14430 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14431 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14432 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14433 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14434
14435 # Commands to make compiler produce verbose output that lists
14436 # what "hidden" libraries, object files and flags are used when
14437 # linking a shared library.
14438 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14439 else
14440 # g++ 2.7 appears to require '-G' NOT '-shared' on this
14441 # platform.
14442 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
14443 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14444 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14445
14446 # Commands to make compiler produce verbose output that lists
14447 # what "hidden" libraries, object files and flags are used when
14448 # linking a shared library.
14449 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14450 fi
14451
14452 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
14453 case $host_os in
14454 solaris2.[0-5] | solaris2.[0-5].*) ;;
14455 *)
14456 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14457 ;;
14458 esac
14459 fi
14460 ;;
14461 esac
14462 ;;
14463
14464 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14465 no_undefined_flag_CXX='$wl-z,text'
14466 archive_cmds_need_lc_CXX=no
14467 hardcode_shlibpath_var_CXX=no
14468 runpath_var='LD_RUN_PATH'
14469
14470 case $cc_basename in
14471 CC*)
14472 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14473 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14474 ;;
14475 *)
14476 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14477 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14478 ;;
14479 esac
14480 ;;
14481
14482 sysv5* | sco3.2v5* | sco5v6*)
14483 # Note: We CANNOT use -z defs as we might desire, because we do not
14484 # link with -lc, and that would cause any symbols used from libc to
14485 # always be unresolved, which means just about no library would
14486 # ever link correctly. If we're not using GNU ld we use -z text
14487 # though, which does catch some bad symbols but isn't as heavy-handed
14488 # as -z defs.
14489 no_undefined_flag_CXX='$wl-z,text'
14490 allow_undefined_flag_CXX='$wl-z,nodefs'
14491 archive_cmds_need_lc_CXX=no
14492 hardcode_shlibpath_var_CXX=no
14493 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
14494 hardcode_libdir_separator_CXX=':'
14495 link_all_deplibs_CXX=yes
14496 export_dynamic_flag_spec_CXX='$wl-Bexport'
14497 runpath_var='LD_RUN_PATH'
14498
14499 case $cc_basename in
14500 CC*)
14501 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14502 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14503 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14504 '"$old_archive_cmds_CXX"
14505 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14506 '"$reload_cmds_CXX"
14507 ;;
14508 *)
14509 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14510 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14511 ;;
14512 esac
14513 ;;
14514
14515 tandem*)
14516 case $cc_basename in
14517 NCC*)
14518 # NonStop-UX NCC 3.20
14519 # FIXME: insert proper C++ library support
14520 ld_shlibs_CXX=no
14521 ;;
14522 *)
14523 # FIXME: insert proper C++ library support
14524 ld_shlibs_CXX=no
14525 ;;
14526 esac
14527 ;;
14528
14529 vxworks*)
14530 # FIXME: insert proper C++ library support
14531 ld_shlibs_CXX=no
14532 ;;
14533
14534 *)
14535 # FIXME: insert proper C++ library support
14536 ld_shlibs_CXX=no
14537 ;;
14538 esac
14539
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14541 $as_echo "$ld_shlibs_CXX" >&6; }
14542 test no = "$ld_shlibs_CXX" && can_build_shared=no
14543
14544 GCC_CXX=$GXX
14545 LD_CXX=$LD
14546
14547 ## CAVEAT EMPTOR:
14548 ## There is no encapsulation within the following macros, do not change
14549 ## the running order or otherwise move them around unless you know exactly
14550 ## what you are doing...
14551 # Dependencies to place before and after the object being linked:
14552 predep_objects_CXX=
14553 postdep_objects_CXX=
14554 predeps_CXX=
14555 postdeps_CXX=
14556 compiler_lib_search_path_CXX=
14557
14558 cat > conftest.$ac_ext <<_LT_EOF
14559 class Foo
14560 {
14561 public:
14562 Foo (void) { a = 0; }
14563 private:
14564 int a;
14565 };
14566 _LT_EOF
14567
14568
14569 _lt_libdeps_save_CFLAGS=$CFLAGS
14570 case "$CC $CFLAGS " in #(
14571 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14572 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14573 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14574 esac
14575
14576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14577 (eval $ac_compile) 2>&5
14578 ac_status=$?
14579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14580 test $ac_status = 0; }; then
14581 # Parse the compiler output and extract the necessary
14582 # objects, libraries and library flags.
14583
14584 # Sentinel used to keep track of whether or not we are before
14585 # the conftest object file.
14586 pre_test_object_deps_done=no
14587
14588 for p in `eval "$output_verbose_link_cmd"`; do
14589 case $prev$p in
14590
14591 -L* | -R* | -l*)
14592 # Some compilers place space between "-{L,R}" and the path.
14593 # Remove the space.
14594 if test x-L = "$p" ||
14595 test x-R = "$p"; then
14596 prev=$p
14597 continue
14598 fi
14599
14600 # Expand the sysroot to ease extracting the directories later.
14601 if test -z "$prev"; then
14602 case $p in
14603 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14604 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14605 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14606 esac
14607 fi
14608 case $p in
14609 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14610 esac
14611 if test no = "$pre_test_object_deps_done"; then
14612 case $prev in
14613 -L | -R)
14614 # Internal compiler library paths should come after those
14615 # provided the user. The postdeps already come after the
14616 # user supplied libs so there is no need to process them.
14617 if test -z "$compiler_lib_search_path_CXX"; then
14618 compiler_lib_search_path_CXX=$prev$p
14619 else
14620 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
14621 fi
14622 ;;
14623 # The "-l" case would never come before the object being
14624 # linked, so don't bother handling this case.
14625 esac
14626 else
14627 if test -z "$postdeps_CXX"; then
14628 postdeps_CXX=$prev$p
14629 else
14630 postdeps_CXX="${postdeps_CXX} $prev$p"
14631 fi
14632 fi
14633 prev=
14634 ;;
14635
14636 *.lto.$objext) ;; # Ignore GCC LTO objects
14637 *.$objext)
14638 # This assumes that the test object file only shows up
14639 # once in the compiler output.
14640 if test "$p" = "conftest.$objext"; then
14641 pre_test_object_deps_done=yes
14642 continue
14643 fi
14644
14645 if test no = "$pre_test_object_deps_done"; then
14646 if test -z "$predep_objects_CXX"; then
14647 predep_objects_CXX=$p
14648 else
14649 predep_objects_CXX="$predep_objects_CXX $p"
14650 fi
14651 else
14652 if test -z "$postdep_objects_CXX"; then
14653 postdep_objects_CXX=$p
14654 else
14655 postdep_objects_CXX="$postdep_objects_CXX $p"
14656 fi
14657 fi
14658 ;;
14659
14660 *) ;; # Ignore the rest.
14661
14662 esac
14663 done
14664
14665 # Clean up.
14666 rm -f a.out a.exe
14667 else
14668 echo "libtool.m4: error: problem compiling CXX test program"
14669 fi
14670
14671 $RM -f confest.$objext
14672 CFLAGS=$_lt_libdeps_save_CFLAGS
14673
14674 # PORTME: override above test on systems where it is broken
14675 case $host_os in
14676 interix[3-9]*)
14677 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14678 # hack all around it, let's just trust "g++" to DTRT.
14679 predep_objects_CXX=
14680 postdep_objects_CXX=
14681 postdeps_CXX=
14682 ;;
14683 esac
14684
14685
14686 case " $postdeps_CXX " in
14687 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14688 esac
14689 compiler_lib_search_dirs_CXX=
14690 if test -n "${compiler_lib_search_path_CXX}"; then
14691 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
14692 fi
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724 lt_prog_compiler_wl_CXX=
14725 lt_prog_compiler_pic_CXX=
14726 lt_prog_compiler_static_CXX=
14727
14728
14729 # C++ specific cases for pic, static, wl, etc.
14730 if test yes = "$GXX"; then
14731 lt_prog_compiler_wl_CXX='-Wl,'
14732 lt_prog_compiler_static_CXX='-static'
14733
14734 case $host_os in
14735 aix*)
14736 # All AIX code is PIC.
14737 if test ia64 = "$host_cpu"; then
14738 # AIX 5 now supports IA64 processor
14739 lt_prog_compiler_static_CXX='-Bstatic'
14740 fi
14741 lt_prog_compiler_pic_CXX='-fPIC'
14742 ;;
14743
14744 amigaos*)
14745 case $host_cpu in
14746 powerpc)
14747 # see comment about AmigaOS4 .so support
14748 lt_prog_compiler_pic_CXX='-fPIC'
14749 ;;
14750 m68k)
14751 # FIXME: we need at least 68020 code to build shared libraries, but
14752 # adding the '-m68020' flag to GCC prevents building anything better,
14753 # like '-m68040'.
14754 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14755 ;;
14756 esac
14757 ;;
14758
14759 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14760 # PIC is the default for these OSes.
14761 ;;
14762 mingw* | cygwin* | os2* | pw32* | cegcc*)
14763 # This hack is so that the source file can tell whether it is being
14764 # built for inclusion in a dll (and should export symbols for example).
14765 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14766 # (--disable-auto-import) libraries
14767 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14768 case $host_os in
14769 os2*)
14770 lt_prog_compiler_static_CXX='$wl-static'
14771 ;;
14772 esac
14773 ;;
14774 darwin* | rhapsody*)
14775 # PIC is the default on this platform
14776 # Common symbols not allowed in MH_DYLIB files
14777 lt_prog_compiler_pic_CXX='-fno-common'
14778 ;;
14779 *djgpp*)
14780 # DJGPP does not support shared libraries at all
14781 lt_prog_compiler_pic_CXX=
14782 ;;
14783 haiku*)
14784 # PIC is the default for Haiku.
14785 # The "-static" flag exists, but is broken.
14786 lt_prog_compiler_static_CXX=
14787 ;;
14788 interix[3-9]*)
14789 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14790 # Instead, we relocate shared libraries at runtime.
14791 ;;
14792 sysv4*MP*)
14793 if test -d /usr/nec; then
14794 lt_prog_compiler_pic_CXX=-Kconform_pic
14795 fi
14796 ;;
14797 hpux*)
14798 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14799 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14800 # sets the default TLS model and affects inlining.
14801 case $host_cpu in
14802 hppa*64*)
14803 ;;
14804 *)
14805 lt_prog_compiler_pic_CXX='-fPIC'
14806 ;;
14807 esac
14808 ;;
14809 *qnx* | *nto*)
14810 # QNX uses GNU C++, but need to define -shared option too, otherwise
14811 # it will coredump.
14812 lt_prog_compiler_pic_CXX='-fPIC -shared'
14813 ;;
14814 *)
14815 lt_prog_compiler_pic_CXX='-fPIC'
14816 ;;
14817 esac
14818 else
14819 case $host_os in
14820 aix[4-9]*)
14821 # All AIX code is PIC.
14822 if test ia64 = "$host_cpu"; then
14823 # AIX 5 now supports IA64 processor
14824 lt_prog_compiler_static_CXX='-Bstatic'
14825 else
14826 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14827 fi
14828 ;;
14829 chorus*)
14830 case $cc_basename in
14831 cxch68*)
14832 # Green Hills C++ Compiler
14833 # _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"
14834 ;;
14835 esac
14836 ;;
14837 mingw* | cygwin* | os2* | pw32* | cegcc*)
14838 # This hack is so that the source file can tell whether it is being
14839 # built for inclusion in a dll (and should export symbols for example).
14840 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14841 ;;
14842 dgux*)
14843 case $cc_basename in
14844 ec++*)
14845 lt_prog_compiler_pic_CXX='-KPIC'
14846 ;;
14847 ghcx*)
14848 # Green Hills C++ Compiler
14849 lt_prog_compiler_pic_CXX='-pic'
14850 ;;
14851 *)
14852 ;;
14853 esac
14854 ;;
14855 freebsd* | dragonfly*)
14856 # FreeBSD uses GNU C++
14857 ;;
14858 hpux9* | hpux10* | hpux11*)
14859 case $cc_basename in
14860 CC*)
14861 lt_prog_compiler_wl_CXX='-Wl,'
14862 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14863 if test ia64 != "$host_cpu"; then
14864 lt_prog_compiler_pic_CXX='+Z'
14865 fi
14866 ;;
14867 aCC*)
14868 lt_prog_compiler_wl_CXX='-Wl,'
14869 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14870 case $host_cpu in
14871 hppa*64*|ia64*)
14872 # +Z the default
14873 ;;
14874 *)
14875 lt_prog_compiler_pic_CXX='+Z'
14876 ;;
14877 esac
14878 ;;
14879 *)
14880 ;;
14881 esac
14882 ;;
14883 interix*)
14884 # This is c89, which is MS Visual C++ (no shared libs)
14885 # Anyone wants to do a port?
14886 ;;
14887 irix5* | irix6* | nonstopux*)
14888 case $cc_basename in
14889 CC*)
14890 lt_prog_compiler_wl_CXX='-Wl,'
14891 lt_prog_compiler_static_CXX='-non_shared'
14892 # CC pic flag -KPIC is the default.
14893 ;;
14894 *)
14895 ;;
14896 esac
14897 ;;
14898 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14899 case $cc_basename in
14900 KCC*)
14901 # KAI C++ Compiler
14902 lt_prog_compiler_wl_CXX='--backend -Wl,'
14903 lt_prog_compiler_pic_CXX='-fPIC'
14904 ;;
14905 ecpc* )
14906 # old Intel C++ for x86_64, which still supported -KPIC.
14907 lt_prog_compiler_wl_CXX='-Wl,'
14908 lt_prog_compiler_pic_CXX='-KPIC'
14909 lt_prog_compiler_static_CXX='-static'
14910 ;;
14911 icpc* )
14912 # Intel C++, used to be incompatible with GCC.
14913 # ICC 10 doesn't accept -KPIC any more.
14914 lt_prog_compiler_wl_CXX='-Wl,'
14915 lt_prog_compiler_pic_CXX='-fPIC'
14916 lt_prog_compiler_static_CXX='-static'
14917 ;;
14918 pgCC* | pgcpp*)
14919 # Portland Group C++ compiler
14920 lt_prog_compiler_wl_CXX='-Wl,'
14921 lt_prog_compiler_pic_CXX='-fpic'
14922 lt_prog_compiler_static_CXX='-Bstatic'
14923 ;;
14924 cxx*)
14925 # Compaq C++
14926 # Make sure the PIC flag is empty. It appears that all Alpha
14927 # Linux and Compaq Tru64 Unix objects are PIC.
14928 lt_prog_compiler_pic_CXX=
14929 lt_prog_compiler_static_CXX='-non_shared'
14930 ;;
14931 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14932 # IBM XL 8.0, 9.0 on PPC and BlueGene
14933 lt_prog_compiler_wl_CXX='-Wl,'
14934 lt_prog_compiler_pic_CXX='-qpic'
14935 lt_prog_compiler_static_CXX='-qstaticlink'
14936 ;;
14937 *)
14938 case `$CC -V 2>&1 | sed 5q` in
14939 *Sun\ C*)
14940 # Sun C++ 5.9
14941 lt_prog_compiler_pic_CXX='-KPIC'
14942 lt_prog_compiler_static_CXX='-Bstatic'
14943 lt_prog_compiler_wl_CXX='-Qoption ld '
14944 ;;
14945 esac
14946 ;;
14947 esac
14948 ;;
14949 lynxos*)
14950 ;;
14951 m88k*)
14952 ;;
14953 mvs*)
14954 case $cc_basename in
14955 cxx*)
14956 lt_prog_compiler_pic_CXX='-W c,exportall'
14957 ;;
14958 *)
14959 ;;
14960 esac
14961 ;;
14962 netbsd*)
14963 ;;
14964 *qnx* | *nto*)
14965 # QNX uses GNU C++, but need to define -shared option too, otherwise
14966 # it will coredump.
14967 lt_prog_compiler_pic_CXX='-fPIC -shared'
14968 ;;
14969 osf3* | osf4* | osf5*)
14970 case $cc_basename in
14971 KCC*)
14972 lt_prog_compiler_wl_CXX='--backend -Wl,'
14973 ;;
14974 RCC*)
14975 # Rational C++ 2.4.1
14976 lt_prog_compiler_pic_CXX='-pic'
14977 ;;
14978 cxx*)
14979 # Digital/Compaq C++
14980 lt_prog_compiler_wl_CXX='-Wl,'
14981 # Make sure the PIC flag is empty. It appears that all Alpha
14982 # Linux and Compaq Tru64 Unix objects are PIC.
14983 lt_prog_compiler_pic_CXX=
14984 lt_prog_compiler_static_CXX='-non_shared'
14985 ;;
14986 *)
14987 ;;
14988 esac
14989 ;;
14990 psos*)
14991 ;;
14992 solaris*)
14993 case $cc_basename in
14994 CC* | sunCC*)
14995 # Sun C++ 4.2, 5.x and Centerline C++
14996 lt_prog_compiler_pic_CXX='-KPIC'
14997 lt_prog_compiler_static_CXX='-Bstatic'
14998 lt_prog_compiler_wl_CXX='-Qoption ld '
14999 ;;
15000 gcx*)
15001 # Green Hills C++ Compiler
15002 lt_prog_compiler_pic_CXX='-PIC'
15003 ;;
15004 *)
15005 ;;
15006 esac
15007 ;;
15008 sunos4*)
15009 case $cc_basename in
15010 CC*)
15011 # Sun C++ 4.x
15012 lt_prog_compiler_pic_CXX='-pic'
15013 lt_prog_compiler_static_CXX='-Bstatic'
15014 ;;
15015 lcc*)
15016 # Lucid
15017 lt_prog_compiler_pic_CXX='-pic'
15018 ;;
15019 *)
15020 ;;
15021 esac
15022 ;;
15023 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15024 case $cc_basename in
15025 CC*)
15026 lt_prog_compiler_wl_CXX='-Wl,'
15027 lt_prog_compiler_pic_CXX='-KPIC'
15028 lt_prog_compiler_static_CXX='-Bstatic'
15029 ;;
15030 esac
15031 ;;
15032 tandem*)
15033 case $cc_basename in
15034 NCC*)
15035 # NonStop-UX NCC 3.20
15036 lt_prog_compiler_pic_CXX='-KPIC'
15037 ;;
15038 *)
15039 ;;
15040 esac
15041 ;;
15042 vxworks*)
15043 ;;
15044 *)
15045 lt_prog_compiler_can_build_shared_CXX=no
15046 ;;
15047 esac
15048 fi
15049
15050 case $host_os in
15051 # For platforms that do not support PIC, -DPIC is meaningless:
15052 *djgpp*)
15053 lt_prog_compiler_pic_CXX=
15054 ;;
15055 *)
15056 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15057 ;;
15058 esac
15059
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15061 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15062 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15063 $as_echo_n "(cached) " >&6
15064 else
15065 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15066 fi
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15068 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15069 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15070
15071 #
15072 # Check to make sure the PIC flag actually works.
15073 #
15074 if test -n "$lt_prog_compiler_pic_CXX"; then
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15076 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15077 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15078 $as_echo_n "(cached) " >&6
15079 else
15080 lt_cv_prog_compiler_pic_works_CXX=no
15081 ac_outfile=conftest.$ac_objext
15082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15083 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
15084 # Insert the option either (1) after the last *FLAGS variable, or
15085 # (2) before a word containing "conftest.", or (3) at the end.
15086 # Note that $ac_compile itself does not contain backslashes and begins
15087 # with a dollar sign (not a hyphen), so the echo should work correctly.
15088 # The option is referenced via a variable to avoid confusing sed.
15089 lt_compile=`echo "$ac_compile" | $SED \
15090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15092 -e 's:$: $lt_compiler_flag:'`
15093 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15094 (eval "$lt_compile" 2>conftest.err)
15095 ac_status=$?
15096 cat conftest.err >&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 if (exit $ac_status) && test -s "$ac_outfile"; then
15099 # The compiler can only warn and ignore the option if not recognized
15100 # So say no if there are warnings other than the usual output.
15101 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15103 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15104 lt_cv_prog_compiler_pic_works_CXX=yes
15105 fi
15106 fi
15107 $RM conftest*
15108
15109 fi
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15111 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15112
15113 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
15114 case $lt_prog_compiler_pic_CXX in
15115 "" | " "*) ;;
15116 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15117 esac
15118 else
15119 lt_prog_compiler_pic_CXX=
15120 lt_prog_compiler_can_build_shared_CXX=no
15121 fi
15122
15123 fi
15124
15125
15126
15127
15128
15129 #
15130 # Check to make sure the static flag actually works.
15131 #
15132 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15134 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15135 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15136 $as_echo_n "(cached) " >&6
15137 else
15138 lt_cv_prog_compiler_static_works_CXX=no
15139 save_LDFLAGS=$LDFLAGS
15140 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15141 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15142 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15143 # The linker can only warn and ignore the option if not recognized
15144 # So say no if there are warnings
15145 if test -s conftest.err; then
15146 # Append any errors to the config.log.
15147 cat conftest.err 1>&5
15148 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15149 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15150 if diff conftest.exp conftest.er2 >/dev/null; then
15151 lt_cv_prog_compiler_static_works_CXX=yes
15152 fi
15153 else
15154 lt_cv_prog_compiler_static_works_CXX=yes
15155 fi
15156 fi
15157 $RM -r conftest*
15158 LDFLAGS=$save_LDFLAGS
15159
15160 fi
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15162 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15163
15164 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
15165 :
15166 else
15167 lt_prog_compiler_static_CXX=
15168 fi
15169
15170
15171
15172
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15174 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15175 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15176 $as_echo_n "(cached) " >&6
15177 else
15178 lt_cv_prog_compiler_c_o_CXX=no
15179 $RM -r conftest 2>/dev/null
15180 mkdir conftest
15181 cd conftest
15182 mkdir out
15183 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15184
15185 lt_compiler_flag="-o out/conftest2.$ac_objext"
15186 # Insert the option either (1) after the last *FLAGS variable, or
15187 # (2) before a word containing "conftest.", or (3) at the end.
15188 # Note that $ac_compile itself does not contain backslashes and begins
15189 # with a dollar sign (not a hyphen), so the echo should work correctly.
15190 lt_compile=`echo "$ac_compile" | $SED \
15191 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15192 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15193 -e 's:$: $lt_compiler_flag:'`
15194 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15195 (eval "$lt_compile" 2>out/conftest.err)
15196 ac_status=$?
15197 cat out/conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15200 then
15201 # The compiler can only warn and ignore the option if not recognized
15202 # So say no if there are warnings
15203 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15204 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15205 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15206 lt_cv_prog_compiler_c_o_CXX=yes
15207 fi
15208 fi
15209 chmod u+w . 2>&5
15210 $RM conftest*
15211 # SGI C++ compiler will create directory out/ii_files/ for
15212 # template instantiation
15213 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15214 $RM out/* && rmdir out
15215 cd ..
15216 $RM -r conftest
15217 $RM conftest*
15218
15219 fi
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15221 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15222
15223
15224
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15226 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15227 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15228 $as_echo_n "(cached) " >&6
15229 else
15230 lt_cv_prog_compiler_c_o_CXX=no
15231 $RM -r conftest 2>/dev/null
15232 mkdir conftest
15233 cd conftest
15234 mkdir out
15235 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15236
15237 lt_compiler_flag="-o out/conftest2.$ac_objext"
15238 # Insert the option either (1) after the last *FLAGS variable, or
15239 # (2) before a word containing "conftest.", or (3) at the end.
15240 # Note that $ac_compile itself does not contain backslashes and begins
15241 # with a dollar sign (not a hyphen), so the echo should work correctly.
15242 lt_compile=`echo "$ac_compile" | $SED \
15243 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15245 -e 's:$: $lt_compiler_flag:'`
15246 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15247 (eval "$lt_compile" 2>out/conftest.err)
15248 ac_status=$?
15249 cat out/conftest.err >&5
15250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15251 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15252 then
15253 # The compiler can only warn and ignore the option if not recognized
15254 # So say no if there are warnings
15255 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15256 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15257 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15258 lt_cv_prog_compiler_c_o_CXX=yes
15259 fi
15260 fi
15261 chmod u+w . 2>&5
15262 $RM conftest*
15263 # SGI C++ compiler will create directory out/ii_files/ for
15264 # template instantiation
15265 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15266 $RM out/* && rmdir out
15267 cd ..
15268 $RM -r conftest
15269 $RM conftest*
15270
15271 fi
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15273 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15274
15275
15276
15277
15278 hard_links=nottested
15279 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
15280 # do not overwrite the value of need_locks provided by the user
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15282 $as_echo_n "checking if we can lock with hard links... " >&6; }
15283 hard_links=yes
15284 $RM conftest*
15285 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15286 touch conftest.a
15287 ln conftest.a conftest.b 2>&5 || hard_links=no
15288 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15290 $as_echo "$hard_links" >&6; }
15291 if test no = "$hard_links"; then
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
15293 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
15294 need_locks=warn
15295 fi
15296 else
15297 need_locks=no
15298 fi
15299
15300
15301
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15303 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15304
15305 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15306 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15307 case $host_os in
15308 aix[4-9]*)
15309 # If we're using GNU nm, then we don't want the "-C" option.
15310 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
15311 # Without the "-l" option, or with the "-B" option, AIX nm treats
15312 # weak defined symbols like other global defined symbols, whereas
15313 # GNU nm marks them as "W".
15314 # While the 'weak' keyword is ignored in the Export File, we need
15315 # it in the Import File for the 'aix-soname' feature, so we have
15316 # to replace the "-B" option with "-P" for AIX nm.
15317 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15318 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
15319 else
15320 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
15321 fi
15322 ;;
15323 pw32*)
15324 export_symbols_cmds_CXX=$ltdll_cmds
15325 ;;
15326 cygwin* | mingw* | cegcc*)
15327 case $cc_basename in
15328 cl*)
15329 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15330 ;;
15331 *)
15332 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15333 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15334 ;;
15335 esac
15336 ;;
15337 *)
15338 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15339 ;;
15340 esac
15341
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15343 $as_echo "$ld_shlibs_CXX" >&6; }
15344 test no = "$ld_shlibs_CXX" && can_build_shared=no
15345
15346 with_gnu_ld_CXX=$with_gnu_ld
15347
15348
15349
15350
15351
15352
15353 #
15354 # Do we need to explicitly link libc?
15355 #
15356 case "x$archive_cmds_need_lc_CXX" in
15357 x|xyes)
15358 # Assume -lc should be added
15359 archive_cmds_need_lc_CXX=yes
15360
15361 if test yes,yes = "$GCC,$enable_shared"; then
15362 case $archive_cmds_CXX in
15363 *'~'*)
15364 # FIXME: we may have to deal with multi-command sequences.
15365 ;;
15366 '$CC '*)
15367 # Test whether the compiler implicitly links with -lc since on some
15368 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15369 # to ld, don't add -lc before -lgcc.
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15371 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15372 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15373 $as_echo_n "(cached) " >&6
15374 else
15375 $RM conftest*
15376 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15377
15378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15379 (eval $ac_compile) 2>&5
15380 ac_status=$?
15381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15382 test $ac_status = 0; } 2>conftest.err; then
15383 soname=conftest
15384 lib=conftest
15385 libobjs=conftest.$ac_objext
15386 deplibs=
15387 wl=$lt_prog_compiler_wl_CXX
15388 pic_flag=$lt_prog_compiler_pic_CXX
15389 compiler_flags=-v
15390 linker_flags=-v
15391 verstring=
15392 output_objdir=.
15393 libname=conftest
15394 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15395 allow_undefined_flag_CXX=
15396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15397 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15398 ac_status=$?
15399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15400 test $ac_status = 0; }
15401 then
15402 lt_cv_archive_cmds_need_lc_CXX=no
15403 else
15404 lt_cv_archive_cmds_need_lc_CXX=yes
15405 fi
15406 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15407 else
15408 cat conftest.err 1>&5
15409 fi
15410 $RM conftest*
15411
15412 fi
15413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15414 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15415 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15416 ;;
15417 esac
15418 fi
15419 ;;
15420 esac
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15484 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15485
15486 library_names_spec=
15487 libname_spec='lib$name'
15488 soname_spec=
15489 shrext_cmds=.so
15490 postinstall_cmds=
15491 postuninstall_cmds=
15492 finish_cmds=
15493 finish_eval=
15494 shlibpath_var=
15495 shlibpath_overrides_runpath=unknown
15496 version_type=none
15497 dynamic_linker="$host_os ld.so"
15498 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15499 need_lib_prefix=unknown
15500 hardcode_into_libs=no
15501
15502 # when you set need_version to no, make sure it does not cause -set_version
15503 # flags to be left without arguments
15504 need_version=unknown
15505
15506
15507
15508 case $host_os in
15509 aix3*)
15510 version_type=linux # correct to gnu/linux during the next big refactor
15511 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
15512 shlibpath_var=LIBPATH
15513
15514 # AIX 3 has no versioning support, so we append a major version to the name.
15515 soname_spec='$libname$release$shared_ext$major'
15516 ;;
15517
15518 aix[4-9]*)
15519 version_type=linux # correct to gnu/linux during the next big refactor
15520 need_lib_prefix=no
15521 need_version=no
15522 hardcode_into_libs=yes
15523 if test ia64 = "$host_cpu"; then
15524 # AIX 5 supports IA64
15525 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
15526 shlibpath_var=LD_LIBRARY_PATH
15527 else
15528 # With GCC up to 2.95.x, collect2 would create an import file
15529 # for dependence libraries. The import file would start with
15530 # the line '#! .'. This would cause the generated library to
15531 # depend on '.', always an invalid library. This was fixed in
15532 # development snapshots of GCC prior to 3.0.
15533 case $host_os in
15534 aix4 | aix4.[01] | aix4.[01].*)
15535 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15536 echo ' yes '
15537 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
15538 :
15539 else
15540 can_build_shared=no
15541 fi
15542 ;;
15543 esac
15544 # Using Import Files as archive members, it is possible to support
15545 # filename-based versioning of shared library archives on AIX. While
15546 # this would work for both with and without runtime linking, it will
15547 # prevent static linking of such archives. So we do filename-based
15548 # shared library versioning with .so extension only, which is used
15549 # when both runtime linking and shared linking is enabled.
15550 # Unfortunately, runtime linking may impact performance, so we do
15551 # not want this to be the default eventually. Also, we use the
15552 # versioned .so libs for executables only if there is the -brtl
15553 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
15554 # To allow for filename-based versioning support, we need to create
15555 # libNAME.so.V as an archive file, containing:
15556 # *) an Import File, referring to the versioned filename of the
15557 # archive as well as the shared archive member, telling the
15558 # bitwidth (32 or 64) of that shared object, and providing the
15559 # list of exported symbols of that shared object, eventually
15560 # decorated with the 'weak' keyword
15561 # *) the shared object with the F_LOADONLY flag set, to really avoid
15562 # it being seen by the linker.
15563 # At run time we better use the real file rather than another symlink,
15564 # but for link time we create the symlink libNAME.so -> libNAME.so.V
15565
15566 case $with_aix_soname,$aix_use_runtimelinking in
15567 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
15568 # soname into executable. Probably we can add versioning support to
15569 # collect2, so additional links can be useful in future.
15570 aix,yes) # traditional libtool
15571 dynamic_linker='AIX unversionable lib.so'
15572 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15573 # instead of lib<name>.a to let people know that these are not
15574 # typical AIX shared libraries.
15575 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15576 ;;
15577 aix,no) # traditional AIX only
15578 dynamic_linker='AIX lib.a(lib.so.V)'
15579 # We preserve .a as extension for shared libraries through AIX4.2
15580 # and later when we are not doing run time linking.
15581 library_names_spec='$libname$release.a $libname.a'
15582 soname_spec='$libname$release$shared_ext$major'
15583 ;;
15584 svr4,*) # full svr4 only
15585 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
15586 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15587 # We do not specify a path in Import Files, so LIBPATH fires.
15588 shlibpath_overrides_runpath=yes
15589 ;;
15590 *,yes) # both, prefer svr4
15591 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
15592 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
15593 # unpreferred sharedlib libNAME.a needs extra handling
15594 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
15595 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
15596 # We do not specify a path in Import Files, so LIBPATH fires.
15597 shlibpath_overrides_runpath=yes
15598 ;;
15599 *,no) # both, prefer aix
15600 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
15601 library_names_spec='$libname$release.a $libname.a'
15602 soname_spec='$libname$release$shared_ext$major'
15603 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
15604 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
15605 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
15606 ;;
15607 esac
15608 shlibpath_var=LIBPATH
15609 fi
15610 ;;
15611
15612 amigaos*)
15613 case $host_cpu in
15614 powerpc)
15615 # Since July 2007 AmigaOS4 officially supports .so libraries.
15616 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15618 ;;
15619 m68k)
15620 library_names_spec='$libname.ixlibrary $libname.a'
15621 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15622 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
15623 ;;
15624 esac
15625 ;;
15626
15627 beos*)
15628 library_names_spec='$libname$shared_ext'
15629 dynamic_linker="$host_os ld.so"
15630 shlibpath_var=LIBRARY_PATH
15631 ;;
15632
15633 bsdi[45]*)
15634 version_type=linux # correct to gnu/linux during the next big refactor
15635 need_version=no
15636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15637 soname_spec='$libname$release$shared_ext$major'
15638 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15639 shlibpath_var=LD_LIBRARY_PATH
15640 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15641 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15642 # the default ld.so.conf also contains /usr/contrib/lib and
15643 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15644 # libtool to hard-code these into programs
15645 ;;
15646
15647 cygwin* | mingw* | pw32* | cegcc*)
15648 version_type=windows
15649 shrext_cmds=.dll
15650 need_version=no
15651 need_lib_prefix=no
15652
15653 case $GCC,$cc_basename in
15654 yes,*)
15655 # gcc
15656 library_names_spec='$libname.dll.a'
15657 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15658 postinstall_cmds='base_file=`basename \$file`~
15659 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15660 dldir=$destdir/`dirname \$dlpath`~
15661 test -d \$dldir || mkdir -p \$dldir~
15662 $install_prog $dir/$dlname \$dldir/$dlname~
15663 chmod a+x \$dldir/$dlname~
15664 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15665 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15666 fi'
15667 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15668 dlpath=$dir/\$dldll~
15669 $RM \$dlpath'
15670 shlibpath_overrides_runpath=yes
15671
15672 case $host_os in
15673 cygwin*)
15674 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15675 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15676
15677 ;;
15678 mingw* | cegcc*)
15679 # MinGW DLLs use traditional 'lib' prefix
15680 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15681 ;;
15682 pw32*)
15683 # pw32 DLLs use 'pw' prefix rather than 'lib'
15684 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15685 ;;
15686 esac
15687 dynamic_linker='Win32 ld.exe'
15688 ;;
15689
15690 *,cl*)
15691 # Native MSVC
15692 libname_spec='$name'
15693 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15694 library_names_spec='$libname.dll.lib'
15695
15696 case $build_os in
15697 mingw*)
15698 sys_lib_search_path_spec=
15699 lt_save_ifs=$IFS
15700 IFS=';'
15701 for lt_path in $LIB
15702 do
15703 IFS=$lt_save_ifs
15704 # Let DOS variable expansion print the short 8.3 style file name.
15705 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15706 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15707 done
15708 IFS=$lt_save_ifs
15709 # Convert to MSYS style.
15710 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15711 ;;
15712 cygwin*)
15713 # Convert to unix form, then to dos form, then back to unix form
15714 # but this time dos style (no spaces!) so that the unix form looks
15715 # like /cygdrive/c/PROGRA~1:/cygdr...
15716 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15717 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15718 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15719 ;;
15720 *)
15721 sys_lib_search_path_spec=$LIB
15722 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15723 # It is most probably a Windows format PATH.
15724 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15725 else
15726 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15727 fi
15728 # FIXME: find the short name or the path components, as spaces are
15729 # common. (e.g. "Program Files" -> "PROGRA~1")
15730 ;;
15731 esac
15732
15733 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15734 postinstall_cmds='base_file=`basename \$file`~
15735 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15736 dldir=$destdir/`dirname \$dlpath`~
15737 test -d \$dldir || mkdir -p \$dldir~
15738 $install_prog $dir/$dlname \$dldir/$dlname'
15739 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15740 dlpath=$dir/\$dldll~
15741 $RM \$dlpath'
15742 shlibpath_overrides_runpath=yes
15743 dynamic_linker='Win32 link.exe'
15744 ;;
15745
15746 *)
15747 # Assume MSVC wrapper
15748 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15749 dynamic_linker='Win32 ld.exe'
15750 ;;
15751 esac
15752 # FIXME: first we should search . and the directory the executable is in
15753 shlibpath_var=PATH
15754 ;;
15755
15756 darwin* | rhapsody*)
15757 dynamic_linker="$host_os dyld"
15758 version_type=darwin
15759 need_lib_prefix=no
15760 need_version=no
15761 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15762 soname_spec='$libname$release$major$shared_ext'
15763 shlibpath_overrides_runpath=yes
15764 shlibpath_var=DYLD_LIBRARY_PATH
15765 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15766
15767 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15768 ;;
15769
15770 dgux*)
15771 version_type=linux # correct to gnu/linux during the next big refactor
15772 need_lib_prefix=no
15773 need_version=no
15774 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15775 soname_spec='$libname$release$shared_ext$major'
15776 shlibpath_var=LD_LIBRARY_PATH
15777 ;;
15778
15779 freebsd* | dragonfly*)
15780 # DragonFly does not have aout. When/if they implement a new
15781 # versioning mechanism, adjust this.
15782 if test -x /usr/bin/objformat; then
15783 objformat=`/usr/bin/objformat`
15784 else
15785 case $host_os in
15786 freebsd[23].*) objformat=aout ;;
15787 *) objformat=elf ;;
15788 esac
15789 fi
15790 version_type=freebsd-$objformat
15791 case $version_type in
15792 freebsd-elf*)
15793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15794 soname_spec='$libname$release$shared_ext$major'
15795 need_version=no
15796 need_lib_prefix=no
15797 ;;
15798 freebsd-*)
15799 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15800 need_version=yes
15801 ;;
15802 esac
15803 shlibpath_var=LD_LIBRARY_PATH
15804 case $host_os in
15805 freebsd2.*)
15806 shlibpath_overrides_runpath=yes
15807 ;;
15808 freebsd3.[01]* | freebsdelf3.[01]*)
15809 shlibpath_overrides_runpath=yes
15810 hardcode_into_libs=yes
15811 ;;
15812 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15813 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15814 shlibpath_overrides_runpath=no
15815 hardcode_into_libs=yes
15816 ;;
15817 *) # from 4.6 on, and DragonFly
15818 shlibpath_overrides_runpath=yes
15819 hardcode_into_libs=yes
15820 ;;
15821 esac
15822 ;;
15823
15824 haiku*)
15825 version_type=linux # correct to gnu/linux during the next big refactor
15826 need_lib_prefix=no
15827 need_version=no
15828 dynamic_linker="$host_os runtime_loader"
15829 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15830 soname_spec='$libname$release$shared_ext$major'
15831 shlibpath_var=LIBRARY_PATH
15832 shlibpath_overrides_runpath=no
15833 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15834 hardcode_into_libs=yes
15835 ;;
15836
15837 hpux9* | hpux10* | hpux11*)
15838 # Give a soname corresponding to the major version so that dld.sl refuses to
15839 # link against other versions.
15840 version_type=sunos
15841 need_lib_prefix=no
15842 need_version=no
15843 case $host_cpu in
15844 ia64*)
15845 shrext_cmds='.so'
15846 hardcode_into_libs=yes
15847 dynamic_linker="$host_os dld.so"
15848 shlibpath_var=LD_LIBRARY_PATH
15849 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15850 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15851 soname_spec='$libname$release$shared_ext$major'
15852 if test 32 = "$HPUX_IA64_MODE"; then
15853 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15854 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15855 else
15856 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15857 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15858 fi
15859 ;;
15860 hppa*64*)
15861 shrext_cmds='.sl'
15862 hardcode_into_libs=yes
15863 dynamic_linker="$host_os dld.sl"
15864 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15865 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15866 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15867 soname_spec='$libname$release$shared_ext$major'
15868 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15870 ;;
15871 *)
15872 shrext_cmds='.sl'
15873 dynamic_linker="$host_os dld.sl"
15874 shlibpath_var=SHLIB_PATH
15875 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15877 soname_spec='$libname$release$shared_ext$major'
15878 ;;
15879 esac
15880 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15881 postinstall_cmds='chmod 555 $lib'
15882 # or fails outright, so override atomically:
15883 install_override_mode=555
15884 ;;
15885
15886 interix[3-9]*)
15887 version_type=linux # correct to gnu/linux during the next big refactor
15888 need_lib_prefix=no
15889 need_version=no
15890 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15891 soname_spec='$libname$release$shared_ext$major'
15892 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15893 shlibpath_var=LD_LIBRARY_PATH
15894 shlibpath_overrides_runpath=no
15895 hardcode_into_libs=yes
15896 ;;
15897
15898 irix5* | irix6* | nonstopux*)
15899 case $host_os in
15900 nonstopux*) version_type=nonstopux ;;
15901 *)
15902 if test yes = "$lt_cv_prog_gnu_ld"; then
15903 version_type=linux # correct to gnu/linux during the next big refactor
15904 else
15905 version_type=irix
15906 fi ;;
15907 esac
15908 need_lib_prefix=no
15909 need_version=no
15910 soname_spec='$libname$release$shared_ext$major'
15911 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15912 case $host_os in
15913 irix5* | nonstopux*)
15914 libsuff= shlibsuff=
15915 ;;
15916 *)
15917 case $LD in # libtool.m4 will add one of these switches to LD
15918 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15919 libsuff= shlibsuff= libmagic=32-bit;;
15920 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15921 libsuff=32 shlibsuff=N32 libmagic=N32;;
15922 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15923 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15924 *) libsuff= shlibsuff= libmagic=never-match;;
15925 esac
15926 ;;
15927 esac
15928 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15929 shlibpath_overrides_runpath=no
15930 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15931 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15932 hardcode_into_libs=yes
15933 ;;
15934
15935 # No shared lib support for Linux oldld, aout, or coff.
15936 linux*oldld* | linux*aout* | linux*coff*)
15937 dynamic_linker=no
15938 ;;
15939
15940 linux*android*)
15941 version_type=none # Android doesn't support versioned libraries.
15942 need_lib_prefix=no
15943 need_version=no
15944 library_names_spec='$libname$release$shared_ext'
15945 soname_spec='$libname$release$shared_ext'
15946 finish_cmds=
15947 shlibpath_var=LD_LIBRARY_PATH
15948 shlibpath_overrides_runpath=yes
15949
15950 # This implies no fast_install, which is unacceptable.
15951 # Some rework will be needed to allow for fast_install
15952 # before this can be enabled.
15953 hardcode_into_libs=yes
15954
15955 dynamic_linker='Android linker'
15956 # Don't embed -rpath directories since the linker doesn't support them.
15957 hardcode_libdir_flag_spec_CXX='-L$libdir'
15958 ;;
15959
15960 # This must be glibc/ELF.
15961 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15962 version_type=linux # correct to gnu/linux during the next big refactor
15963 need_lib_prefix=no
15964 need_version=no
15965 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15966 soname_spec='$libname$release$shared_ext$major'
15967 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15968 shlibpath_var=LD_LIBRARY_PATH
15969 shlibpath_overrides_runpath=no
15970
15971 # Some binutils ld are patched to set DT_RUNPATH
15972 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15973 $as_echo_n "(cached) " >&6
15974 else
15975 lt_cv_shlibpath_overrides_runpath=no
15976 save_LDFLAGS=$LDFLAGS
15977 save_libdir=$libdir
15978 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15979 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15981 /* end confdefs.h. */
15982
15983 int
15984 main ()
15985 {
15986
15987 ;
15988 return 0;
15989 }
15990 _ACEOF
15991 if ac_fn_cxx_try_link "$LINENO"; then :
15992 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15993 lt_cv_shlibpath_overrides_runpath=yes
15994 fi
15995 fi
15996 rm -f core conftest.err conftest.$ac_objext \
15997 conftest$ac_exeext conftest.$ac_ext
15998 LDFLAGS=$save_LDFLAGS
15999 libdir=$save_libdir
16000
16001 fi
16002
16003 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16004
16005 # This implies no fast_install, which is unacceptable.
16006 # Some rework will be needed to allow for fast_install
16007 # before this can be enabled.
16008 hardcode_into_libs=yes
16009
16010 # Add ABI-specific directories to the system library path.
16011 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16012
16013 # Ideally, we could use ldconfig to report *all* directores which are
16014 # searched for libraries, however this is still not possible. Aside from not
16015 # being certain /sbin/ldconfig is available, command
16016 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
16017 # even though it is searched at run-time. Try to do the best guess by
16018 # appending ld.so.conf contents (and includes) to the search path.
16019 if test -f /etc/ld.so.conf; then
16020 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' ' '`
16021 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16022 fi
16023
16024 # We used to test for /lib/ld.so.1 and disable shared libraries on
16025 # powerpc, because MkLinux only supported shared libraries with the
16026 # GNU dynamic linker. Since this was broken with cross compilers,
16027 # most powerpc-linux boxes support dynamic linking these days and
16028 # people can always --disable-shared, the test was removed, and we
16029 # assume the GNU/Linux dynamic linker is in use.
16030 dynamic_linker='GNU/Linux ld.so'
16031 ;;
16032
16033 netbsd*)
16034 version_type=sunos
16035 need_lib_prefix=no
16036 need_version=no
16037 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16038 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16039 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16040 dynamic_linker='NetBSD (a.out) ld.so'
16041 else
16042 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16043 soname_spec='$libname$release$shared_ext$major'
16044 dynamic_linker='NetBSD ld.elf_so'
16045 fi
16046 shlibpath_var=LD_LIBRARY_PATH
16047 shlibpath_overrides_runpath=yes
16048 hardcode_into_libs=yes
16049 ;;
16050
16051 newsos6)
16052 version_type=linux # correct to gnu/linux during the next big refactor
16053 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16054 shlibpath_var=LD_LIBRARY_PATH
16055 shlibpath_overrides_runpath=yes
16056 ;;
16057
16058 *nto* | *qnx*)
16059 version_type=qnx
16060 need_lib_prefix=no
16061 need_version=no
16062 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16063 soname_spec='$libname$release$shared_ext$major'
16064 shlibpath_var=LD_LIBRARY_PATH
16065 shlibpath_overrides_runpath=no
16066 hardcode_into_libs=yes
16067 dynamic_linker='ldqnx.so'
16068 ;;
16069
16070 openbsd* | bitrig*)
16071 version_type=sunos
16072 sys_lib_dlsearch_path_spec=/usr/lib
16073 need_lib_prefix=no
16074 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
16075 need_version=no
16076 else
16077 need_version=yes
16078 fi
16079 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16081 shlibpath_var=LD_LIBRARY_PATH
16082 shlibpath_overrides_runpath=yes
16083 ;;
16084
16085 os2*)
16086 libname_spec='$name'
16087 version_type=windows
16088 shrext_cmds=.dll
16089 need_version=no
16090 need_lib_prefix=no
16091 # OS/2 can only load a DLL with a base name of 8 characters or less.
16092 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
16093 v=$($ECHO $release$versuffix | tr -d .-);
16094 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
16095 $ECHO $n$v`$shared_ext'
16096 library_names_spec='${libname}_dll.$libext'
16097 dynamic_linker='OS/2 ld.exe'
16098 shlibpath_var=BEGINLIBPATH
16099 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16100 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16101 postinstall_cmds='base_file=`basename \$file`~
16102 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
16103 dldir=$destdir/`dirname \$dlpath`~
16104 test -d \$dldir || mkdir -p \$dldir~
16105 $install_prog $dir/$dlname \$dldir/$dlname~
16106 chmod a+x \$dldir/$dlname~
16107 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16108 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16109 fi'
16110 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
16111 dlpath=$dir/\$dldll~
16112 $RM \$dlpath'
16113 ;;
16114
16115 osf3* | osf4* | osf5*)
16116 version_type=osf
16117 need_lib_prefix=no
16118 need_version=no
16119 soname_spec='$libname$release$shared_ext$major'
16120 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16121 shlibpath_var=LD_LIBRARY_PATH
16122 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16123 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16124 ;;
16125
16126 rdos*)
16127 dynamic_linker=no
16128 ;;
16129
16130 solaris*)
16131 version_type=linux # correct to gnu/linux during the next big refactor
16132 need_lib_prefix=no
16133 need_version=no
16134 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16135 soname_spec='$libname$release$shared_ext$major'
16136 shlibpath_var=LD_LIBRARY_PATH
16137 shlibpath_overrides_runpath=yes
16138 hardcode_into_libs=yes
16139 # ldd complains unless libraries are executable
16140 postinstall_cmds='chmod +x $lib'
16141 ;;
16142
16143 sunos4*)
16144 version_type=sunos
16145 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
16146 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16147 shlibpath_var=LD_LIBRARY_PATH
16148 shlibpath_overrides_runpath=yes
16149 if test yes = "$with_gnu_ld"; then
16150 need_lib_prefix=no
16151 fi
16152 need_version=yes
16153 ;;
16154
16155 sysv4 | sysv4.3*)
16156 version_type=linux # correct to gnu/linux during the next big refactor
16157 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16158 soname_spec='$libname$release$shared_ext$major'
16159 shlibpath_var=LD_LIBRARY_PATH
16160 case $host_vendor in
16161 sni)
16162 shlibpath_overrides_runpath=no
16163 need_lib_prefix=no
16164 runpath_var=LD_RUN_PATH
16165 ;;
16166 siemens)
16167 need_lib_prefix=no
16168 ;;
16169 motorola)
16170 need_lib_prefix=no
16171 need_version=no
16172 shlibpath_overrides_runpath=no
16173 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16174 ;;
16175 esac
16176 ;;
16177
16178 sysv4*MP*)
16179 if test -d /usr/nec; then
16180 version_type=linux # correct to gnu/linux during the next big refactor
16181 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
16182 soname_spec='$libname$shared_ext.$major'
16183 shlibpath_var=LD_LIBRARY_PATH
16184 fi
16185 ;;
16186
16187 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16188 version_type=sco
16189 need_lib_prefix=no
16190 need_version=no
16191 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
16192 soname_spec='$libname$release$shared_ext$major'
16193 shlibpath_var=LD_LIBRARY_PATH
16194 shlibpath_overrides_runpath=yes
16195 hardcode_into_libs=yes
16196 if test yes = "$with_gnu_ld"; then
16197 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16198 else
16199 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16200 case $host_os in
16201 sco3.2v5*)
16202 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16203 ;;
16204 esac
16205 fi
16206 sys_lib_dlsearch_path_spec='/usr/lib'
16207 ;;
16208
16209 tpf*)
16210 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16211 version_type=linux # correct to gnu/linux during the next big refactor
16212 need_lib_prefix=no
16213 need_version=no
16214 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16215 shlibpath_var=LD_LIBRARY_PATH
16216 shlibpath_overrides_runpath=no
16217 hardcode_into_libs=yes
16218 ;;
16219
16220 uts4*)
16221 version_type=linux # correct to gnu/linux during the next big refactor
16222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
16223 soname_spec='$libname$release$shared_ext$major'
16224 shlibpath_var=LD_LIBRARY_PATH
16225 ;;
16226
16227 *)
16228 dynamic_linker=no
16229 ;;
16230 esac
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16232 $as_echo "$dynamic_linker" >&6; }
16233 test no = "$dynamic_linker" && can_build_shared=no
16234
16235 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16236 if test yes = "$GCC"; then
16237 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16238 fi
16239
16240 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
16241 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
16242 fi
16243
16244 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
16245 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
16246 fi
16247
16248 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
16249 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
16250
16251 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
16252 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
16253
16254 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
16255 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16297 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16298 hardcode_action_CXX=
16299 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16300 test -n "$runpath_var_CXX" ||
16301 test yes = "$hardcode_automatic_CXX"; then
16302
16303 # We can hardcode non-existent directories.
16304 if test no != "$hardcode_direct_CXX" &&
16305 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16306 # have to relink, otherwise we might link with an installed library
16307 # when we should be linking with a yet-to-be-installed one
16308 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
16309 test no != "$hardcode_minus_L_CXX"; then
16310 # Linking always hardcodes the temporary library directory.
16311 hardcode_action_CXX=relink
16312 else
16313 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16314 hardcode_action_CXX=immediate
16315 fi
16316 else
16317 # We cannot hardcode anything, or else we can only hardcode existing
16318 # directories.
16319 hardcode_action_CXX=unsupported
16320 fi
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16322 $as_echo "$hardcode_action_CXX" >&6; }
16323
16324 if test relink = "$hardcode_action_CXX" ||
16325 test yes = "$inherit_rpath_CXX"; then
16326 # Fast installation is not supported
16327 enable_fast_install=no
16328 elif test yes = "$shlibpath_overrides_runpath" ||
16329 test no = "$enable_shared"; then
16330 # Fast installation is not necessary
16331 enable_fast_install=needless
16332 fi
16333
16334
16335
16336
16337
16338
16339
16340 fi # test -n "$compiler"
16341
16342 CC=$lt_save_CC
16343 CFLAGS=$lt_save_CFLAGS
16344 LDCXX=$LD
16345 LD=$lt_save_LD
16346 GCC=$lt_save_GCC
16347 with_gnu_ld=$lt_save_with_gnu_ld
16348 lt_cv_path_LDCXX=$lt_cv_path_LD
16349 lt_cv_path_LD=$lt_save_path_LD
16350 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16351 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16352 fi # test yes != "$_lt_caught_CXX_error"
16353
16354 ac_ext=c
16355 ac_cpp='$CPP $CPPFLAGS'
16356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374 ac_config_commands="$ac_config_commands libtool"
16375
16376
16377
16378
16379 # Only expand once:
16380
16381
16382
16383
16384 # Test for 64-bit build.
16385 # The cast to long int works around a bug in the HP C Compiler
16386 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16387 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16388 # This bug is HP SR number 8606223364.
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
16390 $as_echo_n "checking size of size_t... " >&6; }
16391 if ${ac_cv_sizeof_size_t+:} false; then :
16392 $as_echo_n "(cached) " >&6
16393 else
16394 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
16395
16396 else
16397 if test "$ac_cv_type_size_t" = yes; then
16398 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16399 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16400 as_fn_error 77 "cannot compute sizeof (size_t)
16401 See \`config.log' for more details" "$LINENO" 5; }
16402 else
16403 ac_cv_sizeof_size_t=0
16404 fi
16405 fi
16406
16407 fi
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
16409 $as_echo "$ac_cv_sizeof_size_t" >&6; }
16410
16411
16412
16413 cat >>confdefs.h <<_ACEOF
16414 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
16415 _ACEOF
16416
16417
16418
16419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
16420 $as_echo_n "checking for C compiler vendor... " >&6; }
16421 if ${ax_cv_c_compiler_vendor+:} false; then :
16422 $as_echo_n "(cached) " >&6
16423 else
16424 # note: don't check for gcc first since some other compilers define __GNUC__
16425 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
16426 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
16427 pathscale: __PATHCC__,__PATHSCALE__
16428 clang: __clang__
16429 cray: _CRAYC
16430 fujitsu: __FUJITSU
16431 sdcc: SDCC, __SDCC
16432 gnu: __GNUC__
16433 sun: __SUNPRO_C,__SUNPRO_CC
16434 hp: __HP_cc,__HP_aCC
16435 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
16436 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__
16437 comeau: __COMO__
16438 kai: __KCC
16439 lcc: __LCC__
16440 sgi: __sgi,sgi
16441 microsoft: _MSC_VER
16442 metrowerks: __MWERKS__
16443 watcom: __WATCOMC__
16444 portland: __PGI
16445 tcc: __TINYC__
16446 unknown: UNKNOWN"
16447 for ventest in $vendors; do
16448 case $ventest in
16449 *:) vendor=$ventest; continue ;;
16450 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
16451 esac
16452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16453 /* end confdefs.h. */
16454
16455 int
16456 main ()
16457 {
16458
16459 #if !($vencpp)
16460 thisisanerror;
16461 #endif
16462
16463 ;
16464 return 0;
16465 }
16466 _ACEOF
16467 if ac_fn_c_try_compile "$LINENO"; then :
16468 break
16469 fi
16470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16471 done
16472 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
16473
16474 fi
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
16476 $as_echo "$ax_cv_c_compiler_vendor" >&6; }
16477
16478
16479
16480
16481
16482
16483 # Check whether --enable-portable-binary was given.
16484 if test "${enable_portable_binary+set}" = set; then :
16485 enableval=$enable_portable_binary; acx_maxopt_portable=$enableval
16486 else
16487 acx_maxopt_portable=no
16488 fi
16489
16490
16491 # Try to determine "good" native compiler flags if none specified via CFLAGS
16492 if test "$ac_test_CFLAGS" != "set"; then
16493 CFLAGS=""
16494 case $ax_cv_c_compiler_vendor in
16495 dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
16496 if test "x$acx_maxopt_portable" = xno; then
16497 CFLAGS="$CFLAGS -arch host"
16498 fi;;
16499
16500 sun) CFLAGS="-native -fast -xO5 -dalign"
16501 if test "x$acx_maxopt_portable" = xyes; then
16502 CFLAGS="$CFLAGS -xarch=generic"
16503 fi;;
16504
16505 hp) CFLAGS="+Oall +Optrs_ansi +DSnative"
16506 if test "x$acx_maxopt_portable" = xyes; then
16507 CFLAGS="$CFLAGS +DAportable"
16508 fi;;
16509
16510 ibm) if test "x$acx_maxopt_portable" = xno; then
16511 xlc_opt="-qarch=auto -qtune=auto"
16512 else
16513 xlc_opt="-qtune=auto"
16514 fi
16515 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$xlc_opt" | $as_tr_sh`
16516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
16517 $as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
16518 if eval \${$as_CACHEVAR+:} false; then :
16519 $as_echo_n "(cached) " >&6
16520 else
16521
16522 ax_check_save_flags=$CFLAGS
16523 CFLAGS="$CFLAGS $xlc_opt"
16524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16525 /* end confdefs.h. */
16526
16527 int
16528 main ()
16529 {
16530
16531 ;
16532 return 0;
16533 }
16534 _ACEOF
16535 if ac_fn_c_try_compile "$LINENO"; then :
16536 eval "$as_CACHEVAR=yes"
16537 else
16538 eval "$as_CACHEVAR=no"
16539 fi
16540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16541 CFLAGS=$ax_check_save_flags
16542 fi
16543 eval ac_res=\$$as_CACHEVAR
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16545 $as_echo "$ac_res" >&6; }
16546 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16547 CFLAGS="-O3 -qansialias -w $xlc_opt"
16548 else
16549 CFLAGS="-O3 -qansialias -w"
16550 echo "******************************************************"
16551 echo "* You seem to have the IBM C compiler. It is *"
16552 echo "* recommended for best performance that you use: *"
16553 echo "* *"
16554 echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
16555 echo "* ^^^ ^^^ *"
16556 echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *"
16557 echo "* CPU you have. (Set the CFLAGS environment var. *"
16558 echo "* and re-run configure.) For more info, man cc. *"
16559 echo "******************************************************"
16560 fi
16561
16562 ;;
16563
16564 intel) CFLAGS="-O3 -ansi_alias"
16565 if test "x$acx_maxopt_portable" = xno; then
16566 icc_archflag=unknown
16567 icc_flags=""
16568 case $host_cpu in
16569 i686*|x86_64*)
16570 # icc accepts gcc assembly syntax, so these should work:
16571
16572 ac_ext=c
16573 ac_cpp='$CPP $CPPFLAGS'
16574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16577
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
16579 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
16580 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
16581 $as_echo_n "(cached) " >&6
16582 else
16583 if test "$cross_compiling" = yes; then :
16584 ax_cv_gcc_x86_cpuid_0=unknown
16585 else
16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587 /* end confdefs.h. */
16588 #include <stdio.h>
16589 int
16590 main ()
16591 {
16592
16593 int op = 0, level = 0, eax, ebx, ecx, edx;
16594 FILE *f;
16595 __asm__ __volatile__ ("xchg %%ebx, %1\n"
16596 "cpuid\n"
16597 "xchg %%ebx, %1\n"
16598 : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
16599 : "a" (op), "2" (level));
16600
16601 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
16602 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
16603 fclose(f);
16604 return 0;
16605
16606 ;
16607 return 0;
16608 }
16609 _ACEOF
16610 if ac_fn_c_try_run "$LINENO"; then :
16611 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
16612 else
16613 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
16614 fi
16615 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16616 conftest.$ac_objext conftest.beam conftest.$ac_ext
16617 fi
16618
16619 fi
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
16621 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
16622 ac_ext=c
16623 ac_cpp='$CPP $CPPFLAGS'
16624 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16625 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16626 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16627
16628
16629
16630
16631 ac_ext=c
16632 ac_cpp='$CPP $CPPFLAGS'
16633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16636
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
16638 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
16639 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
16640 $as_echo_n "(cached) " >&6
16641 else
16642 if test "$cross_compiling" = yes; then :
16643 ax_cv_gcc_x86_cpuid_1=unknown
16644 else
16645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16646 /* end confdefs.h. */
16647 #include <stdio.h>
16648 int
16649 main ()
16650 {
16651
16652 int op = 1, level = 0, eax, ebx, ecx, edx;
16653 FILE *f;
16654 __asm__ __volatile__ ("xchg %%ebx, %1\n"
16655 "cpuid\n"
16656 "xchg %%ebx, %1\n"
16657 : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
16658 : "a" (op), "2" (level));
16659
16660 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
16661 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
16662 fclose(f);
16663 return 0;
16664
16665 ;
16666 return 0;
16667 }
16668 _ACEOF
16669 if ac_fn_c_try_run "$LINENO"; then :
16670 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
16671 else
16672 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
16673 fi
16674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16675 conftest.$ac_objext conftest.beam conftest.$ac_ext
16676 fi
16677
16678 fi
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
16680 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
16681 ac_ext=c
16682 ac_cpp='$CPP $CPPFLAGS'
16683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16686
16687
16688
16689 case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
16690 *:756e6547:6c65746e:49656e69) # Intel
16691 case $ax_cv_gcc_x86_cpuid_1 in
16692 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) icc_flags="-xK" ;;
16693 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) icc_flags="-xSSE2 -xB -xK" ;;
16694 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) icc_flags="-xSSE3 -xP -xO -xB -xK" ;;
16695 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) icc_flags="-xSSSE3 -xT -xB -xK" ;;
16696 *1?6[7d]?:*:*:*) icc_flags="-xSSE4.1 -xS -xT -xB -xK" ;;
16697 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) icc_flags="-xSSE4.2 -xS -xT -xB -xK" ;;
16698 *2?6[ad]?:*:*:*) icc_flags="-xAVX -SSE4.2 -xS -xT -xB -xK" ;;
16699 *3?6[ae]?:*:*:*) icc_flags="-xCORE-AVX-I -xAVX -SSE4.2 -xS -xT -xB -xK" ;;
16700 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) icc_flags="-xCORE-AVX2 -xCORE-AVX-I -xAVX -SSE4.2 -xS -xT -xB -xK" ;;
16701 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) icc_flags="-xSSE3 -xP -xO -xN -xW -xK" ;;
16702 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) icc_flags="-xSSE2 -xN -xW -xK" ;;
16703 esac ;;
16704 esac ;;
16705 esac
16706 if test "x$icc_flags" != x; then
16707 for flag in $icc_flags; do
16708 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
16710 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
16711 if eval \${$as_CACHEVAR+:} false; then :
16712 $as_echo_n "(cached) " >&6
16713 else
16714
16715 ax_check_save_flags=$CFLAGS
16716 CFLAGS="$CFLAGS $flag"
16717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16718 /* end confdefs.h. */
16719
16720 int
16721 main ()
16722 {
16723
16724 ;
16725 return 0;
16726 }
16727 _ACEOF
16728 if ac_fn_c_try_compile "$LINENO"; then :
16729 eval "$as_CACHEVAR=yes"
16730 else
16731 eval "$as_CACHEVAR=no"
16732 fi
16733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16734 CFLAGS=$ax_check_save_flags
16735 fi
16736 eval ac_res=\$$as_CACHEVAR
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16738 $as_echo "$ac_res" >&6; }
16739 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
16740 icc_archflag=$flag; break
16741 else
16742 :
16743 fi
16744
16745 done
16746 fi
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
16748 $as_echo_n "checking for icc architecture flag... " >&6; }
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
16750 $as_echo "$icc_archflag" >&6; }
16751 if test "x$icc_archflag" != xunknown; then
16752 CFLAGS="$CFLAGS $icc_archflag"
16753 fi
16754 fi
16755 ;;
16756
16757 gnu)
16758 # default optimization flags for gcc on all systems
16759 CFLAGS="-O3 -fomit-frame-pointer"
16760
16761 # -malign-double for x86 systems
16762 # libffi local change -- don't align double, as it changes the ABI
16763 # AX_CHECK_COMPILE_FLAG(-malign-double, CFLAGS="$CFLAGS -malign-double")
16764
16765 # -fstrict-aliasing for gcc-2.95+
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
16767 $as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
16768 if ${ax_cv_check_cflags___fstrict_aliasing+:} false; then :
16769 $as_echo_n "(cached) " >&6
16770 else
16771
16772 ax_check_save_flags=$CFLAGS
16773 CFLAGS="$CFLAGS -fstrict-aliasing"
16774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16775 /* end confdefs.h. */
16776
16777 int
16778 main ()
16779 {
16780
16781 ;
16782 return 0;
16783 }
16784 _ACEOF
16785 if ac_fn_c_try_compile "$LINENO"; then :
16786 ax_cv_check_cflags___fstrict_aliasing=yes
16787 else
16788 ax_cv_check_cflags___fstrict_aliasing=no
16789 fi
16790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16791 CFLAGS=$ax_check_save_flags
16792 fi
16793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___fstrict_aliasing" >&5
16794 $as_echo "$ax_cv_check_cflags___fstrict_aliasing" >&6; }
16795 if test "x$ax_cv_check_cflags___fstrict_aliasing" = xyes; then :
16796 CFLAGS="$CFLAGS -fstrict-aliasing"
16797 else
16798 :
16799 fi
16800
16801
16802 # note that we enable "unsafe" fp optimization with other compilers, too
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
16804 $as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
16805 if ${ax_cv_check_cflags___ffast_math+:} false; then :
16806 $as_echo_n "(cached) " >&6
16807 else
16808
16809 ax_check_save_flags=$CFLAGS
16810 CFLAGS="$CFLAGS -ffast-math"
16811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16812 /* end confdefs.h. */
16813
16814 int
16815 main ()
16816 {
16817
16818 ;
16819 return 0;
16820 }
16821 _ACEOF
16822 if ac_fn_c_try_compile "$LINENO"; then :
16823 ax_cv_check_cflags___ffast_math=yes
16824 else
16825 ax_cv_check_cflags___ffast_math=no
16826 fi
16827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16828 CFLAGS=$ax_check_save_flags
16829 fi
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___ffast_math" >&5
16831 $as_echo "$ax_cv_check_cflags___ffast_math" >&6; }
16832 if test "x$ax_cv_check_cflags___ffast_math" = xyes; then :
16833 CFLAGS="$CFLAGS -ffast-math"
16834 else
16835 :
16836 fi
16837
16838
16839
16840
16841
16842
16843
16844
16845 # Check whether --with-gcc-arch was given.
16846 if test "${with_gcc_arch+set}" = set; then :
16847 withval=$with_gcc_arch; ax_gcc_arch=$withval
16848 else
16849 ax_gcc_arch=yes
16850 fi
16851
16852
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
16854 $as_echo_n "checking for gcc architecture flag... " >&6; }
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
16856 $as_echo "" >&6; }
16857 if ${ax_cv_gcc_archflag+:} false; then :
16858 $as_echo_n "(cached) " >&6
16859 else
16860
16861 ax_cv_gcc_archflag="unknown"
16862
16863 if test "$GCC" = yes; then
16864
16865 if test "x$ax_gcc_arch" = xyes; then
16866 ax_gcc_arch=""
16867 if test "$cross_compiling" = no; then
16868 case $host_cpu in
16869 i[3456]86*|x86_64*|amd64*) # use cpuid codes
16870
16871 ac_ext=c
16872 ac_cpp='$CPP $CPPFLAGS'
16873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16876
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
16878 $as_echo_n "checking for x86 cpuid 0 output... " >&6; }
16879 if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
16880 $as_echo_n "(cached) " >&6
16881 else
16882 if test "$cross_compiling" = yes; then :
16883 ax_cv_gcc_x86_cpuid_0=unknown
16884 else
16885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16886 /* end confdefs.h. */
16887 #include <stdio.h>
16888 int
16889 main ()
16890 {
16891
16892 int op = 0, level = 0, eax, ebx, ecx, edx;
16893 FILE *f;
16894 __asm__ __volatile__ ("xchg %%ebx, %1\n"
16895 "cpuid\n"
16896 "xchg %%ebx, %1\n"
16897 : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
16898 : "a" (op), "2" (level));
16899
16900 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
16901 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
16902 fclose(f);
16903 return 0;
16904
16905 ;
16906 return 0;
16907 }
16908 _ACEOF
16909 if ac_fn_c_try_run "$LINENO"; then :
16910 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
16911 else
16912 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
16913 fi
16914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16915 conftest.$ac_objext conftest.beam conftest.$ac_ext
16916 fi
16917
16918 fi
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
16920 $as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
16921 ac_ext=c
16922 ac_cpp='$CPP $CPPFLAGS'
16923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16926
16927
16928
16929
16930 ac_ext=c
16931 ac_cpp='$CPP $CPPFLAGS'
16932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16935
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
16937 $as_echo_n "checking for x86 cpuid 1 output... " >&6; }
16938 if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
16939 $as_echo_n "(cached) " >&6
16940 else
16941 if test "$cross_compiling" = yes; then :
16942 ax_cv_gcc_x86_cpuid_1=unknown
16943 else
16944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16945 /* end confdefs.h. */
16946 #include <stdio.h>
16947 int
16948 main ()
16949 {
16950
16951 int op = 1, level = 0, eax, ebx, ecx, edx;
16952 FILE *f;
16953 __asm__ __volatile__ ("xchg %%ebx, %1\n"
16954 "cpuid\n"
16955 "xchg %%ebx, %1\n"
16956 : "=a" (eax), "=r" (ebx), "=c" (ecx), "=d" (edx)
16957 : "a" (op), "2" (level));
16958
16959 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
16960 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
16961 fclose(f);
16962 return 0;
16963
16964 ;
16965 return 0;
16966 }
16967 _ACEOF
16968 if ac_fn_c_try_run "$LINENO"; then :
16969 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
16970 else
16971 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
16972 fi
16973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16974 conftest.$ac_objext conftest.beam conftest.$ac_ext
16975 fi
16976
16977 fi
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
16979 $as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
16980 ac_ext=c
16981 ac_cpp='$CPP $CPPFLAGS'
16982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16985
16986
16987
16988 case $ax_cv_gcc_x86_cpuid_0 in
16989 *:756e6547:6c65746e:49656e69) # Intel
16990 case $ax_cv_gcc_x86_cpuid_1 in
16991 *5[4578]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
16992 *5[123]?:*:*:*) ax_gcc_arch=pentium ;;
16993 *0?61?:*:*:*|?61?:*:*:*|61?:*:*:*) ax_gcc_arch=pentiumpro ;;
16994 *0?6[356]?:*:*:*|?6[356]?:*:*:*|6[356]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
16995 *0?6[78ab]?:*:*:*|?6[78ab]?:*:*:*|6[78ab]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
16996 *0?6[9d]?:*:*:*|?6[9d]?:*:*:*|6[9d]?:*:*:*|*1?65?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
16997 *0?6e?:*:*:*|?6e?:*:*:*|6e?:*:*:*) ax_gcc_arch="yonah pentium-m pentium3 pentiumpro" ;;
16998 *0?6f?:*:*:*|?6f?:*:*:*|6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
16999 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
17000 *1?6[aef]?:*:*:*|*2?6e?:*:*:*) ax_gcc_arch="nehalem corei7 core2 pentium-m pentium3 pentiumpro" ;;
17001 *2?6[5cf]?:*:*:*) ax_gcc_arch="westmere corei7 core2 pentium-m pentium3 pentiumpro" ;;
17002 *2?6[ad]?:*:*:*) ax_gcc_arch="sandybridge corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
17003 *3?6[ae]?:*:*:*) ax_gcc_arch="ivybridge core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
17004 *3?6[cf]?:*:*:*|*4?6[56]?:*:*:*) ax_gcc_arch="haswell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
17005 *3?6d?:*:*:*|*4?6[7f]?:*:*:*|*5?66?:*:*:*) ax_gcc_arch="broadwell core-avx2 core-avx-i corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
17006 *1?6c?:*:*:*|*2?6[67]?:*:*:*|*3?6[56]?:*:*:*) ax_gcc_arch="bonnell atom core2 pentium-m pentium3 pentiumpro" ;;
17007 *3?67?:*:*:*|*[45]?6[ad]?:*:*:*) ax_gcc_arch="silvermont atom core2 pentium-m pentium3 pentiumpro" ;;
17008 *000?f[012]?:*:*:*|?f[012]?:*:*:*|f[012]?:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
17009 *000?f[346]?:*:*:*|?f[346]?:*:*:*|f[346]?:*:*:*) ax_gcc_arch="nocona prescott pentium4 pentiumpro" ;;
17010 # fallback
17011 *5??:*:*:*) ax_gcc_arch=pentium ;;
17012 *??6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
17013 *6??:*:*:*) ax_gcc_arch=pentiumpro ;;
17014 *00??f??:*:*:*|??f??:*:*:*|?f??:*:*:*|f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro" ;;
17015 esac ;;
17016 *:68747541:444d4163:69746e65) # AMD
17017 case $ax_cv_gcc_x86_cpuid_1 in
17018 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
17019 *5[8]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
17020 *5[9d]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
17021 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
17022 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
17023 *6[678a]?:*:*:*) ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
17024 *000?f[4578bcef]?:*:*:*|?f[4578bcef]?:*:*:*|f[4578bcef]?:*:*:*|*001?f[4578bcf]?:*:*:*|1?f[4578bcf]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
17025 *002?f[13457bcf]?:*:*:*|2?f[13457bcf]?:*:*:*|*004?f[138bcf]?:*:*:*|4?f[138bcf]?:*:*:*|*005?f[df]?:*:*:*|5?f[df]?:*:*:*|*006?f[8bcf]?:*:*:*|6?f[8bcf]?:*:*:*|*007?f[cf]?:*:*:*|7?f[cf]?:*:*:*|*00c?f1?:*:*:*|c?f1?:*:*:*|*020?f3?:*:*:*|20?f3?:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
17026 *010?f[245689a]?:*:*:*|10?f[245689a]?:*:*:*|*030?f1?:*:*:*|30?f1?:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
17027 *050?f[12]?:*:*:*|50?f[12]?:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
17028 *060?f1?:*:*:*|60?f1?:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
17029 *060?f2?:*:*:*|60?f2?:*:*:*|*061?f[03]?:*:*:*|61?f[03]?:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
17030 *063?f0?:*:*:*|63?f0?:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
17031 *07[03]?f0?:*:*:*|7[03]?f0?:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
17032 # fallback
17033 *0[13]??f??:*:*:*|[13]??f??:*:*:*) ax_gcc_arch="barcelona amdfam10 k8" ;;
17034 *020?f??:*:*:*|20?f??:*:*:*) ax_gcc_arch="athlon64-sse3 k8-sse3 athlon64 k8" ;;
17035 *05??f??:*:*:*|5??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
17036 *060?f??:*:*:*|60?f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
17037 *061?f??:*:*:*|61?f??:*:*:*) ax_gcc_arch="bdver2 bdver1 amdfam10 k8" ;;
17038 *06??f??:*:*:*|6??f??:*:*:*) ax_gcc_arch="bdver3 bdver2 bdver1 amdfam10 k8" ;;
17039 *070?f??:*:*:*|70?f??:*:*:*) ax_gcc_arch="btver2 btver1 amdfam10 k8" ;;
17040 *???f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
17041 esac ;;
17042 *:746e6543:736c7561:48727561) # IDT / VIA (Centaur)
17043 case $ax_cv_gcc_x86_cpuid_1 in
17044 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
17045 *5[89]?:*:*:*) ax_gcc_arch=winchip2 ;;
17046 *66?:*:*:*) ax_gcc_arch=winchip2 ;;
17047 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
17048 *6[9adf]?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
17049 esac ;;
17050 esac
17051 if test x"$ax_gcc_arch" = x; then # fallback
17052 case $host_cpu in
17053 i586*) ax_gcc_arch=pentium ;;
17054 i686*) ax_gcc_arch=pentiumpro ;;
17055 esac
17056 fi
17057 ;;
17058
17059 sparc*)
17060 # Extract the first word of "prtdiag", so it can be a program name with args.
17061 set dummy prtdiag; ac_word=$2
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17063 $as_echo_n "checking for $ac_word... " >&6; }
17064 if ${ac_cv_path_PRTDIAG+:} false; then :
17065 $as_echo_n "(cached) " >&6
17066 else
17067 case $PRTDIAG in
17068 [\\/]* | ?:[\\/]*)
17069 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
17070 ;;
17071 *)
17072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17073 as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
17074 for as_dir in $as_dummy
17075 do
17076 IFS=$as_save_IFS
17077 test -z "$as_dir" && as_dir=.
17078 for ac_exec_ext in '' $ac_executable_extensions; do
17079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17080 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
17081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17082 break 2
17083 fi
17084 done
17085 done
17086 IFS=$as_save_IFS
17087
17088 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
17089 ;;
17090 esac
17091 fi
17092 PRTDIAG=$ac_cv_path_PRTDIAG
17093 if test -n "$PRTDIAG"; then
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
17095 $as_echo "$PRTDIAG" >&6; }
17096 else
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17098 $as_echo "no" >&6; }
17099 fi
17100
17101
17102 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
17103 cputype=`echo "$cputype" | tr -d ' -' | $SED 's/SPARCIIi/SPARCII/' |tr $as_cr_LETTERS $as_cr_letters`
17104 case $cputype in
17105 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
17106 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
17107 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
17108 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
17109 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
17110 *cypress*) ax_gcc_arch=cypress ;;
17111 esac ;;
17112
17113 alphaev5) ax_gcc_arch=ev5 ;;
17114 alphaev56) ax_gcc_arch=ev56 ;;
17115 alphapca56) ax_gcc_arch="pca56 ev56" ;;
17116 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
17117 alphaev6) ax_gcc_arch=ev6 ;;
17118 alphaev67) ax_gcc_arch=ev67 ;;
17119 alphaev68) ax_gcc_arch="ev68 ev67" ;;
17120 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
17121 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
17122 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
17123
17124 powerpc*)
17125 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | $SED 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
17126 cputype=`echo $cputype | $SED -e 's/ppc//g;s/ *//g'`
17127 case $cputype in
17128 *750*) ax_gcc_arch="750 G3" ;;
17129 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
17130 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
17131 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
17132 *970*) ax_gcc_arch="970 G5 power4";;
17133 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
17134 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
17135 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
17136 *POWER7*) ax_gcc_arch="power7";;
17137 *POWER8*) ax_gcc_arch="power8";;
17138 *POWER9*) ax_gcc_arch="power9";;
17139 *POWER10*) ax_gcc_arch="power10";;
17140 *) ax_gcc_arch=$cputype ;;
17141 esac
17142 ax_gcc_arch="$ax_gcc_arch powerpc"
17143 ;;
17144 aarch64)
17145 cpuimpl=`grep 'CPU implementer' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1`
17146 cpuarch=`grep 'CPU architecture' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1`
17147 cpuvar=`grep 'CPU variant' /proc/cpuinfo 2> /dev/null | cut -d: -f2 | tr -d " " | head -n 1`
17148 case $cpuimpl in
17149 0x42) case $cpuarch in
17150 8) case $cpuvar in
17151 0x0) ax_gcc_arch="thunderx2t99 vulcan armv8.1-a armv8-a+lse armv8-a native" ;;
17152 esac
17153 ;;
17154 esac
17155 ;;
17156 0x43) case $cpuarch in
17157 8) case $cpuvar in
17158 0x0) ax_gcc_arch="thunderx armv8-a native" ;;
17159 0x1) ax_gcc_arch="thunderx+lse armv8.1-a armv8-a+lse armv8-a native" ;;
17160 esac
17161 ;;
17162 esac
17163 ;;
17164 esac
17165 ;;
17166 esac
17167 fi # not cross-compiling
17168 fi # guess arch
17169
17170 if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
17171 if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
17172 flag_prefixes="-mtune="
17173 if test "x$ax_cv_c_compiler_vendor" = xclang; then flag_prefixes="-march="; fi
17174 # -mcpu=$arch and m$arch generate nonportable code on every arch except
17175 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
17176 case $host_cpu in i*86|x86_64*|amd64*) flag_prefixes="$flag_prefixes -mcpu= -m";; esac
17177 else
17178 flag_prefixes="-march= -mcpu= -m"
17179 fi
17180 for flag_prefix in $flag_prefixes; do
17181 for arch in $ax_gcc_arch; do
17182 flag="$flag_prefix$arch"
17183 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
17184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
17185 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
17186 if eval \${$as_CACHEVAR+:} false; then :
17187 $as_echo_n "(cached) " >&6
17188 else
17189
17190 ax_check_save_flags=$CFLAGS
17191 CFLAGS="$CFLAGS $flag"
17192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193 /* end confdefs.h. */
17194
17195 int
17196 main ()
17197 {
17198
17199 ;
17200 return 0;
17201 }
17202 _ACEOF
17203 if ac_fn_c_try_compile "$LINENO"; then :
17204 eval "$as_CACHEVAR=yes"
17205 else
17206 eval "$as_CACHEVAR=no"
17207 fi
17208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17209 CFLAGS=$ax_check_save_flags
17210 fi
17211 eval ac_res=\$$as_CACHEVAR
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17213 $as_echo "$ac_res" >&6; }
17214 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17215 if test "x$ax_cv_c_compiler_vendor" = xclang; then
17216 if test "x$acx_maxopt_portable" = xyes; then
17217 if test "x$flag" = "x-march=$arch"; then flag=-mtune=$arch; fi
17218 fi
17219 fi; ax_cv_gcc_archflag=$flag; break
17220 else
17221 :
17222 fi
17223
17224 done
17225 test "x$ax_cv_gcc_archflag" = xunknown || break
17226 done
17227 fi
17228
17229 fi # $GCC=yes
17230
17231 fi
17232
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
17234 $as_echo_n "checking for gcc architecture flag... " >&6; }
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
17236 $as_echo "$ax_cv_gcc_archflag" >&6; }
17237 if test "x$ax_cv_gcc_archflag" = xunknown; then
17238 :
17239 else
17240 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
17241 fi
17242
17243 ;;
17244
17245 microsoft)
17246 # default optimization flags for MSVC opt builds
17247 CFLAGS="-O2"
17248 ;;
17249 esac
17250
17251 if test -z "$CFLAGS"; then
17252 echo ""
17253 echo "********************************************************"
17254 echo "* WARNING: Don't know the best CFLAGS for this system *"
17255 echo "* Use ./configure CFLAGS=... to specify your own flags *"
17256 echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
17257 echo "********************************************************"
17258 echo ""
17259 CFLAGS="-O3"
17260 fi
17261
17262 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$CFLAGS" | $as_tr_sh`
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
17264 $as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
17265 if eval \${$as_CACHEVAR+:} false; then :
17266 $as_echo_n "(cached) " >&6
17267 else
17268
17269 ax_check_save_flags=$CFLAGS
17270 CFLAGS="$CFLAGS $CFLAGS"
17271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17272 /* end confdefs.h. */
17273
17274 int
17275 main ()
17276 {
17277
17278 ;
17279 return 0;
17280 }
17281 _ACEOF
17282 if ac_fn_c_try_compile "$LINENO"; then :
17283 eval "$as_CACHEVAR=yes"
17284 else
17285 eval "$as_CACHEVAR=no"
17286 fi
17287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17288 CFLAGS=$ax_check_save_flags
17289 fi
17290 eval ac_res=\$$as_CACHEVAR
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17292 $as_echo "$ac_res" >&6; }
17293 if eval test \"x\$"$as_CACHEVAR"\" = x"yes"; then :
17294 :
17295 else
17296
17297 echo ""
17298 echo "********************************************************"
17299 echo "* WARNING: The guessed CFLAGS don't seem to work with *"
17300 echo "* your compiler. *"
17301 echo "* Use ./configure CFLAGS=... to specify your own flags *"
17302 echo "********************************************************"
17303 echo ""
17304 CFLAGS=""
17305
17306 fi
17307
17308
17309 fi
17310
17311 # The AX_CFLAGS_WARN_ALL macro doesn't currently work for sunpro
17312 # compiler.
17313 if test "$ax_cv_c_compiler_vendor" != "sun"; then
17314 ac_ext=c
17315 ac_cpp='$CPP $CPPFLAGS'
17316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17319
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
17321 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
17322 if ${ac_cv_cflags_warn_all+:} false; then :
17323 $as_echo_n "(cached) " >&6
17324 else
17325 ac_cv_cflags_warn_all="no, unknown"
17326 ac_save_CFLAGS="$CFLAGS"
17327 for ac_arg in "-warn all % -warn all" "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
17328 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
17329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17330 /* end confdefs.h. */
17331
17332 int
17333 main ()
17334 {
17335
17336 ;
17337 return 0;
17338 }
17339 _ACEOF
17340 if ac_fn_c_try_compile "$LINENO"; then :
17341 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17342 fi
17343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17344 done
17345 CFLAGS="$ac_save_CFLAGS"
17346
17347 fi
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
17349 $as_echo "$ac_cv_cflags_warn_all" >&6; }
17350
17351
17352 case ".$ac_cv_cflags_warn_all" in
17353 .ok|.ok,*) ;;
17354 .|.no|.no,*) ;;
17355 *)
17356 if ${CFLAGS+:} false; then :
17357
17358 case " $CFLAGS " in #(
17359 *" $ac_cv_cflags_warn_all "*) :
17360 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$ac_cv_cflags_warn_all"; } >&5
17361 (: CFLAGS already contains $ac_cv_cflags_warn_all) 2>&5
17362 ac_status=$?
17363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17364 test $ac_status = 0; } ;; #(
17365 *) :
17366
17367 as_fn_append CFLAGS " $ac_cv_cflags_warn_all"
17368 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17369 (: CFLAGS="$CFLAGS") 2>&5
17370 ac_status=$?
17371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17372 test $ac_status = 0; }
17373 ;;
17374 esac
17375
17376 else
17377
17378 CFLAGS=$ac_cv_cflags_warn_all
17379 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS\""; } >&5
17380 (: CFLAGS="$CFLAGS") 2>&5
17381 ac_status=$?
17382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17383 test $ac_status = 0; }
17384
17385 fi
17386 ;;
17387 esac
17388
17389 ac_ext=c
17390 ac_cpp='$CPP $CPPFLAGS'
17391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17394
17395
17396 fi
17397
17398 if test "x$GCC" = "xyes"; then
17399 CFLAGS="$CFLAGS -fexceptions"
17400 fi
17401
17402 cat > local.exp <<EOF
17403 set CC_FOR_TARGET "$CC"
17404 set CXX_FOR_TARGET "$CXX"
17405 EOF
17406
17407
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
17409 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
17410 # Check whether --enable-maintainer-mode was given.
17411 if test "${enable_maintainer_mode+set}" = set; then :
17412 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
17413 else
17414 USE_MAINTAINER_MODE=no
17415 fi
17416
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
17418 $as_echo "$USE_MAINTAINER_MODE" >&6; }
17419 if test $USE_MAINTAINER_MODE = yes; then
17420 MAINTAINER_MODE_TRUE=
17421 MAINTAINER_MODE_FALSE='#'
17422 else
17423 MAINTAINER_MODE_TRUE='#'
17424 MAINTAINER_MODE_FALSE=
17425 fi
17426
17427 MAINT=$MAINTAINER_MODE_TRUE
17428
17429
17430
17431 for ac_header in sys/mman.h
17432 do :
17433 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
17434 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
17435 cat >>confdefs.h <<_ACEOF
17436 #define HAVE_SYS_MMAN_H 1
17437 _ACEOF
17438
17439 fi
17440
17441 done
17442
17443 for ac_func in mmap mkostemp
17444 do :
17445 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17446 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17447 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17448 cat >>confdefs.h <<_ACEOF
17449 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17450 _ACEOF
17451
17452 fi
17453 done
17454
17455
17456 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
17457 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
17458 libffi_header_sys_mman_h=yes
17459 else
17460 libffi_header_sys_mman_h=no
17461 fi
17462
17463
17464 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
17465 if test "x$ac_cv_func_mmap" = xyes; then :
17466 libffi_func_mmap=yes
17467 else
17468 libffi_func_mmap=no
17469 fi
17470
17471 if test "$libffi_header_sys_mman_h" != yes \
17472 || test "$libffi_func_mmap" != yes; then
17473 ac_cv_func_mmap_file=no
17474 ac_cv_func_mmap_dev_zero=no
17475 ac_cv_func_mmap_anon=no
17476 else
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
17478 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
17479 if ${ac_cv_func_mmap_file+:} false; then :
17480 $as_echo_n "(cached) " >&6
17481 else
17482 # Add a system to this blacklist if
17483 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
17484 # memory area containing the same data that you'd get if you applied
17485 # read() to the same fd. The only system known to have a problem here
17486 # is VMS, where text files have record structure.
17487 case "$host_os" in
17488 vms* | ultrix*)
17489 ac_cv_func_mmap_file=no ;;
17490 *)
17491 ac_cv_func_mmap_file=yes;;
17492 esac
17493 fi
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
17495 $as_echo "$ac_cv_func_mmap_file" >&6; }
17496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
17497 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
17498 if ${ac_cv_func_mmap_dev_zero+:} false; then :
17499 $as_echo_n "(cached) " >&6
17500 else
17501 # Add a system to this blacklist if it has mmap() but /dev/zero
17502 # does not exist, or if mmapping /dev/zero does not give anonymous
17503 # zeroed pages with both the following properties:
17504 # 1. If you map N consecutive pages in with one call, and then
17505 # unmap any subset of those pages, the pages that were not
17506 # explicitly unmapped remain accessible.
17507 # 2. If you map two adjacent blocks of memory and then unmap them
17508 # both at once, they must both go away.
17509 # Systems known to be in this category are Windows (all variants),
17510 # VMS, and Darwin.
17511 case "$host_os" in
17512 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
17513 ac_cv_func_mmap_dev_zero=no ;;
17514 *)
17515 ac_cv_func_mmap_dev_zero=yes;;
17516 esac
17517 fi
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
17519 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
17520
17521 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
17523 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
17524 if ${ac_cv_decl_map_anon+:} false; then :
17525 $as_echo_n "(cached) " >&6
17526 else
17527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17528 /* end confdefs.h. */
17529 #include <sys/types.h>
17530 #include <sys/mman.h>
17531 #include <unistd.h>
17532
17533 #ifndef MAP_ANONYMOUS
17534 #define MAP_ANONYMOUS MAP_ANON
17535 #endif
17536
17537 int
17538 main ()
17539 {
17540 int n = MAP_ANONYMOUS;
17541 ;
17542 return 0;
17543 }
17544 _ACEOF
17545 if ac_fn_c_try_compile "$LINENO"; then :
17546 ac_cv_decl_map_anon=yes
17547 else
17548 ac_cv_decl_map_anon=no
17549 fi
17550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17551 fi
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
17553 $as_echo "$ac_cv_decl_map_anon" >&6; }
17554
17555 if test $ac_cv_decl_map_anon = no; then
17556 ac_cv_func_mmap_anon=no
17557 else
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
17559 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
17560 if ${ac_cv_func_mmap_anon+:} false; then :
17561 $as_echo_n "(cached) " >&6
17562 else
17563 # Add a system to this blacklist if it has mmap() and MAP_ANON or
17564 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
17565 # doesn't give anonymous zeroed pages with the same properties listed
17566 # above for use of /dev/zero.
17567 # Systems known to be in this category are Windows, VMS, and SCO Unix.
17568 case "$host_os" in
17569 vms* | cygwin* | pe | mingw* | sco* | udk* )
17570 ac_cv_func_mmap_anon=no ;;
17571 *)
17572 ac_cv_func_mmap_anon=yes;;
17573 esac
17574 fi
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
17576 $as_echo "$ac_cv_func_mmap_anon" >&6; }
17577 fi
17578 fi
17579
17580 if test $ac_cv_func_mmap_file = yes; then
17581
17582 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
17583
17584 fi
17585 if test $ac_cv_func_mmap_dev_zero = yes; then
17586
17587 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
17588
17589 fi
17590 if test $ac_cv_func_mmap_anon = yes; then
17591
17592 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
17593
17594 fi
17595
17596
17597 if test -d $srcdir/testsuite; then
17598 TESTSUBDIR_TRUE=
17599 TESTSUBDIR_FALSE='#'
17600 else
17601 TESTSUBDIR_TRUE='#'
17602 TESTSUBDIR_FALSE=
17603 fi
17604
17605
17606 TARGETDIR="unknown"
17607 HAVE_LONG_DOUBLE_VARIANT=0
17608
17609 . ${srcdir}/configure.host
17610
17611 if test -n "${UNSUPPORTED}"; then
17612 as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
17613 fi
17614
17615
17616
17617
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
17619 $as_echo_n "checking for ANSI C header files... " >&6; }
17620 if ${ac_cv_header_stdc+:} false; then :
17621 $as_echo_n "(cached) " >&6
17622 else
17623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17624 /* end confdefs.h. */
17625 #include <stdlib.h>
17626 #include <stdarg.h>
17627 #include <string.h>
17628 #include <float.h>
17629
17630 int
17631 main ()
17632 {
17633
17634 ;
17635 return 0;
17636 }
17637 _ACEOF
17638 if ac_fn_c_try_compile "$LINENO"; then :
17639 ac_cv_header_stdc=yes
17640 else
17641 ac_cv_header_stdc=no
17642 fi
17643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17644
17645 if test $ac_cv_header_stdc = yes; then
17646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
17647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17648 /* end confdefs.h. */
17649 #include <string.h>
17650
17651 _ACEOF
17652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17653 $EGREP "memchr" >/dev/null 2>&1; then :
17654
17655 else
17656 ac_cv_header_stdc=no
17657 fi
17658 rm -f conftest*
17659
17660 fi
17661
17662 if test $ac_cv_header_stdc = yes; then
17663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
17664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17665 /* end confdefs.h. */
17666 #include <stdlib.h>
17667
17668 _ACEOF
17669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17670 $EGREP "free" >/dev/null 2>&1; then :
17671
17672 else
17673 ac_cv_header_stdc=no
17674 fi
17675 rm -f conftest*
17676
17677 fi
17678
17679 if test $ac_cv_header_stdc = yes; then
17680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
17681 if test "$cross_compiling" = yes; then :
17682 :
17683 else
17684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17685 /* end confdefs.h. */
17686 #include <ctype.h>
17687 #include <stdlib.h>
17688 #if ((' ' & 0x0FF) == 0x020)
17689 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17690 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17691 #else
17692 # define ISLOWER(c) \
17693 (('a' <= (c) && (c) <= 'i') \
17694 || ('j' <= (c) && (c) <= 'r') \
17695 || ('s' <= (c) && (c) <= 'z'))
17696 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17697 #endif
17698
17699 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17700 int
17701 main ()
17702 {
17703 int i;
17704 for (i = 0; i < 256; i++)
17705 if (XOR (islower (i), ISLOWER (i))
17706 || toupper (i) != TOUPPER (i))
17707 return 2;
17708 return 0;
17709 }
17710 _ACEOF
17711 if ac_fn_c_try_run "$LINENO"; then :
17712
17713 else
17714 ac_cv_header_stdc=no
17715 fi
17716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17717 conftest.$ac_objext conftest.beam conftest.$ac_ext
17718 fi
17719
17720 fi
17721 fi
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17723 $as_echo "$ac_cv_header_stdc" >&6; }
17724 if test $ac_cv_header_stdc = yes; then
17725
17726 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17727
17728 fi
17729
17730 for ac_func in memcpy
17731 do :
17732 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
17733 if test "x$ac_cv_func_memcpy" = xyes; then :
17734 cat >>confdefs.h <<_ACEOF
17735 #define HAVE_MEMCPY 1
17736 _ACEOF
17737
17738 fi
17739 done
17740
17741 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17742 if test "x$ac_cv_type_size_t" = xyes; then :
17743
17744 else
17745
17746 cat >>confdefs.h <<_ACEOF
17747 #define size_t unsigned int
17748 _ACEOF
17749
17750 fi
17751
17752 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17753 # for constant arguments. Useless!
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17755 $as_echo_n "checking for working alloca.h... " >&6; }
17756 if ${ac_cv_working_alloca_h+:} false; then :
17757 $as_echo_n "(cached) " >&6
17758 else
17759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17760 /* end confdefs.h. */
17761 #include <alloca.h>
17762 int
17763 main ()
17764 {
17765 char *p = (char *) alloca (2 * sizeof (int));
17766 if (p) return 0;
17767 ;
17768 return 0;
17769 }
17770 _ACEOF
17771 if ac_fn_c_try_link "$LINENO"; then :
17772 ac_cv_working_alloca_h=yes
17773 else
17774 ac_cv_working_alloca_h=no
17775 fi
17776 rm -f core conftest.err conftest.$ac_objext \
17777 conftest$ac_exeext conftest.$ac_ext
17778 fi
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17780 $as_echo "$ac_cv_working_alloca_h" >&6; }
17781 if test $ac_cv_working_alloca_h = yes; then
17782
17783 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17784
17785 fi
17786
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17788 $as_echo_n "checking for alloca... " >&6; }
17789 if ${ac_cv_func_alloca_works+:} false; then :
17790 $as_echo_n "(cached) " >&6
17791 else
17792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17793 /* end confdefs.h. */
17794 #ifdef __GNUC__
17795 # define alloca __builtin_alloca
17796 #else
17797 # ifdef _MSC_VER
17798 # include <malloc.h>
17799 # define alloca _alloca
17800 # else
17801 # ifdef HAVE_ALLOCA_H
17802 # include <alloca.h>
17803 # else
17804 # ifdef _AIX
17805 #pragma alloca
17806 # else
17807 # ifndef alloca /* predefined by HP cc +Olibcalls */
17808 void *alloca (size_t);
17809 # endif
17810 # endif
17811 # endif
17812 # endif
17813 #endif
17814
17815 int
17816 main ()
17817 {
17818 char *p = (char *) alloca (1);
17819 if (p) return 0;
17820 ;
17821 return 0;
17822 }
17823 _ACEOF
17824 if ac_fn_c_try_link "$LINENO"; then :
17825 ac_cv_func_alloca_works=yes
17826 else
17827 ac_cv_func_alloca_works=no
17828 fi
17829 rm -f core conftest.err conftest.$ac_objext \
17830 conftest$ac_exeext conftest.$ac_ext
17831 fi
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17833 $as_echo "$ac_cv_func_alloca_works" >&6; }
17834
17835 if test $ac_cv_func_alloca_works = yes; then
17836
17837 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17838
17839 else
17840 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17841 # that cause trouble. Some versions do not even contain alloca or
17842 # contain a buggy version. If you still want to use their alloca,
17843 # use ar to extract alloca.o from them instead of compiling alloca.c.
17844
17845 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17846
17847 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17848
17849
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
17851 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17852 if ${ac_cv_os_cray+:} false; then :
17853 $as_echo_n "(cached) " >&6
17854 else
17855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17856 /* end confdefs.h. */
17857 #if defined CRAY && ! defined CRAY2
17858 webecray
17859 #else
17860 wenotbecray
17861 #endif
17862
17863 _ACEOF
17864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17865 $EGREP "webecray" >/dev/null 2>&1; then :
17866 ac_cv_os_cray=yes
17867 else
17868 ac_cv_os_cray=no
17869 fi
17870 rm -f conftest*
17871
17872 fi
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17874 $as_echo "$ac_cv_os_cray" >&6; }
17875 if test $ac_cv_os_cray = yes; then
17876 for ac_func in _getb67 GETB67 getb67; do
17877 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17878 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17879 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17880
17881 cat >>confdefs.h <<_ACEOF
17882 #define CRAY_STACKSEG_END $ac_func
17883 _ACEOF
17884
17885 break
17886 fi
17887
17888 done
17889 fi
17890
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17892 $as_echo_n "checking stack direction for C alloca... " >&6; }
17893 if ${ac_cv_c_stack_direction+:} false; then :
17894 $as_echo_n "(cached) " >&6
17895 else
17896 if test "$cross_compiling" = yes; then :
17897 ac_cv_c_stack_direction=0
17898 else
17899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17900 /* end confdefs.h. */
17901 $ac_includes_default
17902 int
17903 find_stack_direction (int *addr, int depth)
17904 {
17905 int dir, dummy = 0;
17906 if (! addr)
17907 addr = &dummy;
17908 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17909 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17910 return dir + dummy;
17911 }
17912
17913 int
17914 main (int argc, char **argv)
17915 {
17916 return find_stack_direction (0, argc + !argv + 20) < 0;
17917 }
17918 _ACEOF
17919 if ac_fn_c_try_run "$LINENO"; then :
17920 ac_cv_c_stack_direction=1
17921 else
17922 ac_cv_c_stack_direction=-1
17923 fi
17924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17925 conftest.$ac_objext conftest.beam conftest.$ac_ext
17926 fi
17927
17928 fi
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17930 $as_echo "$ac_cv_c_stack_direction" >&6; }
17931 cat >>confdefs.h <<_ACEOF
17932 #define STACK_DIRECTION $ac_cv_c_stack_direction
17933 _ACEOF
17934
17935
17936 fi
17937
17938
17939 # The cast to long int works around a bug in the HP C Compiler
17940 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17941 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17942 # This bug is HP SR number 8606223364.
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
17944 $as_echo_n "checking size of double... " >&6; }
17945 if ${ac_cv_sizeof_double+:} false; then :
17946 $as_echo_n "(cached) " >&6
17947 else
17948 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
17949
17950 else
17951 if test "$ac_cv_type_double" = yes; then
17952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17954 as_fn_error 77 "cannot compute sizeof (double)
17955 See \`config.log' for more details" "$LINENO" 5; }
17956 else
17957 ac_cv_sizeof_double=0
17958 fi
17959 fi
17960
17961 fi
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
17963 $as_echo "$ac_cv_sizeof_double" >&6; }
17964
17965
17966
17967 cat >>confdefs.h <<_ACEOF
17968 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
17969 _ACEOF
17970
17971
17972 # The cast to long int works around a bug in the HP C Compiler
17973 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
17974 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
17975 # This bug is HP SR number 8606223364.
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
17977 $as_echo_n "checking size of long double... " >&6; }
17978 if ${ac_cv_sizeof_long_double+:} false; then :
17979 $as_echo_n "(cached) " >&6
17980 else
17981 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
17982
17983 else
17984 if test "$ac_cv_type_long_double" = yes; then
17985 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17986 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17987 as_fn_error 77 "cannot compute sizeof (long double)
17988 See \`config.log' for more details" "$LINENO" 5; }
17989 else
17990 ac_cv_sizeof_long_double=0
17991 fi
17992 fi
17993
17994 fi
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
17996 $as_echo "$ac_cv_sizeof_long_double" >&6; }
17997
17998
17999
18000 cat >>confdefs.h <<_ACEOF
18001 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
18002 _ACEOF
18003
18004
18005
18006 # Also AC_SUBST this variable for ffi.h.
18007 if test -z "$HAVE_LONG_DOUBLE"; then
18008 HAVE_LONG_DOUBLE=0
18009 if test $ac_cv_sizeof_long_double != 0; then
18010 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
18011
18012 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
18013
18014 HAVE_LONG_DOUBLE=1
18015 else
18016 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
18017 HAVE_LONG_DOUBLE=1
18018
18019 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18020
18021 fi
18022 fi
18023 fi
18024 fi
18025
18026
18027
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
18029 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
18030 if ${ac_cv_c_bigendian+:} false; then :
18031 $as_echo_n "(cached) " >&6
18032 else
18033 ac_cv_c_bigendian=unknown
18034 # See if we're dealing with a universal compiler.
18035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18036 /* end confdefs.h. */
18037 #ifndef __APPLE_CC__
18038 not a universal capable compiler
18039 #endif
18040 typedef int dummy;
18041
18042 _ACEOF
18043 if ac_fn_c_try_compile "$LINENO"; then :
18044
18045 # Check for potential -arch flags. It is not universal unless
18046 # there are at least two -arch flags with different values.
18047 ac_arch=
18048 ac_prev=
18049 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
18050 if test -n "$ac_prev"; then
18051 case $ac_word in
18052 i?86 | x86_64 | ppc | ppc64)
18053 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
18054 ac_arch=$ac_word
18055 else
18056 ac_cv_c_bigendian=universal
18057 break
18058 fi
18059 ;;
18060 esac
18061 ac_prev=
18062 elif test "x$ac_word" = "x-arch"; then
18063 ac_prev=arch
18064 fi
18065 done
18066 fi
18067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18068 if test $ac_cv_c_bigendian = unknown; then
18069 # See if sys/param.h defines the BYTE_ORDER macro.
18070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18071 /* end confdefs.h. */
18072 #include <sys/types.h>
18073 #include <sys/param.h>
18074
18075 int
18076 main ()
18077 {
18078 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
18079 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
18080 && LITTLE_ENDIAN)
18081 bogus endian macros
18082 #endif
18083
18084 ;
18085 return 0;
18086 }
18087 _ACEOF
18088 if ac_fn_c_try_compile "$LINENO"; then :
18089 # It does; now see whether it defined to BIG_ENDIAN or not.
18090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18091 /* end confdefs.h. */
18092 #include <sys/types.h>
18093 #include <sys/param.h>
18094
18095 int
18096 main ()
18097 {
18098 #if BYTE_ORDER != BIG_ENDIAN
18099 not big endian
18100 #endif
18101
18102 ;
18103 return 0;
18104 }
18105 _ACEOF
18106 if ac_fn_c_try_compile "$LINENO"; then :
18107 ac_cv_c_bigendian=yes
18108 else
18109 ac_cv_c_bigendian=no
18110 fi
18111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18112 fi
18113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18114 fi
18115 if test $ac_cv_c_bigendian = unknown; then
18116 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
18117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18118 /* end confdefs.h. */
18119 #include <limits.h>
18120
18121 int
18122 main ()
18123 {
18124 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
18125 bogus endian macros
18126 #endif
18127
18128 ;
18129 return 0;
18130 }
18131 _ACEOF
18132 if ac_fn_c_try_compile "$LINENO"; then :
18133 # It does; now see whether it defined to _BIG_ENDIAN or not.
18134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18135 /* end confdefs.h. */
18136 #include <limits.h>
18137
18138 int
18139 main ()
18140 {
18141 #ifndef _BIG_ENDIAN
18142 not big endian
18143 #endif
18144
18145 ;
18146 return 0;
18147 }
18148 _ACEOF
18149 if ac_fn_c_try_compile "$LINENO"; then :
18150 ac_cv_c_bigendian=yes
18151 else
18152 ac_cv_c_bigendian=no
18153 fi
18154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18155 fi
18156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18157 fi
18158 if test $ac_cv_c_bigendian = unknown; then
18159 # Compile a test program.
18160 if test "$cross_compiling" = yes; then :
18161 # Try to guess by grepping values from an object file.
18162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18163 /* end confdefs.h. */
18164 short int ascii_mm[] =
18165 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
18166 short int ascii_ii[] =
18167 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
18168 int use_ascii (int i) {
18169 return ascii_mm[i] + ascii_ii[i];
18170 }
18171 short int ebcdic_ii[] =
18172 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
18173 short int ebcdic_mm[] =
18174 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
18175 int use_ebcdic (int i) {
18176 return ebcdic_mm[i] + ebcdic_ii[i];
18177 }
18178 extern int foo;
18179
18180 int
18181 main ()
18182 {
18183 return use_ascii (foo) == use_ebcdic (foo);
18184 ;
18185 return 0;
18186 }
18187 _ACEOF
18188 if ac_fn_c_try_compile "$LINENO"; then :
18189 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
18190 ac_cv_c_bigendian=yes
18191 fi
18192 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
18193 if test "$ac_cv_c_bigendian" = unknown; then
18194 ac_cv_c_bigendian=no
18195 else
18196 # finding both strings is unlikely to happen, but who knows?
18197 ac_cv_c_bigendian=unknown
18198 fi
18199 fi
18200 fi
18201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18202 else
18203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18204 /* end confdefs.h. */
18205 $ac_includes_default
18206 int
18207 main ()
18208 {
18209
18210 /* Are we little or big endian? From Harbison&Steele. */
18211 union
18212 {
18213 long int l;
18214 char c[sizeof (long int)];
18215 } u;
18216 u.l = 1;
18217 return u.c[sizeof (long int) - 1] == 1;
18218
18219 ;
18220 return 0;
18221 }
18222 _ACEOF
18223 if ac_fn_c_try_run "$LINENO"; then :
18224 ac_cv_c_bigendian=no
18225 else
18226 ac_cv_c_bigendian=yes
18227 fi
18228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18229 conftest.$ac_objext conftest.beam conftest.$ac_ext
18230 fi
18231
18232 fi
18233 fi
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
18235 $as_echo "$ac_cv_c_bigendian" >&6; }
18236 case $ac_cv_c_bigendian in #(
18237 yes)
18238 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
18239 ;; #(
18240 no)
18241 ;; #(
18242 universal)
18243
18244 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
18245
18246 ;; #(
18247 *)
18248 as_fn_error $? "unknown endianness
18249 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
18250 esac
18251
18252
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
18254 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
18255 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
18256 $as_echo_n "(cached) " >&6
18257 else
18258
18259 gcc_cv_as_cfi_pseudo_op=unknown
18260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18261 /* end confdefs.h. */
18262 asm (".cfi_sections\n\t.cfi_startproc\n\t.cfi_endproc");
18263 int
18264 main ()
18265 {
18266
18267 ;
18268 return 0;
18269 }
18270 _ACEOF
18271 if ac_fn_c_try_compile "$LINENO"; then :
18272 gcc_cv_as_cfi_pseudo_op=yes
18273 else
18274 gcc_cv_as_cfi_pseudo_op=no
18275 fi
18276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18277
18278 fi
18279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
18280 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
18281 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
18282
18283 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
18284
18285 fi
18286
18287
18288 case "$TARGET" in
18289 SPARC)
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
18291 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
18292 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
18293 $as_echo_n "(cached) " >&6
18294 else
18295
18296 save_CFLAGS="$CFLAGS"
18297 save_LDFLAGS="$LDFLAGS"
18298 CFLAGS="$CFLAGS -fpic"
18299 LDFLAGS="$LDFLAGS -shared"
18300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18301 /* end confdefs.h. */
18302 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
18303 int
18304 main ()
18305 {
18306
18307 ;
18308 return 0;
18309 }
18310 _ACEOF
18311 if ac_fn_c_try_link "$LINENO"; then :
18312 libffi_cv_as_sparc_ua_pcrel=yes
18313 else
18314 libffi_cv_as_sparc_ua_pcrel=no
18315 fi
18316 rm -f core conftest.err conftest.$ac_objext \
18317 conftest$ac_exeext conftest.$ac_ext
18318 CFLAGS="$save_CFLAGS"
18319 LDFLAGS="$save_LDFLAGS"
18320 fi
18321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
18322 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
18323 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
18324
18325 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
18326
18327 fi
18328
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
18330 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
18331 if ${libffi_cv_as_register_pseudo_op+:} false; then :
18332 $as_echo_n "(cached) " >&6
18333 else
18334
18335 libffi_cv_as_register_pseudo_op=unknown
18336 # Check if we have .register
18337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18338 /* end confdefs.h. */
18339
18340 int
18341 main ()
18342 {
18343 asm (".register %g2, #scratch");
18344 ;
18345 return 0;
18346 }
18347 _ACEOF
18348 if ac_fn_c_try_compile "$LINENO"; then :
18349 libffi_cv_as_register_pseudo_op=yes
18350 else
18351 libffi_cv_as_register_pseudo_op=no
18352 fi
18353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18354
18355 fi
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
18357 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
18358 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
18359
18360 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
18361
18362 fi
18363 ;;
18364
18365 X86*)
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
18367 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
18368 if ${libffi_cv_as_x86_pcrel+:} false; then :
18369 $as_echo_n "(cached) " >&6
18370 else
18371
18372 libffi_cv_as_x86_pcrel=no
18373 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
18374 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
18375 libffi_cv_as_x86_pcrel=yes
18376 fi
18377
18378 fi
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
18380 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
18381 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
18382
18383 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
18384
18385 fi
18386 ;;
18387
18388 S390)
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
18390 $as_echo_n "checking compiler uses zarch features... " >&6; }
18391 if ${libffi_cv_as_s390_zarch+:} false; then :
18392 $as_echo_n "(cached) " >&6
18393 else
18394
18395 libffi_cv_as_s390_zarch=no
18396 echo 'void foo(void) { bar(); bar(); }' > conftest.c
18397 if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then
18398 if grep -q brasl conftest.s; then
18399 libffi_cv_as_s390_zarch=yes
18400 fi
18401 fi
18402
18403 fi
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
18405 $as_echo "$libffi_cv_as_s390_zarch" >&6; }
18406 if test "x$libffi_cv_as_s390_zarch" = xyes; then
18407
18408 $as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
18409
18410 fi
18411 ;;
18412 esac
18413
18414 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
18415 # Check whether --enable-pax_emutramp was given.
18416 if test "${enable_pax_emutramp+set}" = set; then :
18417 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
18418
18419 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
18420
18421 fi
18422 fi
18423
18424
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
18426 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
18427 if ${lt_cv_sys_symbol_underscore+:} false; then :
18428 $as_echo_n "(cached) " >&6
18429 else
18430 lt_cv_sys_symbol_underscore=no
18431 cat > conftest.$ac_ext <<_LT_EOF
18432 void nm_test_func(){}
18433 int main(){nm_test_func;return 0;}
18434 _LT_EOF
18435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18436 (eval $ac_compile) 2>&5
18437 ac_status=$?
18438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18439 test $ac_status = 0; }; then
18440 # Now try to grab the symbols.
18441 ac_nlist=conftest.nm
18442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
18443 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
18444 ac_status=$?
18445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18446 test $ac_status = 0; } && test -s "$ac_nlist"; then
18447 # See whether the symbols have a leading underscore.
18448 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18449 lt_cv_sys_symbol_underscore=yes
18450 else
18451 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18452 :
18453 else
18454 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18455 fi
18456 fi
18457 else
18458 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18459 fi
18460 else
18461 echo "configure: failed program was:" >&5
18462 cat conftest.c >&5
18463 fi
18464 rm -rf conftest*
18465
18466 fi
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
18468 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18469 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18470
18471
18472 if test "x$sys_symbol_underscore" = xyes; then
18473
18474 $as_echo "#define SYMBOL_UNDERSCORE 1" >>confdefs.h
18475
18476 fi
18477
18478 FFI_EXEC_TRAMPOLINE_TABLE=0
18479 case "$target" in
18480 *arm*-apple-* | aarch64-apple-*)
18481 FFI_EXEC_TRAMPOLINE_TABLE=1
18482
18483 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
18484
18485 ;;
18486 *-apple-* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris* | *-linux-android*)
18487
18488 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
18489
18490 ;;
18491 esac
18492 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
18493 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
18494 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
18495 else
18496 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
18497 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
18498 fi
18499
18500
18501
18502 if test x$TARGET = xX86_64; then
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
18504 $as_echo_n "checking toolchain supports unwind section type... " >&6; }
18505 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
18506 $as_echo_n "(cached) " >&6
18507 else
18508
18509 cat > conftest1.s << EOF
18510 .text
18511 .globl foo
18512 foo:
18513 jmp bar
18514 .section .eh_frame,"a",@unwind
18515 bar:
18516 EOF
18517
18518 cat > conftest2.c << EOF
18519 extern void foo();
18520 int main(){foo();}
18521 EOF
18522
18523 libffi_cv_as_x86_64_unwind_section_type=no
18524 # we ensure that we can compile _and_ link an assembly file containing an @unwind section
18525 # since the compiler can support it and not the linker (ie old binutils)
18526 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
18527 $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
18528 libffi_cv_as_x86_64_unwind_section_type=yes
18529 fi
18530
18531 fi
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
18533 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
18534 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
18535
18536 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
18537
18538 fi
18539 fi
18540
18541 if test "x$GCC" = "xyes"; then
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
18543 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
18544 if ${libffi_cv_ro_eh_frame+:} false; then :
18545 $as_echo_n "(cached) " >&6
18546 else
18547
18548 libffi_cv_ro_eh_frame=no
18549 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
18550 if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
18551 objdump -h conftest.o > conftest.dump 2>&1
18552 libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
18553 if test "x$libffi_eh_frame_line" != "x"; then
18554 libffi_test_line=`expr $libffi_eh_frame_line + 1`p
18555 sed -n $libffi_test_line conftest.dump > conftest.line
18556 if grep READONLY conftest.line > /dev/null; then
18557 libffi_cv_ro_eh_frame=yes
18558 fi
18559 fi
18560 fi
18561 rm -f conftest.*
18562
18563 fi
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
18565 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
18566 if test "x$libffi_cv_ro_eh_frame" = xyes; then
18567
18568 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
18569
18570
18571 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
18572
18573 else
18574
18575 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
18576
18577 fi
18578
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
18580 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
18581 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
18582 $as_echo_n "(cached) " >&6
18583 else
18584
18585 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
18586 libffi_cv_hidden_visibility_attribute=no
18587 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
18588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18589 (eval $ac_try) 2>&5
18590 ac_status=$?
18591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18592 test $ac_status = 0; }; }; then
18593 if egrep '(\.hidden|\.private_extern).*foo' conftest.s >/dev/null; then
18594 libffi_cv_hidden_visibility_attribute=yes
18595 fi
18596 fi
18597 rm -f conftest.*
18598
18599 fi
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
18601 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
18602 if test $libffi_cv_hidden_visibility_attribute = yes; then
18603
18604 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
18605
18606 fi
18607 fi
18608
18609 # Check whether --enable-docs was given.
18610 if test "${enable_docs+set}" = set; then :
18611 enableval=$enable_docs; enable_docs=no
18612 else
18613 enable_docs=yes
18614 fi
18615
18616 if test x$enable_docs = xyes; then
18617 BUILD_DOCS_TRUE=
18618 BUILD_DOCS_FALSE='#'
18619 else
18620 BUILD_DOCS_TRUE='#'
18621 BUILD_DOCS_FALSE=
18622 fi
18623
18624
18625
18626
18627
18628
18629
18630
18631 TARGET_OBJ=
18632 for i in $SOURCES; do
18633 TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
18634 done
18635
18636
18637
18638
18639
18640 # Check whether --enable-debug was given.
18641 if test "${enable_debug+set}" = set; then :
18642 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
18643
18644 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
18645
18646 fi
18647 fi
18648
18649 if test "$enable_debug" = "yes"; then
18650 FFI_DEBUG_TRUE=
18651 FFI_DEBUG_FALSE='#'
18652 else
18653 FFI_DEBUG_TRUE='#'
18654 FFI_DEBUG_FALSE=
18655 fi
18656
18657
18658 # Check whether --enable-structs was given.
18659 if test "${enable_structs+set}" = set; then :
18660 enableval=$enable_structs; if test "$enable_structs" = "no"; then
18661
18662 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
18663
18664 fi
18665 fi
18666
18667 if test "$enable_debug" = "yes"; then
18668 FFI_DEBUG_TRUE=
18669 FFI_DEBUG_FALSE='#'
18670 else
18671 FFI_DEBUG_TRUE='#'
18672 FFI_DEBUG_FALSE=
18673 fi
18674
18675
18676 # Check whether --enable-raw-api was given.
18677 if test "${enable_raw_api+set}" = set; then :
18678 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
18679
18680 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
18681
18682 fi
18683 fi
18684
18685
18686 # Check whether --enable-purify-safety was given.
18687 if test "${enable_purify_safety+set}" = set; then :
18688 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
18689
18690 $as_echo "#define USING_PURIFY 1" >>confdefs.h
18691
18692 fi
18693 fi
18694
18695
18696 # Check whether --enable-multi-os-directory was given.
18697 if test "${enable_multi_os_directory+set}" = set; then :
18698 enableval=$enable_multi_os_directory;
18699 fi
18700
18701
18702 # These variables are only ever used when we cross-build to X86_WIN32.
18703 # And we only support this with GCC, so...
18704 if test "x$GCC" = "xyes"; then
18705 if test -n "$with_cross_host" &&
18706 test x"$with_cross_host" != x"no"; then
18707 toolexecdir='${exec_prefix}'/'$(target_alias)'
18708 toolexeclibdir='${toolexecdir}'/lib
18709 else
18710 toolexecdir='${libdir}'/gcc-lib/'$(target_alias)'
18711 toolexeclibdir='${libdir}'
18712 fi
18713 if test x"$enable_multi_os_directory" != x"no"; then
18714 multi_os_directory=`$CC $CFLAGS -print-multi-os-directory`
18715 case $multi_os_directory in
18716 .) ;; # Avoid trailing /.
18717 ../*) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
18718 esac
18719 fi
18720
18721 else
18722 toolexeclibdir='${libdir}'
18723 fi
18724
18725
18726 # Check linker support.
18727
18728
18729 # Check whether --with-gnu-ld was given.
18730 if test "${with_gnu_ld+set}" = set; then :
18731 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
18732 else
18733 with_gnu_ld=no
18734 fi
18735
18736 ac_prog=ld
18737 if test yes = "$GCC"; then
18738 # Check if gcc -print-prog-name=ld gives a path.
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18740 $as_echo_n "checking for ld used by $CC... " >&6; }
18741 case $host in
18742 *-*-mingw*)
18743 # gcc leaves a trailing carriage return, which upsets mingw
18744 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18745 *)
18746 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18747 esac
18748 case $ac_prog in
18749 # Accept absolute paths.
18750 [\\/]* | ?:[\\/]*)
18751 re_direlt='/[^/][^/]*/\.\./'
18752 # Canonicalize the pathname of ld
18753 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18754 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18755 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18756 done
18757 test -z "$LD" && LD=$ac_prog
18758 ;;
18759 "")
18760 # If it fails, then pretend we aren't using GCC.
18761 ac_prog=ld
18762 ;;
18763 *)
18764 # If it is relative, then search for the first ld in PATH.
18765 with_gnu_ld=unknown
18766 ;;
18767 esac
18768 elif test yes = "$with_gnu_ld"; then
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18770 $as_echo_n "checking for GNU ld... " >&6; }
18771 else
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18773 $as_echo_n "checking for non-GNU ld... " >&6; }
18774 fi
18775 if ${lt_cv_path_LD+:} false; then :
18776 $as_echo_n "(cached) " >&6
18777 else
18778 if test -z "$LD"; then
18779 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
18780 for ac_dir in $PATH; do
18781 IFS=$lt_save_ifs
18782 test -z "$ac_dir" && ac_dir=.
18783 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18784 lt_cv_path_LD=$ac_dir/$ac_prog
18785 # Check to see if the program is GNU ld. I'd rather use --version,
18786 # but apparently some variants of GNU ld only accept -v.
18787 # Break only if it was the GNU/non-GNU ld that we prefer.
18788 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18789 *GNU* | *'with BFD'*)
18790 test no != "$with_gnu_ld" && break
18791 ;;
18792 *)
18793 test yes != "$with_gnu_ld" && break
18794 ;;
18795 esac
18796 fi
18797 done
18798 IFS=$lt_save_ifs
18799 else
18800 lt_cv_path_LD=$LD # Let the user override the test with a path.
18801 fi
18802 fi
18803
18804 LD=$lt_cv_path_LD
18805 if test -n "$LD"; then
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18807 $as_echo "$LD" >&6; }
18808 else
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18810 $as_echo "no" >&6; }
18811 fi
18812 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18814 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18815 if ${lt_cv_prog_gnu_ld+:} false; then :
18816 $as_echo_n "(cached) " >&6
18817 else
18818 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18819 case `$LD -v 2>&1 </dev/null` in
18820 *GNU* | *'with BFD'*)
18821 lt_cv_prog_gnu_ld=yes
18822 ;;
18823 *)
18824 lt_cv_prog_gnu_ld=no
18825 ;;
18826 esac
18827 fi
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18829 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18830 with_gnu_ld=$lt_cv_prog_gnu_ld
18831
18832
18833
18834
18835
18836
18837
18838 # If we're not using GNU ld, then there's no point in even trying these
18839 # tests. Check for that first. We should have already tested for gld
18840 # by now (in libtool), but require it now just to be safe...
18841 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
18842 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
18843
18844
18845
18846 # The name set by libtool depends on the version of libtool. Shame on us
18847 # for depending on an impl detail, but c'est la vie. Older versions used
18848 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
18849 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
18850 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
18851 # set (hence we're using an older libtool), then set it.
18852 if test x${with_gnu_ld+set} != xset; then
18853 if test x${ac_cv_prog_gnu_ld+set} != xset; then
18854 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
18855 with_gnu_ld=no
18856 else
18857 with_gnu_ld=$ac_cv_prog_gnu_ld
18858 fi
18859 fi
18860
18861 # Start by getting the version number. I think the libtool test already
18862 # does some of this, but throws away the result.
18863 libat_ld_is_gold=no
18864 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
18865 libat_ld_is_gold=yes
18866 fi
18867 libat_ld_is_lld=no
18868 if $LD --version 2>/dev/null | grep 'LLD '> /dev/null 2>&1; then
18869 libat_ld_is_lld=yes
18870 fi
18871
18872 ldver=`$LD --version 2>/dev/null |
18873 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
18874
18875 libat_gnu_ld_version=`echo $ldver | \
18876 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
18877
18878 # Set --gc-sections.
18879 if test "$with_gnu_ld" = "notbroken"; then
18880 # GNU ld it is! Joy and bunny rabbits!
18881
18882 # All these tests are for C++; save the language and the compiler flags.
18883 # Need to do this so that g++ won't try to link in libstdc++
18884 ac_test_CFLAGS="${CFLAGS+set}"
18885 ac_save_CFLAGS="$CFLAGS"
18886 CFLAGS='-x c++ -Wl,--gc-sections'
18887
18888 # Check for -Wl,--gc-sections
18889 # XXX This test is broken at the moment, as symbols required for linking
18890 # are now in libsupc++ (not built yet). In addition, this test has
18891 # cored on solaris in the past. In addition, --gc-sections doesn't
18892 # really work at the moment (keeps on discarding used sections, first
18893 # .eh_frame and now some of the glibc sections for iconv).
18894 # Bzzzzt. Thanks for playing, maybe next time.
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
18896 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
18897 if test "$cross_compiling" = yes; then :
18898 ac_sectionLDflags=yes
18899 else
18900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18901 /* end confdefs.h. */
18902
18903 int main(void)
18904 {
18905 try { throw 1; }
18906 catch (...) { };
18907 return 0;
18908 }
18909
18910 _ACEOF
18911 if ac_fn_c_try_run "$LINENO"; then :
18912 ac_sectionLDflags=yes
18913 else
18914 ac_sectionLDflags=no
18915 fi
18916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18917 conftest.$ac_objext conftest.beam conftest.$ac_ext
18918 fi
18919
18920 if test "$ac_test_CFLAGS" = set; then
18921 CFLAGS="$ac_save_CFLAGS"
18922 else
18923 # this is the suspicious part
18924 CFLAGS=''
18925 fi
18926 if test "$ac_sectionLDflags" = "yes"; then
18927 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
18928 fi
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
18930 $as_echo "$ac_sectionLDflags" >&6; }
18931 fi
18932
18933 # Set linker optimization flags.
18934 if test x"$with_gnu_ld" = x"yes"; then
18935 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
18936 fi
18937
18938
18939
18940
18941
18942
18943 # Check whether --enable-symvers was given.
18944 if test "${enable_symvers+set}" = set; then :
18945 enableval=$enable_symvers;
18946 case "$enableval" in
18947 yes|no|gnu*|sun) ;;
18948 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
18949 esac
18950
18951 else
18952 enable_symvers=yes
18953 fi
18954
18955
18956
18957 # If we never went through the LIBFFI_CHECK_LINKER_FEATURES macro, then we
18958 # don't know enough about $LD to do tricks...
18959
18960
18961 # Turn a 'yes' into a suitable default.
18962 if test x$enable_symvers = xyes ; then
18963 # FIXME The following test is too strict, in theory.
18964 if test $enable_shared = no || test "x$LD" = x; then
18965 enable_symvers=no
18966 else
18967 if test $with_gnu_ld = yes ; then
18968 enable_symvers=gnu
18969 else
18970 case ${target_os} in
18971 # Sun symbol versioning exists since Solaris 2.5.
18972 solaris2.[5-9]* | solaris2.1[0-9]*)
18973 enable_symvers=sun ;;
18974 *)
18975 enable_symvers=no ;;
18976 esac
18977 fi
18978 fi
18979 fi
18980
18981 # Check if 'sun' was requested on non-Solaris 2 platforms.
18982 if test x$enable_symvers = xsun ; then
18983 case ${target_os} in
18984 solaris2*)
18985 # All fine.
18986 ;;
18987 *)
18988 # Unlikely to work.
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
18990 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
18992 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
18994 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
18995 enable_symvers=no
18996 ;;
18997 esac
18998 fi
18999
19000 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
19001 if test $enable_symvers != no; then
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
19003 $as_echo_n "checking for shared libgcc... " >&6; }
19004 ac_save_CFLAGS="$CFLAGS"
19005 CFLAGS=' -lgcc_s'
19006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19007 /* end confdefs.h. */
19008
19009 int
19010 main ()
19011 {
19012 return 0;
19013 ;
19014 return 0;
19015 }
19016 _ACEOF
19017 if ac_fn_c_try_link "$LINENO"; then :
19018 libat_shared_libgcc=yes
19019 else
19020 libat_shared_libgcc=no
19021 fi
19022 rm -f core conftest.err conftest.$ac_objext \
19023 conftest$ac_exeext conftest.$ac_ext
19024 CFLAGS="$ac_save_CFLAGS"
19025 if test $libat_shared_libgcc = no; then
19026 cat > conftest.c <<EOF
19027 int main (void) { return 0; }
19028 EOF
19029 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
19030 -shared -shared-libgcc -o conftest.so \
19031 conftest.c -v 2>&1 >/dev/null \
19032 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
19033 rm -f conftest.c conftest.so
19034 if test x${libat_libgcc_s_suffix+set} = xset; then
19035 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
19036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19037 /* end confdefs.h. */
19038
19039 int
19040 main ()
19041 {
19042 return 0;
19043 ;
19044 return 0;
19045 }
19046 _ACEOF
19047 if ac_fn_c_try_link "$LINENO"; then :
19048 libat_shared_libgcc=yes
19049 fi
19050 rm -f core conftest.err conftest.$ac_objext \
19051 conftest$ac_exeext conftest.$ac_ext
19052 CFLAGS="$ac_save_CFLAGS"
19053 fi
19054 fi
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
19056 $as_echo "$libat_shared_libgcc" >&6; }
19057 fi
19058
19059 # For GNU ld, we need at least this version. The format is described in
19060 # LIBFFI_CHECK_LINKER_FEATURES above.
19061 libat_min_gnu_ld_version=21400
19062 # XXXXXXXXXXX libat_gnu_ld_version=21390
19063
19064 # Check to see if unspecified "yes" value can win, given results above.
19065 # Change "yes" into either "no" or a style name.
19066 if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
19067 if test $with_gnu_ld = yes; then
19068 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
19069 enable_symvers=gnu
19070 elif test $libat_ld_is_gold = yes ; then
19071 enable_symvers=gnu
19072 elif test $libat_ld_is_lld = yes ; then
19073 enable_symvers=gnu
19074 else
19075 # The right tools, the right setup, but too old. Fallbacks?
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
19077 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
19079 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
19081 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
19083 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
19084 if test $libat_gnu_ld_version -ge 21200 ; then
19085 # Globbing fix is present, proper block support is not.
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
19087 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
19088 enable_symvers=no
19089 else
19090 # 2.11 or older.
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
19092 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
19093 enable_symvers=no
19094 fi
19095 fi
19096 elif test $enable_symvers = sun; then
19097 : All interesting versions of Sun ld support sun style symbol versioning.
19098 else
19099 # just fail for now
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
19101 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
19103 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
19105 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
19107 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
19108 enable_symvers=no
19109 fi
19110 fi
19111 if test $enable_symvers = gnu; then
19112
19113 $as_echo "#define LIBFFI_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
19114
19115 fi
19116
19117 if test $enable_symvers != no; then
19118 LIBFFI_BUILD_VERSIONED_SHLIB_TRUE=
19119 LIBFFI_BUILD_VERSIONED_SHLIB_FALSE='#'
19120 else
19121 LIBFFI_BUILD_VERSIONED_SHLIB_TRUE='#'
19122 LIBFFI_BUILD_VERSIONED_SHLIB_FALSE=
19123 fi
19124
19125 if test $enable_symvers = gnu; then
19126 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE=
19127 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
19128 else
19129 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
19130 LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE=
19131 fi
19132
19133 if test $enable_symvers = sun; then
19134 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE=
19135 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
19136 else
19137 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
19138 LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE=
19139 fi
19140
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
19142 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
19143
19144
19145 ac_config_commands="$ac_config_commands include"
19146
19147 ac_config_commands="$ac_config_commands src"
19148
19149
19150 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile doc/Makefile libffi.pc"
19151
19152
19153 cat >confcache <<\_ACEOF
19154 # This file is a shell script that caches the results of configure
19155 # tests run on this system so they can be shared between configure
19156 # scripts and configure runs, see configure's option --config-cache.
19157 # It is not useful on other systems. If it contains results you don't
19158 # want to keep, you may remove or edit it.
19159 #
19160 # config.status only pays attention to the cache file if you give it
19161 # the --recheck option to rerun configure.
19162 #
19163 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19164 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19165 # following values.
19166
19167 _ACEOF
19168
19169 # The following way of writing the cache mishandles newlines in values,
19170 # but we know of no workaround that is simple, portable, and efficient.
19171 # So, we kill variables containing newlines.
19172 # Ultrix sh set writes to stderr and can't be redirected directly,
19173 # and sets the high bit in the cache file unless we assign to the vars.
19174 (
19175 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19176 eval ac_val=\$$ac_var
19177 case $ac_val in #(
19178 *${as_nl}*)
19179 case $ac_var in #(
19180 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19181 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19182 esac
19183 case $ac_var in #(
19184 _ | IFS | as_nl) ;; #(
19185 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19186 *) { eval $ac_var=; unset $ac_var;} ;;
19187 esac ;;
19188 esac
19189 done
19190
19191 (set) 2>&1 |
19192 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19193 *${as_nl}ac_space=\ *)
19194 # `set' does not quote correctly, so add quotes: double-quote
19195 # substitution turns \\\\ into \\, and sed turns \\ into \.
19196 sed -n \
19197 "s/'/'\\\\''/g;
19198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19199 ;; #(
19200 *)
19201 # `set' quotes correctly as required by POSIX, so do not add quotes.
19202 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19203 ;;
19204 esac |
19205 sort
19206 ) |
19207 sed '
19208 /^ac_cv_env_/b end
19209 t clear
19210 :clear
19211 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19212 t end
19213 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19214 :end' >>confcache
19215 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19216 if test -w "$cache_file"; then
19217 if test "x$cache_file" != "x/dev/null"; then
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19219 $as_echo "$as_me: updating cache $cache_file" >&6;}
19220 if test ! -f "$cache_file" || test -h "$cache_file"; then
19221 cat confcache >"$cache_file"
19222 else
19223 case $cache_file in #(
19224 */* | ?:*)
19225 mv -f confcache "$cache_file"$$ &&
19226 mv -f "$cache_file"$$ "$cache_file" ;; #(
19227 *)
19228 mv -f confcache "$cache_file" ;;
19229 esac
19230 fi
19231 fi
19232 else
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19234 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19235 fi
19236 fi
19237 rm -f confcache
19238
19239 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19240 # Let make expand exec_prefix.
19241 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19242
19243 DEFS=-DHAVE_CONFIG_H
19244
19245 ac_libobjs=
19246 ac_ltlibobjs=
19247 U=
19248 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19249 # 1. Remove the extension, and $U if already installed.
19250 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19251 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19252 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19253 # will be set to the directory where LIBOBJS objects are built.
19254 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19255 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19256 done
19257 LIBOBJS=$ac_libobjs
19258
19259 LTLIBOBJS=$ac_ltlibobjs
19260
19261
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19263 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19264 if test -n "$am_sleep_pid"; then
19265 # Hide warnings about reused PIDs.
19266 wait $am_sleep_pid 2>/dev/null
19267 fi
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19269 $as_echo "done" >&6; }
19270 if test -n "$EXEEXT"; then
19271 am__EXEEXT_TRUE=
19272 am__EXEEXT_FALSE='#'
19273 else
19274 am__EXEEXT_TRUE='#'
19275 am__EXEEXT_FALSE=
19276 fi
19277
19278 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19279 as_fn_error $? "conditional \"AMDEP\" was never defined.
19280 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19281 fi
19282 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19283 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19284 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19285 fi
19286 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19287 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19289 fi
19290 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
19291 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
19292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19293 fi
19294 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19295 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19297 fi
19298 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
19299 as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
19300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19301 fi
19302
19303 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
19304 as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
19305 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19306 fi
19307 if test -z "${BUILD_DOCS_TRUE}" && test -z "${BUILD_DOCS_FALSE}"; then
19308 as_fn_error $? "conditional \"BUILD_DOCS\" was never defined.
19309 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19310 fi
19311 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
19312 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
19313 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19314 fi
19315 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
19316 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
19317 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19318 fi
19319 if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_FALSE}"; then
19320 as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB\" was never defined.
19321 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19322 fi
19323 if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
19324 as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
19325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19326 fi
19327 if test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBFFI_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
19328 as_fn_error $? "conditional \"LIBFFI_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
19329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19330 fi
19331
19332 : "${CONFIG_STATUS=./config.status}"
19333 ac_write_fail=0
19334 ac_clean_files_save=$ac_clean_files
19335 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19337 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19338 as_write_fail=0
19339 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19340 #! $SHELL
19341 # Generated by $as_me.
19342 # Run this file to recreate the current configuration.
19343 # Compiler output produced by configure, useful for debugging
19344 # configure, is in config.log if it exists.
19345
19346 debug=false
19347 ac_cs_recheck=false
19348 ac_cs_silent=false
19349
19350 SHELL=\${CONFIG_SHELL-$SHELL}
19351 export SHELL
19352 _ASEOF
19353 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19354 ## -------------------- ##
19355 ## M4sh Initialization. ##
19356 ## -------------------- ##
19357
19358 # Be more Bourne compatible
19359 DUALCASE=1; export DUALCASE # for MKS sh
19360 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19361 emulate sh
19362 NULLCMD=:
19363 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19364 # is contrary to our usage. Disable this feature.
19365 alias -g '${1+"$@"}'='"$@"'
19366 setopt NO_GLOB_SUBST
19367 else
19368 case `(set -o) 2>/dev/null` in #(
19369 *posix*) :
19370 set -o posix ;; #(
19371 *) :
19372 ;;
19373 esac
19374 fi
19375
19376
19377 as_nl='
19378 '
19379 export as_nl
19380 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19381 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19382 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19383 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19384 # Prefer a ksh shell builtin over an external printf program on Solaris,
19385 # but without wasting forks for bash or zsh.
19386 if test -z "$BASH_VERSION$ZSH_VERSION" \
19387 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19388 as_echo='print -r --'
19389 as_echo_n='print -rn --'
19390 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19391 as_echo='printf %s\n'
19392 as_echo_n='printf %s'
19393 else
19394 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19395 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19396 as_echo_n='/usr/ucb/echo -n'
19397 else
19398 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19399 as_echo_n_body='eval
19400 arg=$1;
19401 case $arg in #(
19402 *"$as_nl"*)
19403 expr "X$arg" : "X\\(.*\\)$as_nl";
19404 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19405 esac;
19406 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19407 '
19408 export as_echo_n_body
19409 as_echo_n='sh -c $as_echo_n_body as_echo'
19410 fi
19411 export as_echo_body
19412 as_echo='sh -c $as_echo_body as_echo'
19413 fi
19414
19415 # The user is always right.
19416 if test "${PATH_SEPARATOR+set}" != set; then
19417 PATH_SEPARATOR=:
19418 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19419 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19420 PATH_SEPARATOR=';'
19421 }
19422 fi
19423
19424
19425 # IFS
19426 # We need space, tab and new line, in precisely that order. Quoting is
19427 # there to prevent editors from complaining about space-tab.
19428 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19429 # splitting by setting IFS to empty value.)
19430 IFS=" "" $as_nl"
19431
19432 # Find who we are. Look in the path if we contain no directory separator.
19433 as_myself=
19434 case $0 in #((
19435 *[\\/]* ) as_myself=$0 ;;
19436 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19437 for as_dir in $PATH
19438 do
19439 IFS=$as_save_IFS
19440 test -z "$as_dir" && as_dir=.
19441 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19442 done
19443 IFS=$as_save_IFS
19444
19445 ;;
19446 esac
19447 # We did not find ourselves, most probably we were run as `sh COMMAND'
19448 # in which case we are not to be found in the path.
19449 if test "x$as_myself" = x; then
19450 as_myself=$0
19451 fi
19452 if test ! -f "$as_myself"; then
19453 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19454 exit 1
19455 fi
19456
19457 # Unset variables that we do not need and which cause bugs (e.g. in
19458 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19459 # suppresses any "Segmentation fault" message there. '((' could
19460 # trigger a bug in pdksh 5.2.14.
19461 for as_var in BASH_ENV ENV MAIL MAILPATH
19462 do eval test x\${$as_var+set} = xset \
19463 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19464 done
19465 PS1='$ '
19466 PS2='> '
19467 PS4='+ '
19468
19469 # NLS nuisances.
19470 LC_ALL=C
19471 export LC_ALL
19472 LANGUAGE=C
19473 export LANGUAGE
19474
19475 # CDPATH.
19476 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19477
19478
19479 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19480 # ----------------------------------------
19481 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19482 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19483 # script with STATUS, using 1 if that was 0.
19484 as_fn_error ()
19485 {
19486 as_status=$1; test $as_status -eq 0 && as_status=1
19487 if test "$4"; then
19488 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19489 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19490 fi
19491 $as_echo "$as_me: error: $2" >&2
19492 as_fn_exit $as_status
19493 } # as_fn_error
19494
19495
19496 # as_fn_set_status STATUS
19497 # -----------------------
19498 # Set $? to STATUS, without forking.
19499 as_fn_set_status ()
19500 {
19501 return $1
19502 } # as_fn_set_status
19503
19504 # as_fn_exit STATUS
19505 # -----------------
19506 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19507 as_fn_exit ()
19508 {
19509 set +e
19510 as_fn_set_status $1
19511 exit $1
19512 } # as_fn_exit
19513
19514 # as_fn_unset VAR
19515 # ---------------
19516 # Portably unset VAR.
19517 as_fn_unset ()
19518 {
19519 { eval $1=; unset $1;}
19520 }
19521 as_unset=as_fn_unset
19522 # as_fn_append VAR VALUE
19523 # ----------------------
19524 # Append the text in VALUE to the end of the definition contained in VAR. Take
19525 # advantage of any shell optimizations that allow amortized linear growth over
19526 # repeated appends, instead of the typical quadratic growth present in naive
19527 # implementations.
19528 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19529 eval 'as_fn_append ()
19530 {
19531 eval $1+=\$2
19532 }'
19533 else
19534 as_fn_append ()
19535 {
19536 eval $1=\$$1\$2
19537 }
19538 fi # as_fn_append
19539
19540 # as_fn_arith ARG...
19541 # ------------------
19542 # Perform arithmetic evaluation on the ARGs, and store the result in the
19543 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19544 # must be portable across $(()) and expr.
19545 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19546 eval 'as_fn_arith ()
19547 {
19548 as_val=$(( $* ))
19549 }'
19550 else
19551 as_fn_arith ()
19552 {
19553 as_val=`expr "$@" || test $? -eq 1`
19554 }
19555 fi # as_fn_arith
19556
19557
19558 if expr a : '\(a\)' >/dev/null 2>&1 &&
19559 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19560 as_expr=expr
19561 else
19562 as_expr=false
19563 fi
19564
19565 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19566 as_basename=basename
19567 else
19568 as_basename=false
19569 fi
19570
19571 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19572 as_dirname=dirname
19573 else
19574 as_dirname=false
19575 fi
19576
19577 as_me=`$as_basename -- "$0" ||
19578 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19579 X"$0" : 'X\(//\)$' \| \
19580 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19581 $as_echo X/"$0" |
19582 sed '/^.*\/\([^/][^/]*\)\/*$/{
19583 s//\1/
19584 q
19585 }
19586 /^X\/\(\/\/\)$/{
19587 s//\1/
19588 q
19589 }
19590 /^X\/\(\/\).*/{
19591 s//\1/
19592 q
19593 }
19594 s/.*/./; q'`
19595
19596 # Avoid depending upon Character Ranges.
19597 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19598 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19599 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19600 as_cr_digits='0123456789'
19601 as_cr_alnum=$as_cr_Letters$as_cr_digits
19602
19603 ECHO_C= ECHO_N= ECHO_T=
19604 case `echo -n x` in #(((((
19605 -n*)
19606 case `echo 'xy\c'` in
19607 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19608 xy) ECHO_C='\c';;
19609 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19610 ECHO_T=' ';;
19611 esac;;
19612 *)
19613 ECHO_N='-n';;
19614 esac
19615
19616 rm -f conf$$ conf$$.exe conf$$.file
19617 if test -d conf$$.dir; then
19618 rm -f conf$$.dir/conf$$.file
19619 else
19620 rm -f conf$$.dir
19621 mkdir conf$$.dir 2>/dev/null
19622 fi
19623 if (echo >conf$$.file) 2>/dev/null; then
19624 if ln -s conf$$.file conf$$ 2>/dev/null; then
19625 as_ln_s='ln -s'
19626 # ... but there are two gotchas:
19627 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19628 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19629 # In both cases, we have to default to `cp -pR'.
19630 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19631 as_ln_s='cp -pR'
19632 elif ln conf$$.file conf$$ 2>/dev/null; then
19633 as_ln_s=ln
19634 else
19635 as_ln_s='cp -pR'
19636 fi
19637 else
19638 as_ln_s='cp -pR'
19639 fi
19640 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19641 rmdir conf$$.dir 2>/dev/null
19642
19643
19644 # as_fn_mkdir_p
19645 # -------------
19646 # Create "$as_dir" as a directory, including parents if necessary.
19647 as_fn_mkdir_p ()
19648 {
19649
19650 case $as_dir in #(
19651 -*) as_dir=./$as_dir;;
19652 esac
19653 test -d "$as_dir" || eval $as_mkdir_p || {
19654 as_dirs=
19655 while :; do
19656 case $as_dir in #(
19657 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19658 *) as_qdir=$as_dir;;
19659 esac
19660 as_dirs="'$as_qdir' $as_dirs"
19661 as_dir=`$as_dirname -- "$as_dir" ||
19662 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19663 X"$as_dir" : 'X\(//\)[^/]' \| \
19664 X"$as_dir" : 'X\(//\)$' \| \
19665 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19666 $as_echo X"$as_dir" |
19667 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19668 s//\1/
19669 q
19670 }
19671 /^X\(\/\/\)[^/].*/{
19672 s//\1/
19673 q
19674 }
19675 /^X\(\/\/\)$/{
19676 s//\1/
19677 q
19678 }
19679 /^X\(\/\).*/{
19680 s//\1/
19681 q
19682 }
19683 s/.*/./; q'`
19684 test -d "$as_dir" && break
19685 done
19686 test -z "$as_dirs" || eval "mkdir $as_dirs"
19687 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19688
19689
19690 } # as_fn_mkdir_p
19691 if mkdir -p . 2>/dev/null; then
19692 as_mkdir_p='mkdir -p "$as_dir"'
19693 else
19694 test -d ./-p && rmdir ./-p
19695 as_mkdir_p=false
19696 fi
19697
19698
19699 # as_fn_executable_p FILE
19700 # -----------------------
19701 # Test if FILE is an executable regular file.
19702 as_fn_executable_p ()
19703 {
19704 test -f "$1" && test -x "$1"
19705 } # as_fn_executable_p
19706 as_test_x='test -x'
19707 as_executable_p=as_fn_executable_p
19708
19709 # Sed expression to map a string onto a valid CPP name.
19710 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19711
19712 # Sed expression to map a string onto a valid variable name.
19713 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19714
19715
19716 exec 6>&1
19717 ## ----------------------------------- ##
19718 ## Main body of $CONFIG_STATUS script. ##
19719 ## ----------------------------------- ##
19720 _ASEOF
19721 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19722
19723 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19724 # Save the log message, to keep $0 and so on meaningful, and to
19725 # report actual input values of CONFIG_FILES etc. instead of their
19726 # values after options handling.
19727 ac_log="
19728 This file was extended by libffi $as_me 3.3, which was
19729 generated by GNU Autoconf 2.69. Invocation command line was
19730
19731 CONFIG_FILES = $CONFIG_FILES
19732 CONFIG_HEADERS = $CONFIG_HEADERS
19733 CONFIG_LINKS = $CONFIG_LINKS
19734 CONFIG_COMMANDS = $CONFIG_COMMANDS
19735 $ $0 $@
19736
19737 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19738 "
19739
19740 _ACEOF
19741
19742 case $ac_config_files in *"
19743 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19744 esac
19745
19746 case $ac_config_headers in *"
19747 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19748 esac
19749
19750
19751 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19752 # Files that config.status was made for.
19753 config_files="$ac_config_files"
19754 config_headers="$ac_config_headers"
19755 config_commands="$ac_config_commands"
19756
19757 _ACEOF
19758
19759 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19760 ac_cs_usage="\
19761 \`$as_me' instantiates files and other configuration actions
19762 from templates according to the current configuration. Unless the files
19763 and actions are specified as TAGs, all are instantiated by default.
19764
19765 Usage: $0 [OPTION]... [TAG]...
19766
19767 -h, --help print this help, then exit
19768 -V, --version print version number and configuration settings, then exit
19769 --config print configuration, then exit
19770 -q, --quiet, --silent
19771 do not print progress messages
19772 -d, --debug don't remove temporary files
19773 --recheck update $as_me by reconfiguring in the same conditions
19774 --file=FILE[:TEMPLATE]
19775 instantiate the configuration file FILE
19776 --header=FILE[:TEMPLATE]
19777 instantiate the configuration header FILE
19778
19779 Configuration files:
19780 $config_files
19781
19782 Configuration headers:
19783 $config_headers
19784
19785 Configuration commands:
19786 $config_commands
19787
19788 Report bugs to <http://github.com/libffi/libffi/issues>."
19789
19790 _ACEOF
19791 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19792 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19793 ac_cs_version="\\
19794 libffi config.status 3.3
19795 configured by $0, generated by GNU Autoconf 2.69,
19796 with options \\"\$ac_cs_config\\"
19797
19798 Copyright (C) 2012 Free Software Foundation, Inc.
19799 This config.status script is free software; the Free Software Foundation
19800 gives unlimited permission to copy, distribute and modify it."
19801
19802 ac_pwd='$ac_pwd'
19803 srcdir='$srcdir'
19804 INSTALL='$INSTALL'
19805 MKDIR_P='$MKDIR_P'
19806 AWK='$AWK'
19807 test -n "\$AWK" || AWK=awk
19808 _ACEOF
19809
19810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19811 # The default lists apply if the user does not specify any file.
19812 ac_need_defaults=:
19813 while test $# != 0
19814 do
19815 case $1 in
19816 --*=?*)
19817 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19818 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19819 ac_shift=:
19820 ;;
19821 --*=)
19822 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19823 ac_optarg=
19824 ac_shift=:
19825 ;;
19826 *)
19827 ac_option=$1
19828 ac_optarg=$2
19829 ac_shift=shift
19830 ;;
19831 esac
19832
19833 case $ac_option in
19834 # Handling of the options.
19835 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19836 ac_cs_recheck=: ;;
19837 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19838 $as_echo "$ac_cs_version"; exit ;;
19839 --config | --confi | --conf | --con | --co | --c )
19840 $as_echo "$ac_cs_config"; exit ;;
19841 --debug | --debu | --deb | --de | --d | -d )
19842 debug=: ;;
19843 --file | --fil | --fi | --f )
19844 $ac_shift
19845 case $ac_optarg in
19846 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19847 '') as_fn_error $? "missing file argument" ;;
19848 esac
19849 as_fn_append CONFIG_FILES " '$ac_optarg'"
19850 ac_need_defaults=false;;
19851 --header | --heade | --head | --hea )
19852 $ac_shift
19853 case $ac_optarg in
19854 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19855 esac
19856 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19857 ac_need_defaults=false;;
19858 --he | --h)
19859 # Conflict between --help and --header
19860 as_fn_error $? "ambiguous option: \`$1'
19861 Try \`$0 --help' for more information.";;
19862 --help | --hel | -h )
19863 $as_echo "$ac_cs_usage"; exit ;;
19864 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19865 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19866 ac_cs_silent=: ;;
19867
19868 # This is an error.
19869 -*) as_fn_error $? "unrecognized option: \`$1'
19870 Try \`$0 --help' for more information." ;;
19871
19872 *) as_fn_append ac_config_targets " $1"
19873 ac_need_defaults=false ;;
19874
19875 esac
19876 shift
19877 done
19878
19879 ac_configure_extra_args=
19880
19881 if $ac_cs_silent; then
19882 exec 6>/dev/null
19883 ac_configure_extra_args="$ac_configure_extra_args --silent"
19884 fi
19885
19886 _ACEOF
19887 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19888 if \$ac_cs_recheck; then
19889 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19890 shift
19891 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19892 CONFIG_SHELL='$SHELL'
19893 export CONFIG_SHELL
19894 exec "\$@"
19895 fi
19896
19897 _ACEOF
19898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19899 exec 5>>config.log
19900 {
19901 echo
19902 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19903 ## Running $as_me. ##
19904 _ASBOX
19905 $as_echo "$ac_log"
19906 } >&5
19907
19908 _ACEOF
19909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19910 #
19911 # INIT-COMMANDS
19912 #
19913 ax_enable_builddir_srcdir="$srcdir" # $srcdir
19914 ax_enable_builddir_host="$HOST" # $HOST / $host
19915 ax_enable_builddir_version="$VERSION" # $VERSION
19916 ax_enable_builddir_package="$PACKAGE" # $PACKAGE
19917 ax_enable_builddir_auxdir="$ax_enable_builddir_auxdir" # $AUX
19918 ax_enable_builddir_sed="$ax_enable_builddir_sed" # $SED
19919 ax_enable_builddir="$ax_enable_builddir" # $SUB
19920
19921 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19922
19923
19924 # The HP-UX ksh and POSIX shell print the target directory to stdout
19925 # if CDPATH is set.
19926 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19927
19928 sed_quote_subst='$sed_quote_subst'
19929 double_quote_subst='$double_quote_subst'
19930 delay_variable_subst='$delay_variable_subst'
19931 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
19932 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
19933 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
19934 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
19935 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
19936 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
19937 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
19938 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
19939 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
19940 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
19941 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
19942 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
19943 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
19944 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
19945 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
19946 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
19947 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
19948 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
19949 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
19950 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
19951 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
19952 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
19953 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
19954 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
19955 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
19956 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
19957 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
19958 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
19959 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
19960 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
19961 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
19962 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
19963 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
19964 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
19965 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
19966 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
19967 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
19968 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
19969 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
19970 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
19971 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
19972 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
19973 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
19974 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
19975 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
19976 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
19977 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
19978 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
19979 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
19980 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
19981 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
19982 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
19983 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
19984 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
19985 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
19986 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
19987 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
19988 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
19989 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"`'
19990 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
19991 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
19992 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
19993 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
19994 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
19995 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
19996 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
19997 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
19998 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
19999 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20000 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20001 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20002 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20003 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20004 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20005 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20006 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20007 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20008 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20009 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20010 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20011 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20012 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20013 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20014 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20015 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20016 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20017 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20018 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20019 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20020 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20021 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20022 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20023 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20024 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20025 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20026 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20027 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20028 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20029 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20030 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20031 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20032 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20033 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20034 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20035 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20036 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20037 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20038 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20039 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20040 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20041 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20042 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20043 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20044 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20045 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20046 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20047 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20048 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20049 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20050 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20051 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20052 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20053 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20054 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20055 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20056 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20057 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20058 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20059 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20060 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20061 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20062 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20063 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20064 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20065 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20066 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20067 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20068 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20069 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20070 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20071 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20072 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20073 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20074 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20075 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20076 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20077 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20078 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20079 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20080 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20081 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20082 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20083 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20084 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20085 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20086 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20087 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20088 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20089 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20090 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20091 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20092 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20093 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20094 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20095 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20096 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20097 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20098 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20099 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20100 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20101 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20102 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20103 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20104 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20105 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20106 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20107 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20108 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20109 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20110 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20111 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20112 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20113 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20114 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20115 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20116 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20117 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20118 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20119 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20120
20121 LTCC='$LTCC'
20122 LTCFLAGS='$LTCFLAGS'
20123 compiler='$compiler_DEFAULT'
20124
20125 # A function that is used when there is no print builtin or printf.
20126 func_fallback_echo ()
20127 {
20128 eval 'cat <<_LTECHO_EOF
20129 \$1
20130 _LTECHO_EOF'
20131 }
20132
20133 # Quote evaled strings.
20134 for var in SHELL \
20135 ECHO \
20136 PATH_SEPARATOR \
20137 SED \
20138 GREP \
20139 EGREP \
20140 FGREP \
20141 LD \
20142 NM \
20143 LN_S \
20144 lt_SP2NL \
20145 lt_NL2SP \
20146 reload_flag \
20147 OBJDUMP \
20148 deplibs_check_method \
20149 file_magic_cmd \
20150 file_magic_glob \
20151 want_nocaseglob \
20152 DLLTOOL \
20153 sharedlib_from_linklib_cmd \
20154 AR \
20155 AR_FLAGS \
20156 archiver_list_spec \
20157 STRIP \
20158 RANLIB \
20159 CC \
20160 CFLAGS \
20161 compiler \
20162 lt_cv_sys_global_symbol_pipe \
20163 lt_cv_sys_global_symbol_to_cdecl \
20164 lt_cv_sys_global_symbol_to_import \
20165 lt_cv_sys_global_symbol_to_c_name_address \
20166 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20167 lt_cv_nm_interface \
20168 nm_file_list_spec \
20169 lt_cv_truncate_bin \
20170 lt_prog_compiler_no_builtin_flag \
20171 lt_prog_compiler_pic \
20172 lt_prog_compiler_wl \
20173 lt_prog_compiler_static \
20174 lt_cv_prog_compiler_c_o \
20175 need_locks \
20176 MANIFEST_TOOL \
20177 DSYMUTIL \
20178 NMEDIT \
20179 LIPO \
20180 OTOOL \
20181 OTOOL64 \
20182 shrext_cmds \
20183 export_dynamic_flag_spec \
20184 whole_archive_flag_spec \
20185 compiler_needs_object \
20186 with_gnu_ld \
20187 allow_undefined_flag \
20188 no_undefined_flag \
20189 hardcode_libdir_flag_spec \
20190 hardcode_libdir_separator \
20191 exclude_expsyms \
20192 include_expsyms \
20193 file_list_spec \
20194 variables_saved_for_relink \
20195 libname_spec \
20196 library_names_spec \
20197 soname_spec \
20198 install_override_mode \
20199 finish_eval \
20200 old_striplib \
20201 striplib \
20202 compiler_lib_search_dirs \
20203 predep_objects \
20204 postdep_objects \
20205 predeps \
20206 postdeps \
20207 compiler_lib_search_path \
20208 LD_CXX \
20209 reload_flag_CXX \
20210 compiler_CXX \
20211 lt_prog_compiler_no_builtin_flag_CXX \
20212 lt_prog_compiler_pic_CXX \
20213 lt_prog_compiler_wl_CXX \
20214 lt_prog_compiler_static_CXX \
20215 lt_cv_prog_compiler_c_o_CXX \
20216 export_dynamic_flag_spec_CXX \
20217 whole_archive_flag_spec_CXX \
20218 compiler_needs_object_CXX \
20219 with_gnu_ld_CXX \
20220 allow_undefined_flag_CXX \
20221 no_undefined_flag_CXX \
20222 hardcode_libdir_flag_spec_CXX \
20223 hardcode_libdir_separator_CXX \
20224 exclude_expsyms_CXX \
20225 include_expsyms_CXX \
20226 file_list_spec_CXX \
20227 compiler_lib_search_dirs_CXX \
20228 predep_objects_CXX \
20229 postdep_objects_CXX \
20230 predeps_CXX \
20231 postdeps_CXX \
20232 compiler_lib_search_path_CXX; do
20233 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20234 *[\\\\\\\`\\"\\\$]*)
20235 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20236 ;;
20237 *)
20238 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20239 ;;
20240 esac
20241 done
20242
20243 # Double-quote double-evaled strings.
20244 for var in reload_cmds \
20245 old_postinstall_cmds \
20246 old_postuninstall_cmds \
20247 old_archive_cmds \
20248 extract_expsyms_cmds \
20249 old_archive_from_new_cmds \
20250 old_archive_from_expsyms_cmds \
20251 archive_cmds \
20252 archive_expsym_cmds \
20253 module_cmds \
20254 module_expsym_cmds \
20255 export_symbols_cmds \
20256 prelink_cmds \
20257 postlink_cmds \
20258 postinstall_cmds \
20259 postuninstall_cmds \
20260 finish_cmds \
20261 sys_lib_search_path_spec \
20262 configure_time_dlsearch_path \
20263 configure_time_lt_sys_library_path \
20264 reload_cmds_CXX \
20265 old_archive_cmds_CXX \
20266 old_archive_from_new_cmds_CXX \
20267 old_archive_from_expsyms_cmds_CXX \
20268 archive_cmds_CXX \
20269 archive_expsym_cmds_CXX \
20270 module_cmds_CXX \
20271 module_expsym_cmds_CXX \
20272 export_symbols_cmds_CXX \
20273 prelink_cmds_CXX \
20274 postlink_cmds_CXX; do
20275 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20276 *[\\\\\\\`\\"\\\$]*)
20277 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20278 ;;
20279 *)
20280 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20281 ;;
20282 esac
20283 done
20284
20285 ac_aux_dir='$ac_aux_dir'
20286
20287 # See if we are running on zsh, and set the options that allow our
20288 # commands through without removal of \ escapes INIT.
20289 if test -n "\${ZSH_VERSION+set}"; then
20290 setopt NO_GLOB_SUBST
20291 fi
20292
20293
20294 PACKAGE='$PACKAGE'
20295 VERSION='$VERSION'
20296 RM='$RM'
20297 ofile='$ofile'
20298
20299
20300
20301
20302
20303 TARGETDIR="$TARGETDIR"
20304
20305 _ACEOF
20306
20307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20308
20309 # Handling of arguments.
20310 for ac_config_target in $ac_config_targets
20311 do
20312 case $ac_config_target in
20313 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
20314 "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
20315 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20316 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20317 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
20318 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
20319 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20320 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
20321 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20322 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
20323 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20324 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20325 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
20326
20327 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20328 esac
20329 done
20330
20331
20332 # If the user did not use the arguments to specify the items to instantiate,
20333 # then the envvar interface is used. Set only those that are not.
20334 # We use the long form for the default assignment because of an extremely
20335 # bizarre bug on SunOS 4.1.3.
20336 if $ac_need_defaults; then
20337 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20338 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20339 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20340 fi
20341
20342 # Have a temporary directory for convenience. Make it in the build tree
20343 # simply because there is no reason against having it here, and in addition,
20344 # creating and moving files from /tmp can sometimes cause problems.
20345 # Hook for its removal unless debugging.
20346 # Note that there is a small window in which the directory will not be cleaned:
20347 # after its creation but before its name has been assigned to `$tmp'.
20348 $debug ||
20349 {
20350 tmp= ac_tmp=
20351 trap 'exit_status=$?
20352 : "${ac_tmp:=$tmp}"
20353 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20354 ' 0
20355 trap 'as_fn_exit 1' 1 2 13 15
20356 }
20357 # Create a (secure) tmp directory for tmp files.
20358
20359 {
20360 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20361 test -d "$tmp"
20362 } ||
20363 {
20364 tmp=./conf$$-$RANDOM
20365 (umask 077 && mkdir "$tmp")
20366 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20367 ac_tmp=$tmp
20368
20369 # Set up the scripts for CONFIG_FILES section.
20370 # No need to generate them if there are no CONFIG_FILES.
20371 # This happens for instance with `./config.status config.h'.
20372 if test -n "$CONFIG_FILES"; then
20373
20374
20375 ac_cr=`echo X | tr X '\015'`
20376 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20377 # But we know of no other shell where ac_cr would be empty at this
20378 # point, so we can use a bashism as a fallback.
20379 if test "x$ac_cr" = x; then
20380 eval ac_cr=\$\'\\r\'
20381 fi
20382 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20383 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20384 ac_cs_awk_cr='\\r'
20385 else
20386 ac_cs_awk_cr=$ac_cr
20387 fi
20388
20389 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20390 _ACEOF
20391
20392
20393 {
20394 echo "cat >conf$$subs.awk <<_ACEOF" &&
20395 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20396 echo "_ACEOF"
20397 } >conf$$subs.sh ||
20398 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20399 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20400 ac_delim='%!_!# '
20401 for ac_last_try in false false false false false :; do
20402 . ./conf$$subs.sh ||
20403 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20404
20405 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20406 if test $ac_delim_n = $ac_delim_num; then
20407 break
20408 elif $ac_last_try; then
20409 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20410 else
20411 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20412 fi
20413 done
20414 rm -f conf$$subs.sh
20415
20416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20417 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20418 _ACEOF
20419 sed -n '
20420 h
20421 s/^/S["/; s/!.*/"]=/
20422 p
20423 g
20424 s/^[^!]*!//
20425 :repl
20426 t repl
20427 s/'"$ac_delim"'$//
20428 t delim
20429 :nl
20430 h
20431 s/\(.\{148\}\)..*/\1/
20432 t more1
20433 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20434 p
20435 n
20436 b repl
20437 :more1
20438 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20439 p
20440 g
20441 s/.\{148\}//
20442 t nl
20443 :delim
20444 h
20445 s/\(.\{148\}\)..*/\1/
20446 t more2
20447 s/["\\]/\\&/g; s/^/"/; s/$/"/
20448 p
20449 b
20450 :more2
20451 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20452 p
20453 g
20454 s/.\{148\}//
20455 t delim
20456 ' <conf$$subs.awk | sed '
20457 /^[^""]/{
20458 N
20459 s/\n//
20460 }
20461 ' >>$CONFIG_STATUS || ac_write_fail=1
20462 rm -f conf$$subs.awk
20463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20464 _ACAWK
20465 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20466 for (key in S) S_is_set[key] = 1
20467 FS = ""
20468
20469 }
20470 {
20471 line = $ 0
20472 nfields = split(line, field, "@")
20473 substed = 0
20474 len = length(field[1])
20475 for (i = 2; i < nfields; i++) {
20476 key = field[i]
20477 keylen = length(key)
20478 if (S_is_set[key]) {
20479 value = S[key]
20480 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20481 len += length(value) + length(field[++i])
20482 substed = 1
20483 } else
20484 len += 1 + keylen
20485 }
20486
20487 print line
20488 }
20489
20490 _ACAWK
20491 _ACEOF
20492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20493 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20494 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20495 else
20496 cat
20497 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20498 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20499 _ACEOF
20500
20501 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20502 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20503 # trailing colons and then remove the whole line if VPATH becomes empty
20504 # (actually we leave an empty line to preserve line numbers).
20505 if test "x$srcdir" = x.; then
20506 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20507 h
20508 s///
20509 s/^/:/
20510 s/[ ]*$/:/
20511 s/:\$(srcdir):/:/g
20512 s/:\${srcdir}:/:/g
20513 s/:@srcdir@:/:/g
20514 s/^:*//
20515 s/:*$//
20516 x
20517 s/\(=[ ]*\).*/\1/
20518 G
20519 s/\n//
20520 s/^[^=]*=[ ]*$//
20521 }'
20522 fi
20523
20524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20525 fi # test -n "$CONFIG_FILES"
20526
20527 # Set up the scripts for CONFIG_HEADERS section.
20528 # No need to generate them if there are no CONFIG_HEADERS.
20529 # This happens for instance with `./config.status Makefile'.
20530 if test -n "$CONFIG_HEADERS"; then
20531 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20532 BEGIN {
20533 _ACEOF
20534
20535 # Transform confdefs.h into an awk script `defines.awk', embedded as
20536 # here-document in config.status, that substitutes the proper values into
20537 # config.h.in to produce config.h.
20538
20539 # Create a delimiter string that does not exist in confdefs.h, to ease
20540 # handling of long lines.
20541 ac_delim='%!_!# '
20542 for ac_last_try in false false :; do
20543 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20544 if test -z "$ac_tt"; then
20545 break
20546 elif $ac_last_try; then
20547 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20548 else
20549 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20550 fi
20551 done
20552
20553 # For the awk script, D is an array of macro values keyed by name,
20554 # likewise P contains macro parameters if any. Preserve backslash
20555 # newline sequences.
20556
20557 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20558 sed -n '
20559 s/.\{148\}/&'"$ac_delim"'/g
20560 t rset
20561 :rset
20562 s/^[ ]*#[ ]*define[ ][ ]*/ /
20563 t def
20564 d
20565 :def
20566 s/\\$//
20567 t bsnl
20568 s/["\\]/\\&/g
20569 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20570 D["\1"]=" \3"/p
20571 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20572 d
20573 :bsnl
20574 s/["\\]/\\&/g
20575 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20576 D["\1"]=" \3\\\\\\n"\\/p
20577 t cont
20578 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20579 t cont
20580 d
20581 :cont
20582 n
20583 s/.\{148\}/&'"$ac_delim"'/g
20584 t clear
20585 :clear
20586 s/\\$//
20587 t bsnlc
20588 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20589 d
20590 :bsnlc
20591 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20592 b cont
20593 ' <confdefs.h | sed '
20594 s/'"$ac_delim"'/"\\\
20595 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20596
20597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20598 for (key in D) D_is_set[key] = 1
20599 FS = ""
20600 }
20601 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20602 line = \$ 0
20603 split(line, arg, " ")
20604 if (arg[1] == "#") {
20605 defundef = arg[2]
20606 mac1 = arg[3]
20607 } else {
20608 defundef = substr(arg[1], 2)
20609 mac1 = arg[2]
20610 }
20611 split(mac1, mac2, "(") #)
20612 macro = mac2[1]
20613 prefix = substr(line, 1, index(line, defundef) - 1)
20614 if (D_is_set[macro]) {
20615 # Preserve the white space surrounding the "#".
20616 print prefix "define", macro P[macro] D[macro]
20617 next
20618 } else {
20619 # Replace #undef with comments. This is necessary, for example,
20620 # in the case of _POSIX_SOURCE, which is predefined and required
20621 # on some systems where configure will not decide to define it.
20622 if (defundef == "undef") {
20623 print "/*", prefix defundef, macro, "*/"
20624 next
20625 }
20626 }
20627 }
20628 { print }
20629 _ACAWK
20630 _ACEOF
20631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20632 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20633 fi # test -n "$CONFIG_HEADERS"
20634
20635
20636 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20637 shift
20638 for ac_tag
20639 do
20640 case $ac_tag in
20641 :[FHLC]) ac_mode=$ac_tag; continue;;
20642 esac
20643 case $ac_mode$ac_tag in
20644 :[FHL]*:*);;
20645 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20646 :[FH]-) ac_tag=-:-;;
20647 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20648 esac
20649 ac_save_IFS=$IFS
20650 IFS=:
20651 set x $ac_tag
20652 IFS=$ac_save_IFS
20653 shift
20654 ac_file=$1
20655 shift
20656
20657 case $ac_mode in
20658 :L) ac_source=$1;;
20659 :[FH])
20660 ac_file_inputs=
20661 for ac_f
20662 do
20663 case $ac_f in
20664 -) ac_f="$ac_tmp/stdin";;
20665 *) # Look for the file first in the build tree, then in the source tree
20666 # (if the path is not absolute). The absolute path cannot be DOS-style,
20667 # because $ac_f cannot contain `:'.
20668 test -f "$ac_f" ||
20669 case $ac_f in
20670 [\\/$]*) false;;
20671 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20672 esac ||
20673 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20674 esac
20675 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20676 as_fn_append ac_file_inputs " '$ac_f'"
20677 done
20678
20679 # Let's still pretend it is `configure' which instantiates (i.e., don't
20680 # use $as_me), people would be surprised to read:
20681 # /* config.h. Generated by config.status. */
20682 configure_input='Generated from '`
20683 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20684 `' by configure.'
20685 if test x"$ac_file" != x-; then
20686 configure_input="$ac_file. $configure_input"
20687 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20688 $as_echo "$as_me: creating $ac_file" >&6;}
20689 fi
20690 # Neutralize special characters interpreted by sed in replacement strings.
20691 case $configure_input in #(
20692 *\&* | *\|* | *\\* )
20693 ac_sed_conf_input=`$as_echo "$configure_input" |
20694 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20695 *) ac_sed_conf_input=$configure_input;;
20696 esac
20697
20698 case $ac_tag in
20699 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20700 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20701 esac
20702 ;;
20703 esac
20704
20705 ac_dir=`$as_dirname -- "$ac_file" ||
20706 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20707 X"$ac_file" : 'X\(//\)[^/]' \| \
20708 X"$ac_file" : 'X\(//\)$' \| \
20709 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20710 $as_echo X"$ac_file" |
20711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20712 s//\1/
20713 q
20714 }
20715 /^X\(\/\/\)[^/].*/{
20716 s//\1/
20717 q
20718 }
20719 /^X\(\/\/\)$/{
20720 s//\1/
20721 q
20722 }
20723 /^X\(\/\).*/{
20724 s//\1/
20725 q
20726 }
20727 s/.*/./; q'`
20728 as_dir="$ac_dir"; as_fn_mkdir_p
20729 ac_builddir=.
20730
20731 case "$ac_dir" in
20732 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20733 *)
20734 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20735 # A ".." for each directory in $ac_dir_suffix.
20736 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20737 case $ac_top_builddir_sub in
20738 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20739 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20740 esac ;;
20741 esac
20742 ac_abs_top_builddir=$ac_pwd
20743 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20744 # for backward compatibility:
20745 ac_top_builddir=$ac_top_build_prefix
20746
20747 case $srcdir in
20748 .) # We are building in place.
20749 ac_srcdir=.
20750 ac_top_srcdir=$ac_top_builddir_sub
20751 ac_abs_top_srcdir=$ac_pwd ;;
20752 [\\/]* | ?:[\\/]* ) # Absolute name.
20753 ac_srcdir=$srcdir$ac_dir_suffix;
20754 ac_top_srcdir=$srcdir
20755 ac_abs_top_srcdir=$srcdir ;;
20756 *) # Relative name.
20757 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20758 ac_top_srcdir=$ac_top_build_prefix$srcdir
20759 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20760 esac
20761 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20762
20763
20764 case $ac_mode in
20765 :F)
20766 #
20767 # CONFIG_FILE
20768 #
20769
20770 case $INSTALL in
20771 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20772 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20773 esac
20774 ac_MKDIR_P=$MKDIR_P
20775 case $MKDIR_P in
20776 [\\/$]* | ?:[\\/]* ) ;;
20777 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20778 esac
20779 _ACEOF
20780
20781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20782 # If the template does not know about datarootdir, expand it.
20783 # FIXME: This hack should be removed a few years after 2.60.
20784 ac_datarootdir_hack=; ac_datarootdir_seen=
20785 ac_sed_dataroot='
20786 /datarootdir/ {
20787 p
20788 q
20789 }
20790 /@datadir@/p
20791 /@docdir@/p
20792 /@infodir@/p
20793 /@localedir@/p
20794 /@mandir@/p'
20795 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20796 *datarootdir*) ac_datarootdir_seen=yes;;
20797 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20799 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20800 _ACEOF
20801 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20802 ac_datarootdir_hack='
20803 s&@datadir@&$datadir&g
20804 s&@docdir@&$docdir&g
20805 s&@infodir@&$infodir&g
20806 s&@localedir@&$localedir&g
20807 s&@mandir@&$mandir&g
20808 s&\\\${datarootdir}&$datarootdir&g' ;;
20809 esac
20810 _ACEOF
20811
20812 # Neutralize VPATH when `$srcdir' = `.'.
20813 # Shell code in configure.ac might set extrasub.
20814 # FIXME: do we really want to maintain this feature?
20815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20816 ac_sed_extra="$ac_vpsub
20817 $extrasub
20818 _ACEOF
20819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20820 :t
20821 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20822 s|@configure_input@|$ac_sed_conf_input|;t t
20823 s&@top_builddir@&$ac_top_builddir_sub&;t t
20824 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20825 s&@srcdir@&$ac_srcdir&;t t
20826 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20827 s&@top_srcdir@&$ac_top_srcdir&;t t
20828 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20829 s&@builddir@&$ac_builddir&;t t
20830 s&@abs_builddir@&$ac_abs_builddir&;t t
20831 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20832 s&@INSTALL@&$ac_INSTALL&;t t
20833 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20834 $ac_datarootdir_hack
20835 "
20836 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20837 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20838
20839 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20840 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20841 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20842 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20844 which seems to be undefined. Please make sure it is defined" >&5
20845 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
20846 which seems to be undefined. Please make sure it is defined" >&2;}
20847
20848 rm -f "$ac_tmp/stdin"
20849 case $ac_file in
20850 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20851 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20852 esac \
20853 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20854 ;;
20855 :H)
20856 #
20857 # CONFIG_HEADER
20858 #
20859 if test x"$ac_file" != x-; then
20860 {
20861 $as_echo "/* $configure_input */" \
20862 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20863 } >"$ac_tmp/config.h" \
20864 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20865 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20867 $as_echo "$as_me: $ac_file is unchanged" >&6;}
20868 else
20869 rm -f "$ac_file"
20870 mv "$ac_tmp/config.h" "$ac_file" \
20871 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20872 fi
20873 else
20874 $as_echo "/* $configure_input */" \
20875 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20876 || as_fn_error $? "could not create -" "$LINENO" 5
20877 fi
20878 # Compute "$ac_file"'s index in $config_headers.
20879 _am_arg="$ac_file"
20880 _am_stamp_count=1
20881 for _am_header in $config_headers :; do
20882 case $_am_header in
20883 $_am_arg | $_am_arg:* )
20884 break ;;
20885 * )
20886 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20887 esac
20888 done
20889 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20890 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20891 X"$_am_arg" : 'X\(//\)[^/]' \| \
20892 X"$_am_arg" : 'X\(//\)$' \| \
20893 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20894 $as_echo X"$_am_arg" |
20895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20896 s//\1/
20897 q
20898 }
20899 /^X\(\/\/\)[^/].*/{
20900 s//\1/
20901 q
20902 }
20903 /^X\(\/\/\)$/{
20904 s//\1/
20905 q
20906 }
20907 /^X\(\/\).*/{
20908 s//\1/
20909 q
20910 }
20911 s/.*/./; q'`/stamp-h$_am_stamp_count
20912 ;;
20913
20914 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20915 $as_echo "$as_me: executing $ac_file commands" >&6;}
20916 ;;
20917 esac
20918
20919
20920 case $ac_file$ac_mode in
20921 "buildir":C) ac_top_srcdir="$ax_enable_builddir_srcdir"
20922 if test ".$ax_enable_builddir" = ".." ; then
20923 if test -f "$top_srcdir/Makefile" ; then
20924 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - left untouched" >&5
20925 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
20926 else
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: skipping top_srcdir/Makefile - not created" >&5
20928 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
20929 fi
20930 else
20931 if test -f "$ac_top_srcdir/Makefile" ; then
20932 a=`grep "^VERSION " "$ac_top_srcdir/Makefile"` ; b=`grep "^VERSION " Makefile`
20933 test "$a" != "$b" && rm "$ac_top_srcdir/Makefile"
20934 fi
20935 if test -f "$ac_top_srcdir/Makefile" ; then
20936 echo "$ac_top_srcdir/Makefile : $ac_top_srcdir/Makefile.in" > $tmp/conftemp.mk
20937 echo " @ echo 'REMOVED,,,' >\$@" >> $tmp/conftemp.mk
20938 eval "${MAKE-make} -f $tmp/conftemp.mk 2>/dev/null >/dev/null"
20939 if grep '^REMOVED,,,' "$ac_top_srcdir/Makefile" >/dev/null
20940 then rm $ac_top_srcdir/Makefile ; fi
20941 cp $tmp/conftemp.mk $ac_top_srcdir/makefiles.mk~ ## DEBUGGING
20942 fi
20943 if test ! -f "$ac_top_srcdir/Makefile" ; then
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: create top_srcdir/Makefile guessed from local Makefile" >&5
20945 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
20946 x='`' ; cat >$tmp/conftemp.sed <<_EOF
20947 /^\$/n
20948 x
20949 /^\$/bS
20950 x
20951 /\\\\\$/{H;d;}
20952 {H;s/.*//;x;}
20953 bM
20954 :S
20955 x
20956 /\\\\\$/{h;d;}
20957 {h;s/.*//;x;}
20958 :M
20959 s/\\(\\n\\) /\\1 /g
20960 /^ /d
20961 /^[ ]*[\\#]/d
20962 /^VPATH *=/d
20963 s/^srcdir *=.*/srcdir = ./
20964 s/^top_srcdir *=.*/top_srcdir = ./
20965 /[:=]/!d
20966 /^\\./d
20967 / = /b
20968 / .= /b
20969 /:/!b
20970 s/:.*/:/
20971 s/ / /g
20972 s/ \\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/ \\1 \\1-all\\2/g
20973 s/^\\([a-z][a-z-]*[a-zA-Z0-9]\\)\\([ :]\\)/\\1 \\1-all\\2/
20974 s/ / /g
20975 /^all all-all[ :]/i\\
20976 all-configured : all-all
20977 s/ [a-zA-Z0-9-]*-all [a-zA-Z0-9-]*-all-all//g
20978 /-all-all/d
20979 a\\
20980 @ HOST="\$(HOST)\" \\\\\\
20981 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
20982 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
20983 ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
20984 ; echo "MAKE \$\$HOST : \$\$n * \$\@"; if test "\$\$n" -eq "0" ; then : \\\\\\
20985 ; BUILD=$x grep "^####.*|" Makefile |tail -1| sed -e 's/.*|//' $x ; fi \\\\\\
20986 ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
20987 ; test "\$\$use" = "\$\@" && BUILD=$x echo "\$\$BUILD" | tail -1 $x \\\\\\
20988 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
20989 ; (cd "\$\$i" && test ! -f configure && \$(MAKE) \$\$use) || exit; done
20990 /dist-all *:/a\\
20991 @ HOST="\$(HOST)\" \\\\\\
20992 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
20993 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
20994 ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
20995 ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).tar.*" \\\\\\
20996 ; if test "\$\$found" -eq "0" ; then : \\\\\\
20997 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
20998 ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
20999 ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).tar.* \\\\\\
21000 ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
21001 /dist-[a-zA-Z0-9]*-all *:/a\\
21002 @ HOST="\$(HOST)\" \\\\\\
21003 ; test ".\$\$HOST" = "." && HOST=$x sh ./config.guess $x \\\\\\
21004 ; BUILD=$x grep "^#### \$\$HOST " Makefile | sed -e 's/.*|//' $x \\\\\\
21005 ; found=$x echo \$\$BUILD | wc -w $x \\\\\\
21006 ; echo "MAKE \$\$HOST : \$\$found \$(PACKAGE)-\$(VERSION).*" \\\\\\
21007 ; if test "\$\$found" -eq "0" ; then : \\\\\\
21008 ; BUILD=$x grep "^#### .*|" Makefile |tail -1| sed -e 's/.*|//' $x \\\\\\
21009 ; fi ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
21010 ; for f in \$\$i/\$(PACKAGE)-\$(VERSION).* \\\\\\
21011 ; do test -f "\$\$f" && mv "\$\$f" \$(PUB). ; done ; break ; done
21012 /distclean-all *:/a\\
21013 @ HOST="\$(HOST)\" \\\\\\
21014 ; test ".\$\$HOST" = "." && HOST=$x sh $ax_enable_builddir_auxdir/config.guess $x \\\\\\
21015 ; BUILD=$x grep "^#### .*|" Makefile | sed -e 's/.*|//' $x \\\\\\
21016 ; use=$x basename "\$\@" -all $x; n=$x echo \$\$BUILD | wc -w $x \\\\\\
21017 ; echo "MAKE \$\$HOST : \$\$n * \$\@ (all local builds)" \\\\\\
21018 ; test ".\$\$BUILD" = "." && BUILD="." \\\\\\
21019 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
21020 ; echo "# rm -r \$\$i"; done ; echo "# (sleep 3)" ; sleep 3 \\\\\\
21021 ; for i in \$\$BUILD ; do test ".\$\$i" = "." && continue \\\\\\
21022 ; echo "\$\$i" | grep "^/" > /dev/null && continue \\\\\\
21023 ; echo "\$\$i" | grep "^../" > /dev/null && continue \\\\\\
21024 ; echo "rm -r \$\$i"; (rm -r "\$\$i") ; done ; rm Makefile
21025 _EOF
21026 cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~" ## DEBUGGING
21027 $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >$ac_top_srcdir/Makefile
21028 if test -f "$ac_top_srcdir/Makefile.mk" ; then
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
21030 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
21031 cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
21032 fi ; xxxx="####"
21033 echo "$xxxx CONFIGURATIONS FOR TOPLEVEL MAKEFILE: " >>$ac_top_srcdir/Makefile
21034 # sanity check
21035 if grep '^; echo "MAKE ' $ac_top_srcdir/Makefile >/dev/null ; then
21036 { $as_echo "$as_me:${as_lineno-$LINENO}: buggy sed found - it deletes tab in \"a\" text parts" >&5
21037 $as_echo "$as_me: buggy sed found - it deletes tab in \"a\" text parts" >&6;}
21038 $ax_enable_builddir_sed -e '/^@ HOST=/s/^/ /' -e '/^; /s/^/ /' $ac_top_srcdir/Makefile \
21039 >$ac_top_srcdir/Makefile~
21040 (test -s $ac_top_srcdir/Makefile~ && mv $ac_top_srcdir/Makefile~ $ac_top_srcdir/Makefile) 2>/dev/null
21041 fi
21042 else
21043 xxxx="\\#\\#\\#\\#"
21044 # echo "/^$xxxx *$ax_enable_builddir_host /d" >$tmp/conftemp.sed
21045 echo "s!^$xxxx [^|]* | *$ax_enable_builddir *\$!$xxxx ...... $ax_enable_builddir!" >$tmp/conftemp.sed
21046 $ax_enable_builddir_sed -f "$tmp/conftemp.sed" "$ac_top_srcdir/Makefile" >$tmp/mkfile.tmp
21047 cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefiles.sed~" ## DEBUGGING
21048 cp "$tmp/mkfile.tmp" "$ac_top_srcdir/makefiles.out~" ## DEBUGGING
21049 if cmp -s "$ac_top_srcdir/Makefile" "$tmp/mkfile.tmp" 2>/dev/null ; then
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: keeping top_srcdir/Makefile from earlier configure" >&5
21051 $as_echo "$as_me: keeping top_srcdir/Makefile from earlier configure" >&6;}
21052 rm "$tmp/mkfile.tmp"
21053 else
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: reusing top_srcdir/Makefile from earlier configure" >&5
21055 $as_echo "$as_me: reusing top_srcdir/Makefile from earlier configure" >&6;}
21056 mv "$tmp/mkfile.tmp" "$ac_top_srcdir/Makefile"
21057 fi
21058 fi
21059 { $as_echo "$as_me:${as_lineno-$LINENO}: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&5
21060 $as_echo "$as_me: build in $ax_enable_builddir (HOST=$ax_enable_builddir_host)" >&6;}
21061 xxxx="####"
21062 echo "$xxxx" "$ax_enable_builddir_host" "|$ax_enable_builddir" >>$ac_top_srcdir/Makefile
21063 fi
21064 ;;
21065 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21066 # Older Autoconf quotes --file arguments for eval, but not when files
21067 # are listed without --file. Let's play safe and only enable the eval
21068 # if we detect the quoting.
21069 # TODO: see whether this extra hack can be removed once we start
21070 # requiring Autoconf 2.70 or later.
21071 case $CONFIG_FILES in #(
21072 *\'*) :
21073 eval set x "$CONFIG_FILES" ;; #(
21074 *) :
21075 set x $CONFIG_FILES ;; #(
21076 *) :
21077 ;;
21078 esac
21079 shift
21080 # Used to flag and report bootstrapping failures.
21081 am_rc=0
21082 for am_mf
21083 do
21084 # Strip MF so we end up with the name of the file.
21085 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
21086 # Check whether this is an Automake generated Makefile which includes
21087 # dependency-tracking related rules and includes.
21088 # Grep'ing the whole file directly is not great: AIX grep has a line
21089 # limit of 2048, but all sed's we know have understand at least 4000.
21090 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21091 || continue
21092 am_dirpart=`$as_dirname -- "$am_mf" ||
21093 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21094 X"$am_mf" : 'X\(//\)[^/]' \| \
21095 X"$am_mf" : 'X\(//\)$' \| \
21096 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21097 $as_echo X"$am_mf" |
21098 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21099 s//\1/
21100 q
21101 }
21102 /^X\(\/\/\)[^/].*/{
21103 s//\1/
21104 q
21105 }
21106 /^X\(\/\/\)$/{
21107 s//\1/
21108 q
21109 }
21110 /^X\(\/\).*/{
21111 s//\1/
21112 q
21113 }
21114 s/.*/./; q'`
21115 am_filepart=`$as_basename -- "$am_mf" ||
21116 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21117 X"$am_mf" : 'X\(//\)$' \| \
21118 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21119 $as_echo X/"$am_mf" |
21120 sed '/^.*\/\([^/][^/]*\)\/*$/{
21121 s//\1/
21122 q
21123 }
21124 /^X\/\(\/\/\)$/{
21125 s//\1/
21126 q
21127 }
21128 /^X\/\(\/\).*/{
21129 s//\1/
21130 q
21131 }
21132 s/.*/./; q'`
21133 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21134 && sed -e '/# am--include-marker/d' "$am_filepart" \
21135 | $MAKE -f - am--depfiles" >&5
21136 (cd "$am_dirpart" \
21137 && sed -e '/# am--include-marker/d' "$am_filepart" \
21138 | $MAKE -f - am--depfiles) >&5 2>&5
21139 ac_status=$?
21140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21141 (exit $ac_status); } || am_rc=$?
21142 done
21143 if test $am_rc -ne 0; then
21144 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21145 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21146 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21147 for automatic dependency tracking. Try re-running configure with the
21148 '--disable-dependency-tracking' option to at least be able to build
21149 the package (albeit without support for automatic dependency tracking).
21150 See \`config.log' for more details" "$LINENO" 5; }
21151 fi
21152 { am_dirpart=; unset am_dirpart;}
21153 { am_filepart=; unset am_filepart;}
21154 { am_mf=; unset am_mf;}
21155 { am_rc=; unset am_rc;}
21156 rm -f conftest-deps.mk
21157 }
21158 ;;
21159 "libtool":C)
21160
21161 # See if we are running on zsh, and set the options that allow our
21162 # commands through without removal of \ escapes.
21163 if test -n "${ZSH_VERSION+set}"; then
21164 setopt NO_GLOB_SUBST
21165 fi
21166
21167 cfgfile=${ofile}T
21168 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21169 $RM "$cfgfile"
21170
21171 cat <<_LT_EOF >> "$cfgfile"
21172 #! $SHELL
21173 # Generated automatically by $as_me ($PACKAGE) $VERSION
21174 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21175 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21176
21177 # Provide generalized library-building support services.
21178 # Written by Gordon Matzigkeit, 1996
21179
21180 # Copyright (C) 2014 Free Software Foundation, Inc.
21181 # This is free software; see the source for copying conditions. There is NO
21182 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21183
21184 # GNU Libtool is free software; you can redistribute it and/or modify
21185 # it under the terms of the GNU General Public License as published by
21186 # the Free Software Foundation; either version 2 of of the License, or
21187 # (at your option) any later version.
21188 #
21189 # As a special exception to the GNU General Public License, if you
21190 # distribute this file as part of a program or library that is built
21191 # using GNU Libtool, you may include this file under the same
21192 # distribution terms that you use for the rest of that program.
21193 #
21194 # GNU Libtool is distributed in the hope that it will be useful, but
21195 # WITHOUT ANY WARRANTY; without even the implied warranty of
21196 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21197 # GNU General Public License for more details.
21198 #
21199 # You should have received a copy of the GNU General Public License
21200 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21201
21202
21203 # The names of the tagged configurations supported by this script.
21204 available_tags='CXX '
21205
21206 # Configured defaults for sys_lib_dlsearch_path munging.
21207 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21208
21209 # ### BEGIN LIBTOOL CONFIG
21210
21211 # Which release of libtool.m4 was used?
21212 macro_version=$macro_version
21213 macro_revision=$macro_revision
21214
21215 # Whether or not to build shared libraries.
21216 build_libtool_libs=$enable_shared
21217
21218 # Whether or not to build static libraries.
21219 build_old_libs=$enable_static
21220
21221 # What type of objects to build.
21222 pic_mode=$pic_mode
21223
21224 # Whether or not to optimize for fast installation.
21225 fast_install=$enable_fast_install
21226
21227 # Shared archive member basename,for filename based shared library versioning on AIX.
21228 shared_archive_member_spec=$shared_archive_member_spec
21229
21230 # Shell to use when invoking shell scripts.
21231 SHELL=$lt_SHELL
21232
21233 # An echo program that protects backslashes.
21234 ECHO=$lt_ECHO
21235
21236 # The PATH separator for the build system.
21237 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21238
21239 # The host system.
21240 host_alias=$host_alias
21241 host=$host
21242 host_os=$host_os
21243
21244 # The build system.
21245 build_alias=$build_alias
21246 build=$build
21247 build_os=$build_os
21248
21249 # A sed program that does not truncate output.
21250 SED=$lt_SED
21251
21252 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21253 Xsed="\$SED -e 1s/^X//"
21254
21255 # A grep program that handles long lines.
21256 GREP=$lt_GREP
21257
21258 # An ERE matcher.
21259 EGREP=$lt_EGREP
21260
21261 # A literal string matcher.
21262 FGREP=$lt_FGREP
21263
21264 # A BSD- or MS-compatible name lister.
21265 NM=$lt_NM
21266
21267 # Whether we need soft or hard links.
21268 LN_S=$lt_LN_S
21269
21270 # What is the maximum length of a command?
21271 max_cmd_len=$max_cmd_len
21272
21273 # Object file suffix (normally "o").
21274 objext=$ac_objext
21275
21276 # Executable file suffix (normally "").
21277 exeext=$exeext
21278
21279 # whether the shell understands "unset".
21280 lt_unset=$lt_unset
21281
21282 # turn spaces into newlines.
21283 SP2NL=$lt_lt_SP2NL
21284
21285 # turn newlines into spaces.
21286 NL2SP=$lt_lt_NL2SP
21287
21288 # convert \$build file names to \$host format.
21289 to_host_file_cmd=$lt_cv_to_host_file_cmd
21290
21291 # convert \$build files to toolchain format.
21292 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21293
21294 # An object symbol dumper.
21295 OBJDUMP=$lt_OBJDUMP
21296
21297 # Method to check whether dependent libraries are shared objects.
21298 deplibs_check_method=$lt_deplibs_check_method
21299
21300 # Command to use when deplibs_check_method = "file_magic".
21301 file_magic_cmd=$lt_file_magic_cmd
21302
21303 # How to find potential files when deplibs_check_method = "file_magic".
21304 file_magic_glob=$lt_file_magic_glob
21305
21306 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21307 want_nocaseglob=$lt_want_nocaseglob
21308
21309 # DLL creation program.
21310 DLLTOOL=$lt_DLLTOOL
21311
21312 # Command to associate shared and link libraries.
21313 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21314
21315 # The archiver.
21316 AR=$lt_AR
21317
21318 # Flags to create an archive.
21319 AR_FLAGS=$lt_AR_FLAGS
21320
21321 # How to feed a file listing to the archiver.
21322 archiver_list_spec=$lt_archiver_list_spec
21323
21324 # A symbol stripping program.
21325 STRIP=$lt_STRIP
21326
21327 # Commands used to install an old-style archive.
21328 RANLIB=$lt_RANLIB
21329 old_postinstall_cmds=$lt_old_postinstall_cmds
21330 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21331
21332 # Whether to use a lock for old archive extraction.
21333 lock_old_archive_extraction=$lock_old_archive_extraction
21334
21335 # A C compiler.
21336 LTCC=$lt_CC
21337
21338 # LTCC compiler flags.
21339 LTCFLAGS=$lt_CFLAGS
21340
21341 # Take the output of nm and produce a listing of raw symbols and C names.
21342 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21343
21344 # Transform the output of nm in a proper C declaration.
21345 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21346
21347 # Transform the output of nm into a list of symbols to manually relocate.
21348 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21349
21350 # Transform the output of nm in a C name address pair.
21351 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21352
21353 # Transform the output of nm in a C name address pair when lib prefix is needed.
21354 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21355
21356 # The name lister interface.
21357 nm_interface=$lt_lt_cv_nm_interface
21358
21359 # Specify filename containing input files for \$NM.
21360 nm_file_list_spec=$lt_nm_file_list_spec
21361
21362 # The root where to search for dependent libraries,and where our libraries should be installed.
21363 lt_sysroot=$lt_sysroot
21364
21365 # Command to truncate a binary pipe.
21366 lt_truncate_bin=$lt_lt_cv_truncate_bin
21367
21368 # The name of the directory that contains temporary libtool files.
21369 objdir=$objdir
21370
21371 # Used to examine libraries when file_magic_cmd begins with "file".
21372 MAGIC_CMD=$MAGIC_CMD
21373
21374 # Must we lock files when doing compilation?
21375 need_locks=$lt_need_locks
21376
21377 # Manifest tool.
21378 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21379
21380 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21381 DSYMUTIL=$lt_DSYMUTIL
21382
21383 # Tool to change global to local symbols on Mac OS X.
21384 NMEDIT=$lt_NMEDIT
21385
21386 # Tool to manipulate fat objects and archives on Mac OS X.
21387 LIPO=$lt_LIPO
21388
21389 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21390 OTOOL=$lt_OTOOL
21391
21392 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21393 OTOOL64=$lt_OTOOL64
21394
21395 # Old archive suffix (normally "a").
21396 libext=$libext
21397
21398 # Shared library suffix (normally ".so").
21399 shrext_cmds=$lt_shrext_cmds
21400
21401 # The commands to extract the exported symbol list from a shared archive.
21402 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21403
21404 # Variables whose values should be saved in libtool wrapper scripts and
21405 # restored at link time.
21406 variables_saved_for_relink=$lt_variables_saved_for_relink
21407
21408 # Do we need the "lib" prefix for modules?
21409 need_lib_prefix=$need_lib_prefix
21410
21411 # Do we need a version for libraries?
21412 need_version=$need_version
21413
21414 # Library versioning type.
21415 version_type=$version_type
21416
21417 # Shared library runtime path variable.
21418 runpath_var=$runpath_var
21419
21420 # Shared library path variable.
21421 shlibpath_var=$shlibpath_var
21422
21423 # Is shlibpath searched before the hard-coded library search path?
21424 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21425
21426 # Format of library name prefix.
21427 libname_spec=$lt_libname_spec
21428
21429 # List of archive names. First name is the real one, the rest are links.
21430 # The last name is the one that the linker finds with -lNAME
21431 library_names_spec=$lt_library_names_spec
21432
21433 # The coded name of the library, if different from the real name.
21434 soname_spec=$lt_soname_spec
21435
21436 # Permission mode override for installation of shared libraries.
21437 install_override_mode=$lt_install_override_mode
21438
21439 # Command to use after installation of a shared archive.
21440 postinstall_cmds=$lt_postinstall_cmds
21441
21442 # Command to use after uninstallation of a shared archive.
21443 postuninstall_cmds=$lt_postuninstall_cmds
21444
21445 # Commands used to finish a libtool library installation in a directory.
21446 finish_cmds=$lt_finish_cmds
21447
21448 # As "finish_cmds", except a single script fragment to be evaled but
21449 # not shown.
21450 finish_eval=$lt_finish_eval
21451
21452 # Whether we should hardcode library paths into libraries.
21453 hardcode_into_libs=$hardcode_into_libs
21454
21455 # Compile-time system search path for libraries.
21456 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21457
21458 # Detected run-time system search path for libraries.
21459 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21460
21461 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21462 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21463
21464 # Whether dlopen is supported.
21465 dlopen_support=$enable_dlopen
21466
21467 # Whether dlopen of programs is supported.
21468 dlopen_self=$enable_dlopen_self
21469
21470 # Whether dlopen of statically linked programs is supported.
21471 dlopen_self_static=$enable_dlopen_self_static
21472
21473 # Commands to strip libraries.
21474 old_striplib=$lt_old_striplib
21475 striplib=$lt_striplib
21476
21477
21478 # The linker used to build libraries.
21479 LD=$lt_LD
21480
21481 # How to create reloadable object files.
21482 reload_flag=$lt_reload_flag
21483 reload_cmds=$lt_reload_cmds
21484
21485 # Commands used to build an old-style archive.
21486 old_archive_cmds=$lt_old_archive_cmds
21487
21488 # A language specific compiler.
21489 CC=$lt_compiler
21490
21491 # Is the compiler the GNU compiler?
21492 with_gcc=$GCC
21493
21494 # Compiler flag to turn off builtin functions.
21495 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21496
21497 # Additional compiler flags for building library objects.
21498 pic_flag=$lt_lt_prog_compiler_pic
21499
21500 # How to pass a linker flag through the compiler.
21501 wl=$lt_lt_prog_compiler_wl
21502
21503 # Compiler flag to prevent dynamic linking.
21504 link_static_flag=$lt_lt_prog_compiler_static
21505
21506 # Does compiler simultaneously support -c and -o options?
21507 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21508
21509 # Whether or not to add -lc for building shared libraries.
21510 build_libtool_need_lc=$archive_cmds_need_lc
21511
21512 # Whether or not to disallow shared libs when runtime libs are static.
21513 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21514
21515 # Compiler flag to allow reflexive dlopens.
21516 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21517
21518 # Compiler flag to generate shared objects directly from archives.
21519 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21520
21521 # Whether the compiler copes with passing no objects directly.
21522 compiler_needs_object=$lt_compiler_needs_object
21523
21524 # Create an old-style archive from a shared archive.
21525 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21526
21527 # Create a temporary old-style archive to link instead of a shared archive.
21528 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21529
21530 # Commands used to build a shared archive.
21531 archive_cmds=$lt_archive_cmds
21532 archive_expsym_cmds=$lt_archive_expsym_cmds
21533
21534 # Commands used to build a loadable module if different from building
21535 # a shared archive.
21536 module_cmds=$lt_module_cmds
21537 module_expsym_cmds=$lt_module_expsym_cmds
21538
21539 # Whether we are building with GNU ld or not.
21540 with_gnu_ld=$lt_with_gnu_ld
21541
21542 # Flag that allows shared libraries with undefined symbols to be built.
21543 allow_undefined_flag=$lt_allow_undefined_flag
21544
21545 # Flag that enforces no undefined symbols.
21546 no_undefined_flag=$lt_no_undefined_flag
21547
21548 # Flag to hardcode \$libdir into a binary during linking.
21549 # This must work even if \$libdir does not exist
21550 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21551
21552 # Whether we need a single "-rpath" flag with a separated argument.
21553 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21554
21555 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21556 # DIR into the resulting binary.
21557 hardcode_direct=$hardcode_direct
21558
21559 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21560 # DIR into the resulting binary and the resulting library dependency is
21561 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21562 # library is relocated.
21563 hardcode_direct_absolute=$hardcode_direct_absolute
21564
21565 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21566 # into the resulting binary.
21567 hardcode_minus_L=$hardcode_minus_L
21568
21569 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21570 # into the resulting binary.
21571 hardcode_shlibpath_var=$hardcode_shlibpath_var
21572
21573 # Set to "yes" if building a shared library automatically hardcodes DIR
21574 # into the library and all subsequent libraries and executables linked
21575 # against it.
21576 hardcode_automatic=$hardcode_automatic
21577
21578 # Set to yes if linker adds runtime paths of dependent libraries
21579 # to runtime path list.
21580 inherit_rpath=$inherit_rpath
21581
21582 # Whether libtool must link a program against all its dependency libraries.
21583 link_all_deplibs=$link_all_deplibs
21584
21585 # Set to "yes" if exported symbols are required.
21586 always_export_symbols=$always_export_symbols
21587
21588 # The commands to list exported symbols.
21589 export_symbols_cmds=$lt_export_symbols_cmds
21590
21591 # Symbols that should not be listed in the preloaded symbols.
21592 exclude_expsyms=$lt_exclude_expsyms
21593
21594 # Symbols that must always be exported.
21595 include_expsyms=$lt_include_expsyms
21596
21597 # Commands necessary for linking programs (against libraries) with templates.
21598 prelink_cmds=$lt_prelink_cmds
21599
21600 # Commands necessary for finishing linking programs.
21601 postlink_cmds=$lt_postlink_cmds
21602
21603 # Specify filename containing input files.
21604 file_list_spec=$lt_file_list_spec
21605
21606 # How to hardcode a shared library path into an executable.
21607 hardcode_action=$hardcode_action
21608
21609 # The directories searched by this compiler when creating a shared library.
21610 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21611
21612 # Dependencies to place before and after the objects being linked to
21613 # create a shared library.
21614 predep_objects=$lt_predep_objects
21615 postdep_objects=$lt_postdep_objects
21616 predeps=$lt_predeps
21617 postdeps=$lt_postdeps
21618
21619 # The library search path used internally by the compiler when linking
21620 # a shared library.
21621 compiler_lib_search_path=$lt_compiler_lib_search_path
21622
21623 # ### END LIBTOOL CONFIG
21624
21625 _LT_EOF
21626
21627 cat <<'_LT_EOF' >> "$cfgfile"
21628
21629 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21630
21631 # func_munge_path_list VARIABLE PATH
21632 # -----------------------------------
21633 # VARIABLE is name of variable containing _space_ separated list of
21634 # directories to be munged by the contents of PATH, which is string
21635 # having a format:
21636 # "DIR[:DIR]:"
21637 # string "DIR[ DIR]" will be prepended to VARIABLE
21638 # ":DIR[:DIR]"
21639 # string "DIR[ DIR]" will be appended to VARIABLE
21640 # "DIRP[:DIRP]::[DIRA:]DIRA"
21641 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21642 # "DIRA[ DIRA]" will be appended to VARIABLE
21643 # "DIR[:DIR]"
21644 # VARIABLE will be replaced by "DIR[ DIR]"
21645 func_munge_path_list ()
21646 {
21647 case x$2 in
21648 x)
21649 ;;
21650 *:)
21651 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21652 ;;
21653 x:*)
21654 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21655 ;;
21656 *::*)
21657 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21658 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21659 ;;
21660 *)
21661 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21662 ;;
21663 esac
21664 }
21665
21666
21667 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21668 func_cc_basename ()
21669 {
21670 for cc_temp in $*""; do
21671 case $cc_temp in
21672 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21673 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21674 \-*) ;;
21675 *) break;;
21676 esac
21677 done
21678 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21679 }
21680
21681
21682 # ### END FUNCTIONS SHARED WITH CONFIGURE
21683
21684 _LT_EOF
21685
21686 case $host_os in
21687 aix3*)
21688 cat <<\_LT_EOF >> "$cfgfile"
21689 # AIX sometimes has problems with the GCC collect2 program. For some
21690 # reason, if we set the COLLECT_NAMES environment variable, the problems
21691 # vanish in a puff of smoke.
21692 if test set != "${COLLECT_NAMES+set}"; then
21693 COLLECT_NAMES=
21694 export COLLECT_NAMES
21695 fi
21696 _LT_EOF
21697 ;;
21698 esac
21699
21700
21701 ltmain=$ac_aux_dir/ltmain.sh
21702
21703
21704 # We use sed instead of cat because bash on DJGPP gets confused if
21705 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21706 # text mode, it properly converts lines to CR/LF. This bash problem
21707 # is reportedly fixed, but why not run on old versions too?
21708 sed '$q' "$ltmain" >> "$cfgfile" \
21709 || (rm -f "$cfgfile"; exit 1)
21710
21711 mv -f "$cfgfile" "$ofile" ||
21712 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21713 chmod +x "$ofile"
21714
21715
21716 cat <<_LT_EOF >> "$ofile"
21717
21718 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21719
21720 # The linker used to build libraries.
21721 LD=$lt_LD_CXX
21722
21723 # How to create reloadable object files.
21724 reload_flag=$lt_reload_flag_CXX
21725 reload_cmds=$lt_reload_cmds_CXX
21726
21727 # Commands used to build an old-style archive.
21728 old_archive_cmds=$lt_old_archive_cmds_CXX
21729
21730 # A language specific compiler.
21731 CC=$lt_compiler_CXX
21732
21733 # Is the compiler the GNU compiler?
21734 with_gcc=$GCC_CXX
21735
21736 # Compiler flag to turn off builtin functions.
21737 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21738
21739 # Additional compiler flags for building library objects.
21740 pic_flag=$lt_lt_prog_compiler_pic_CXX
21741
21742 # How to pass a linker flag through the compiler.
21743 wl=$lt_lt_prog_compiler_wl_CXX
21744
21745 # Compiler flag to prevent dynamic linking.
21746 link_static_flag=$lt_lt_prog_compiler_static_CXX
21747
21748 # Does compiler simultaneously support -c and -o options?
21749 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21750
21751 # Whether or not to add -lc for building shared libraries.
21752 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21753
21754 # Whether or not to disallow shared libs when runtime libs are static.
21755 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21756
21757 # Compiler flag to allow reflexive dlopens.
21758 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21759
21760 # Compiler flag to generate shared objects directly from archives.
21761 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21762
21763 # Whether the compiler copes with passing no objects directly.
21764 compiler_needs_object=$lt_compiler_needs_object_CXX
21765
21766 # Create an old-style archive from a shared archive.
21767 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21768
21769 # Create a temporary old-style archive to link instead of a shared archive.
21770 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21771
21772 # Commands used to build a shared archive.
21773 archive_cmds=$lt_archive_cmds_CXX
21774 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21775
21776 # Commands used to build a loadable module if different from building
21777 # a shared archive.
21778 module_cmds=$lt_module_cmds_CXX
21779 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21780
21781 # Whether we are building with GNU ld or not.
21782 with_gnu_ld=$lt_with_gnu_ld_CXX
21783
21784 # Flag that allows shared libraries with undefined symbols to be built.
21785 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21786
21787 # Flag that enforces no undefined symbols.
21788 no_undefined_flag=$lt_no_undefined_flag_CXX
21789
21790 # Flag to hardcode \$libdir into a binary during linking.
21791 # This must work even if \$libdir does not exist
21792 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21793
21794 # Whether we need a single "-rpath" flag with a separated argument.
21795 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21796
21797 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21798 # DIR into the resulting binary.
21799 hardcode_direct=$hardcode_direct_CXX
21800
21801 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21802 # DIR into the resulting binary and the resulting library dependency is
21803 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21804 # library is relocated.
21805 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21806
21807 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21808 # into the resulting binary.
21809 hardcode_minus_L=$hardcode_minus_L_CXX
21810
21811 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21812 # into the resulting binary.
21813 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21814
21815 # Set to "yes" if building a shared library automatically hardcodes DIR
21816 # into the library and all subsequent libraries and executables linked
21817 # against it.
21818 hardcode_automatic=$hardcode_automatic_CXX
21819
21820 # Set to yes if linker adds runtime paths of dependent libraries
21821 # to runtime path list.
21822 inherit_rpath=$inherit_rpath_CXX
21823
21824 # Whether libtool must link a program against all its dependency libraries.
21825 link_all_deplibs=$link_all_deplibs_CXX
21826
21827 # Set to "yes" if exported symbols are required.
21828 always_export_symbols=$always_export_symbols_CXX
21829
21830 # The commands to list exported symbols.
21831 export_symbols_cmds=$lt_export_symbols_cmds_CXX
21832
21833 # Symbols that should not be listed in the preloaded symbols.
21834 exclude_expsyms=$lt_exclude_expsyms_CXX
21835
21836 # Symbols that must always be exported.
21837 include_expsyms=$lt_include_expsyms_CXX
21838
21839 # Commands necessary for linking programs (against libraries) with templates.
21840 prelink_cmds=$lt_prelink_cmds_CXX
21841
21842 # Commands necessary for finishing linking programs.
21843 postlink_cmds=$lt_postlink_cmds_CXX
21844
21845 # Specify filename containing input files.
21846 file_list_spec=$lt_file_list_spec_CXX
21847
21848 # How to hardcode a shared library path into an executable.
21849 hardcode_action=$hardcode_action_CXX
21850
21851 # The directories searched by this compiler when creating a shared library.
21852 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
21853
21854 # Dependencies to place before and after the objects being linked to
21855 # create a shared library.
21856 predep_objects=$lt_predep_objects_CXX
21857 postdep_objects=$lt_postdep_objects_CXX
21858 predeps=$lt_predeps_CXX
21859 postdeps=$lt_postdeps_CXX
21860
21861 # The library search path used internally by the compiler when linking
21862 # a shared library.
21863 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
21864
21865 # ### END LIBTOOL TAG CONFIG: CXX
21866 _LT_EOF
21867
21868 ;;
21869 "include":C) test -d include || mkdir include ;;
21870 "src":C)
21871 test -d src || mkdir src
21872 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
21873 ;;
21874
21875 esac
21876 done # for ac_tag
21877
21878
21879 as_fn_exit 0
21880 _ACEOF
21881 ac_clean_files=$ac_clean_files_save
21882
21883 test $ac_write_fail = 0 ||
21884 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21885
21886
21887 # configure is writing to config.log, and then calls config.status.
21888 # config.status does its own redirection, appending to config.log.
21889 # Unfortunately, on DOS this fails, as config.log is still kept open
21890 # by configure, so config.status won't be able to write to it; its
21891 # output is simply discarded. So we exec the FD to /dev/null,
21892 # effectively closing config.log, so it can be properly (re)opened and
21893 # appended to by config.status. When coming back to configure, we
21894 # need to make the FD available again.
21895 if test "$no_create" != yes; then
21896 ac_cs_success=:
21897 ac_config_status_args=
21898 test "$silent" = yes &&
21899 ac_config_status_args="$ac_config_status_args --quiet"
21900 exec 5>/dev/null
21901 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21902 exec 5>>config.log
21903 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21904 # would make configure fail if this is the last instruction.
21905 $ac_cs_success || as_fn_exit 1
21906 fi
21907 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21909 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
21910 fi
21911
21912
21913 # Copy this file instead of using AC_CONFIG_LINK in order to support
21914 # compiling with MSVC, which won't understand cygwin style symlinks.
21915 cp ${srcdir}/src/$TARGETDIR/ffitarget.h include/ffitarget.h