]> git.ipfire.org Git - thirdparty/gcc.git/blob - libffi/configure
Add `--with-toolexeclibdir=' configuration option
[thirdparty/gcc.git] / libffi / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libffi 3.99999.
4 #
5 # Report bugs to <http://github.com/atgreen/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 bug-autoconf@gnu.org and
278 $0: http://github.com/atgreen/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.99999'
594 PACKAGE_STRING='libffi 3.99999'
595 PACKAGE_BUGREPORT='http://github.com/atgreen/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 get_gcc_base_ver
639 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE
640 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE
641 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE
642 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE
643 LIBAT_BUILD_VERSIONED_SHLIB_FALSE
644 LIBAT_BUILD_VERSIONED_SHLIB_TRUE
645 OPT_LDFLAGS
646 SECTION_LDFLAGS
647 toolexeclibdir
648 toolexecdir
649 FFI_DEBUG_FALSE
650 FFI_DEBUG_TRUE
651 TARGET_OBJ
652 TARGETDIR
653 TARGET
654 FFI_EXEC_TRAMPOLINE_TABLE
655 FFI_EXEC_TRAMPOLINE_TABLE_FALSE
656 FFI_EXEC_TRAMPOLINE_TABLE_TRUE
657 HAVE_LONG_DOUBLE_VARIANT
658 HAVE_LONG_DOUBLE
659 ALLOCA
660 AM_LTLDFLAGS
661 AM_RUNTESTFLAGS
662 TESTSUBDIR_FALSE
663 TESTSUBDIR_TRUE
664 MAINT
665 MAINTAINER_MODE_FALSE
666 MAINTAINER_MODE_TRUE
667 CXXCPP
668 CPP
669 OTOOL64
670 OTOOL
671 LIPO
672 NMEDIT
673 DSYMUTIL
674 RANLIB
675 AR
676 OBJDUMP
677 LN_S
678 NM
679 ac_ct_DUMPBIN
680 DUMPBIN
681 LD
682 FGREP
683 EGREP
684 GREP
685 SED
686 LIBTOOL
687 am__fastdepCCAS_FALSE
688 am__fastdepCCAS_TRUE
689 CCASDEPMODE
690 CCASFLAGS
691 CCAS
692 am__fastdepCXX_FALSE
693 am__fastdepCXX_TRUE
694 CXXDEPMODE
695 ac_ct_CXX
696 CXXFLAGS
697 CXX
698 am__fastdepCC_FALSE
699 am__fastdepCC_TRUE
700 CCDEPMODE
701 am__nodep
702 AMDEPBACKSLASH
703 AMDEP_FALSE
704 AMDEP_TRUE
705 am__quote
706 am__include
707 DEPDIR
708 OBJEXT
709 EXEEXT
710 ac_ct_CC
711 CPPFLAGS
712 LDFLAGS
713 CFLAGS
714 CC
715 GENINSRC_FALSE
716 GENINSRC_TRUE
717 BUILD_INFO_FALSE
718 BUILD_INFO_TRUE
719 AM_BACKSLASH
720 AM_DEFAULT_VERBOSITY
721 AM_DEFAULT_V
722 AM_V
723 am__untar
724 am__tar
725 AMTAR
726 am__leading_dot
727 SET_MAKE
728 AWK
729 mkdir_p
730 MKDIR_P
731 INSTALL_STRIP_PROGRAM
732 STRIP
733 install_sh
734 MAKEINFO
735 AUTOHEADER
736 AUTOMAKE
737 AUTOCONF
738 ACLOCAL
739 VERSION
740 PACKAGE
741 CYGPATH_W
742 am__isrc
743 INSTALL_DATA
744 INSTALL_SCRIPT
745 INSTALL_PROGRAM
746 target_os
747 target_vendor
748 target_cpu
749 target
750 host_os
751 host_vendor
752 host_cpu
753 host
754 build_os
755 build_vendor
756 build_cpu
757 build
758 multi_basedir
759 target_alias
760 host_alias
761 build_alias
762 LIBS
763 ECHO_T
764 ECHO_N
765 ECHO_C
766 DEFS
767 mandir
768 localedir
769 libdir
770 psdir
771 pdfdir
772 dvidir
773 htmldir
774 infodir
775 docdir
776 oldincludedir
777 includedir
778 localstatedir
779 sharedstatedir
780 sysconfdir
781 datadir
782 datarootdir
783 libexecdir
784 sbindir
785 bindir
786 program_transform_name
787 prefix
788 exec_prefix
789 PACKAGE_URL
790 PACKAGE_BUGREPORT
791 PACKAGE_STRING
792 PACKAGE_VERSION
793 PACKAGE_TARNAME
794 PACKAGE_NAME
795 PATH_SEPARATOR
796 SHELL'
797 ac_subst_files=''
798 ac_user_opts='
799 enable_option_checking
800 enable_multilib
801 enable_silent_rules
802 enable_generated_files_in_srcdir
803 enable_dependency_tracking
804 enable_shared
805 enable_static
806 with_pic
807 enable_fast_install
808 with_gnu_ld
809 enable_libtool_lock
810 enable_maintainer_mode
811 enable_pax_emutramp
812 enable_debug
813 enable_structs
814 enable_raw_api
815 enable_purify_safety
816 with_toolexeclibdir
817 enable_symvers
818 with_gcc_major_version_only
819 '
820 ac_precious_vars='build_alias
821 host_alias
822 target_alias
823 CCAS
824 CCASFLAGS
825 CPP
826 CPPFLAGS
827 CXXCPP'
828
829
830 # Initialize some variables set by options.
831 ac_init_help=
832 ac_init_version=false
833 ac_unrecognized_opts=
834 ac_unrecognized_sep=
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
851
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
869 infodir='${datarootdir}/info'
870 htmldir='${docdir}'
871 dvidir='${docdir}'
872 pdfdir='${docdir}'
873 psdir='${docdir}'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
877
878 ac_prev=
879 ac_dashdash=
880 for ac_option
881 do
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
885 ac_prev=
886 continue
887 fi
888
889 case $ac_option in
890 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *=) ac_optarg= ;;
892 *) ac_optarg=yes ;;
893 esac
894
895 # Accept the important Cygnus configure options, so we can diagnose typos.
896
897 case $ac_dashdash$ac_option in
898 --)
899 ac_dashdash=yes ;;
900
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 ac_prev=bindir ;;
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 bindir=$ac_optarg ;;
905
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
910
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
917
918 --config-cache | -C)
919 cache_file=config.cache ;;
920
921 -datadir | --datadir | --datadi | --datad)
922 ac_prev=datadir ;;
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
925
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
932
933 -disable-* | --disable-*)
934 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
937 as_fn_error $? "invalid feature name: $ac_useropt"
938 ac_useropt_orig=$ac_useropt
939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
940 case $ac_user_opts in
941 *"
942 "enable_$ac_useropt"
943 "*) ;;
944 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
945 ac_unrecognized_sep=', ';;
946 esac
947 eval enable_$ac_useropt=no ;;
948
949 -docdir | --docdir | --docdi | --doc | --do)
950 ac_prev=docdir ;;
951 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
952 docdir=$ac_optarg ;;
953
954 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
955 ac_prev=dvidir ;;
956 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
957 dvidir=$ac_optarg ;;
958
959 -enable-* | --enable-*)
960 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
961 # Reject names that are not valid shell variable names.
962 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
963 as_fn_error $? "invalid feature name: $ac_useropt"
964 ac_useropt_orig=$ac_useropt
965 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
966 case $ac_user_opts in
967 *"
968 "enable_$ac_useropt"
969 "*) ;;
970 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
971 ac_unrecognized_sep=', ';;
972 esac
973 eval enable_$ac_useropt=\$ac_optarg ;;
974
975 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
976 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
977 | --exec | --exe | --ex)
978 ac_prev=exec_prefix ;;
979 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
980 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
981 | --exec=* | --exe=* | --ex=*)
982 exec_prefix=$ac_optarg ;;
983
984 -gas | --gas | --ga | --g)
985 # Obsolete; use --with-gas.
986 with_gas=yes ;;
987
988 -help | --help | --hel | --he | -h)
989 ac_init_help=long ;;
990 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
991 ac_init_help=recursive ;;
992 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
993 ac_init_help=short ;;
994
995 -host | --host | --hos | --ho)
996 ac_prev=host_alias ;;
997 -host=* | --host=* | --hos=* | --ho=*)
998 host_alias=$ac_optarg ;;
999
1000 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1001 ac_prev=htmldir ;;
1002 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1003 | --ht=*)
1004 htmldir=$ac_optarg ;;
1005
1006 -includedir | --includedir | --includedi | --included | --include \
1007 | --includ | --inclu | --incl | --inc)
1008 ac_prev=includedir ;;
1009 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1010 | --includ=* | --inclu=* | --incl=* | --inc=*)
1011 includedir=$ac_optarg ;;
1012
1013 -infodir | --infodir | --infodi | --infod | --info | --inf)
1014 ac_prev=infodir ;;
1015 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1016 infodir=$ac_optarg ;;
1017
1018 -libdir | --libdir | --libdi | --libd)
1019 ac_prev=libdir ;;
1020 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1021 libdir=$ac_optarg ;;
1022
1023 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1024 | --libexe | --libex | --libe)
1025 ac_prev=libexecdir ;;
1026 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1027 | --libexe=* | --libex=* | --libe=*)
1028 libexecdir=$ac_optarg ;;
1029
1030 -localedir | --localedir | --localedi | --localed | --locale)
1031 ac_prev=localedir ;;
1032 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1033 localedir=$ac_optarg ;;
1034
1035 -localstatedir | --localstatedir | --localstatedi | --localstated \
1036 | --localstate | --localstat | --localsta | --localst | --locals)
1037 ac_prev=localstatedir ;;
1038 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1039 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1040 localstatedir=$ac_optarg ;;
1041
1042 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1043 ac_prev=mandir ;;
1044 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1045 mandir=$ac_optarg ;;
1046
1047 -nfp | --nfp | --nf)
1048 # Obsolete; use --without-fp.
1049 with_fp=no ;;
1050
1051 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1052 | --no-cr | --no-c | -n)
1053 no_create=yes ;;
1054
1055 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1056 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1057 no_recursion=yes ;;
1058
1059 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1060 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1061 | --oldin | --oldi | --old | --ol | --o)
1062 ac_prev=oldincludedir ;;
1063 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1064 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1065 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1066 oldincludedir=$ac_optarg ;;
1067
1068 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1069 ac_prev=prefix ;;
1070 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1071 prefix=$ac_optarg ;;
1072
1073 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1074 | --program-pre | --program-pr | --program-p)
1075 ac_prev=program_prefix ;;
1076 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1077 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1078 program_prefix=$ac_optarg ;;
1079
1080 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1081 | --program-suf | --program-su | --program-s)
1082 ac_prev=program_suffix ;;
1083 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1084 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1085 program_suffix=$ac_optarg ;;
1086
1087 -program-transform-name | --program-transform-name \
1088 | --program-transform-nam | --program-transform-na \
1089 | --program-transform-n | --program-transform- \
1090 | --program-transform | --program-transfor \
1091 | --program-transfo | --program-transf \
1092 | --program-trans | --program-tran \
1093 | --progr-tra | --program-tr | --program-t)
1094 ac_prev=program_transform_name ;;
1095 -program-transform-name=* | --program-transform-name=* \
1096 | --program-transform-nam=* | --program-transform-na=* \
1097 | --program-transform-n=* | --program-transform-=* \
1098 | --program-transform=* | --program-transfor=* \
1099 | --program-transfo=* | --program-transf=* \
1100 | --program-trans=* | --program-tran=* \
1101 | --progr-tra=* | --program-tr=* | --program-t=*)
1102 program_transform_name=$ac_optarg ;;
1103
1104 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1105 ac_prev=pdfdir ;;
1106 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1107 pdfdir=$ac_optarg ;;
1108
1109 -psdir | --psdir | --psdi | --psd | --ps)
1110 ac_prev=psdir ;;
1111 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1112 psdir=$ac_optarg ;;
1113
1114 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1115 | -silent | --silent | --silen | --sile | --sil)
1116 silent=yes ;;
1117
1118 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1119 ac_prev=sbindir ;;
1120 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1121 | --sbi=* | --sb=*)
1122 sbindir=$ac_optarg ;;
1123
1124 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1125 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1126 | --sharedst | --shareds | --shared | --share | --shar \
1127 | --sha | --sh)
1128 ac_prev=sharedstatedir ;;
1129 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1130 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1131 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1132 | --sha=* | --sh=*)
1133 sharedstatedir=$ac_optarg ;;
1134
1135 -site | --site | --sit)
1136 ac_prev=site ;;
1137 -site=* | --site=* | --sit=*)
1138 site=$ac_optarg ;;
1139
1140 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1141 ac_prev=srcdir ;;
1142 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1143 srcdir=$ac_optarg ;;
1144
1145 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1146 | --syscon | --sysco | --sysc | --sys | --sy)
1147 ac_prev=sysconfdir ;;
1148 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1149 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1150 sysconfdir=$ac_optarg ;;
1151
1152 -target | --target | --targe | --targ | --tar | --ta | --t)
1153 ac_prev=target_alias ;;
1154 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1155 target_alias=$ac_optarg ;;
1156
1157 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1158 verbose=yes ;;
1159
1160 -version | --version | --versio | --versi | --vers | -V)
1161 ac_init_version=: ;;
1162
1163 -with-* | --with-*)
1164 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1165 # Reject names that are not valid shell variable names.
1166 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1167 as_fn_error $? "invalid package name: $ac_useropt"
1168 ac_useropt_orig=$ac_useropt
1169 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1171 *"
1172 "with_$ac_useropt"
1173 "*) ;;
1174 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1175 ac_unrecognized_sep=', ';;
1176 esac
1177 eval with_$ac_useropt=\$ac_optarg ;;
1178
1179 -without-* | --without-*)
1180 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1183 as_fn_error $? "invalid package name: $ac_useropt"
1184 ac_useropt_orig=$ac_useropt
1185 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1186 case $ac_user_opts in
1187 *"
1188 "with_$ac_useropt"
1189 "*) ;;
1190 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1191 ac_unrecognized_sep=', ';;
1192 esac
1193 eval with_$ac_useropt=no ;;
1194
1195 --x)
1196 # Obsolete; use --with-x.
1197 with_x=yes ;;
1198
1199 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1200 | --x-incl | --x-inc | --x-in | --x-i)
1201 ac_prev=x_includes ;;
1202 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1203 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1204 x_includes=$ac_optarg ;;
1205
1206 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1207 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1208 ac_prev=x_libraries ;;
1209 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1210 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1211 x_libraries=$ac_optarg ;;
1212
1213 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1214 Try \`$0 --help' for more information"
1215 ;;
1216
1217 *=*)
1218 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1219 # Reject names that are not valid shell variable names.
1220 case $ac_envvar in #(
1221 '' | [0-9]* | *[!_$as_cr_alnum]* )
1222 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1223 esac
1224 eval $ac_envvar=\$ac_optarg
1225 export $ac_envvar ;;
1226
1227 *)
1228 # FIXME: should be removed in autoconf 3.0.
1229 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1230 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1231 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1232 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1233 ;;
1234
1235 esac
1236 done
1237
1238 if test -n "$ac_prev"; then
1239 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1240 as_fn_error $? "missing argument to $ac_option"
1241 fi
1242
1243 if test -n "$ac_unrecognized_opts"; then
1244 case $enable_option_checking in
1245 no) ;;
1246 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1247 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1248 esac
1249 fi
1250
1251 # Check all directory arguments for consistency.
1252 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1253 datadir sysconfdir sharedstatedir localstatedir includedir \
1254 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1255 libdir localedir mandir
1256 do
1257 eval ac_val=\$$ac_var
1258 # Remove trailing slashes.
1259 case $ac_val in
1260 */ )
1261 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1262 eval $ac_var=\$ac_val;;
1263 esac
1264 # Be sure to have absolute directory names.
1265 case $ac_val in
1266 [\\/$]* | ?:[\\/]* ) continue;;
1267 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1268 esac
1269 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1270 done
1271
1272 # There might be people who depend on the old broken behavior: `$host'
1273 # used to hold the argument of --host etc.
1274 # FIXME: To remove some day.
1275 build=$build_alias
1276 host=$host_alias
1277 target=$target_alias
1278
1279 # FIXME: To remove some day.
1280 if test "x$host_alias" != x; then
1281 if test "x$build_alias" = x; then
1282 cross_compiling=maybe
1283 elif test "x$build_alias" != "x$host_alias"; then
1284 cross_compiling=yes
1285 fi
1286 fi
1287
1288 ac_tool_prefix=
1289 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290
1291 test "$silent" = yes && exec 6>/dev/null
1292
1293
1294 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295 ac_ls_di=`ls -di .` &&
1296 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1297 as_fn_error $? "working directory cannot be determined"
1298 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1299 as_fn_error $? "pwd does not report name of working directory"
1300
1301
1302 # Find the source files, if location was not specified.
1303 if test -z "$srcdir"; then
1304 ac_srcdir_defaulted=yes
1305 # Try the directory containing this script, then the parent directory.
1306 ac_confdir=`$as_dirname -- "$as_myself" ||
1307 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308 X"$as_myself" : 'X\(//\)[^/]' \| \
1309 X"$as_myself" : 'X\(//\)$' \| \
1310 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311 $as_echo X"$as_myself" |
1312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\/\)[^/].*/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\).*/{
1325 s//\1/
1326 q
1327 }
1328 s/.*/./; q'`
1329 srcdir=$ac_confdir
1330 if test ! -r "$srcdir/$ac_unique_file"; then
1331 srcdir=..
1332 fi
1333 else
1334 ac_srcdir_defaulted=no
1335 fi
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1338 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1339 fi
1340 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341 ac_abs_confdir=`(
1342 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1343 pwd)`
1344 # When building in place, set srcdir=.
1345 if test "$ac_abs_confdir" = "$ac_pwd"; then
1346 srcdir=.
1347 fi
1348 # Remove unnecessary trailing slashes from srcdir.
1349 # Double slashes in file names in object file debugging info
1350 # mess up M-x gdb in Emacs.
1351 case $srcdir in
1352 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353 esac
1354 for ac_var in $ac_precious_vars; do
1355 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_env_${ac_var}_value=\$${ac_var}
1357 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359 done
1360
1361 #
1362 # Report the --help message.
1363 #
1364 if test "$ac_init_help" = "long"; then
1365 # Omit some internal or obsolete options to make the list less imposing.
1366 # This message is too long to be a string in the A/UX 3.1 sh.
1367 cat <<_ACEOF
1368 \`configure' configures libffi 3.99999 to adapt to many kinds of systems.
1369
1370 Usage: $0 [OPTION]... [VAR=VALUE]...
1371
1372 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373 VAR=VALUE. See below for descriptions of some of the useful variables.
1374
1375 Defaults for the options are specified in brackets.
1376
1377 Configuration:
1378 -h, --help display this help and exit
1379 --help=short display options specific to this package
1380 --help=recursive display the short help of all the included packages
1381 -V, --version display version information and exit
1382 -q, --quiet, --silent do not print \`checking ...' messages
1383 --cache-file=FILE cache test results in FILE [disabled]
1384 -C, --config-cache alias for \`--cache-file=config.cache'
1385 -n, --no-create do not create output files
1386 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1387
1388 Installation directories:
1389 --prefix=PREFIX install architecture-independent files in PREFIX
1390 [$ac_default_prefix]
1391 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1392 [PREFIX]
1393
1394 By default, \`make install' will install all the files in
1395 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1396 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397 for instance \`--prefix=\$HOME'.
1398
1399 For better control, use the options below.
1400
1401 Fine tuning of the installation directories:
1402 --bindir=DIR user executables [EPREFIX/bin]
1403 --sbindir=DIR system admin executables [EPREFIX/sbin]
1404 --libexecdir=DIR program executables [EPREFIX/libexec]
1405 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1406 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1407 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1408 --libdir=DIR object code libraries [EPREFIX/lib]
1409 --includedir=DIR C header files [PREFIX/include]
1410 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1411 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1412 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1413 --infodir=DIR info documentation [DATAROOTDIR/info]
1414 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1415 --mandir=DIR man documentation [DATAROOTDIR/man]
1416 --docdir=DIR documentation root [DATAROOTDIR/doc/libffi]
1417 --htmldir=DIR html documentation [DOCDIR]
1418 --dvidir=DIR dvi documentation [DOCDIR]
1419 --pdfdir=DIR pdf documentation [DOCDIR]
1420 --psdir=DIR ps documentation [DOCDIR]
1421 _ACEOF
1422
1423 cat <<\_ACEOF
1424
1425 Program names:
1426 --program-prefix=PREFIX prepend PREFIX to installed program names
1427 --program-suffix=SUFFIX append SUFFIX to installed program names
1428 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1429
1430 System types:
1431 --build=BUILD configure for building on BUILD [guessed]
1432 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1433 --target=TARGET configure for building compilers for TARGET [HOST]
1434 _ACEOF
1435 fi
1436
1437 if test -n "$ac_init_help"; then
1438 case $ac_init_help in
1439 short | recursive ) echo "Configuration of libffi 3.99999:";;
1440 esac
1441 cat <<\_ACEOF
1442
1443 Optional Features:
1444 --disable-option-checking ignore unrecognized --enable/--with options
1445 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 --enable-multilib build many library versions (default)
1448 --enable-silent-rules less verbose build output (undo: "make V=1")
1449 --disable-silent-rules verbose build output (undo: "make V=0")
1450 --enable-generated-files-in-srcdir
1451 put copies of generated files in source dir intended
1452 for creating source tarballs for users without
1453 texinfo bison or flex
1454 --enable-dependency-tracking
1455 do not reject slow dependency extractors
1456 --disable-dependency-tracking
1457 speeds up one-time build
1458 --enable-shared[=PKGS] build shared libraries [default=yes]
1459 --enable-static[=PKGS] build static libraries [default=yes]
1460 --enable-fast-install[=PKGS]
1461 optimize for fast installation [default=yes]
1462 --disable-libtool-lock avoid locking (might break parallel builds)
1463 --enable-maintainer-mode
1464 enable make rules and dependencies not useful (and
1465 sometimes confusing) to the casual installer
1466 --enable-pax_emutramp enable pax emulated trampolines, for we can't use PROT_EXEC
1467 --enable-debug debugging mode
1468 --disable-structs omit code for struct support
1469 --disable-raw-api make the raw api unavailable
1470 --enable-purify-safety purify-safe mode
1471 --enable-symvers=STYLE enables symbol versioning of the shared library
1472 [default=yes]
1473
1474 Optional Packages:
1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 --with-pic try to use only PIC/non-PIC objects [default=use
1478 both]
1479 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1480 --with-toolexeclibdir=DIR
1481 install libraries built with a cross compiler within
1482 DIR
1483 --with-gcc-major-version-only
1484 use only GCC major number in filesystem paths
1485
1486 Some influential environment variables:
1487 CC C compiler command
1488 CFLAGS C compiler flags
1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1490 nonstandard directory <lib dir>
1491 LIBS libraries to pass to the linker, e.g. -l<library>
1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1493 you have headers in a nonstandard directory <include dir>
1494 CXX C++ compiler command
1495 CXXFLAGS C++ compiler flags
1496 CCAS assembler compiler command (defaults to CC)
1497 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1498 CPP C preprocessor
1499 CXXCPP C++ preprocessor
1500
1501 Use these variables to override the choices made by `configure' or to help
1502 it to find libraries and programs with nonstandard names/locations.
1503
1504 Report bugs to <http://github.com/atgreen/libffi/issues>.
1505 _ACEOF
1506 ac_status=$?
1507 fi
1508
1509 if test "$ac_init_help" = "recursive"; then
1510 # If there are subdirs, report their specific --help.
1511 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1512 test -d "$ac_dir" ||
1513 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1514 continue
1515 ac_builddir=.
1516
1517 case "$ac_dir" in
1518 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 *)
1520 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1521 # A ".." for each directory in $ac_dir_suffix.
1522 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1523 case $ac_top_builddir_sub in
1524 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1525 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1526 esac ;;
1527 esac
1528 ac_abs_top_builddir=$ac_pwd
1529 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1530 # for backward compatibility:
1531 ac_top_builddir=$ac_top_build_prefix
1532
1533 case $srcdir in
1534 .) # We are building in place.
1535 ac_srcdir=.
1536 ac_top_srcdir=$ac_top_builddir_sub
1537 ac_abs_top_srcdir=$ac_pwd ;;
1538 [\\/]* | ?:[\\/]* ) # Absolute name.
1539 ac_srcdir=$srcdir$ac_dir_suffix;
1540 ac_top_srcdir=$srcdir
1541 ac_abs_top_srcdir=$srcdir ;;
1542 *) # Relative name.
1543 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1544 ac_top_srcdir=$ac_top_build_prefix$srcdir
1545 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1546 esac
1547 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548
1549 cd "$ac_dir" || { ac_status=$?; continue; }
1550 # Check for guested configure.
1551 if test -f "$ac_srcdir/configure.gnu"; then
1552 echo &&
1553 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1554 elif test -f "$ac_srcdir/configure"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure" --help=recursive
1557 else
1558 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1559 fi || ac_status=$?
1560 cd "$ac_pwd" || { ac_status=$?; break; }
1561 done
1562 fi
1563
1564 test -n "$ac_init_help" && exit $ac_status
1565 if $ac_init_version; then
1566 cat <<\_ACEOF
1567 libffi configure 3.99999
1568 generated by GNU Autoconf 2.69
1569
1570 Copyright (C) 2012 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574 exit
1575 fi
1576
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1580
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext
1588 if { { ac_try="$ac_compile"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext; then :
1607 ac_retval=0
1608 else
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612 ac_retval=1
1613 fi
1614 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1615 as_fn_set_status $ac_retval
1616
1617 } # ac_fn_c_try_compile
1618
1619 # ac_fn_cxx_try_compile LINENO
1620 # ----------------------------
1621 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_cxx_try_compile ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext
1626 if { { ac_try="$ac_compile"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_compile") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1639 fi
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_cxx_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest.$ac_objext; then :
1645 ac_retval=0
1646 else
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1649
1650 ac_retval=1
1651 fi
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1654
1655 } # ac_fn_cxx_try_compile
1656
1657 # ac_fn_c_try_link LINENO
1658 # -----------------------
1659 # Try to link conftest.$ac_ext, and return whether this succeeded.
1660 ac_fn_c_try_link ()
1661 {
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext conftest$ac_exeext
1664 if { { ac_try="$ac_link"
1665 case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668 esac
1669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670 $as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_link") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest$ac_exeext && {
1683 test "$cross_compiling" = yes ||
1684 test -x conftest$ac_exeext
1685 }; then :
1686 ac_retval=0
1687 else
1688 $as_echo "$as_me: failed program was:" >&5
1689 sed 's/^/| /' conftest.$ac_ext >&5
1690
1691 ac_retval=1
1692 fi
1693 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1694 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1695 # interfere with the next link command; also delete a directory that is
1696 # left behind by Apple's compiler. We do this before executing the actions.
1697 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_link
1702
1703 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1704 # -------------------------------------------------------
1705 # Tests whether HEADER exists and can be compiled using the include files in
1706 # INCLUDES, setting the cache variable VAR accordingly.
1707 ac_fn_c_check_header_compile ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1711 $as_echo_n "checking for $2... " >&6; }
1712 if eval \${$3+:} false; then :
1713 $as_echo_n "(cached) " >&6
1714 else
1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1716 /* end confdefs.h. */
1717 $4
1718 #include <$2>
1719 _ACEOF
1720 if ac_fn_c_try_compile "$LINENO"; then :
1721 eval "$3=yes"
1722 else
1723 eval "$3=no"
1724 fi
1725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1726 fi
1727 eval ac_res=\$$3
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1729 $as_echo "$ac_res" >&6; }
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731
1732 } # ac_fn_c_check_header_compile
1733
1734 # ac_fn_c_try_cpp LINENO
1735 # ----------------------
1736 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_cpp ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { { ac_try="$ac_cpp conftest.$ac_ext"
1741 case "(($ac_try" in
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1744 esac
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1748 ac_status=$?
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1753 fi
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } > conftest.i && {
1756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1758 }; then :
1759 ac_retval=0
1760 else
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1763
1764 ac_retval=1
1765 fi
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1768
1769 } # ac_fn_c_try_cpp
1770
1771 # ac_fn_c_try_run LINENO
1772 # ----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774 # that executables *can* be run.
1775 ac_fn_c_try_run ()
1776 {
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_link"
1779 case "(($ac_try" in
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>&5
1786 ac_status=$?
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789 { { case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_try") 2>&5
1796 ac_status=$?
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; }; }; then :
1799 ac_retval=0
1800 else
1801 $as_echo "$as_me: program exited with status $ac_status" >&5
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1804
1805 ac_retval=$ac_status
1806 fi
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1810
1811 } # ac_fn_c_try_run
1812
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1817 {
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1829
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1834
1835 #ifdef __STDC__
1836 # include <limits.h>
1837 #else
1838 # include <assert.h>
1839 #endif
1840
1841 #undef $2
1842
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1846 #ifdef __cplusplus
1847 extern "C"
1848 #endif
1849 char $2 ();
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1854 choke me
1855 #endif
1856
1857 int
1858 main ()
1859 {
1860 return $2 ();
1861 ;
1862 return 0;
1863 }
1864 _ACEOF
1865 if ac_fn_c_try_link "$LINENO"; then :
1866 eval "$3=yes"
1867 else
1868 eval "$3=no"
1869 fi
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1872 fi
1873 eval ac_res=\$$3
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877
1878 } # ac_fn_c_check_func
1879
1880 # ac_fn_cxx_try_cpp LINENO
1881 # ------------------------
1882 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_cxx_try_cpp ()
1884 {
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_cpp conftest.$ac_ext"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } > conftest.i && {
1902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1903 test ! -s conftest.err
1904 }; then :
1905 ac_retval=0
1906 else
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1909
1910 ac_retval=1
1911 fi
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1914
1915 } # ac_fn_cxx_try_cpp
1916
1917 # ac_fn_cxx_try_link LINENO
1918 # -------------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_cxx_try_link ()
1921 {
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 rm -f conftest.$ac_objext conftest$ac_exeext
1924 if { { ac_try="$ac_link"
1925 case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>conftest.err
1932 ac_status=$?
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1937 fi
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_cxx_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest$ac_exeext && {
1943 test "$cross_compiling" = yes ||
1944 test -x conftest$ac_exeext
1945 }; then :
1946 ac_retval=0
1947 else
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1950
1951 ac_retval=1
1952 fi
1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955 # interfere with the next link command; also delete a directory that is
1956 # left behind by Apple's compiler. We do this before executing the actions.
1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 as_fn_set_status $ac_retval
1960
1961 } # ac_fn_cxx_try_link
1962
1963 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1964 # --------------------------------------------
1965 # Tries to find the compile-time value of EXPR in a program that includes
1966 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1967 # computed
1968 ac_fn_c_compute_int ()
1969 {
1970 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971 if test "$cross_compiling" = yes; then
1972 # Depending upon the size, compute the lo and hi bounds.
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1975 $4
1976 int
1977 main ()
1978 {
1979 static int test_array [1 - 2 * !(($2) >= 0)];
1980 test_array [0] = 0;
1981 return test_array [0];
1982
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988 ac_lo=0 ac_mid=0
1989 while :; do
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1992 $4
1993 int
1994 main ()
1995 {
1996 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1997 test_array [0] = 0;
1998 return test_array [0];
1999
2000 ;
2001 return 0;
2002 }
2003 _ACEOF
2004 if ac_fn_c_try_compile "$LINENO"; then :
2005 ac_hi=$ac_mid; break
2006 else
2007 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2008 if test $ac_lo -le $ac_mid; then
2009 ac_lo= ac_hi=
2010 break
2011 fi
2012 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2013 fi
2014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2015 done
2016 else
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2019 $4
2020 int
2021 main ()
2022 {
2023 static int test_array [1 - 2 * !(($2) < 0)];
2024 test_array [0] = 0;
2025 return test_array [0];
2026
2027 ;
2028 return 0;
2029 }
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 ac_hi=-1 ac_mid=-1
2033 while :; do
2034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h. */
2036 $4
2037 int
2038 main ()
2039 {
2040 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2041 test_array [0] = 0;
2042 return test_array [0];
2043
2044 ;
2045 return 0;
2046 }
2047 _ACEOF
2048 if ac_fn_c_try_compile "$LINENO"; then :
2049 ac_lo=$ac_mid; break
2050 else
2051 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2052 if test $ac_mid -le $ac_hi; then
2053 ac_lo= ac_hi=
2054 break
2055 fi
2056 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2057 fi
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2059 done
2060 else
2061 ac_lo= ac_hi=
2062 fi
2063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 fi
2065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 # Binary search between lo and hi bounds.
2067 while test "x$ac_lo" != "x$ac_hi"; do
2068 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2071 $4
2072 int
2073 main ()
2074 {
2075 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2076 test_array [0] = 0;
2077 return test_array [0];
2078
2079 ;
2080 return 0;
2081 }
2082 _ACEOF
2083 if ac_fn_c_try_compile "$LINENO"; then :
2084 ac_hi=$ac_mid
2085 else
2086 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2087 fi
2088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 done
2090 case $ac_lo in #((
2091 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2092 '') ac_retval=1 ;;
2093 esac
2094 else
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2097 $4
2098 static long int longval () { return $2; }
2099 static unsigned long int ulongval () { return $2; }
2100 #include <stdio.h>
2101 #include <stdlib.h>
2102 int
2103 main ()
2104 {
2105
2106 FILE *f = fopen ("conftest.val", "w");
2107 if (! f)
2108 return 1;
2109 if (($2) < 0)
2110 {
2111 long int i = longval ();
2112 if (i != ($2))
2113 return 1;
2114 fprintf (f, "%ld", i);
2115 }
2116 else
2117 {
2118 unsigned long int i = ulongval ();
2119 if (i != ($2))
2120 return 1;
2121 fprintf (f, "%lu", i);
2122 }
2123 /* Do not output a trailing newline, as this causes \r\n confusion
2124 on some platforms. */
2125 return ferror (f) || fclose (f) != 0;
2126
2127 ;
2128 return 0;
2129 }
2130 _ACEOF
2131 if ac_fn_c_try_run "$LINENO"; then :
2132 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2133 else
2134 ac_retval=1
2135 fi
2136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2137 conftest.$ac_objext conftest.beam conftest.$ac_ext
2138 rm -f conftest.val
2139
2140 fi
2141 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2142 as_fn_set_status $ac_retval
2143
2144 } # ac_fn_c_compute_int
2145
2146 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2147 # -------------------------------------------------------
2148 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2149 # the include files in INCLUDES and setting the cache variable VAR
2150 # accordingly.
2151 ac_fn_c_check_header_mongrel ()
2152 {
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 if eval \${$3+:} false; then :
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if eval \${$3+:} false; then :
2158 $as_echo_n "(cached) " >&6
2159 fi
2160 eval ac_res=\$$3
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2162 $as_echo "$ac_res" >&6; }
2163 else
2164 # Is the header compilable?
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2166 $as_echo_n "checking $2 usability... " >&6; }
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168 /* end confdefs.h. */
2169 $4
2170 #include <$2>
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173 ac_header_compiler=yes
2174 else
2175 ac_header_compiler=no
2176 fi
2177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2179 $as_echo "$ac_header_compiler" >&6; }
2180
2181 # Is the header present?
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2183 $as_echo_n "checking $2 presence... " >&6; }
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2186 #include <$2>
2187 _ACEOF
2188 if ac_fn_c_try_cpp "$LINENO"; then :
2189 ac_header_preproc=yes
2190 else
2191 ac_header_preproc=no
2192 fi
2193 rm -f conftest.err conftest.i conftest.$ac_ext
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2195 $as_echo "$ac_header_preproc" >&6; }
2196
2197 # So? What about this header?
2198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2199 yes:no: )
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2201 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2203 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2204 ;;
2205 no:yes:* )
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2207 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2209 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2211 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2213 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2215 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2216 ( $as_echo "## ------------------------------------------------------ ##
2217 ## Report this to http://github.com/atgreen/libffi/issues ##
2218 ## ------------------------------------------------------ ##"
2219 ) | sed "s/^/$as_me: WARNING: /" >&2
2220 ;;
2221 esac
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2223 $as_echo_n "checking for $2... " >&6; }
2224 if eval \${$3+:} false; then :
2225 $as_echo_n "(cached) " >&6
2226 else
2227 eval "$3=\$ac_header_compiler"
2228 fi
2229 eval ac_res=\$$3
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2231 $as_echo "$ac_res" >&6; }
2232 fi
2233 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2234
2235 } # ac_fn_c_check_header_mongrel
2236
2237 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2238 # -------------------------------------------
2239 # Tests whether TYPE exists after having included INCLUDES, setting cache
2240 # variable VAR accordingly.
2241 ac_fn_c_check_type ()
2242 {
2243 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2245 $as_echo_n "checking for $2... " >&6; }
2246 if eval \${$3+:} false; then :
2247 $as_echo_n "(cached) " >&6
2248 else
2249 eval "$3=no"
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2252 $4
2253 int
2254 main ()
2255 {
2256 if (sizeof ($2))
2257 return 0;
2258 ;
2259 return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2264 /* end confdefs.h. */
2265 $4
2266 int
2267 main ()
2268 {
2269 if (sizeof (($2)))
2270 return 0;
2271 ;
2272 return 0;
2273 }
2274 _ACEOF
2275 if ac_fn_c_try_compile "$LINENO"; then :
2276
2277 else
2278 eval "$3=yes"
2279 fi
2280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281 fi
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 fi
2284 eval ac_res=\$$3
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286 $as_echo "$ac_res" >&6; }
2287 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2288
2289 } # ac_fn_c_check_type
2290 cat >config.log <<_ACEOF
2291 This file contains any messages produced by compilers while
2292 running configure, to aid debugging if configure makes a mistake.
2293
2294 It was created by libffi $as_me 3.99999, which was
2295 generated by GNU Autoconf 2.69. Invocation command line was
2296
2297 $ $0 $@
2298
2299 _ACEOF
2300 exec 5>>config.log
2301 {
2302 cat <<_ASUNAME
2303 ## --------- ##
2304 ## Platform. ##
2305 ## --------- ##
2306
2307 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2308 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2309 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2310 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2311 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2312
2313 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2314 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2315
2316 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2317 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2318 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2319 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2320 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2321 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2322 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2323
2324 _ASUNAME
2325
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2328 do
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 $as_echo "PATH: $as_dir"
2332 done
2333 IFS=$as_save_IFS
2334
2335 } >&5
2336
2337 cat >&5 <<_ACEOF
2338
2339
2340 ## ----------- ##
2341 ## Core tests. ##
2342 ## ----------- ##
2343
2344 _ACEOF
2345
2346
2347 # Keep a trace of the command line.
2348 # Strip out --no-create and --no-recursion so they do not pile up.
2349 # Strip out --silent because we don't want to record it for future runs.
2350 # Also quote any args containing shell meta-characters.
2351 # Make two passes to allow for proper duplicate-argument suppression.
2352 ac_configure_args=
2353 ac_configure_args0=
2354 ac_configure_args1=
2355 ac_must_keep_next=false
2356 for ac_pass in 1 2
2357 do
2358 for ac_arg
2359 do
2360 case $ac_arg in
2361 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2362 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2363 | -silent | --silent | --silen | --sile | --sil)
2364 continue ;;
2365 *\'*)
2366 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2367 esac
2368 case $ac_pass in
2369 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2370 2)
2371 as_fn_append ac_configure_args1 " '$ac_arg'"
2372 if test $ac_must_keep_next = true; then
2373 ac_must_keep_next=false # Got value, back to normal.
2374 else
2375 case $ac_arg in
2376 *=* | --config-cache | -C | -disable-* | --disable-* \
2377 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2378 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2379 | -with-* | --with-* | -without-* | --without-* | --x)
2380 case "$ac_configure_args0 " in
2381 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2382 esac
2383 ;;
2384 -* ) ac_must_keep_next=true ;;
2385 esac
2386 fi
2387 as_fn_append ac_configure_args " '$ac_arg'"
2388 ;;
2389 esac
2390 done
2391 done
2392 { ac_configure_args0=; unset ac_configure_args0;}
2393 { ac_configure_args1=; unset ac_configure_args1;}
2394
2395 # When interrupted or exit'd, cleanup temporary files, and complete
2396 # config.log. We remove comments because anyway the quotes in there
2397 # would cause problems or look ugly.
2398 # WARNING: Use '\'' to represent an apostrophe within the trap.
2399 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2400 trap 'exit_status=$?
2401 # Save into config.log some information that might help in debugging.
2402 {
2403 echo
2404
2405 $as_echo "## ---------------- ##
2406 ## Cache variables. ##
2407 ## ---------------- ##"
2408 echo
2409 # The following way of writing the cache mishandles newlines in values,
2410 (
2411 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2412 eval ac_val=\$$ac_var
2413 case $ac_val in #(
2414 *${as_nl}*)
2415 case $ac_var in #(
2416 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2417 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2418 esac
2419 case $ac_var in #(
2420 _ | IFS | as_nl) ;; #(
2421 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2422 *) { eval $ac_var=; unset $ac_var;} ;;
2423 esac ;;
2424 esac
2425 done
2426 (set) 2>&1 |
2427 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2428 *${as_nl}ac_space=\ *)
2429 sed -n \
2430 "s/'\''/'\''\\\\'\'''\''/g;
2431 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2432 ;; #(
2433 *)
2434 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2435 ;;
2436 esac |
2437 sort
2438 )
2439 echo
2440
2441 $as_echo "## ----------------- ##
2442 ## Output variables. ##
2443 ## ----------------- ##"
2444 echo
2445 for ac_var in $ac_subst_vars
2446 do
2447 eval ac_val=\$$ac_var
2448 case $ac_val in
2449 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2450 esac
2451 $as_echo "$ac_var='\''$ac_val'\''"
2452 done | sort
2453 echo
2454
2455 if test -n "$ac_subst_files"; then
2456 $as_echo "## ------------------- ##
2457 ## File substitutions. ##
2458 ## ------------------- ##"
2459 echo
2460 for ac_var in $ac_subst_files
2461 do
2462 eval ac_val=\$$ac_var
2463 case $ac_val in
2464 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2465 esac
2466 $as_echo "$ac_var='\''$ac_val'\''"
2467 done | sort
2468 echo
2469 fi
2470
2471 if test -s confdefs.h; then
2472 $as_echo "## ----------- ##
2473 ## confdefs.h. ##
2474 ## ----------- ##"
2475 echo
2476 cat confdefs.h
2477 echo
2478 fi
2479 test "$ac_signal" != 0 &&
2480 $as_echo "$as_me: caught signal $ac_signal"
2481 $as_echo "$as_me: exit $exit_status"
2482 } >&5
2483 rm -f core *.core core.conftest.* &&
2484 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2485 exit $exit_status
2486 ' 0
2487 for ac_signal in 1 2 13 15; do
2488 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2489 done
2490 ac_signal=0
2491
2492 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2493 rm -f -r conftest* confdefs.h
2494
2495 $as_echo "/* confdefs.h */" > confdefs.h
2496
2497 # Predefined preprocessor variables.
2498
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_NAME "$PACKAGE_NAME"
2501 _ACEOF
2502
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2505 _ACEOF
2506
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2509 _ACEOF
2510
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_STRING "$PACKAGE_STRING"
2513 _ACEOF
2514
2515 cat >>confdefs.h <<_ACEOF
2516 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2517 _ACEOF
2518
2519 cat >>confdefs.h <<_ACEOF
2520 #define PACKAGE_URL "$PACKAGE_URL"
2521 _ACEOF
2522
2523
2524 # Let the site file select an alternate cache file if it wants to.
2525 # Prefer an explicitly selected file to automatically selected ones.
2526 ac_site_file1=NONE
2527 ac_site_file2=NONE
2528 if test -n "$CONFIG_SITE"; then
2529 # We do not want a PATH search for config.site.
2530 case $CONFIG_SITE in #((
2531 -*) ac_site_file1=./$CONFIG_SITE;;
2532 */*) ac_site_file1=$CONFIG_SITE;;
2533 *) ac_site_file1=./$CONFIG_SITE;;
2534 esac
2535 elif test "x$prefix" != xNONE; then
2536 ac_site_file1=$prefix/share/config.site
2537 ac_site_file2=$prefix/etc/config.site
2538 else
2539 ac_site_file1=$ac_default_prefix/share/config.site
2540 ac_site_file2=$ac_default_prefix/etc/config.site
2541 fi
2542 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2543 do
2544 test "x$ac_site_file" = xNONE && continue
2545 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2547 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2548 sed 's/^/| /' "$ac_site_file" >&5
2549 . "$ac_site_file" \
2550 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2552 as_fn_error $? "failed to load site script $ac_site_file
2553 See \`config.log' for more details" "$LINENO" 5; }
2554 fi
2555 done
2556
2557 if test -r "$cache_file"; then
2558 # Some versions of bash will fail to source /dev/null (special files
2559 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2560 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2562 $as_echo "$as_me: loading cache $cache_file" >&6;}
2563 case $cache_file in
2564 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2565 *) . "./$cache_file";;
2566 esac
2567 fi
2568 else
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2570 $as_echo "$as_me: creating cache $cache_file" >&6;}
2571 >$cache_file
2572 fi
2573
2574 # Check that the precious variables saved in the cache have kept the same
2575 # value.
2576 ac_cache_corrupted=false
2577 for ac_var in $ac_precious_vars; do
2578 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2579 eval ac_new_set=\$ac_env_${ac_var}_set
2580 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2581 eval ac_new_val=\$ac_env_${ac_var}_value
2582 case $ac_old_set,$ac_new_set in
2583 set,)
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2585 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2586 ac_cache_corrupted=: ;;
2587 ,set)
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2589 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2590 ac_cache_corrupted=: ;;
2591 ,);;
2592 *)
2593 if test "x$ac_old_val" != "x$ac_new_val"; then
2594 # differences in whitespace do not lead to failure.
2595 ac_old_val_w=`echo x $ac_old_val`
2596 ac_new_val_w=`echo x $ac_new_val`
2597 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2599 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2600 ac_cache_corrupted=:
2601 else
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2603 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2604 eval $ac_var=\$ac_old_val
2605 fi
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2607 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2609 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2610 fi;;
2611 esac
2612 # Pass precious variables to config.status.
2613 if test "$ac_new_set" = set; then
2614 case $ac_new_val in
2615 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2616 *) ac_arg=$ac_var=$ac_new_val ;;
2617 esac
2618 case " $ac_configure_args " in
2619 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2620 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2621 esac
2622 fi
2623 done
2624 if $ac_cache_corrupted; then
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2628 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2629 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2630 fi
2631 ## -------------------- ##
2632 ## Main body of script. ##
2633 ## -------------------- ##
2634
2635 ac_ext=c
2636 ac_cpp='$CPP $CPPFLAGS'
2637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2640
2641
2642
2643
2644
2645 ac_config_headers="$ac_config_headers fficonfig.h"
2646
2647
2648 # Default to --enable-multilib
2649 # Check whether --enable-multilib was given.
2650 if test "${enable_multilib+set}" = set; then :
2651 enableval=$enable_multilib; case "$enableval" in
2652 yes) multilib=yes ;;
2653 no) multilib=no ;;
2654 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2655 esac
2656 else
2657 multilib=yes
2658 fi
2659
2660
2661 # We may get other options which we leave undocumented:
2662 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2663 # See config-ml.in if you want the gory details.
2664
2665 if test "$srcdir" = "."; then
2666 if test "$with_target_subdir" != "."; then
2667 multi_basedir="$srcdir/$with_multisrctop../.."
2668 else
2669 multi_basedir="$srcdir/$with_multisrctop.."
2670 fi
2671 else
2672 multi_basedir="$srcdir/.."
2673 fi
2674
2675
2676 # Even if the default multilib is not a cross compilation,
2677 # it may be that some of the other multilibs are.
2678 if test $cross_compiling = no && test $multilib = yes \
2679 && test "x${with_multisubdir}" != x ; then
2680 cross_compiling=maybe
2681 fi
2682
2683 ac_config_commands="$ac_config_commands default-1"
2684
2685
2686 ac_aux_dir=
2687 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2688 if test -f "$ac_dir/install-sh"; then
2689 ac_aux_dir=$ac_dir
2690 ac_install_sh="$ac_aux_dir/install-sh -c"
2691 break
2692 elif test -f "$ac_dir/install.sh"; then
2693 ac_aux_dir=$ac_dir
2694 ac_install_sh="$ac_aux_dir/install.sh -c"
2695 break
2696 elif test -f "$ac_dir/shtool"; then
2697 ac_aux_dir=$ac_dir
2698 ac_install_sh="$ac_aux_dir/shtool install -c"
2699 break
2700 fi
2701 done
2702 if test -z "$ac_aux_dir"; then
2703 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2704 fi
2705
2706 # These three variables are undocumented and unsupported,
2707 # and are intended to be withdrawn in a future Autoconf release.
2708 # They can cause serious problems if a builder's source tree is in a directory
2709 # whose full name contains unusual characters.
2710 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2711 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2712 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2713
2714
2715 # Make sure we can run config.sub.
2716 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2717 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2718
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2720 $as_echo_n "checking build system type... " >&6; }
2721 if ${ac_cv_build+:} false; then :
2722 $as_echo_n "(cached) " >&6
2723 else
2724 ac_build_alias=$build_alias
2725 test "x$ac_build_alias" = x &&
2726 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2727 test "x$ac_build_alias" = x &&
2728 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2729 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2730 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2731
2732 fi
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2734 $as_echo "$ac_cv_build" >&6; }
2735 case $ac_cv_build in
2736 *-*-*) ;;
2737 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2738 esac
2739 build=$ac_cv_build
2740 ac_save_IFS=$IFS; IFS='-'
2741 set x $ac_cv_build
2742 shift
2743 build_cpu=$1
2744 build_vendor=$2
2745 shift; shift
2746 # Remember, the first character of IFS is used to create $*,
2747 # except with old shells:
2748 build_os=$*
2749 IFS=$ac_save_IFS
2750 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2751
2752
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2754 $as_echo_n "checking host system type... " >&6; }
2755 if ${ac_cv_host+:} false; then :
2756 $as_echo_n "(cached) " >&6
2757 else
2758 if test "x$host_alias" = x; then
2759 ac_cv_host=$ac_cv_build
2760 else
2761 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2762 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2763 fi
2764
2765 fi
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2767 $as_echo "$ac_cv_host" >&6; }
2768 case $ac_cv_host in
2769 *-*-*) ;;
2770 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2771 esac
2772 host=$ac_cv_host
2773 ac_save_IFS=$IFS; IFS='-'
2774 set x $ac_cv_host
2775 shift
2776 host_cpu=$1
2777 host_vendor=$2
2778 shift; shift
2779 # Remember, the first character of IFS is used to create $*,
2780 # except with old shells:
2781 host_os=$*
2782 IFS=$ac_save_IFS
2783 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2784
2785
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2787 $as_echo_n "checking target system type... " >&6; }
2788 if ${ac_cv_target+:} false; then :
2789 $as_echo_n "(cached) " >&6
2790 else
2791 if test "x$target_alias" = x; then
2792 ac_cv_target=$ac_cv_host
2793 else
2794 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2795 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2796 fi
2797
2798 fi
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2800 $as_echo "$ac_cv_target" >&6; }
2801 case $ac_cv_target in
2802 *-*-*) ;;
2803 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2804 esac
2805 target=$ac_cv_target
2806 ac_save_IFS=$IFS; IFS='-'
2807 set x $ac_cv_target
2808 shift
2809 target_cpu=$1
2810 target_vendor=$2
2811 shift; shift
2812 # Remember, the first character of IFS is used to create $*,
2813 # except with old shells:
2814 target_os=$*
2815 IFS=$ac_save_IFS
2816 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2817
2818
2819 # The aliases save the names the user supplied, while $host etc.
2820 # will get canonicalized.
2821 test -n "$target_alias" &&
2822 test "$program_prefix$program_suffix$program_transform_name" = \
2823 NONENONEs,x,x, &&
2824 program_prefix=${target_alias}-
2825
2826 target_alias=${target_alias-$host_alias}
2827
2828 am__api_version='1.15'
2829
2830 # Find a good install program. We prefer a C program (faster),
2831 # so one script is as good as another. But avoid the broken or
2832 # incompatible versions:
2833 # SysV /etc/install, /usr/sbin/install
2834 # SunOS /usr/etc/install
2835 # IRIX /sbin/install
2836 # AIX /bin/install
2837 # AmigaOS /C/install, which installs bootblocks on floppy discs
2838 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2839 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2840 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2841 # OS/2's system install, which has a completely different semantic
2842 # ./install, which can be erroneously created by make from ./install.sh.
2843 # Reject install programs that cannot install multiple files.
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2845 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2846 if test -z "$INSTALL"; then
2847 if ${ac_cv_path_install+:} false; then :
2848 $as_echo_n "(cached) " >&6
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2852 do
2853 IFS=$as_save_IFS
2854 test -z "$as_dir" && as_dir=.
2855 # Account for people who put trailing slashes in PATH elements.
2856 case $as_dir/ in #((
2857 ./ | .// | /[cC]/* | \
2858 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2859 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2860 /usr/ucb/* ) ;;
2861 *)
2862 # OSF1 and SCO ODT 3.0 have their own names for install.
2863 # Don't use installbsd from OSF since it installs stuff as root
2864 # by default.
2865 for ac_prog in ginstall scoinst install; do
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2868 if test $ac_prog = install &&
2869 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2870 # AIX install. It has an incompatible calling convention.
2871 :
2872 elif test $ac_prog = install &&
2873 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2874 # program-specific install script used by HP pwplus--don't use.
2875 :
2876 else
2877 rm -rf conftest.one conftest.two conftest.dir
2878 echo one > conftest.one
2879 echo two > conftest.two
2880 mkdir conftest.dir
2881 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2882 test -s conftest.one && test -s conftest.two &&
2883 test -s conftest.dir/conftest.one &&
2884 test -s conftest.dir/conftest.two
2885 then
2886 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2887 break 3
2888 fi
2889 fi
2890 fi
2891 done
2892 done
2893 ;;
2894 esac
2895
2896 done
2897 IFS=$as_save_IFS
2898
2899 rm -rf conftest.one conftest.two conftest.dir
2900
2901 fi
2902 if test "${ac_cv_path_install+set}" = set; then
2903 INSTALL=$ac_cv_path_install
2904 else
2905 # As a last resort, use the slow shell script. Don't cache a
2906 # value for INSTALL within a source directory, because that will
2907 # break other packages using the cache if that directory is
2908 # removed, or if the value is a relative name.
2909 INSTALL=$ac_install_sh
2910 fi
2911 fi
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2913 $as_echo "$INSTALL" >&6; }
2914
2915 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2916 # It thinks the first close brace ends the variable substitution.
2917 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2918
2919 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2920
2921 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2922
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2924 $as_echo_n "checking whether build environment is sane... " >&6; }
2925 # Reject unsafe characters in $srcdir or the absolute working directory
2926 # name. Accept space and tab only in the latter.
2927 am_lf='
2928 '
2929 case `pwd` in
2930 *[\\\"\#\$\&\'\`$am_lf]*)
2931 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2932 esac
2933 case $srcdir in
2934 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2935 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2936 esac
2937
2938 # Do 'set' in a subshell so we don't clobber the current shell's
2939 # arguments. Must try -L first in case configure is actually a
2940 # symlink; some systems play weird games with the mod time of symlinks
2941 # (eg FreeBSD returns the mod time of the symlink's containing
2942 # directory).
2943 if (
2944 am_has_slept=no
2945 for am_try in 1 2; do
2946 echo "timestamp, slept: $am_has_slept" > conftest.file
2947 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2948 if test "$*" = "X"; then
2949 # -L didn't work.
2950 set X `ls -t "$srcdir/configure" conftest.file`
2951 fi
2952 if test "$*" != "X $srcdir/configure conftest.file" \
2953 && test "$*" != "X conftest.file $srcdir/configure"; then
2954
2955 # If neither matched, then we have a broken ls. This can happen
2956 # if, for instance, CONFIG_SHELL is bash and it inherits a
2957 # broken ls alias from the environment. This has actually
2958 # happened. Such a system could not be considered "sane".
2959 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2960 alias in your environment" "$LINENO" 5
2961 fi
2962 if test "$2" = conftest.file || test $am_try -eq 2; then
2963 break
2964 fi
2965 # Just in case.
2966 sleep 1
2967 am_has_slept=yes
2968 done
2969 test "$2" = conftest.file
2970 )
2971 then
2972 # Ok.
2973 :
2974 else
2975 as_fn_error $? "newly created file is older than distributed files!
2976 Check your system clock" "$LINENO" 5
2977 fi
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2979 $as_echo "yes" >&6; }
2980 # If we didn't sleep, we still need to ensure time stamps of config.status and
2981 # generated files are strictly newer.
2982 am_sleep_pid=
2983 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2984 ( sleep 1 ) &
2985 am_sleep_pid=$!
2986 fi
2987
2988 rm -f conftest.file
2989
2990 test "$program_prefix" != NONE &&
2991 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2992 # Use a double $ so make ignores it.
2993 test "$program_suffix" != NONE &&
2994 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2995 # Double any \ or $.
2996 # By default was `s,x,x', remove it if useless.
2997 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2998 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2999
3000 # Expand $ac_aux_dir to an absolute path.
3001 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3002
3003 if test x"${MISSING+set}" != xset; then
3004 case $am_aux_dir in
3005 *\ * | *\ *)
3006 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3007 *)
3008 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3009 esac
3010 fi
3011 # Use eval to expand $SHELL
3012 if eval "$MISSING --is-lightweight"; then
3013 am_missing_run="$MISSING "
3014 else
3015 am_missing_run=
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3017 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3018 fi
3019
3020 if test x"${install_sh+set}" != xset; then
3021 case $am_aux_dir in
3022 *\ * | *\ *)
3023 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3024 *)
3025 install_sh="\${SHELL} $am_aux_dir/install-sh"
3026 esac
3027 fi
3028
3029 # Installed binaries are usually stripped using 'strip' when the user
3030 # run "make install-strip". However 'strip' might not be the right
3031 # tool to use in cross-compilation environments, therefore Automake
3032 # will honor the 'STRIP' environment variable to overrule this program.
3033 if test "$cross_compiling" != no; then
3034 if test -n "$ac_tool_prefix"; then
3035 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3036 set dummy ${ac_tool_prefix}strip; ac_word=$2
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038 $as_echo_n "checking for $ac_word... " >&6; }
3039 if ${ac_cv_prog_STRIP+:} false; then :
3040 $as_echo_n "(cached) " >&6
3041 else
3042 if test -n "$STRIP"; then
3043 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3044 else
3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH
3047 do
3048 IFS=$as_save_IFS
3049 test -z "$as_dir" && as_dir=.
3050 for ac_exec_ext in '' $ac_executable_extensions; do
3051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3054 break 2
3055 fi
3056 done
3057 done
3058 IFS=$as_save_IFS
3059
3060 fi
3061 fi
3062 STRIP=$ac_cv_prog_STRIP
3063 if test -n "$STRIP"; then
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3065 $as_echo "$STRIP" >&6; }
3066 else
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068 $as_echo "no" >&6; }
3069 fi
3070
3071
3072 fi
3073 if test -z "$ac_cv_prog_STRIP"; then
3074 ac_ct_STRIP=$STRIP
3075 # Extract the first word of "strip", so it can be a program name with args.
3076 set dummy strip; ac_word=$2
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 $as_echo_n "checking for $ac_word... " >&6; }
3079 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3080 $as_echo_n "(cached) " >&6
3081 else
3082 if test -n "$ac_ct_STRIP"; then
3083 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3084 else
3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086 for as_dir in $PATH
3087 do
3088 IFS=$as_save_IFS
3089 test -z "$as_dir" && as_dir=.
3090 for ac_exec_ext in '' $ac_executable_extensions; do
3091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 ac_cv_prog_ac_ct_STRIP="strip"
3093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 break 2
3095 fi
3096 done
3097 done
3098 IFS=$as_save_IFS
3099
3100 fi
3101 fi
3102 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3103 if test -n "$ac_ct_STRIP"; then
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3105 $as_echo "$ac_ct_STRIP" >&6; }
3106 else
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 $as_echo "no" >&6; }
3109 fi
3110
3111 if test "x$ac_ct_STRIP" = x; then
3112 STRIP=":"
3113 else
3114 case $cross_compiling:$ac_tool_warned in
3115 yes:)
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3118 ac_tool_warned=yes ;;
3119 esac
3120 STRIP=$ac_ct_STRIP
3121 fi
3122 else
3123 STRIP="$ac_cv_prog_STRIP"
3124 fi
3125
3126 fi
3127 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3128
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3130 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3131 if test -z "$MKDIR_P"; then
3132 if ${ac_cv_path_mkdir+:} false; then :
3133 $as_echo_n "(cached) " >&6
3134 else
3135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3137 do
3138 IFS=$as_save_IFS
3139 test -z "$as_dir" && as_dir=.
3140 for ac_prog in mkdir gmkdir; do
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3143 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3144 'mkdir (GNU coreutils) '* | \
3145 'mkdir (coreutils) '* | \
3146 'mkdir (fileutils) '4.1*)
3147 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3148 break 3;;
3149 esac
3150 done
3151 done
3152 done
3153 IFS=$as_save_IFS
3154
3155 fi
3156
3157 test -d ./--version && rmdir ./--version
3158 if test "${ac_cv_path_mkdir+set}" = set; then
3159 MKDIR_P="$ac_cv_path_mkdir -p"
3160 else
3161 # As a last resort, use the slow shell script. Don't cache a
3162 # value for MKDIR_P within a source directory, because that will
3163 # break other packages using the cache if that directory is
3164 # removed, or if the value is a relative name.
3165 MKDIR_P="$ac_install_sh -d"
3166 fi
3167 fi
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3169 $as_echo "$MKDIR_P" >&6; }
3170
3171 for ac_prog in gawk mawk nawk awk
3172 do
3173 # Extract the first word of "$ac_prog", so it can be a program name with args.
3174 set dummy $ac_prog; ac_word=$2
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3176 $as_echo_n "checking for $ac_word... " >&6; }
3177 if ${ac_cv_prog_AWK+:} false; then :
3178 $as_echo_n "(cached) " >&6
3179 else
3180 if test -n "$AWK"; then
3181 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3182 else
3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3184 for as_dir in $PATH
3185 do
3186 IFS=$as_save_IFS
3187 test -z "$as_dir" && as_dir=.
3188 for ac_exec_ext in '' $ac_executable_extensions; do
3189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3190 ac_cv_prog_AWK="$ac_prog"
3191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3192 break 2
3193 fi
3194 done
3195 done
3196 IFS=$as_save_IFS
3197
3198 fi
3199 fi
3200 AWK=$ac_cv_prog_AWK
3201 if test -n "$AWK"; then
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3203 $as_echo "$AWK" >&6; }
3204 else
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3206 $as_echo "no" >&6; }
3207 fi
3208
3209
3210 test -n "$AWK" && break
3211 done
3212
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3214 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3215 set x ${MAKE-make}
3216 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3217 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 cat >conftest.make <<\_ACEOF
3221 SHELL = /bin/sh
3222 all:
3223 @echo '@@@%%%=$(MAKE)=@@@%%%'
3224 _ACEOF
3225 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3226 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3227 *@@@%%%=?*=@@@%%%*)
3228 eval ac_cv_prog_make_${ac_make}_set=yes;;
3229 *)
3230 eval ac_cv_prog_make_${ac_make}_set=no;;
3231 esac
3232 rm -f conftest.make
3233 fi
3234 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3236 $as_echo "yes" >&6; }
3237 SET_MAKE=
3238 else
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 SET_MAKE="MAKE=${MAKE-make}"
3242 fi
3243
3244 rm -rf .tst 2>/dev/null
3245 mkdir .tst 2>/dev/null
3246 if test -d .tst; then
3247 am__leading_dot=.
3248 else
3249 am__leading_dot=_
3250 fi
3251 rmdir .tst 2>/dev/null
3252
3253 # Check whether --enable-silent-rules was given.
3254 if test "${enable_silent_rules+set}" = set; then :
3255 enableval=$enable_silent_rules;
3256 fi
3257
3258 case $enable_silent_rules in # (((
3259 yes) AM_DEFAULT_VERBOSITY=0;;
3260 no) AM_DEFAULT_VERBOSITY=1;;
3261 *) AM_DEFAULT_VERBOSITY=1;;
3262 esac
3263 am_make=${MAKE-make}
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3265 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3266 if ${am_cv_make_support_nested_variables+:} false; then :
3267 $as_echo_n "(cached) " >&6
3268 else
3269 if $as_echo 'TRUE=$(BAR$(V))
3270 BAR0=false
3271 BAR1=true
3272 V=1
3273 am__doit:
3274 @$(TRUE)
3275 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3276 am_cv_make_support_nested_variables=yes
3277 else
3278 am_cv_make_support_nested_variables=no
3279 fi
3280 fi
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3282 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3283 if test $am_cv_make_support_nested_variables = yes; then
3284 AM_V='$(V)'
3285 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3286 else
3287 AM_V=$AM_DEFAULT_VERBOSITY
3288 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3289 fi
3290 AM_BACKSLASH='\'
3291
3292 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3293 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3294 # is not polluted with repeated "-I."
3295 am__isrc=' -I$(srcdir)'
3296 # test to see if srcdir already configured
3297 if test -f $srcdir/config.status; then
3298 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3299 fi
3300 fi
3301
3302 # test whether we have cygpath
3303 if test -z "$CYGPATH_W"; then
3304 if (cygpath --version) >/dev/null 2>/dev/null; then
3305 CYGPATH_W='cygpath -w'
3306 else
3307 CYGPATH_W=echo
3308 fi
3309 fi
3310
3311
3312 # Define the identity of the package.
3313 PACKAGE='libffi'
3314 VERSION='3.99999'
3315
3316
3317 cat >>confdefs.h <<_ACEOF
3318 #define PACKAGE "$PACKAGE"
3319 _ACEOF
3320
3321
3322 cat >>confdefs.h <<_ACEOF
3323 #define VERSION "$VERSION"
3324 _ACEOF
3325
3326 # Some tools Automake needs.
3327
3328 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3329
3330
3331 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3332
3333
3334 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3335
3336
3337 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3338
3339
3340 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3341
3342 # For better backward compatibility. To be removed once Automake 1.9.x
3343 # dies out for good. For more background, see:
3344 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3345 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3346 mkdir_p='$(MKDIR_P)'
3347
3348 # We need awk for the "check" target (and possibly the TAP driver). The
3349 # system "awk" is bad on some platforms.
3350 # Always define AMTAR for backward compatibility. Yes, it's still used
3351 # in the wild :-( We should find a proper way to deprecate it ...
3352 AMTAR='$${TAR-tar}'
3353
3354
3355 # We'll loop over all known methods to create a tar archive until one works.
3356 _am_tools='gnutar pax cpio none'
3357
3358 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3359
3360
3361
3362
3363
3364
3365 # POSIX will say in a future version that running "rm -f" with no argument
3366 # is OK; and we want to be able to make that assumption in our Makefile
3367 # recipes. So use an aggressive probe to check that the usage we want is
3368 # actually supported "in the wild" to an acceptable degree.
3369 # See automake bug#10828.
3370 # To make any issue more visible, cause the running configure to be aborted
3371 # by default if the 'rm' program in use doesn't match our expectations; the
3372 # user can still override this though.
3373 if rm -f && rm -fr && rm -rf; then : OK; else
3374 cat >&2 <<'END'
3375 Oops!
3376
3377 Your 'rm' program seems unable to run without file operands specified
3378 on the command line, even when the '-f' option is present. This is contrary
3379 to the behaviour of most rm programs out there, and not conforming with
3380 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3381
3382 Please tell bug-automake@gnu.org about your system, including the value
3383 of your $PATH and any error possibly output before this message. This
3384 can help us improve future automake versions.
3385
3386 END
3387 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3388 echo 'Configuration will proceed anyway, since you have set the' >&2
3389 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3390 echo >&2
3391 else
3392 cat >&2 <<'END'
3393 Aborting the configuration process, to ensure you take notice of the issue.
3394
3395 You can download and install GNU coreutils to get an 'rm' implementation
3396 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3397
3398 If you want to complete the configuration process using your problematic
3399 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3400 to "yes", and re-run configure.
3401
3402 END
3403 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3404 fi
3405 fi
3406
3407
3408 # See if makeinfo has been installed and is modern enough
3409 # that we can use it.
3410
3411 # Extract the first word of "makeinfo", so it can be a program name with args.
3412 set dummy makeinfo; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_prog_MAKEINFO+:} false; then :
3416 $as_echo_n "(cached) " >&6
3417 else
3418 if test -n "$MAKEINFO"; then
3419 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
3420 else
3421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3422 for as_dir in $PATH
3423 do
3424 IFS=$as_save_IFS
3425 test -z "$as_dir" && as_dir=.
3426 for ac_exec_ext in '' $ac_executable_extensions; do
3427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3428 ac_cv_prog_MAKEINFO="makeinfo"
3429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 break 2
3431 fi
3432 done
3433 done
3434 IFS=$as_save_IFS
3435
3436 fi
3437 fi
3438 MAKEINFO=$ac_cv_prog_MAKEINFO
3439 if test -n "$MAKEINFO"; then
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
3441 $as_echo "$MAKEINFO" >&6; }
3442 else
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3444 $as_echo "no" >&6; }
3445 fi
3446
3447
3448 if test -n "$MAKEINFO"; then
3449 # Found it, now check the version.
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
3451 $as_echo_n "checking for modern makeinfo... " >&6; }
3452 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
3453 $as_echo_n "(cached) " >&6
3454 else
3455 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
3456 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
3457
3458 case $ac_prog_version in
3459 '') gcc_cv_prog_makeinfo_modern=no;;
3460 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
3461 *) gcc_cv_prog_makeinfo_modern=no;;
3462 esac
3463
3464 fi
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
3466 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
3467 else
3468 gcc_cv_prog_makeinfo_modern=no
3469 fi
3470 if test $gcc_cv_prog_makeinfo_modern = no; then
3471 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
3472 fi
3473
3474 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
3475 BUILD_INFO_TRUE=
3476 BUILD_INFO_FALSE='#'
3477 else
3478 BUILD_INFO_TRUE='#'
3479 BUILD_INFO_FALSE=
3480 fi
3481
3482
3483 # We would like our source tree to be readonly. However when releases or
3484 # pre-releases are generated, the flex/bison generated files as well as the
3485 # various formats of manuals need to be included along with the rest of the
3486 # sources. Therefore we have --enable-generated-files-in-srcdir to do
3487 # just that.
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking generated-files-in-srcdir" >&5
3489 $as_echo_n "checking generated-files-in-srcdir... " >&6; }
3490 # Check whether --enable-generated-files-in-srcdir was given.
3491 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3492 enableval=$enable_generated_files_in_srcdir; case "$enableval" in
3493 yes) enable_generated_files_in_srcdir=yes ;;
3494 no) enable_generated_files_in_srcdir=no ;;
3495 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3496 esac
3497 else
3498 enable_generated_files_in_srcdir=no
3499 fi
3500
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
3502 $as_echo "$enable_generated_files_in_srcdir" >&6; }
3503 if test "$enable_generated_files_in_srcdir" = yes; then
3504 GENINSRC_TRUE=
3505 GENINSRC_FALSE='#'
3506 else
3507 GENINSRC_TRUE='#'
3508 GENINSRC_FALSE=
3509 fi
3510
3511
3512 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3513 # We must force CC to /not/ be precious variables; otherwise
3514 # the wrong, non-multilib-adjusted value will be used in multilibs.
3515 # As a side effect, we have to subst CFLAGS ourselves.
3516 # Also save and restore CFLAGS, since AC_PROG_CC will come up with
3517 # defaults of its own if none are provided.
3518
3519
3520
3521 save_CFLAGS=$CFLAGS
3522 ac_ext=c
3523 ac_cpp='$CPP $CPPFLAGS'
3524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3527 if test -n "$ac_tool_prefix"; then
3528 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3529 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3531 $as_echo_n "checking for $ac_word... " >&6; }
3532 if ${ac_cv_prog_CC+:} false; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 if test -n "$CC"; then
3536 ac_cv_prog_CC="$CC" # Let the user override the test.
3537 else
3538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 for as_dir in $PATH
3540 do
3541 IFS=$as_save_IFS
3542 test -z "$as_dir" && as_dir=.
3543 for ac_exec_ext in '' $ac_executable_extensions; do
3544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3545 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3547 break 2
3548 fi
3549 done
3550 done
3551 IFS=$as_save_IFS
3552
3553 fi
3554 fi
3555 CC=$ac_cv_prog_CC
3556 if test -n "$CC"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3558 $as_echo "$CC" >&6; }
3559 else
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3562 fi
3563
3564
3565 fi
3566 if test -z "$ac_cv_prog_CC"; then
3567 ac_ct_CC=$CC
3568 # Extract the first word of "gcc", so it can be a program name with args.
3569 set dummy gcc; ac_word=$2
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3571 $as_echo_n "checking for $ac_word... " >&6; }
3572 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3573 $as_echo_n "(cached) " >&6
3574 else
3575 if test -n "$ac_ct_CC"; then
3576 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3577 else
3578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579 for as_dir in $PATH
3580 do
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3585 ac_cv_prog_ac_ct_CC="gcc"
3586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 break 2
3588 fi
3589 done
3590 done
3591 IFS=$as_save_IFS
3592
3593 fi
3594 fi
3595 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3596 if test -n "$ac_ct_CC"; then
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3598 $as_echo "$ac_ct_CC" >&6; }
3599 else
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3601 $as_echo "no" >&6; }
3602 fi
3603
3604 if test "x$ac_ct_CC" = x; then
3605 CC=""
3606 else
3607 case $cross_compiling:$ac_tool_warned in
3608 yes:)
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3610 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3611 ac_tool_warned=yes ;;
3612 esac
3613 CC=$ac_ct_CC
3614 fi
3615 else
3616 CC="$ac_cv_prog_CC"
3617 fi
3618
3619 if test -z "$CC"; then
3620 if test -n "$ac_tool_prefix"; then
3621 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3622 set dummy ${ac_tool_prefix}cc; ac_word=$2
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624 $as_echo_n "checking for $ac_word... " >&6; }
3625 if ${ac_cv_prog_CC+:} false; then :
3626 $as_echo_n "(cached) " >&6
3627 else
3628 if test -n "$CC"; then
3629 ac_cv_prog_CC="$CC" # Let the user override the test.
3630 else
3631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3632 for as_dir in $PATH
3633 do
3634 IFS=$as_save_IFS
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638 ac_cv_prog_CC="${ac_tool_prefix}cc"
3639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3640 break 2
3641 fi
3642 done
3643 done
3644 IFS=$as_save_IFS
3645
3646 fi
3647 fi
3648 CC=$ac_cv_prog_CC
3649 if test -n "$CC"; then
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3651 $as_echo "$CC" >&6; }
3652 else
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3654 $as_echo "no" >&6; }
3655 fi
3656
3657
3658 fi
3659 fi
3660 if test -z "$CC"; then
3661 # Extract the first word of "cc", so it can be a program name with args.
3662 set dummy cc; ac_word=$2
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3664 $as_echo_n "checking for $ac_word... " >&6; }
3665 if ${ac_cv_prog_CC+:} false; then :
3666 $as_echo_n "(cached) " >&6
3667 else
3668 if test -n "$CC"; then
3669 ac_cv_prog_CC="$CC" # Let the user override the test.
3670 else
3671 ac_prog_rejected=no
3672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3673 for as_dir in $PATH
3674 do
3675 IFS=$as_save_IFS
3676 test -z "$as_dir" && as_dir=.
3677 for ac_exec_ext in '' $ac_executable_extensions; do
3678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3679 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3680 ac_prog_rejected=yes
3681 continue
3682 fi
3683 ac_cv_prog_CC="cc"
3684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 break 2
3686 fi
3687 done
3688 done
3689 IFS=$as_save_IFS
3690
3691 if test $ac_prog_rejected = yes; then
3692 # We found a bogon in the path, so make sure we never use it.
3693 set dummy $ac_cv_prog_CC
3694 shift
3695 if test $# != 0; then
3696 # We chose a different compiler from the bogus one.
3697 # However, it has the same basename, so the bogon will be chosen
3698 # first if we set CC to just the basename; use the full file name.
3699 shift
3700 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3701 fi
3702 fi
3703 fi
3704 fi
3705 CC=$ac_cv_prog_CC
3706 if test -n "$CC"; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3708 $as_echo "$CC" >&6; }
3709 else
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3711 $as_echo "no" >&6; }
3712 fi
3713
3714
3715 fi
3716 if test -z "$CC"; then
3717 if test -n "$ac_tool_prefix"; then
3718 for ac_prog in cl.exe
3719 do
3720 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3721 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3723 $as_echo_n "checking for $ac_word... " >&6; }
3724 if ${ac_cv_prog_CC+:} false; then :
3725 $as_echo_n "(cached) " >&6
3726 else
3727 if test -n "$CC"; then
3728 ac_cv_prog_CC="$CC" # Let the user override the test.
3729 else
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH
3732 do
3733 IFS=$as_save_IFS
3734 test -z "$as_dir" && as_dir=.
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3737 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3739 break 2
3740 fi
3741 done
3742 done
3743 IFS=$as_save_IFS
3744
3745 fi
3746 fi
3747 CC=$ac_cv_prog_CC
3748 if test -n "$CC"; then
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3750 $as_echo "$CC" >&6; }
3751 else
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3753 $as_echo "no" >&6; }
3754 fi
3755
3756
3757 test -n "$CC" && break
3758 done
3759 fi
3760 if test -z "$CC"; then
3761 ac_ct_CC=$CC
3762 for ac_prog in cl.exe
3763 do
3764 # Extract the first word of "$ac_prog", so it can be a program name with args.
3765 set dummy $ac_prog; ac_word=$2
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3767 $as_echo_n "checking for $ac_word... " >&6; }
3768 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3769 $as_echo_n "(cached) " >&6
3770 else
3771 if test -n "$ac_ct_CC"; then
3772 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3773 else
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3775 for as_dir in $PATH
3776 do
3777 IFS=$as_save_IFS
3778 test -z "$as_dir" && as_dir=.
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3781 ac_cv_prog_ac_ct_CC="$ac_prog"
3782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 break 2
3784 fi
3785 done
3786 done
3787 IFS=$as_save_IFS
3788
3789 fi
3790 fi
3791 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3792 if test -n "$ac_ct_CC"; then
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3794 $as_echo "$ac_ct_CC" >&6; }
3795 else
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3797 $as_echo "no" >&6; }
3798 fi
3799
3800
3801 test -n "$ac_ct_CC" && break
3802 done
3803
3804 if test "x$ac_ct_CC" = x; then
3805 CC=""
3806 else
3807 case $cross_compiling:$ac_tool_warned in
3808 yes:)
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3810 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3811 ac_tool_warned=yes ;;
3812 esac
3813 CC=$ac_ct_CC
3814 fi
3815 fi
3816
3817 fi
3818
3819
3820 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822 as_fn_error $? "no acceptable C compiler found in \$PATH
3823 See \`config.log' for more details" "$LINENO" 5; }
3824
3825 # Provide some information about the compiler.
3826 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3827 set X $ac_compile
3828 ac_compiler=$2
3829 for ac_option in --version -v -V -qversion; do
3830 { { ac_try="$ac_compiler $ac_option >&5"
3831 case "(($ac_try" in
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3834 esac
3835 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3836 $as_echo "$ac_try_echo"; } >&5
3837 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3838 ac_status=$?
3839 if test -s conftest.err; then
3840 sed '10a\
3841 ... rest of stderr output deleted ...
3842 10q' conftest.err >conftest.er1
3843 cat conftest.er1 >&5
3844 fi
3845 rm -f conftest.er1 conftest.err
3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }
3848 done
3849
3850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851 /* end confdefs.h. */
3852
3853 int
3854 main ()
3855 {
3856
3857 ;
3858 return 0;
3859 }
3860 _ACEOF
3861 ac_clean_files_save=$ac_clean_files
3862 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3863 # Try to create an executable without -o first, disregard a.out.
3864 # It will help us diagnose broken compilers, and finding out an intuition
3865 # of exeext.
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3867 $as_echo_n "checking whether the C compiler works... " >&6; }
3868 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3869
3870 # The possible output files:
3871 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3872
3873 ac_rmfiles=
3874 for ac_file in $ac_files
3875 do
3876 case $ac_file in
3877 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3878 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3879 esac
3880 done
3881 rm -f $ac_rmfiles
3882
3883 if { { ac_try="$ac_link_default"
3884 case "(($ac_try" in
3885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886 *) ac_try_echo=$ac_try;;
3887 esac
3888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3889 $as_echo "$ac_try_echo"; } >&5
3890 (eval "$ac_link_default") 2>&5
3891 ac_status=$?
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }; then :
3894 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3895 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3896 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3897 # so that the user can short-circuit this test for compilers unknown to
3898 # Autoconf.
3899 for ac_file in $ac_files ''
3900 do
3901 test -f "$ac_file" || continue
3902 case $ac_file in
3903 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3904 ;;
3905 [ab].out )
3906 # We found the default executable, but exeext='' is most
3907 # certainly right.
3908 break;;
3909 *.* )
3910 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3911 then :; else
3912 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3913 fi
3914 # We set ac_cv_exeext here because the later test for it is not
3915 # safe: cross compilers may not add the suffix if given an `-o'
3916 # argument, so we may need to know it at that point already.
3917 # Even if this section looks crufty: it has the advantage of
3918 # actually working.
3919 break;;
3920 * )
3921 break;;
3922 esac
3923 done
3924 test "$ac_cv_exeext" = no && ac_cv_exeext=
3925
3926 else
3927 ac_file=''
3928 fi
3929 if test -z "$ac_file"; then :
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3931 $as_echo "no" >&6; }
3932 $as_echo "$as_me: failed program was:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3934
3935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3937 as_fn_error 77 "C compiler cannot create executables
3938 See \`config.log' for more details" "$LINENO" 5; }
3939 else
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3941 $as_echo "yes" >&6; }
3942 fi
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3944 $as_echo_n "checking for C compiler default output file name... " >&6; }
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3946 $as_echo "$ac_file" >&6; }
3947 ac_exeext=$ac_cv_exeext
3948
3949 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3950 ac_clean_files=$ac_clean_files_save
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3952 $as_echo_n "checking for suffix of executables... " >&6; }
3953 if { { ac_try="$ac_link"
3954 case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957 esac
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_link") 2>&5
3961 ac_status=$?
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }; then :
3964 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3965 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3966 # work properly (i.e., refer to `conftest.exe'), while it won't with
3967 # `rm'.
3968 for ac_file in conftest.exe conftest conftest.*; do
3969 test -f "$ac_file" || continue
3970 case $ac_file in
3971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3972 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3973 break;;
3974 * ) break;;
3975 esac
3976 done
3977 else
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3981 See \`config.log' for more details" "$LINENO" 5; }
3982 fi
3983 rm -f conftest conftest$ac_cv_exeext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985 $as_echo "$ac_cv_exeext" >&6; }
3986
3987 rm -f conftest.$ac_ext
3988 EXEEXT=$ac_cv_exeext
3989 ac_exeext=$EXEEXT
3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991 /* end confdefs.h. */
3992 #include <stdio.h>
3993 int
3994 main ()
3995 {
3996 FILE *f = fopen ("conftest.out", "w");
3997 return ferror (f) || fclose (f) != 0;
3998
3999 ;
4000 return 0;
4001 }
4002 _ACEOF
4003 ac_clean_files="$ac_clean_files conftest.out"
4004 # Check that the compiler produces executables we can run. If not, either
4005 # the compiler is broken, or we cross compile.
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4007 $as_echo_n "checking whether we are cross compiling... " >&6; }
4008 if test "$cross_compiling" != yes; then
4009 { { ac_try="$ac_link"
4010 case "(($ac_try" in
4011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4012 *) ac_try_echo=$ac_try;;
4013 esac
4014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4015 $as_echo "$ac_try_echo"; } >&5
4016 (eval "$ac_link") 2>&5
4017 ac_status=$?
4018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4019 test $ac_status = 0; }
4020 if { ac_try='./conftest$ac_cv_exeext'
4021 { { case "(($ac_try" in
4022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4023 *) ac_try_echo=$ac_try;;
4024 esac
4025 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4026 $as_echo "$ac_try_echo"; } >&5
4027 (eval "$ac_try") 2>&5
4028 ac_status=$?
4029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4030 test $ac_status = 0; }; }; then
4031 cross_compiling=no
4032 else
4033 if test "$cross_compiling" = maybe; then
4034 cross_compiling=yes
4035 else
4036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4038 as_fn_error $? "cannot run C compiled programs.
4039 If you meant to cross compile, use \`--host'.
4040 See \`config.log' for more details" "$LINENO" 5; }
4041 fi
4042 fi
4043 fi
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4045 $as_echo "$cross_compiling" >&6; }
4046
4047 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4048 ac_clean_files=$ac_clean_files_save
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4050 $as_echo_n "checking for suffix of object files... " >&6; }
4051 if ${ac_cv_objext+:} false; then :
4052 $as_echo_n "(cached) " >&6
4053 else
4054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4055 /* end confdefs.h. */
4056
4057 int
4058 main ()
4059 {
4060
4061 ;
4062 return 0;
4063 }
4064 _ACEOF
4065 rm -f conftest.o conftest.obj
4066 if { { ac_try="$ac_compile"
4067 case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070 esac
4071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 $as_echo "$ac_try_echo"; } >&5
4073 (eval "$ac_compile") 2>&5
4074 ac_status=$?
4075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }; then :
4077 for ac_file in conftest.o conftest.obj conftest.*; do
4078 test -f "$ac_file" || continue;
4079 case $ac_file in
4080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4081 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4082 break;;
4083 esac
4084 done
4085 else
4086 $as_echo "$as_me: failed program was:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4088
4089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4091 as_fn_error $? "cannot compute suffix of object files: cannot compile
4092 See \`config.log' for more details" "$LINENO" 5; }
4093 fi
4094 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4095 fi
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4097 $as_echo "$ac_cv_objext" >&6; }
4098 OBJEXT=$ac_cv_objext
4099 ac_objext=$OBJEXT
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4101 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4102 if ${ac_cv_c_compiler_gnu+:} false; then :
4103 $as_echo_n "(cached) " >&6
4104 else
4105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4106 /* end confdefs.h. */
4107
4108 int
4109 main ()
4110 {
4111 #ifndef __GNUC__
4112 choke me
4113 #endif
4114
4115 ;
4116 return 0;
4117 }
4118 _ACEOF
4119 if ac_fn_c_try_compile "$LINENO"; then :
4120 ac_compiler_gnu=yes
4121 else
4122 ac_compiler_gnu=no
4123 fi
4124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4125 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4126
4127 fi
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4129 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4130 if test $ac_compiler_gnu = yes; then
4131 GCC=yes
4132 else
4133 GCC=
4134 fi
4135 ac_test_CFLAGS=${CFLAGS+set}
4136 ac_save_CFLAGS=$CFLAGS
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4138 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4139 if ${ac_cv_prog_cc_g+:} false; then :
4140 $as_echo_n "(cached) " >&6
4141 else
4142 ac_save_c_werror_flag=$ac_c_werror_flag
4143 ac_c_werror_flag=yes
4144 ac_cv_prog_cc_g=no
4145 CFLAGS="-g"
4146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4147 /* end confdefs.h. */
4148
4149 int
4150 main ()
4151 {
4152
4153 ;
4154 return 0;
4155 }
4156 _ACEOF
4157 if ac_fn_c_try_compile "$LINENO"; then :
4158 ac_cv_prog_cc_g=yes
4159 else
4160 CFLAGS=""
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4163
4164 int
4165 main ()
4166 {
4167
4168 ;
4169 return 0;
4170 }
4171 _ACEOF
4172 if ac_fn_c_try_compile "$LINENO"; then :
4173
4174 else
4175 ac_c_werror_flag=$ac_save_c_werror_flag
4176 CFLAGS="-g"
4177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4178 /* end confdefs.h. */
4179
4180 int
4181 main ()
4182 {
4183
4184 ;
4185 return 0;
4186 }
4187 _ACEOF
4188 if ac_fn_c_try_compile "$LINENO"; then :
4189 ac_cv_prog_cc_g=yes
4190 fi
4191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4192 fi
4193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4194 fi
4195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196 ac_c_werror_flag=$ac_save_c_werror_flag
4197 fi
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4199 $as_echo "$ac_cv_prog_cc_g" >&6; }
4200 if test "$ac_test_CFLAGS" = set; then
4201 CFLAGS=$ac_save_CFLAGS
4202 elif test $ac_cv_prog_cc_g = yes; then
4203 if test "$GCC" = yes; then
4204 CFLAGS="-g -O2"
4205 else
4206 CFLAGS="-g"
4207 fi
4208 else
4209 if test "$GCC" = yes; then
4210 CFLAGS="-O2"
4211 else
4212 CFLAGS=
4213 fi
4214 fi
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4216 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4217 if ${ac_cv_prog_cc_c89+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 ac_cv_prog_cc_c89=no
4221 ac_save_CC=$CC
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4224 #include <stdarg.h>
4225 #include <stdio.h>
4226 struct stat;
4227 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4228 struct buf { int x; };
4229 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4230 static char *e (p, i)
4231 char **p;
4232 int i;
4233 {
4234 return p[i];
4235 }
4236 static char *f (char * (*g) (char **, int), char **p, ...)
4237 {
4238 char *s;
4239 va_list v;
4240 va_start (v,p);
4241 s = g (p, va_arg (v,int));
4242 va_end (v);
4243 return s;
4244 }
4245
4246 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4247 function prototypes and stuff, but not '\xHH' hex character constants.
4248 These don't provoke an error unfortunately, instead are silently treated
4249 as 'x'. The following induces an error, until -std is added to get
4250 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4251 array size at least. It's necessary to write '\x00'==0 to get something
4252 that's true only with -std. */
4253 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4254
4255 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4256 inside strings and character constants. */
4257 #define FOO(x) 'x'
4258 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4259
4260 int test (int i, double x);
4261 struct s1 {int (*f) (int a);};
4262 struct s2 {int (*f) (double a);};
4263 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4264 int argc;
4265 char **argv;
4266 int
4267 main ()
4268 {
4269 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4270 ;
4271 return 0;
4272 }
4273 _ACEOF
4274 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4275 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4276 do
4277 CC="$ac_save_CC $ac_arg"
4278 if ac_fn_c_try_compile "$LINENO"; then :
4279 ac_cv_prog_cc_c89=$ac_arg
4280 fi
4281 rm -f core conftest.err conftest.$ac_objext
4282 test "x$ac_cv_prog_cc_c89" != "xno" && break
4283 done
4284 rm -f conftest.$ac_ext
4285 CC=$ac_save_CC
4286
4287 fi
4288 # AC_CACHE_VAL
4289 case "x$ac_cv_prog_cc_c89" in
4290 x)
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4292 $as_echo "none needed" >&6; } ;;
4293 xno)
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4295 $as_echo "unsupported" >&6; } ;;
4296 *)
4297 CC="$CC $ac_cv_prog_cc_c89"
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4299 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4300 esac
4301 if test "x$ac_cv_prog_cc_c89" != xno; then :
4302
4303 fi
4304
4305 ac_ext=c
4306 ac_cpp='$CPP $CPPFLAGS'
4307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4310
4311 ac_ext=c
4312 ac_cpp='$CPP $CPPFLAGS'
4313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4317 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4318 if ${am_cv_prog_cc_c_o+:} false; then :
4319 $as_echo_n "(cached) " >&6
4320 else
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4323
4324 int
4325 main ()
4326 {
4327
4328 ;
4329 return 0;
4330 }
4331 _ACEOF
4332 # Make sure it works both with $CC and with simple cc.
4333 # Following AC_PROG_CC_C_O, we do the test twice because some
4334 # compilers refuse to overwrite an existing .o file with -o,
4335 # though they will create one.
4336 am_cv_prog_cc_c_o=yes
4337 for am_i in 1 2; do
4338 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4339 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4340 ac_status=$?
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); } \
4343 && test -f conftest2.$ac_objext; then
4344 : OK
4345 else
4346 am_cv_prog_cc_c_o=no
4347 break
4348 fi
4349 done
4350 rm -f core conftest*
4351 unset am_i
4352 fi
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4354 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4355 if test "$am_cv_prog_cc_c_o" != yes; then
4356 # Losing compiler, so override with the script.
4357 # FIXME: It is wrong to rewrite CC.
4358 # But if we don't then we get into trouble of one sort or another.
4359 # A longer-term fix would be to have automake use am__CC in this case,
4360 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4361 CC="$am_aux_dir/compile $CC"
4362 fi
4363 ac_ext=c
4364 ac_cpp='$CPP $CPPFLAGS'
4365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368
4369 DEPDIR="${am__leading_dot}deps"
4370
4371 ac_config_commands="$ac_config_commands depfiles"
4372
4373
4374 am_make=${MAKE-make}
4375 cat > confinc << 'END'
4376 am__doit:
4377 @echo this is the am__doit target
4378 .PHONY: am__doit
4379 END
4380 # If we don't find an include directive, just comment out the code.
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4382 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4383 am__include="#"
4384 am__quote=
4385 _am_result=none
4386 # First try GNU make style include.
4387 echo "include confinc" > confmf
4388 # Ignore all kinds of additional output from 'make'.
4389 case `$am_make -s -f confmf 2> /dev/null` in #(
4390 *the\ am__doit\ target*)
4391 am__include=include
4392 am__quote=
4393 _am_result=GNU
4394 ;;
4395 esac
4396 # Now try BSD make style include.
4397 if test "$am__include" = "#"; then
4398 echo '.include "confinc"' > confmf
4399 case `$am_make -s -f confmf 2> /dev/null` in #(
4400 *the\ am__doit\ target*)
4401 am__include=.include
4402 am__quote="\""
4403 _am_result=BSD
4404 ;;
4405 esac
4406 fi
4407
4408
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4410 $as_echo "$_am_result" >&6; }
4411 rm -f confinc confmf
4412
4413 # Check whether --enable-dependency-tracking was given.
4414 if test "${enable_dependency_tracking+set}" = set; then :
4415 enableval=$enable_dependency_tracking;
4416 fi
4417
4418 if test "x$enable_dependency_tracking" != xno; then
4419 am_depcomp="$ac_aux_dir/depcomp"
4420 AMDEPBACKSLASH='\'
4421 am__nodep='_no'
4422 fi
4423 if test "x$enable_dependency_tracking" != xno; then
4424 AMDEP_TRUE=
4425 AMDEP_FALSE='#'
4426 else
4427 AMDEP_TRUE='#'
4428 AMDEP_FALSE=
4429 fi
4430
4431
4432
4433 depcc="$CC" am_compiler_list=
4434
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4436 $as_echo_n "checking dependency style of $depcc... " >&6; }
4437 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4438 $as_echo_n "(cached) " >&6
4439 else
4440 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4441 # We make a subdir and do the tests there. Otherwise we can end up
4442 # making bogus files that we don't know about and never remove. For
4443 # instance it was reported that on HP-UX the gcc test will end up
4444 # making a dummy file named 'D' -- because '-MD' means "put the output
4445 # in D".
4446 rm -rf conftest.dir
4447 mkdir conftest.dir
4448 # Copy depcomp to subdir because otherwise we won't find it if we're
4449 # using a relative directory.
4450 cp "$am_depcomp" conftest.dir
4451 cd conftest.dir
4452 # We will build objects and dependencies in a subdirectory because
4453 # it helps to detect inapplicable dependency modes. For instance
4454 # both Tru64's cc and ICC support -MD to output dependencies as a
4455 # side effect of compilation, but ICC will put the dependencies in
4456 # the current directory while Tru64 will put them in the object
4457 # directory.
4458 mkdir sub
4459
4460 am_cv_CC_dependencies_compiler_type=none
4461 if test "$am_compiler_list" = ""; then
4462 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4463 fi
4464 am__universal=false
4465 case " $depcc " in #(
4466 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4467 esac
4468
4469 for depmode in $am_compiler_list; do
4470 # Setup a source with many dependencies, because some compilers
4471 # like to wrap large dependency lists on column 80 (with \), and
4472 # we should not choose a depcomp mode which is confused by this.
4473 #
4474 # We need to recreate these files for each test, as the compiler may
4475 # overwrite some of them when testing with obscure command lines.
4476 # This happens at least with the AIX C compiler.
4477 : > sub/conftest.c
4478 for i in 1 2 3 4 5 6; do
4479 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4480 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4481 # Solaris 10 /bin/sh.
4482 echo '/* dummy */' > sub/conftst$i.h
4483 done
4484 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4485
4486 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4487 # mode. It turns out that the SunPro C++ compiler does not properly
4488 # handle '-M -o', and we need to detect this. Also, some Intel
4489 # versions had trouble with output in subdirs.
4490 am__obj=sub/conftest.${OBJEXT-o}
4491 am__minus_obj="-o $am__obj"
4492 case $depmode in
4493 gcc)
4494 # This depmode causes a compiler race in universal mode.
4495 test "$am__universal" = false || continue
4496 ;;
4497 nosideeffect)
4498 # After this tag, mechanisms are not by side-effect, so they'll
4499 # only be used when explicitly requested.
4500 if test "x$enable_dependency_tracking" = xyes; then
4501 continue
4502 else
4503 break
4504 fi
4505 ;;
4506 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4507 # This compiler won't grok '-c -o', but also, the minuso test has
4508 # not run yet. These depmodes are late enough in the game, and
4509 # so weak that their functioning should not be impacted.
4510 am__obj=conftest.${OBJEXT-o}
4511 am__minus_obj=
4512 ;;
4513 none) break ;;
4514 esac
4515 if depmode=$depmode \
4516 source=sub/conftest.c object=$am__obj \
4517 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4518 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4519 >/dev/null 2>conftest.err &&
4520 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4522 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4524 # icc doesn't choke on unknown options, it will just issue warnings
4525 # or remarks (even with -Werror). So we grep stderr for any message
4526 # that says an option was ignored or not supported.
4527 # When given -MP, icc 7.0 and 7.1 complain thusly:
4528 # icc: Command line warning: ignoring option '-M'; no argument required
4529 # The diagnosis changed in icc 8.0:
4530 # icc: Command line remark: option '-MP' not supported
4531 if (grep 'ignoring option' conftest.err ||
4532 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4533 am_cv_CC_dependencies_compiler_type=$depmode
4534 break
4535 fi
4536 fi
4537 done
4538
4539 cd ..
4540 rm -rf conftest.dir
4541 else
4542 am_cv_CC_dependencies_compiler_type=none
4543 fi
4544
4545 fi
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4547 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4548 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4549
4550 if
4551 test "x$enable_dependency_tracking" != xno \
4552 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4553 am__fastdepCC_TRUE=
4554 am__fastdepCC_FALSE='#'
4555 else
4556 am__fastdepCC_TRUE='#'
4557 am__fastdepCC_FALSE=
4558 fi
4559
4560
4561 ac_ext=cpp
4562 ac_cpp='$CXXCPP $CPPFLAGS'
4563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4566 if test -z "$CXX"; then
4567 if test -n "$CCC"; then
4568 CXX=$CCC
4569 else
4570 if test -n "$ac_tool_prefix"; then
4571 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4572 do
4573 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4574 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576 $as_echo_n "checking for $ac_word... " >&6; }
4577 if ${ac_cv_prog_CXX+:} false; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if test -n "$CXX"; then
4581 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4582 else
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH
4585 do
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
4588 for ac_exec_ext in '' $ac_executable_extensions; do
4589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4590 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4592 break 2
4593 fi
4594 done
4595 done
4596 IFS=$as_save_IFS
4597
4598 fi
4599 fi
4600 CXX=$ac_cv_prog_CXX
4601 if test -n "$CXX"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4603 $as_echo "$CXX" >&6; }
4604 else
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 $as_echo "no" >&6; }
4607 fi
4608
4609
4610 test -n "$CXX" && break
4611 done
4612 fi
4613 if test -z "$CXX"; then
4614 ac_ct_CXX=$CXX
4615 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4616 do
4617 # Extract the first word of "$ac_prog", so it can be a program name with args.
4618 set dummy $ac_prog; ac_word=$2
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4620 $as_echo_n "checking for $ac_word... " >&6; }
4621 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4622 $as_echo_n "(cached) " >&6
4623 else
4624 if test -n "$ac_ct_CXX"; then
4625 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4626 else
4627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 for as_dir in $PATH
4629 do
4630 IFS=$as_save_IFS
4631 test -z "$as_dir" && as_dir=.
4632 for ac_exec_ext in '' $ac_executable_extensions; do
4633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4634 ac_cv_prog_ac_ct_CXX="$ac_prog"
4635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4636 break 2
4637 fi
4638 done
4639 done
4640 IFS=$as_save_IFS
4641
4642 fi
4643 fi
4644 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4645 if test -n "$ac_ct_CXX"; then
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4647 $as_echo "$ac_ct_CXX" >&6; }
4648 else
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4650 $as_echo "no" >&6; }
4651 fi
4652
4653
4654 test -n "$ac_ct_CXX" && break
4655 done
4656
4657 if test "x$ac_ct_CXX" = x; then
4658 CXX="g++"
4659 else
4660 case $cross_compiling:$ac_tool_warned in
4661 yes:)
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4663 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4664 ac_tool_warned=yes ;;
4665 esac
4666 CXX=$ac_ct_CXX
4667 fi
4668 fi
4669
4670 fi
4671 fi
4672 # Provide some information about the compiler.
4673 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4674 set X $ac_compile
4675 ac_compiler=$2
4676 for ac_option in --version -v -V -qversion; do
4677 { { ac_try="$ac_compiler $ac_option >&5"
4678 case "(($ac_try" in
4679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4680 *) ac_try_echo=$ac_try;;
4681 esac
4682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4683 $as_echo "$ac_try_echo"; } >&5
4684 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4685 ac_status=$?
4686 if test -s conftest.err; then
4687 sed '10a\
4688 ... rest of stderr output deleted ...
4689 10q' conftest.err >conftest.er1
4690 cat conftest.er1 >&5
4691 fi
4692 rm -f conftest.er1 conftest.err
4693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4694 test $ac_status = 0; }
4695 done
4696
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4698 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4699 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4703 /* end confdefs.h. */
4704
4705 int
4706 main ()
4707 {
4708 #ifndef __GNUC__
4709 choke me
4710 #endif
4711
4712 ;
4713 return 0;
4714 }
4715 _ACEOF
4716 if ac_fn_cxx_try_compile "$LINENO"; then :
4717 ac_compiler_gnu=yes
4718 else
4719 ac_compiler_gnu=no
4720 fi
4721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4722 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4723
4724 fi
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4726 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4727 if test $ac_compiler_gnu = yes; then
4728 GXX=yes
4729 else
4730 GXX=
4731 fi
4732 ac_test_CXXFLAGS=${CXXFLAGS+set}
4733 ac_save_CXXFLAGS=$CXXFLAGS
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4735 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4736 if ${ac_cv_prog_cxx_g+:} false; then :
4737 $as_echo_n "(cached) " >&6
4738 else
4739 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4740 ac_cxx_werror_flag=yes
4741 ac_cv_prog_cxx_g=no
4742 CXXFLAGS="-g"
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745
4746 int
4747 main ()
4748 {
4749
4750 ;
4751 return 0;
4752 }
4753 _ACEOF
4754 if ac_fn_cxx_try_compile "$LINENO"; then :
4755 ac_cv_prog_cxx_g=yes
4756 else
4757 CXXFLAGS=""
4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h. */
4760
4761 int
4762 main ()
4763 {
4764
4765 ;
4766 return 0;
4767 }
4768 _ACEOF
4769 if ac_fn_cxx_try_compile "$LINENO"; then :
4770
4771 else
4772 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4773 CXXFLAGS="-g"
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4776
4777 int
4778 main ()
4779 {
4780
4781 ;
4782 return 0;
4783 }
4784 _ACEOF
4785 if ac_fn_cxx_try_compile "$LINENO"; then :
4786 ac_cv_prog_cxx_g=yes
4787 fi
4788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4789 fi
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791 fi
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4794 fi
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4796 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4797 if test "$ac_test_CXXFLAGS" = set; then
4798 CXXFLAGS=$ac_save_CXXFLAGS
4799 elif test $ac_cv_prog_cxx_g = yes; then
4800 if test "$GXX" = yes; then
4801 CXXFLAGS="-g -O2"
4802 else
4803 CXXFLAGS="-g"
4804 fi
4805 else
4806 if test "$GXX" = yes; then
4807 CXXFLAGS="-O2"
4808 else
4809 CXXFLAGS=
4810 fi
4811 fi
4812 ac_ext=c
4813 ac_cpp='$CPP $CPPFLAGS'
4814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4817
4818 depcc="$CXX" am_compiler_list=
4819
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4821 $as_echo_n "checking dependency style of $depcc... " >&6; }
4822 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4823 $as_echo_n "(cached) " >&6
4824 else
4825 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4826 # We make a subdir and do the tests there. Otherwise we can end up
4827 # making bogus files that we don't know about and never remove. For
4828 # instance it was reported that on HP-UX the gcc test will end up
4829 # making a dummy file named 'D' -- because '-MD' means "put the output
4830 # in D".
4831 rm -rf conftest.dir
4832 mkdir conftest.dir
4833 # Copy depcomp to subdir because otherwise we won't find it if we're
4834 # using a relative directory.
4835 cp "$am_depcomp" conftest.dir
4836 cd conftest.dir
4837 # We will build objects and dependencies in a subdirectory because
4838 # it helps to detect inapplicable dependency modes. For instance
4839 # both Tru64's cc and ICC support -MD to output dependencies as a
4840 # side effect of compilation, but ICC will put the dependencies in
4841 # the current directory while Tru64 will put them in the object
4842 # directory.
4843 mkdir sub
4844
4845 am_cv_CXX_dependencies_compiler_type=none
4846 if test "$am_compiler_list" = ""; then
4847 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4848 fi
4849 am__universal=false
4850 case " $depcc " in #(
4851 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4852 esac
4853
4854 for depmode in $am_compiler_list; do
4855 # Setup a source with many dependencies, because some compilers
4856 # like to wrap large dependency lists on column 80 (with \), and
4857 # we should not choose a depcomp mode which is confused by this.
4858 #
4859 # We need to recreate these files for each test, as the compiler may
4860 # overwrite some of them when testing with obscure command lines.
4861 # This happens at least with the AIX C compiler.
4862 : > sub/conftest.c
4863 for i in 1 2 3 4 5 6; do
4864 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4865 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4866 # Solaris 10 /bin/sh.
4867 echo '/* dummy */' > sub/conftst$i.h
4868 done
4869 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4870
4871 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4872 # mode. It turns out that the SunPro C++ compiler does not properly
4873 # handle '-M -o', and we need to detect this. Also, some Intel
4874 # versions had trouble with output in subdirs.
4875 am__obj=sub/conftest.${OBJEXT-o}
4876 am__minus_obj="-o $am__obj"
4877 case $depmode in
4878 gcc)
4879 # This depmode causes a compiler race in universal mode.
4880 test "$am__universal" = false || continue
4881 ;;
4882 nosideeffect)
4883 # After this tag, mechanisms are not by side-effect, so they'll
4884 # only be used when explicitly requested.
4885 if test "x$enable_dependency_tracking" = xyes; then
4886 continue
4887 else
4888 break
4889 fi
4890 ;;
4891 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4892 # This compiler won't grok '-c -o', but also, the minuso test has
4893 # not run yet. These depmodes are late enough in the game, and
4894 # so weak that their functioning should not be impacted.
4895 am__obj=conftest.${OBJEXT-o}
4896 am__minus_obj=
4897 ;;
4898 none) break ;;
4899 esac
4900 if depmode=$depmode \
4901 source=sub/conftest.c object=$am__obj \
4902 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4903 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4904 >/dev/null 2>conftest.err &&
4905 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4906 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4907 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4908 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4909 # icc doesn't choke on unknown options, it will just issue warnings
4910 # or remarks (even with -Werror). So we grep stderr for any message
4911 # that says an option was ignored or not supported.
4912 # When given -MP, icc 7.0 and 7.1 complain thusly:
4913 # icc: Command line warning: ignoring option '-M'; no argument required
4914 # The diagnosis changed in icc 8.0:
4915 # icc: Command line remark: option '-MP' not supported
4916 if (grep 'ignoring option' conftest.err ||
4917 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4918 am_cv_CXX_dependencies_compiler_type=$depmode
4919 break
4920 fi
4921 fi
4922 done
4923
4924 cd ..
4925 rm -rf conftest.dir
4926 else
4927 am_cv_CXX_dependencies_compiler_type=none
4928 fi
4929
4930 fi
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4932 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4933 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4934
4935 if
4936 test "x$enable_dependency_tracking" != xno \
4937 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4938 am__fastdepCXX_TRUE=
4939 am__fastdepCXX_FALSE='#'
4940 else
4941 am__fastdepCXX_TRUE='#'
4942 am__fastdepCXX_FALSE=
4943 fi
4944
4945
4946 CFLAGS=$save_CFLAGS
4947
4948
4949
4950
4951
4952 # By default we simply use the C compiler to build assembly code.
4953
4954 test "${CCAS+set}" = set || CCAS=$CC
4955 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4956
4957
4958
4959 depcc="$CCAS" am_compiler_list=
4960
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4962 $as_echo_n "checking dependency style of $depcc... " >&6; }
4963 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4964 $as_echo_n "(cached) " >&6
4965 else
4966 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4967 # We make a subdir and do the tests there. Otherwise we can end up
4968 # making bogus files that we don't know about and never remove. For
4969 # instance it was reported that on HP-UX the gcc test will end up
4970 # making a dummy file named 'D' -- because '-MD' means "put the output
4971 # in D".
4972 rm -rf conftest.dir
4973 mkdir conftest.dir
4974 # Copy depcomp to subdir because otherwise we won't find it if we're
4975 # using a relative directory.
4976 cp "$am_depcomp" conftest.dir
4977 cd conftest.dir
4978 # We will build objects and dependencies in a subdirectory because
4979 # it helps to detect inapplicable dependency modes. For instance
4980 # both Tru64's cc and ICC support -MD to output dependencies as a
4981 # side effect of compilation, but ICC will put the dependencies in
4982 # the current directory while Tru64 will put them in the object
4983 # directory.
4984 mkdir sub
4985
4986 am_cv_CCAS_dependencies_compiler_type=none
4987 if test "$am_compiler_list" = ""; then
4988 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4989 fi
4990 am__universal=false
4991
4992
4993 for depmode in $am_compiler_list; do
4994 # Setup a source with many dependencies, because some compilers
4995 # like to wrap large dependency lists on column 80 (with \), and
4996 # we should not choose a depcomp mode which is confused by this.
4997 #
4998 # We need to recreate these files for each test, as the compiler may
4999 # overwrite some of them when testing with obscure command lines.
5000 # This happens at least with the AIX C compiler.
5001 : > sub/conftest.c
5002 for i in 1 2 3 4 5 6; do
5003 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5004 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5005 # Solaris 10 /bin/sh.
5006 echo '/* dummy */' > sub/conftst$i.h
5007 done
5008 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5009
5010 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5011 # mode. It turns out that the SunPro C++ compiler does not properly
5012 # handle '-M -o', and we need to detect this. Also, some Intel
5013 # versions had trouble with output in subdirs.
5014 am__obj=sub/conftest.${OBJEXT-o}
5015 am__minus_obj="-o $am__obj"
5016 case $depmode in
5017 gcc)
5018 # This depmode causes a compiler race in universal mode.
5019 test "$am__universal" = false || continue
5020 ;;
5021 nosideeffect)
5022 # After this tag, mechanisms are not by side-effect, so they'll
5023 # only be used when explicitly requested.
5024 if test "x$enable_dependency_tracking" = xyes; then
5025 continue
5026 else
5027 break
5028 fi
5029 ;;
5030 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5031 # This compiler won't grok '-c -o', but also, the minuso test has
5032 # not run yet. These depmodes are late enough in the game, and
5033 # so weak that their functioning should not be impacted.
5034 am__obj=conftest.${OBJEXT-o}
5035 am__minus_obj=
5036 ;;
5037 none) break ;;
5038 esac
5039 if depmode=$depmode \
5040 source=sub/conftest.c object=$am__obj \
5041 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5042 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5043 >/dev/null 2>conftest.err &&
5044 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5045 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5046 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5047 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5048 # icc doesn't choke on unknown options, it will just issue warnings
5049 # or remarks (even with -Werror). So we grep stderr for any message
5050 # that says an option was ignored or not supported.
5051 # When given -MP, icc 7.0 and 7.1 complain thusly:
5052 # icc: Command line warning: ignoring option '-M'; no argument required
5053 # The diagnosis changed in icc 8.0:
5054 # icc: Command line remark: option '-MP' not supported
5055 if (grep 'ignoring option' conftest.err ||
5056 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5057 am_cv_CCAS_dependencies_compiler_type=$depmode
5058 break
5059 fi
5060 fi
5061 done
5062
5063 cd ..
5064 rm -rf conftest.dir
5065 else
5066 am_cv_CCAS_dependencies_compiler_type=none
5067 fi
5068
5069 fi
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
5071 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
5072 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
5073
5074 if
5075 test "x$enable_dependency_tracking" != xno \
5076 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
5077 am__fastdepCCAS_TRUE=
5078 am__fastdepCCAS_FALSE='#'
5079 else
5080 am__fastdepCCAS_TRUE='#'
5081 am__fastdepCCAS_FALSE=
5082 fi
5083
5084
5085
5086 case `pwd` in
5087 *\ * | *\ *)
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5089 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5090 esac
5091
5092
5093
5094 macro_version='2.2.7a'
5095 macro_revision='1.3134'
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109 ltmain="$ac_aux_dir/ltmain.sh"
5110
5111 # Backslashify metacharacters that are still active within
5112 # double-quoted strings.
5113 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5114
5115 # Same as above, but do not quote variable references.
5116 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5117
5118 # Sed substitution to delay expansion of an escaped shell variable in a
5119 # double_quote_subst'ed string.
5120 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5121
5122 # Sed substitution to delay expansion of an escaped single quote.
5123 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5124
5125 # Sed substitution to avoid accidental globbing in evaled expressions
5126 no_glob_subst='s/\*/\\\*/g'
5127
5128 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5129 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5130 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5131
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5133 $as_echo_n "checking how to print strings... " >&6; }
5134 # Test print first, because it will be a builtin if present.
5135 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5136 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5137 ECHO='print -r --'
5138 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5139 ECHO='printf %s\n'
5140 else
5141 # Use this function as a fallback that always works.
5142 func_fallback_echo ()
5143 {
5144 eval 'cat <<_LTECHO_EOF
5145 $1
5146 _LTECHO_EOF'
5147 }
5148 ECHO='func_fallback_echo'
5149 fi
5150
5151 # func_echo_all arg...
5152 # Invoke $ECHO with all args, space-separated.
5153 func_echo_all ()
5154 {
5155 $ECHO ""
5156 }
5157
5158 case "$ECHO" in
5159 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5160 $as_echo "printf" >&6; } ;;
5161 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5162 $as_echo "print -r" >&6; } ;;
5163 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5164 $as_echo "cat" >&6; } ;;
5165 esac
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5181 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5182 if ${ac_cv_path_SED+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5186 for ac_i in 1 2 3 4 5 6 7; do
5187 ac_script="$ac_script$as_nl$ac_script"
5188 done
5189 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5190 { ac_script=; unset ac_script;}
5191 if test -z "$SED"; then
5192 ac_path_SED_found=false
5193 # Loop through the user's path and test for each of PROGNAME-LIST
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5196 do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_prog in sed gsed; do
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5202 as_fn_executable_p "$ac_path_SED" || continue
5203 # Check for GNU ac_path_SED and select it if it is found.
5204 # Check for GNU $ac_path_SED
5205 case `"$ac_path_SED" --version 2>&1` in
5206 *GNU*)
5207 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5208 *)
5209 ac_count=0
5210 $as_echo_n 0123456789 >"conftest.in"
5211 while :
5212 do
5213 cat "conftest.in" "conftest.in" >"conftest.tmp"
5214 mv "conftest.tmp" "conftest.in"
5215 cp "conftest.in" "conftest.nl"
5216 $as_echo '' >> "conftest.nl"
5217 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5219 as_fn_arith $ac_count + 1 && ac_count=$as_val
5220 if test $ac_count -gt ${ac_path_SED_max-0}; then
5221 # Best one so far, save it but keep looking for a better one
5222 ac_cv_path_SED="$ac_path_SED"
5223 ac_path_SED_max=$ac_count
5224 fi
5225 # 10*(2^10) chars as input seems more than enough
5226 test $ac_count -gt 10 && break
5227 done
5228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5229 esac
5230
5231 $ac_path_SED_found && break 3
5232 done
5233 done
5234 done
5235 IFS=$as_save_IFS
5236 if test -z "$ac_cv_path_SED"; then
5237 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5238 fi
5239 else
5240 ac_cv_path_SED=$SED
5241 fi
5242
5243 fi
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5245 $as_echo "$ac_cv_path_SED" >&6; }
5246 SED="$ac_cv_path_SED"
5247 rm -f conftest.sed
5248
5249 test -z "$SED" && SED=sed
5250 Xsed="$SED -e 1s/^X//"
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5263 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5264 if ${ac_cv_path_GREP+:} false; then :
5265 $as_echo_n "(cached) " >&6
5266 else
5267 if test -z "$GREP"; then
5268 ac_path_GREP_found=false
5269 # Loop through the user's path and test for each of PROGNAME-LIST
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5272 do
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_prog in grep ggrep; do
5276 for ac_exec_ext in '' $ac_executable_extensions; do
5277 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5278 as_fn_executable_p "$ac_path_GREP" || continue
5279 # Check for GNU ac_path_GREP and select it if it is found.
5280 # Check for GNU $ac_path_GREP
5281 case `"$ac_path_GREP" --version 2>&1` in
5282 *GNU*)
5283 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5284 *)
5285 ac_count=0
5286 $as_echo_n 0123456789 >"conftest.in"
5287 while :
5288 do
5289 cat "conftest.in" "conftest.in" >"conftest.tmp"
5290 mv "conftest.tmp" "conftest.in"
5291 cp "conftest.in" "conftest.nl"
5292 $as_echo 'GREP' >> "conftest.nl"
5293 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5294 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5295 as_fn_arith $ac_count + 1 && ac_count=$as_val
5296 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5297 # Best one so far, save it but keep looking for a better one
5298 ac_cv_path_GREP="$ac_path_GREP"
5299 ac_path_GREP_max=$ac_count
5300 fi
5301 # 10*(2^10) chars as input seems more than enough
5302 test $ac_count -gt 10 && break
5303 done
5304 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5305 esac
5306
5307 $ac_path_GREP_found && break 3
5308 done
5309 done
5310 done
5311 IFS=$as_save_IFS
5312 if test -z "$ac_cv_path_GREP"; then
5313 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5314 fi
5315 else
5316 ac_cv_path_GREP=$GREP
5317 fi
5318
5319 fi
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5321 $as_echo "$ac_cv_path_GREP" >&6; }
5322 GREP="$ac_cv_path_GREP"
5323
5324
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5326 $as_echo_n "checking for egrep... " >&6; }
5327 if ${ac_cv_path_EGREP+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5331 then ac_cv_path_EGREP="$GREP -E"
5332 else
5333 if test -z "$EGREP"; then
5334 ac_path_EGREP_found=false
5335 # Loop through the user's path and test for each of PROGNAME-LIST
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5338 do
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 for ac_prog in egrep; do
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5344 as_fn_executable_p "$ac_path_EGREP" || continue
5345 # Check for GNU ac_path_EGREP and select it if it is found.
5346 # Check for GNU $ac_path_EGREP
5347 case `"$ac_path_EGREP" --version 2>&1` in
5348 *GNU*)
5349 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5350 *)
5351 ac_count=0
5352 $as_echo_n 0123456789 >"conftest.in"
5353 while :
5354 do
5355 cat "conftest.in" "conftest.in" >"conftest.tmp"
5356 mv "conftest.tmp" "conftest.in"
5357 cp "conftest.in" "conftest.nl"
5358 $as_echo 'EGREP' >> "conftest.nl"
5359 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5360 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5361 as_fn_arith $ac_count + 1 && ac_count=$as_val
5362 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5363 # Best one so far, save it but keep looking for a better one
5364 ac_cv_path_EGREP="$ac_path_EGREP"
5365 ac_path_EGREP_max=$ac_count
5366 fi
5367 # 10*(2^10) chars as input seems more than enough
5368 test $ac_count -gt 10 && break
5369 done
5370 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5371 esac
5372
5373 $ac_path_EGREP_found && break 3
5374 done
5375 done
5376 done
5377 IFS=$as_save_IFS
5378 if test -z "$ac_cv_path_EGREP"; then
5379 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5380 fi
5381 else
5382 ac_cv_path_EGREP=$EGREP
5383 fi
5384
5385 fi
5386 fi
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5388 $as_echo "$ac_cv_path_EGREP" >&6; }
5389 EGREP="$ac_cv_path_EGREP"
5390
5391
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5393 $as_echo_n "checking for fgrep... " >&6; }
5394 if ${ac_cv_path_FGREP+:} false; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5398 then ac_cv_path_FGREP="$GREP -F"
5399 else
5400 if test -z "$FGREP"; then
5401 ac_path_FGREP_found=false
5402 # Loop through the user's path and test for each of PROGNAME-LIST
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5405 do
5406 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=.
5408 for ac_prog in fgrep; do
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5411 as_fn_executable_p "$ac_path_FGREP" || continue
5412 # Check for GNU ac_path_FGREP and select it if it is found.
5413 # Check for GNU $ac_path_FGREP
5414 case `"$ac_path_FGREP" --version 2>&1` in
5415 *GNU*)
5416 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5417 *)
5418 ac_count=0
5419 $as_echo_n 0123456789 >"conftest.in"
5420 while :
5421 do
5422 cat "conftest.in" "conftest.in" >"conftest.tmp"
5423 mv "conftest.tmp" "conftest.in"
5424 cp "conftest.in" "conftest.nl"
5425 $as_echo 'FGREP' >> "conftest.nl"
5426 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5428 as_fn_arith $ac_count + 1 && ac_count=$as_val
5429 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5430 # Best one so far, save it but keep looking for a better one
5431 ac_cv_path_FGREP="$ac_path_FGREP"
5432 ac_path_FGREP_max=$ac_count
5433 fi
5434 # 10*(2^10) chars as input seems more than enough
5435 test $ac_count -gt 10 && break
5436 done
5437 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5438 esac
5439
5440 $ac_path_FGREP_found && break 3
5441 done
5442 done
5443 done
5444 IFS=$as_save_IFS
5445 if test -z "$ac_cv_path_FGREP"; then
5446 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5447 fi
5448 else
5449 ac_cv_path_FGREP=$FGREP
5450 fi
5451
5452 fi
5453 fi
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5455 $as_echo "$ac_cv_path_FGREP" >&6; }
5456 FGREP="$ac_cv_path_FGREP"
5457
5458
5459 test -z "$GREP" && GREP=grep
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479 # Check whether --with-gnu-ld was given.
5480 if test "${with_gnu_ld+set}" = set; then :
5481 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5482 else
5483 with_gnu_ld=no
5484 fi
5485
5486 ac_prog=ld
5487 if test "$GCC" = yes; then
5488 # Check if gcc -print-prog-name=ld gives a path.
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5490 $as_echo_n "checking for ld used by $CC... " >&6; }
5491 case $host in
5492 *-*-mingw*)
5493 # gcc leaves a trailing carriage return which upsets mingw
5494 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5495 *)
5496 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5497 esac
5498 case $ac_prog in
5499 # Accept absolute paths.
5500 [\\/]* | ?:[\\/]*)
5501 re_direlt='/[^/][^/]*/\.\./'
5502 # Canonicalize the pathname of ld
5503 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5504 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5505 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5506 done
5507 test -z "$LD" && LD="$ac_prog"
5508 ;;
5509 "")
5510 # If it fails, then pretend we aren't using GCC.
5511 ac_prog=ld
5512 ;;
5513 *)
5514 # If it is relative, then search for the first ld in PATH.
5515 with_gnu_ld=unknown
5516 ;;
5517 esac
5518 elif test "$with_gnu_ld" = yes; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5520 $as_echo_n "checking for GNU ld... " >&6; }
5521 else
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5523 $as_echo_n "checking for non-GNU ld... " >&6; }
5524 fi
5525 if ${lt_cv_path_LD+:} false; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 if test -z "$LD"; then
5529 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5530 for ac_dir in $PATH; do
5531 IFS="$lt_save_ifs"
5532 test -z "$ac_dir" && ac_dir=.
5533 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5534 lt_cv_path_LD="$ac_dir/$ac_prog"
5535 # Check to see if the program is GNU ld. I'd rather use --version,
5536 # but apparently some variants of GNU ld only accept -v.
5537 # Break only if it was the GNU/non-GNU ld that we prefer.
5538 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5539 *GNU* | *'with BFD'*)
5540 test "$with_gnu_ld" != no && break
5541 ;;
5542 *)
5543 test "$with_gnu_ld" != yes && break
5544 ;;
5545 esac
5546 fi
5547 done
5548 IFS="$lt_save_ifs"
5549 else
5550 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5551 fi
5552 fi
5553
5554 LD="$lt_cv_path_LD"
5555 if test -n "$LD"; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5557 $as_echo "$LD" >&6; }
5558 else
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5560 $as_echo "no" >&6; }
5561 fi
5562 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5564 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5565 if ${lt_cv_prog_gnu_ld+:} false; then :
5566 $as_echo_n "(cached) " >&6
5567 else
5568 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5569 case `$LD -v 2>&1 </dev/null` in
5570 *GNU* | *'with BFD'*)
5571 lt_cv_prog_gnu_ld=yes
5572 ;;
5573 *)
5574 lt_cv_prog_gnu_ld=no
5575 ;;
5576 esac
5577 fi
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5579 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5580 with_gnu_ld=$lt_cv_prog_gnu_ld
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5591 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5592 if ${lt_cv_path_NM+:} false; then :
5593 $as_echo_n "(cached) " >&6
5594 else
5595 if test -n "$NM"; then
5596 # Let the user override the test.
5597 lt_cv_path_NM="$NM"
5598 else
5599 lt_nm_to_check="${ac_tool_prefix}nm"
5600 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5601 lt_nm_to_check="$lt_nm_to_check nm"
5602 fi
5603 for lt_tmp_nm in $lt_nm_to_check; do
5604 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5605 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5606 IFS="$lt_save_ifs"
5607 test -z "$ac_dir" && ac_dir=.
5608 tmp_nm="$ac_dir/$lt_tmp_nm"
5609 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5610 # Check to see if the nm accepts a BSD-compat flag.
5611 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5612 # nm: unknown option "B" ignored
5613 # Tru64's nm complains that /dev/null is an invalid object file
5614 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5615 */dev/null* | *'Invalid file or object type'*)
5616 lt_cv_path_NM="$tmp_nm -B"
5617 break
5618 ;;
5619 *)
5620 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5621 */dev/null*)
5622 lt_cv_path_NM="$tmp_nm -p"
5623 break
5624 ;;
5625 *)
5626 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5627 continue # so that we can try to find one that supports BSD flags
5628 ;;
5629 esac
5630 ;;
5631 esac
5632 fi
5633 done
5634 IFS="$lt_save_ifs"
5635 done
5636 : ${lt_cv_path_NM=no}
5637 fi
5638 fi
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5640 $as_echo "$lt_cv_path_NM" >&6; }
5641 if test "$lt_cv_path_NM" != "no"; then
5642 NM="$lt_cv_path_NM"
5643 else
5644 # Didn't find any BSD compatible name lister, look for dumpbin.
5645 if test -n "$DUMPBIN"; then :
5646 # Let the user override the test.
5647 else
5648 if test -n "$ac_tool_prefix"; then
5649 for ac_prog in dumpbin "link -dump"
5650 do
5651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if ${ac_cv_prog_DUMPBIN+:} false; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 if test -n "$DUMPBIN"; then
5659 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5660 else
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5663 do
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5668 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5671 fi
5672 done
5673 done
5674 IFS=$as_save_IFS
5675
5676 fi
5677 fi
5678 DUMPBIN=$ac_cv_prog_DUMPBIN
5679 if test -n "$DUMPBIN"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5681 $as_echo "$DUMPBIN" >&6; }
5682 else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5685 fi
5686
5687
5688 test -n "$DUMPBIN" && break
5689 done
5690 fi
5691 if test -z "$DUMPBIN"; then
5692 ac_ct_DUMPBIN=$DUMPBIN
5693 for ac_prog in dumpbin "link -dump"
5694 do
5695 # Extract the first word of "$ac_prog", so it can be a program name with args.
5696 set dummy $ac_prog; ac_word=$2
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698 $as_echo_n "checking for $ac_word... " >&6; }
5699 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 if test -n "$ac_ct_DUMPBIN"; then
5703 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5707 do
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5715 fi
5716 done
5717 done
5718 IFS=$as_save_IFS
5719
5720 fi
5721 fi
5722 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5723 if test -n "$ac_ct_DUMPBIN"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5725 $as_echo "$ac_ct_DUMPBIN" >&6; }
5726 else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5729 fi
5730
5731
5732 test -n "$ac_ct_DUMPBIN" && break
5733 done
5734
5735 if test "x$ac_ct_DUMPBIN" = x; then
5736 DUMPBIN=":"
5737 else
5738 case $cross_compiling:$ac_tool_warned in
5739 yes:)
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5742 ac_tool_warned=yes ;;
5743 esac
5744 DUMPBIN=$ac_ct_DUMPBIN
5745 fi
5746 fi
5747
5748 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5749 *COFF*)
5750 DUMPBIN="$DUMPBIN -symbols"
5751 ;;
5752 *)
5753 DUMPBIN=:
5754 ;;
5755 esac
5756 fi
5757
5758 if test "$DUMPBIN" != ":"; then
5759 NM="$DUMPBIN"
5760 fi
5761 fi
5762 test -z "$NM" && NM=nm
5763
5764
5765
5766
5767
5768
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5770 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5771 if ${lt_cv_nm_interface+:} false; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 lt_cv_nm_interface="BSD nm"
5775 echo "int some_variable = 0;" > conftest.$ac_ext
5776 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5777 (eval "$ac_compile" 2>conftest.err)
5778 cat conftest.err >&5
5779 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5780 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5781 cat conftest.err >&5
5782 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5783 cat conftest.out >&5
5784 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5785 lt_cv_nm_interface="MS dumpbin"
5786 fi
5787 rm -f conftest*
5788 fi
5789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5790 $as_echo "$lt_cv_nm_interface" >&6; }
5791
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5793 $as_echo_n "checking whether ln -s works... " >&6; }
5794 LN_S=$as_ln_s
5795 if test "$LN_S" = "ln -s"; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5797 $as_echo "yes" >&6; }
5798 else
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5800 $as_echo "no, using $LN_S" >&6; }
5801 fi
5802
5803 # find the maximum length of command line arguments
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5805 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5806 if ${lt_cv_sys_max_cmd_len+:} false; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 i=0
5810 teststring="ABCD"
5811
5812 case $build_os in
5813 msdosdjgpp*)
5814 # On DJGPP, this test can blow up pretty badly due to problems in libc
5815 # (any single argument exceeding 2000 bytes causes a buffer overrun
5816 # during glob expansion). Even if it were fixed, the result of this
5817 # check would be larger than it should be.
5818 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5819 ;;
5820
5821 gnu*)
5822 # Under GNU Hurd, this test is not required because there is
5823 # no limit to the length of command line arguments.
5824 # Libtool will interpret -1 as no limit whatsoever
5825 lt_cv_sys_max_cmd_len=-1;
5826 ;;
5827
5828 cygwin* | mingw* | cegcc*)
5829 # On Win9x/ME, this test blows up -- it succeeds, but takes
5830 # about 5 minutes as the teststring grows exponentially.
5831 # Worse, since 9x/ME are not pre-emptively multitasking,
5832 # you end up with a "frozen" computer, even though with patience
5833 # the test eventually succeeds (with a max line length of 256k).
5834 # Instead, let's just punt: use the minimum linelength reported by
5835 # all of the supported platforms: 8192 (on NT/2K/XP).
5836 lt_cv_sys_max_cmd_len=8192;
5837 ;;
5838
5839 mint*)
5840 # On MiNT this can take a long time and run out of memory.
5841 lt_cv_sys_max_cmd_len=8192;
5842 ;;
5843
5844 amigaos*)
5845 # On AmigaOS with pdksh, this test takes hours, literally.
5846 # So we just punt and use a minimum line length of 8192.
5847 lt_cv_sys_max_cmd_len=8192;
5848 ;;
5849
5850 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5851 # This has been around since 386BSD, at least. Likely further.
5852 if test -x /sbin/sysctl; then
5853 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5854 elif test -x /usr/sbin/sysctl; then
5855 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5856 else
5857 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5858 fi
5859 # And add a safety zone
5860 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5862 ;;
5863
5864 interix*)
5865 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5866 lt_cv_sys_max_cmd_len=196608
5867 ;;
5868
5869 osf*)
5870 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5871 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5872 # nice to cause kernel panics so lets avoid the loop below.
5873 # First set a reasonable default.
5874 lt_cv_sys_max_cmd_len=16384
5875 #
5876 if test -x /sbin/sysconfig; then
5877 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5878 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5879 esac
5880 fi
5881 ;;
5882 sco3.2v5*)
5883 lt_cv_sys_max_cmd_len=102400
5884 ;;
5885 sysv5* | sco5v6* | sysv4.2uw2*)
5886 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5887 if test -n "$kargmax"; then
5888 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5889 else
5890 lt_cv_sys_max_cmd_len=32768
5891 fi
5892 ;;
5893 *)
5894 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5895 if test -n "$lt_cv_sys_max_cmd_len"; then
5896 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5897 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5898 else
5899 # Make teststring a little bigger before we do anything with it.
5900 # a 1K string should be a reasonable start.
5901 for i in 1 2 3 4 5 6 7 8 ; do
5902 teststring=$teststring$teststring
5903 done
5904 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5905 # If test is not a shell built-in, we'll probably end up computing a
5906 # maximum length that is only half of the actual maximum length, but
5907 # we can't tell.
5908 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5909 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5910 test $i != 17 # 1/2 MB should be enough
5911 do
5912 i=`expr $i + 1`
5913 teststring=$teststring$teststring
5914 done
5915 # Only check the string length outside the loop.
5916 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5917 teststring=
5918 # Add a significant safety factor because C++ compilers can tack on
5919 # massive amounts of additional arguments before passing them to the
5920 # linker. It appears as though 1/2 is a usable value.
5921 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5922 fi
5923 ;;
5924 esac
5925
5926 fi
5927
5928 if test -n $lt_cv_sys_max_cmd_len ; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5930 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5931 else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5933 $as_echo "none" >&6; }
5934 fi
5935 max_cmd_len=$lt_cv_sys_max_cmd_len
5936
5937
5938
5939
5940
5941
5942 : ${CP="cp -f"}
5943 : ${MV="mv -f"}
5944 : ${RM="rm -f"}
5945
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5947 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5948 # Try some XSI features
5949 xsi_shell=no
5950 ( _lt_dummy="a/b/c"
5951 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5952 = c,a/b,, \
5953 && eval 'test $(( 1 + 1 )) -eq 2 \
5954 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5955 && xsi_shell=yes
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5957 $as_echo "$xsi_shell" >&6; }
5958
5959
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5961 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5962 lt_shell_append=no
5963 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5964 >/dev/null 2>&1 \
5965 && lt_shell_append=yes
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5967 $as_echo "$lt_shell_append" >&6; }
5968
5969
5970 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5971 lt_unset=unset
5972 else
5973 lt_unset=false
5974 fi
5975
5976
5977
5978
5979
5980 # test EBCDIC or ASCII
5981 case `echo X|tr X '\101'` in
5982 A) # ASCII based system
5983 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5984 lt_SP2NL='tr \040 \012'
5985 lt_NL2SP='tr \015\012 \040\040'
5986 ;;
5987 *) # EBCDIC based system
5988 lt_SP2NL='tr \100 \n'
5989 lt_NL2SP='tr \r\n \100\100'
5990 ;;
5991 esac
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6002 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6003 if ${lt_cv_ld_reload_flag+:} false; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 lt_cv_ld_reload_flag='-r'
6007 fi
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6009 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6010 reload_flag=$lt_cv_ld_reload_flag
6011 case $reload_flag in
6012 "" | " "*) ;;
6013 *) reload_flag=" $reload_flag" ;;
6014 esac
6015 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6016 case $host_os in
6017 darwin*)
6018 if test "$GCC" = yes; then
6019 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6020 else
6021 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6022 fi
6023 ;;
6024 esac
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034 if test -n "$ac_tool_prefix"; then
6035 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6036 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6038 $as_echo_n "checking for $ac_word... " >&6; }
6039 if ${ac_cv_prog_OBJDUMP+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 if test -n "$OBJDUMP"; then
6043 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6044 else
6045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6046 for as_dir in $PATH
6047 do
6048 IFS=$as_save_IFS
6049 test -z "$as_dir" && as_dir=.
6050 for ac_exec_ext in '' $ac_executable_extensions; do
6051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6052 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 break 2
6055 fi
6056 done
6057 done
6058 IFS=$as_save_IFS
6059
6060 fi
6061 fi
6062 OBJDUMP=$ac_cv_prog_OBJDUMP
6063 if test -n "$OBJDUMP"; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6065 $as_echo "$OBJDUMP" >&6; }
6066 else
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6068 $as_echo "no" >&6; }
6069 fi
6070
6071
6072 fi
6073 if test -z "$ac_cv_prog_OBJDUMP"; then
6074 ac_ct_OBJDUMP=$OBJDUMP
6075 # Extract the first word of "objdump", so it can be a program name with args.
6076 set dummy objdump; ac_word=$2
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078 $as_echo_n "checking for $ac_word... " >&6; }
6079 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6080 $as_echo_n "(cached) " >&6
6081 else
6082 if test -n "$ac_ct_OBJDUMP"; then
6083 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6084 else
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6086 for as_dir in $PATH
6087 do
6088 IFS=$as_save_IFS
6089 test -z "$as_dir" && as_dir=.
6090 for ac_exec_ext in '' $ac_executable_extensions; do
6091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6092 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6094 break 2
6095 fi
6096 done
6097 done
6098 IFS=$as_save_IFS
6099
6100 fi
6101 fi
6102 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6103 if test -n "$ac_ct_OBJDUMP"; then
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6105 $as_echo "$ac_ct_OBJDUMP" >&6; }
6106 else
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6108 $as_echo "no" >&6; }
6109 fi
6110
6111 if test "x$ac_ct_OBJDUMP" = x; then
6112 OBJDUMP="false"
6113 else
6114 case $cross_compiling:$ac_tool_warned in
6115 yes:)
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118 ac_tool_warned=yes ;;
6119 esac
6120 OBJDUMP=$ac_ct_OBJDUMP
6121 fi
6122 else
6123 OBJDUMP="$ac_cv_prog_OBJDUMP"
6124 fi
6125
6126 test -z "$OBJDUMP" && OBJDUMP=objdump
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6137 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6138 if ${lt_cv_deplibs_check_method+:} false; then :
6139 $as_echo_n "(cached) " >&6
6140 else
6141 lt_cv_file_magic_cmd='$MAGIC_CMD'
6142 lt_cv_file_magic_test_file=
6143 lt_cv_deplibs_check_method='unknown'
6144 # Need to set the preceding variable on all platforms that support
6145 # interlibrary dependencies.
6146 # 'none' -- dependencies not supported.
6147 # `unknown' -- same as none, but documents that we really don't know.
6148 # 'pass_all' -- all dependencies passed with no checks.
6149 # 'test_compile' -- check by making test program.
6150 # 'file_magic [[regex]]' -- check by looking for files in library path
6151 # which responds to the $file_magic_cmd with a given extended regex.
6152 # If you have `file' or equivalent on your system and you're not sure
6153 # whether `pass_all' will *always* work, you probably want this one.
6154
6155 case $host_os in
6156 aix[4-9]*)
6157 lt_cv_deplibs_check_method=pass_all
6158 ;;
6159
6160 beos*)
6161 lt_cv_deplibs_check_method=pass_all
6162 ;;
6163
6164 bsdi[45]*)
6165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6166 lt_cv_file_magic_cmd='/usr/bin/file -L'
6167 lt_cv_file_magic_test_file=/shlib/libc.so
6168 ;;
6169
6170 cygwin*)
6171 # func_win32_libid is a shell function defined in ltmain.sh
6172 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6173 lt_cv_file_magic_cmd='func_win32_libid'
6174 ;;
6175
6176 mingw* | pw32*)
6177 # Base MSYS/MinGW do not provide the 'file' command needed by
6178 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6179 # unless we find 'file', for example because we are cross-compiling.
6180 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6181 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6182 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6183 lt_cv_file_magic_cmd='func_win32_libid'
6184 else
6185 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6186 lt_cv_file_magic_cmd='$OBJDUMP -f'
6187 fi
6188 ;;
6189
6190 cegcc*)
6191 # use the weaker test based on 'objdump'. See mingw*.
6192 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6193 lt_cv_file_magic_cmd='$OBJDUMP -f'
6194 ;;
6195
6196 darwin* | rhapsody*)
6197 lt_cv_deplibs_check_method=pass_all
6198 ;;
6199
6200 freebsd* | dragonfly*)
6201 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6202 case $host_cpu in
6203 i*86 )
6204 # Not sure whether the presence of OpenBSD here was a mistake.
6205 # Let's accept both of them until this is cleared up.
6206 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6207 lt_cv_file_magic_cmd=/usr/bin/file
6208 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6209 ;;
6210 esac
6211 else
6212 lt_cv_deplibs_check_method=pass_all
6213 fi
6214 ;;
6215
6216 gnu*)
6217 lt_cv_deplibs_check_method=pass_all
6218 ;;
6219
6220 haiku*)
6221 lt_cv_deplibs_check_method=pass_all
6222 ;;
6223
6224 hpux10.20* | hpux11*)
6225 lt_cv_file_magic_cmd=/usr/bin/file
6226 case $host_cpu in
6227 ia64*)
6228 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6229 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6230 ;;
6231 hppa*64*)
6232 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]'
6233 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6234 ;;
6235 *)
6236 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6237 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6238 ;;
6239 esac
6240 ;;
6241
6242 interix[3-9]*)
6243 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6244 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6245 ;;
6246
6247 irix5* | irix6* | nonstopux*)
6248 case $LD in
6249 *-32|*"-32 ") libmagic=32-bit;;
6250 *-n32|*"-n32 ") libmagic=N32;;
6251 *-64|*"-64 ") libmagic=64-bit;;
6252 *) libmagic=never-match;;
6253 esac
6254 lt_cv_deplibs_check_method=pass_all
6255 ;;
6256
6257 # This must be Linux ELF.
6258 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6259 lt_cv_deplibs_check_method=pass_all
6260 ;;
6261
6262 netbsd*)
6263 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6264 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6265 else
6266 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6267 fi
6268 ;;
6269
6270 newos6*)
6271 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6272 lt_cv_file_magic_cmd=/usr/bin/file
6273 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6274 ;;
6275
6276 *nto* | *qnx*)
6277 lt_cv_deplibs_check_method=pass_all
6278 ;;
6279
6280 openbsd*)
6281 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6282 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6283 else
6284 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6285 fi
6286 ;;
6287
6288 osf3* | osf4* | osf5*)
6289 lt_cv_deplibs_check_method=pass_all
6290 ;;
6291
6292 rdos*)
6293 lt_cv_deplibs_check_method=pass_all
6294 ;;
6295
6296 solaris*)
6297 lt_cv_deplibs_check_method=pass_all
6298 ;;
6299
6300 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6301 lt_cv_deplibs_check_method=pass_all
6302 ;;
6303
6304 sysv4 | sysv4.3*)
6305 case $host_vendor in
6306 motorola)
6307 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]'
6308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6309 ;;
6310 ncr)
6311 lt_cv_deplibs_check_method=pass_all
6312 ;;
6313 sequent)
6314 lt_cv_file_magic_cmd='/bin/file'
6315 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6316 ;;
6317 sni)
6318 lt_cv_file_magic_cmd='/bin/file'
6319 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6320 lt_cv_file_magic_test_file=/lib/libc.so
6321 ;;
6322 siemens)
6323 lt_cv_deplibs_check_method=pass_all
6324 ;;
6325 pc)
6326 lt_cv_deplibs_check_method=pass_all
6327 ;;
6328 esac
6329 ;;
6330
6331 tpf*)
6332 lt_cv_deplibs_check_method=pass_all
6333 ;;
6334 esac
6335
6336 fi
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6338 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6339 file_magic_cmd=$lt_cv_file_magic_cmd
6340 deplibs_check_method=$lt_cv_deplibs_check_method
6341 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354 if test -n "$ac_tool_prefix"; then
6355 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6356 set dummy ${ac_tool_prefix}ar; ac_word=$2
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 $as_echo_n "checking for $ac_word... " >&6; }
6359 if ${ac_cv_prog_AR+:} false; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 if test -n "$AR"; then
6363 ac_cv_prog_AR="$AR" # Let the user override the test.
6364 else
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6366 for as_dir in $PATH
6367 do
6368 IFS=$as_save_IFS
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6372 ac_cv_prog_AR="${ac_tool_prefix}ar"
6373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6374 break 2
6375 fi
6376 done
6377 done
6378 IFS=$as_save_IFS
6379
6380 fi
6381 fi
6382 AR=$ac_cv_prog_AR
6383 if test -n "$AR"; then
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6385 $as_echo "$AR" >&6; }
6386 else
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 $as_echo "no" >&6; }
6389 fi
6390
6391
6392 fi
6393 if test -z "$ac_cv_prog_AR"; then
6394 ac_ct_AR=$AR
6395 # Extract the first word of "ar", so it can be a program name with args.
6396 set dummy ar; ac_word=$2
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398 $as_echo_n "checking for $ac_word... " >&6; }
6399 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6402 if test -n "$ac_ct_AR"; then
6403 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6404 else
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6407 do
6408 IFS=$as_save_IFS
6409 test -z "$as_dir" && as_dir=.
6410 for ac_exec_ext in '' $ac_executable_extensions; do
6411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6412 ac_cv_prog_ac_ct_AR="ar"
6413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6414 break 2
6415 fi
6416 done
6417 done
6418 IFS=$as_save_IFS
6419
6420 fi
6421 fi
6422 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6423 if test -n "$ac_ct_AR"; then
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6425 $as_echo "$ac_ct_AR" >&6; }
6426 else
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428 $as_echo "no" >&6; }
6429 fi
6430
6431 if test "x$ac_ct_AR" = x; then
6432 AR="false"
6433 else
6434 case $cross_compiling:$ac_tool_warned in
6435 yes:)
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6438 ac_tool_warned=yes ;;
6439 esac
6440 AR=$ac_ct_AR
6441 fi
6442 else
6443 AR="$ac_cv_prog_AR"
6444 fi
6445
6446 test -z "$AR" && AR=ar
6447 test -z "$AR_FLAGS" && AR_FLAGS=cru
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459 if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6461 set dummy ${ac_tool_prefix}strip; ac_word=$2
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463 $as_echo_n "checking for $ac_word... " >&6; }
6464 if ${ac_cv_prog_STRIP+:} false; then :
6465 $as_echo_n "(cached) " >&6
6466 else
6467 if test -n "$STRIP"; then
6468 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6469 else
6470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 for as_dir in $PATH
6472 do
6473 IFS=$as_save_IFS
6474 test -z "$as_dir" && as_dir=.
6475 for ac_exec_ext in '' $ac_executable_extensions; do
6476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6477 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6479 break 2
6480 fi
6481 done
6482 done
6483 IFS=$as_save_IFS
6484
6485 fi
6486 fi
6487 STRIP=$ac_cv_prog_STRIP
6488 if test -n "$STRIP"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6490 $as_echo "$STRIP" >&6; }
6491 else
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493 $as_echo "no" >&6; }
6494 fi
6495
6496
6497 fi
6498 if test -z "$ac_cv_prog_STRIP"; then
6499 ac_ct_STRIP=$STRIP
6500 # Extract the first word of "strip", so it can be a program name with args.
6501 set dummy strip; ac_word=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6507 if test -n "$ac_ct_STRIP"; then
6508 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6509 else
6510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6511 for as_dir in $PATH
6512 do
6513 IFS=$as_save_IFS
6514 test -z "$as_dir" && as_dir=.
6515 for ac_exec_ext in '' $ac_executable_extensions; do
6516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6517 ac_cv_prog_ac_ct_STRIP="strip"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6519 break 2
6520 fi
6521 done
6522 done
6523 IFS=$as_save_IFS
6524
6525 fi
6526 fi
6527 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6528 if test -n "$ac_ct_STRIP"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6530 $as_echo "$ac_ct_STRIP" >&6; }
6531 else
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6534 fi
6535
6536 if test "x$ac_ct_STRIP" = x; then
6537 STRIP=":"
6538 else
6539 case $cross_compiling:$ac_tool_warned in
6540 yes:)
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6543 ac_tool_warned=yes ;;
6544 esac
6545 STRIP=$ac_ct_STRIP
6546 fi
6547 else
6548 STRIP="$ac_cv_prog_STRIP"
6549 fi
6550
6551 test -z "$STRIP" && STRIP=:
6552
6553
6554
6555
6556
6557
6558 if test -n "$ac_tool_prefix"; then
6559 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6560 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6562 $as_echo_n "checking for $ac_word... " >&6; }
6563 if ${ac_cv_prog_RANLIB+:} false; then :
6564 $as_echo_n "(cached) " >&6
6565 else
6566 if test -n "$RANLIB"; then
6567 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6568 else
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6570 for as_dir in $PATH
6571 do
6572 IFS=$as_save_IFS
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6576 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6578 break 2
6579 fi
6580 done
6581 done
6582 IFS=$as_save_IFS
6583
6584 fi
6585 fi
6586 RANLIB=$ac_cv_prog_RANLIB
6587 if test -n "$RANLIB"; then
6588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6589 $as_echo "$RANLIB" >&6; }
6590 else
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6592 $as_echo "no" >&6; }
6593 fi
6594
6595
6596 fi
6597 if test -z "$ac_cv_prog_RANLIB"; then
6598 ac_ct_RANLIB=$RANLIB
6599 # Extract the first word of "ranlib", so it can be a program name with args.
6600 set dummy ranlib; ac_word=$2
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6602 $as_echo_n "checking for $ac_word... " >&6; }
6603 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6604 $as_echo_n "(cached) " >&6
6605 else
6606 if test -n "$ac_ct_RANLIB"; then
6607 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6608 else
6609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6610 for as_dir in $PATH
6611 do
6612 IFS=$as_save_IFS
6613 test -z "$as_dir" && as_dir=.
6614 for ac_exec_ext in '' $ac_executable_extensions; do
6615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6616 ac_cv_prog_ac_ct_RANLIB="ranlib"
6617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6618 break 2
6619 fi
6620 done
6621 done
6622 IFS=$as_save_IFS
6623
6624 fi
6625 fi
6626 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6627 if test -n "$ac_ct_RANLIB"; then
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6629 $as_echo "$ac_ct_RANLIB" >&6; }
6630 else
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6633 fi
6634
6635 if test "x$ac_ct_RANLIB" = x; then
6636 RANLIB=":"
6637 else
6638 case $cross_compiling:$ac_tool_warned in
6639 yes:)
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6642 ac_tool_warned=yes ;;
6643 esac
6644 RANLIB=$ac_ct_RANLIB
6645 fi
6646 else
6647 RANLIB="$ac_cv_prog_RANLIB"
6648 fi
6649
6650 test -z "$RANLIB" && RANLIB=:
6651
6652
6653
6654
6655
6656
6657 # Determine commands to create old-style static archives.
6658 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6659 old_postinstall_cmds='chmod 644 $oldlib'
6660 old_postuninstall_cmds=
6661
6662 if test -n "$RANLIB"; then
6663 case $host_os in
6664 openbsd*)
6665 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6666 ;;
6667 *)
6668 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6669 ;;
6670 esac
6671 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6672 fi
6673
6674 case $host_os in
6675 darwin*)
6676 lock_old_archive_extraction=yes ;;
6677 *)
6678 lock_old_archive_extraction=no ;;
6679 esac
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719 # If no C compiler was specified, use CC.
6720 LTCC=${LTCC-"$CC"}
6721
6722 # If no C compiler flags were specified, use CFLAGS.
6723 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6724
6725 # Allow CC to be a program name with arguments.
6726 compiler=$CC
6727
6728
6729 # Check for command to grab the raw symbol name followed by C symbol from nm.
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6731 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6732 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6733 $as_echo_n "(cached) " >&6
6734 else
6735
6736 # These are sane defaults that work on at least a few old systems.
6737 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6738
6739 # Character class describing NM global symbol codes.
6740 symcode='[BCDEGRST]'
6741
6742 # Regexp to match symbols that can be accessed directly from C.
6743 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6744
6745 # Define system-specific variables.
6746 case $host_os in
6747 aix*)
6748 symcode='[BCDT]'
6749 ;;
6750 cygwin* | mingw* | pw32* | cegcc*)
6751 symcode='[ABCDGISTW]'
6752 ;;
6753 hpux*)
6754 if test "$host_cpu" = ia64; then
6755 symcode='[ABCDEGRST]'
6756 fi
6757 ;;
6758 irix* | nonstopux*)
6759 symcode='[BCDEGRST]'
6760 ;;
6761 osf*)
6762 symcode='[BCDEGQRST]'
6763 ;;
6764 solaris*)
6765 symcode='[BDRT]'
6766 ;;
6767 sco3.2v5*)
6768 symcode='[DT]'
6769 ;;
6770 sysv4.2uw2*)
6771 symcode='[DT]'
6772 ;;
6773 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6774 symcode='[ABDT]'
6775 ;;
6776 sysv4)
6777 symcode='[DFNSTU]'
6778 ;;
6779 esac
6780
6781 # If we're using GNU nm, then use its standard symbol codes.
6782 case `$NM -V 2>&1` in
6783 *GNU* | *'with BFD'*)
6784 symcode='[ABCDGIRSTW]' ;;
6785 esac
6786
6787 # Transform an extracted symbol line into a proper C declaration.
6788 # Some systems (esp. on ia64) link data and code symbols differently,
6789 # so use this general approach.
6790 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6791
6792 # Transform an extracted symbol line into symbol name and symbol address
6793 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6794 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6795
6796 # Handle CRLF in mingw tool chain
6797 opt_cr=
6798 case $build_os in
6799 mingw*)
6800 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6801 ;;
6802 esac
6803
6804 # Try without a prefix underscore, then with it.
6805 for ac_symprfx in "" "_"; do
6806
6807 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6808 symxfrm="\\1 $ac_symprfx\\2 \\2"
6809
6810 # Write the raw and C identifiers.
6811 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6812 # Fake it for dumpbin and say T for any non-static function
6813 # and D for any global variable.
6814 # Also find C++ and __fastcall symbols from MSVC++,
6815 # which start with @ or ?.
6816 lt_cv_sys_global_symbol_pipe="$AWK '"\
6817 " {last_section=section; section=\$ 3};"\
6818 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6819 " \$ 0!~/External *\|/{next};"\
6820 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6821 " {if(hide[section]) next};"\
6822 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6823 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6824 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6825 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6826 " ' prfx=^$ac_symprfx"
6827 else
6828 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6829 fi
6830
6831 # Check to see that the pipe works correctly.
6832 pipe_works=no
6833
6834 rm -f conftest*
6835 cat > conftest.$ac_ext <<_LT_EOF
6836 #ifdef __cplusplus
6837 extern "C" {
6838 #endif
6839 char nm_test_var;
6840 void nm_test_func(void);
6841 void nm_test_func(void){}
6842 #ifdef __cplusplus
6843 }
6844 #endif
6845 int main(){nm_test_var='a';nm_test_func();return(0);}
6846 _LT_EOF
6847
6848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6849 (eval $ac_compile) 2>&5
6850 ac_status=$?
6851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852 test $ac_status = 0; }; then
6853 # Now try to grab the symbols.
6854 nlist=conftest.nm
6855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6856 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6857 ac_status=$?
6858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6859 test $ac_status = 0; } && test -s "$nlist"; then
6860 # Try sorting and uniquifying the output.
6861 if sort "$nlist" | uniq > "$nlist"T; then
6862 mv -f "$nlist"T "$nlist"
6863 else
6864 rm -f "$nlist"T
6865 fi
6866
6867 # Make sure that we snagged all the symbols we need.
6868 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6869 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6870 cat <<_LT_EOF > conftest.$ac_ext
6871 #ifdef __cplusplus
6872 extern "C" {
6873 #endif
6874
6875 _LT_EOF
6876 # Now generate the symbol file.
6877 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6878
6879 cat <<_LT_EOF >> conftest.$ac_ext
6880
6881 /* The mapping between symbol names and symbols. */
6882 const struct {
6883 const char *name;
6884 void *address;
6885 }
6886 lt__PROGRAM__LTX_preloaded_symbols[] =
6887 {
6888 { "@PROGRAM@", (void *) 0 },
6889 _LT_EOF
6890 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6891 cat <<\_LT_EOF >> conftest.$ac_ext
6892 {0, (void *) 0}
6893 };
6894
6895 /* This works around a problem in FreeBSD linker */
6896 #ifdef FREEBSD_WORKAROUND
6897 static const void *lt_preloaded_setup() {
6898 return lt__PROGRAM__LTX_preloaded_symbols;
6899 }
6900 #endif
6901
6902 #ifdef __cplusplus
6903 }
6904 #endif
6905 _LT_EOF
6906 # Now try linking the two files.
6907 mv conftest.$ac_objext conftstm.$ac_objext
6908 lt_save_LIBS="$LIBS"
6909 lt_save_CFLAGS="$CFLAGS"
6910 LIBS="conftstm.$ac_objext"
6911 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6913 (eval $ac_link) 2>&5
6914 ac_status=$?
6915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6916 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6917 pipe_works=yes
6918 fi
6919 LIBS="$lt_save_LIBS"
6920 CFLAGS="$lt_save_CFLAGS"
6921 else
6922 echo "cannot find nm_test_func in $nlist" >&5
6923 fi
6924 else
6925 echo "cannot find nm_test_var in $nlist" >&5
6926 fi
6927 else
6928 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6929 fi
6930 else
6931 echo "$progname: failed program was:" >&5
6932 cat conftest.$ac_ext >&5
6933 fi
6934 rm -rf conftest* conftst*
6935
6936 # Do not use the global_symbol_pipe unless it works.
6937 if test "$pipe_works" = yes; then
6938 break
6939 else
6940 lt_cv_sys_global_symbol_pipe=
6941 fi
6942 done
6943
6944 fi
6945
6946 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6947 lt_cv_sys_global_symbol_to_cdecl=
6948 fi
6949 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6951 $as_echo "failed" >&6; }
6952 else
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6954 $as_echo "ok" >&6; }
6955 fi
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979 # Check whether --enable-libtool-lock was given.
6980 if test "${enable_libtool_lock+set}" = set; then :
6981 enableval=$enable_libtool_lock;
6982 fi
6983
6984 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6985
6986 # Some flags need to be propagated to the compiler or linker for good
6987 # libtool support.
6988 case $host in
6989 ia64-*-hpux*)
6990 # Find out which ABI we are using.
6991 echo 'int i;' > conftest.$ac_ext
6992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6993 (eval $ac_compile) 2>&5
6994 ac_status=$?
6995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6996 test $ac_status = 0; }; then
6997 case `/usr/bin/file conftest.$ac_objext` in
6998 *ELF-32*)
6999 HPUX_IA64_MODE="32"
7000 ;;
7001 *ELF-64*)
7002 HPUX_IA64_MODE="64"
7003 ;;
7004 esac
7005 fi
7006 rm -rf conftest*
7007 ;;
7008 *-*-irix6*)
7009 # Find out which ABI we are using.
7010 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7011 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7012 (eval $ac_compile) 2>&5
7013 ac_status=$?
7014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7015 test $ac_status = 0; }; then
7016 if test "$lt_cv_prog_gnu_ld" = yes; then
7017 case `/usr/bin/file conftest.$ac_objext` in
7018 *32-bit*)
7019 LD="${LD-ld} -melf32bsmip"
7020 ;;
7021 *N32*)
7022 LD="${LD-ld} -melf32bmipn32"
7023 ;;
7024 *64-bit*)
7025 LD="${LD-ld} -melf64bmip"
7026 ;;
7027 esac
7028 else
7029 case `/usr/bin/file conftest.$ac_objext` in
7030 *32-bit*)
7031 LD="${LD-ld} -32"
7032 ;;
7033 *N32*)
7034 LD="${LD-ld} -n32"
7035 ;;
7036 *64-bit*)
7037 LD="${LD-ld} -64"
7038 ;;
7039 esac
7040 fi
7041 fi
7042 rm -rf conftest*
7043 ;;
7044
7045 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7046 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7047 # Find out which ABI we are using.
7048 echo 'int i;' > conftest.$ac_ext
7049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7050 (eval $ac_compile) 2>&5
7051 ac_status=$?
7052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7053 test $ac_status = 0; }; then
7054 case `/usr/bin/file conftest.o` in
7055 *32-bit*)
7056 case $host in
7057 x86_64-*kfreebsd*-gnu)
7058 LD="${LD-ld} -m elf_i386_fbsd"
7059 ;;
7060 x86_64-*linux*)
7061 case `/usr/bin/file conftest.o` in
7062 *x86-64*)
7063 LD="${LD-ld} -m elf32_x86_64"
7064 ;;
7065 *)
7066 LD="${LD-ld} -m elf_i386"
7067 ;;
7068 esac
7069 ;;
7070 powerpc64le-*linux*)
7071 LD="${LD-ld} -m elf32lppclinux"
7072 ;;
7073 powerpc64-*linux*)
7074 LD="${LD-ld} -m elf32ppclinux"
7075 ;;
7076 s390x-*linux*)
7077 LD="${LD-ld} -m elf_s390"
7078 ;;
7079 sparc64-*linux*)
7080 LD="${LD-ld} -m elf32_sparc"
7081 ;;
7082 esac
7083 ;;
7084 *64-bit*)
7085 case $host in
7086 x86_64-*kfreebsd*-gnu)
7087 LD="${LD-ld} -m elf_x86_64_fbsd"
7088 ;;
7089 x86_64-*linux*)
7090 LD="${LD-ld} -m elf_x86_64"
7091 ;;
7092 powerpcle-*linux*)
7093 LD="${LD-ld} -m elf64lppc"
7094 ;;
7095 powerpc-*linux*)
7096 LD="${LD-ld} -m elf64ppc"
7097 ;;
7098 s390*-*linux*|s390*-*tpf*)
7099 LD="${LD-ld} -m elf64_s390"
7100 ;;
7101 sparc*-*linux*)
7102 LD="${LD-ld} -m elf64_sparc"
7103 ;;
7104 esac
7105 ;;
7106 esac
7107 fi
7108 rm -rf conftest*
7109 ;;
7110
7111 *-*-sco3.2v5*)
7112 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7113 SAVE_CFLAGS="$CFLAGS"
7114 CFLAGS="$CFLAGS -belf"
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7116 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7117 if ${lt_cv_cc_needs_belf+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 ac_ext=c
7121 ac_cpp='$CPP $CPPFLAGS'
7122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7125
7126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7128
7129 int
7130 main ()
7131 {
7132
7133 ;
7134 return 0;
7135 }
7136 _ACEOF
7137 if ac_fn_c_try_link "$LINENO"; then :
7138 lt_cv_cc_needs_belf=yes
7139 else
7140 lt_cv_cc_needs_belf=no
7141 fi
7142 rm -f core conftest.err conftest.$ac_objext \
7143 conftest$ac_exeext conftest.$ac_ext
7144 ac_ext=c
7145 ac_cpp='$CPP $CPPFLAGS'
7146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7149
7150 fi
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7152 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7153 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7154 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7155 CFLAGS="$SAVE_CFLAGS"
7156 fi
7157 ;;
7158 sparc*-*solaris*)
7159 # Find out which ABI we are using.
7160 echo 'int i;' > conftest.$ac_ext
7161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7162 (eval $ac_compile) 2>&5
7163 ac_status=$?
7164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7165 test $ac_status = 0; }; then
7166 case `/usr/bin/file conftest.o` in
7167 *64-bit*)
7168 case $lt_cv_prog_gnu_ld in
7169 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7170 *)
7171 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7172 LD="${LD-ld} -64"
7173 fi
7174 ;;
7175 esac
7176 ;;
7177 esac
7178 fi
7179 rm -rf conftest*
7180 ;;
7181 esac
7182
7183 need_locks="$enable_libtool_lock"
7184
7185
7186 case $host_os in
7187 rhapsody* | darwin*)
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 if test -n "$DSYMUTIL"; then
7197 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7209 fi
7210 done
7211 done
7212 IFS=$as_save_IFS
7213
7214 fi
7215 fi
7216 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7217 if test -n "$DSYMUTIL"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7219 $as_echo "$DSYMUTIL" >&6; }
7220 else
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7223 fi
7224
7225
7226 fi
7227 if test -z "$ac_cv_prog_DSYMUTIL"; then
7228 ac_ct_DSYMUTIL=$DSYMUTIL
7229 # Extract the first word of "dsymutil", so it can be a program name with args.
7230 set dummy dsymutil; ac_word=$2
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232 $as_echo_n "checking for $ac_word... " >&6; }
7233 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7234 $as_echo_n "(cached) " >&6
7235 else
7236 if test -n "$ac_ct_DSYMUTIL"; then
7237 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7241 do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7249 fi
7250 done
7251 done
7252 IFS=$as_save_IFS
7253
7254 fi
7255 fi
7256 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7257 if test -n "$ac_ct_DSYMUTIL"; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7259 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7260 else
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262 $as_echo "no" >&6; }
7263 fi
7264
7265 if test "x$ac_ct_DSYMUTIL" = x; then
7266 DSYMUTIL=":"
7267 else
7268 case $cross_compiling:$ac_tool_warned in
7269 yes:)
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272 ac_tool_warned=yes ;;
7273 esac
7274 DSYMUTIL=$ac_ct_DSYMUTIL
7275 fi
7276 else
7277 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7278 fi
7279
7280 if test -n "$ac_tool_prefix"; then
7281 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7282 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if ${ac_cv_prog_NMEDIT+:} false; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288 if test -n "$NMEDIT"; then
7289 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7290 else
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7293 do
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7298 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 break 2
7301 fi
7302 done
7303 done
7304 IFS=$as_save_IFS
7305
7306 fi
7307 fi
7308 NMEDIT=$ac_cv_prog_NMEDIT
7309 if test -n "$NMEDIT"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7311 $as_echo "$NMEDIT" >&6; }
7312 else
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7315 fi
7316
7317
7318 fi
7319 if test -z "$ac_cv_prog_NMEDIT"; then
7320 ac_ct_NMEDIT=$NMEDIT
7321 # Extract the first word of "nmedit", so it can be a program name with args.
7322 set dummy nmedit; ac_word=$2
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 if test -n "$ac_ct_NMEDIT"; then
7329 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7341 fi
7342 done
7343 done
7344 IFS=$as_save_IFS
7345
7346 fi
7347 fi
7348 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7349 if test -n "$ac_ct_NMEDIT"; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7351 $as_echo "$ac_ct_NMEDIT" >&6; }
7352 else
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 $as_echo "no" >&6; }
7355 fi
7356
7357 if test "x$ac_ct_NMEDIT" = x; then
7358 NMEDIT=":"
7359 else
7360 case $cross_compiling:$ac_tool_warned in
7361 yes:)
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7364 ac_tool_warned=yes ;;
7365 esac
7366 NMEDIT=$ac_ct_NMEDIT
7367 fi
7368 else
7369 NMEDIT="$ac_cv_prog_NMEDIT"
7370 fi
7371
7372 if test -n "$ac_tool_prefix"; then
7373 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7374 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if ${ac_cv_prog_LIPO+:} false; then :
7378 $as_echo_n "(cached) " >&6
7379 else
7380 if test -n "$LIPO"; then
7381 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7382 else
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7385 do
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 break 2
7393 fi
7394 done
7395 done
7396 IFS=$as_save_IFS
7397
7398 fi
7399 fi
7400 LIPO=$ac_cv_prog_LIPO
7401 if test -n "$LIPO"; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7403 $as_echo "$LIPO" >&6; }
7404 else
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 $as_echo "no" >&6; }
7407 fi
7408
7409
7410 fi
7411 if test -z "$ac_cv_prog_LIPO"; then
7412 ac_ct_LIPO=$LIPO
7413 # Extract the first word of "lipo", so it can be a program name with args.
7414 set dummy lipo; ac_word=$2
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416 $as_echo_n "checking for $ac_word... " >&6; }
7417 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 if test -n "$ac_ct_LIPO"; then
7421 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7422 else
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430 ac_cv_prog_ac_ct_LIPO="lipo"
7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 break 2
7433 fi
7434 done
7435 done
7436 IFS=$as_save_IFS
7437
7438 fi
7439 fi
7440 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7441 if test -n "$ac_ct_LIPO"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7443 $as_echo "$ac_ct_LIPO" >&6; }
7444 else
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7447 fi
7448
7449 if test "x$ac_ct_LIPO" = x; then
7450 LIPO=":"
7451 else
7452 case $cross_compiling:$ac_tool_warned in
7453 yes:)
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7456 ac_tool_warned=yes ;;
7457 esac
7458 LIPO=$ac_ct_LIPO
7459 fi
7460 else
7461 LIPO="$ac_cv_prog_LIPO"
7462 fi
7463
7464 if test -n "$ac_tool_prefix"; then
7465 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7466 set dummy ${ac_tool_prefix}otool; ac_word=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 $as_echo_n "checking for $ac_word... " >&6; }
7469 if ${ac_cv_prog_OTOOL+:} false; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 if test -n "$OTOOL"; then
7473 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7485 fi
7486 done
7487 done
7488 IFS=$as_save_IFS
7489
7490 fi
7491 fi
7492 OTOOL=$ac_cv_prog_OTOOL
7493 if test -n "$OTOOL"; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7495 $as_echo "$OTOOL" >&6; }
7496 else
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7499 fi
7500
7501
7502 fi
7503 if test -z "$ac_cv_prog_OTOOL"; then
7504 ac_ct_OTOOL=$OTOOL
7505 # Extract the first word of "otool", so it can be a program name with args.
7506 set dummy otool; ac_word=$2
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508 $as_echo_n "checking for $ac_word... " >&6; }
7509 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7510 $as_echo_n "(cached) " >&6
7511 else
7512 if test -n "$ac_ct_OTOOL"; then
7513 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7522 ac_cv_prog_ac_ct_OTOOL="otool"
7523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7525 fi
7526 done
7527 done
7528 IFS=$as_save_IFS
7529
7530 fi
7531 fi
7532 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7533 if test -n "$ac_ct_OTOOL"; then
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7535 $as_echo "$ac_ct_OTOOL" >&6; }
7536 else
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7539 fi
7540
7541 if test "x$ac_ct_OTOOL" = x; then
7542 OTOOL=":"
7543 else
7544 case $cross_compiling:$ac_tool_warned in
7545 yes:)
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7548 ac_tool_warned=yes ;;
7549 esac
7550 OTOOL=$ac_ct_OTOOL
7551 fi
7552 else
7553 OTOOL="$ac_cv_prog_OTOOL"
7554 fi
7555
7556 if test -n "$ac_tool_prefix"; then
7557 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7558 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 $as_echo_n "checking for $ac_word... " >&6; }
7561 if ${ac_cv_prog_OTOOL64+:} false; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7564 if test -n "$OTOOL64"; then
7565 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7566 else
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 for as_dir in $PATH
7569 do
7570 IFS=$as_save_IFS
7571 test -z "$as_dir" && as_dir=.
7572 for ac_exec_ext in '' $ac_executable_extensions; do
7573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7574 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576 break 2
7577 fi
7578 done
7579 done
7580 IFS=$as_save_IFS
7581
7582 fi
7583 fi
7584 OTOOL64=$ac_cv_prog_OTOOL64
7585 if test -n "$OTOOL64"; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7587 $as_echo "$OTOOL64" >&6; }
7588 else
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7591 fi
7592
7593
7594 fi
7595 if test -z "$ac_cv_prog_OTOOL64"; then
7596 ac_ct_OTOOL64=$OTOOL64
7597 # Extract the first word of "otool64", so it can be a program name with args.
7598 set dummy otool64; ac_word=$2
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7600 $as_echo_n "checking for $ac_word... " >&6; }
7601 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7602 $as_echo_n "(cached) " >&6
7603 else
7604 if test -n "$ac_ct_OTOOL64"; then
7605 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7606 else
7607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 for as_dir in $PATH
7609 do
7610 IFS=$as_save_IFS
7611 test -z "$as_dir" && as_dir=.
7612 for ac_exec_ext in '' $ac_executable_extensions; do
7613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7614 ac_cv_prog_ac_ct_OTOOL64="otool64"
7615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7616 break 2
7617 fi
7618 done
7619 done
7620 IFS=$as_save_IFS
7621
7622 fi
7623 fi
7624 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7625 if test -n "$ac_ct_OTOOL64"; then
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7627 $as_echo "$ac_ct_OTOOL64" >&6; }
7628 else
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7630 $as_echo "no" >&6; }
7631 fi
7632
7633 if test "x$ac_ct_OTOOL64" = x; then
7634 OTOOL64=":"
7635 else
7636 case $cross_compiling:$ac_tool_warned in
7637 yes:)
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7640 ac_tool_warned=yes ;;
7641 esac
7642 OTOOL64=$ac_ct_OTOOL64
7643 fi
7644 else
7645 OTOOL64="$ac_cv_prog_OTOOL64"
7646 fi
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7675 $as_echo_n "checking for -single_module linker flag... " >&6; }
7676 if ${lt_cv_apple_cc_single_mod+:} false; then :
7677 $as_echo_n "(cached) " >&6
7678 else
7679 lt_cv_apple_cc_single_mod=no
7680 if test -z "${LT_MULTI_MODULE}"; then
7681 # By default we will add the -single_module flag. You can override
7682 # by either setting the environment variable LT_MULTI_MODULE
7683 # non-empty at configure time, or by adding -multi_module to the
7684 # link flags.
7685 rm -rf libconftest.dylib*
7686 echo "int foo(void){return 1;}" > conftest.c
7687 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7688 -dynamiclib -Wl,-single_module conftest.c" >&5
7689 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7690 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7691 _lt_result=$?
7692 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7693 lt_cv_apple_cc_single_mod=yes
7694 else
7695 cat conftest.err >&5
7696 fi
7697 rm -rf libconftest.dylib*
7698 rm -f conftest.*
7699 fi
7700 fi
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7702 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7704 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7705 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7706 $as_echo_n "(cached) " >&6
7707 else
7708 lt_cv_ld_exported_symbols_list=no
7709 save_LDFLAGS=$LDFLAGS
7710 echo "_main" > conftest.sym
7711 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7713 /* end confdefs.h. */
7714
7715 int
7716 main ()
7717 {
7718
7719 ;
7720 return 0;
7721 }
7722 _ACEOF
7723 if ac_fn_c_try_link "$LINENO"; then :
7724 lt_cv_ld_exported_symbols_list=yes
7725 else
7726 lt_cv_ld_exported_symbols_list=no
7727 fi
7728 rm -f core conftest.err conftest.$ac_objext \
7729 conftest$ac_exeext conftest.$ac_ext
7730 LDFLAGS="$save_LDFLAGS"
7731
7732 fi
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7734 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7736 $as_echo_n "checking for -force_load linker flag... " >&6; }
7737 if ${lt_cv_ld_force_load+:} false; then :
7738 $as_echo_n "(cached) " >&6
7739 else
7740 lt_cv_ld_force_load=no
7741 cat > conftest.c << _LT_EOF
7742 int forced_loaded() { return 2;}
7743 _LT_EOF
7744 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7745 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7746 echo "$AR cru libconftest.a conftest.o" >&5
7747 $AR cru libconftest.a conftest.o 2>&5
7748 cat > conftest.c << _LT_EOF
7749 int main() { return 0;}
7750 _LT_EOF
7751 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7752 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7753 _lt_result=$?
7754 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7755 lt_cv_ld_force_load=yes
7756 else
7757 cat conftest.err >&5
7758 fi
7759 rm -f conftest.err libconftest.a conftest conftest.c
7760 rm -rf conftest.dSYM
7761
7762 fi
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7764 $as_echo "$lt_cv_ld_force_load" >&6; }
7765 case $host_os in
7766 rhapsody* | darwin1.[012])
7767 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7768 darwin1.*)
7769 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7770 darwin*) # darwin 5.x on
7771 # if running on 10.5 or later, the deployment target defaults
7772 # to the OS version, if on x86, and 10.4, the deployment
7773 # target defaults to 10.4. Don't you love it?
7774 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7775 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7776 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7777 10.[012][,.]*)
7778 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7779 10.*)
7780 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7781 esac
7782 ;;
7783 esac
7784 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7785 _lt_dar_single_mod='$single_module'
7786 fi
7787 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7788 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7789 else
7790 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7791 fi
7792 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7793 _lt_dsymutil='~$DSYMUTIL $lib || :'
7794 else
7795 _lt_dsymutil=
7796 fi
7797 ;;
7798 esac
7799
7800 ac_ext=c
7801 ac_cpp='$CPP $CPPFLAGS'
7802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7806 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7807 # On Suns, sometimes $CPP names a directory.
7808 if test -n "$CPP" && test -d "$CPP"; then
7809 CPP=
7810 fi
7811 if test -z "$CPP"; then
7812 if ${ac_cv_prog_CPP+:} false; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 # Double quotes because CPP needs to be expanded
7816 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7817 do
7818 ac_preproc_ok=false
7819 for ac_c_preproc_warn_flag in '' yes
7820 do
7821 # Use a header file that comes with gcc, so configuring glibc
7822 # with a fresh cross-compiler works.
7823 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7824 # <limits.h> exists even on freestanding compilers.
7825 # On the NeXT, cc -E runs the code through the compiler's parser,
7826 # not just through cpp. "Syntax error" is here to catch this case.
7827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h. */
7829 #ifdef __STDC__
7830 # include <limits.h>
7831 #else
7832 # include <assert.h>
7833 #endif
7834 Syntax error
7835 _ACEOF
7836 if ac_fn_c_try_cpp "$LINENO"; then :
7837
7838 else
7839 # Broken: fails on valid input.
7840 continue
7841 fi
7842 rm -f conftest.err conftest.i conftest.$ac_ext
7843
7844 # OK, works on sane cases. Now check whether nonexistent headers
7845 # can be detected and how.
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7848 #include <ac_nonexistent.h>
7849 _ACEOF
7850 if ac_fn_c_try_cpp "$LINENO"; then :
7851 # Broken: success on invalid input.
7852 continue
7853 else
7854 # Passes both tests.
7855 ac_preproc_ok=:
7856 break
7857 fi
7858 rm -f conftest.err conftest.i conftest.$ac_ext
7859
7860 done
7861 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7862 rm -f conftest.i conftest.err conftest.$ac_ext
7863 if $ac_preproc_ok; then :
7864 break
7865 fi
7866
7867 done
7868 ac_cv_prog_CPP=$CPP
7869
7870 fi
7871 CPP=$ac_cv_prog_CPP
7872 else
7873 ac_cv_prog_CPP=$CPP
7874 fi
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7876 $as_echo "$CPP" >&6; }
7877 ac_preproc_ok=false
7878 for ac_c_preproc_warn_flag in '' yes
7879 do
7880 # Use a header file that comes with gcc, so configuring glibc
7881 # with a fresh cross-compiler works.
7882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7883 # <limits.h> exists even on freestanding compilers.
7884 # On the NeXT, cc -E runs the code through the compiler's parser,
7885 # not just through cpp. "Syntax error" is here to catch this case.
7886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7887 /* end confdefs.h. */
7888 #ifdef __STDC__
7889 # include <limits.h>
7890 #else
7891 # include <assert.h>
7892 #endif
7893 Syntax error
7894 _ACEOF
7895 if ac_fn_c_try_cpp "$LINENO"; then :
7896
7897 else
7898 # Broken: fails on valid input.
7899 continue
7900 fi
7901 rm -f conftest.err conftest.i conftest.$ac_ext
7902
7903 # OK, works on sane cases. Now check whether nonexistent headers
7904 # can be detected and how.
7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906 /* end confdefs.h. */
7907 #include <ac_nonexistent.h>
7908 _ACEOF
7909 if ac_fn_c_try_cpp "$LINENO"; then :
7910 # Broken: success on invalid input.
7911 continue
7912 else
7913 # Passes both tests.
7914 ac_preproc_ok=:
7915 break
7916 fi
7917 rm -f conftest.err conftest.i conftest.$ac_ext
7918
7919 done
7920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7921 rm -f conftest.i conftest.err conftest.$ac_ext
7922 if $ac_preproc_ok; then :
7923
7924 else
7925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7927 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7928 See \`config.log' for more details" "$LINENO" 5; }
7929 fi
7930
7931 ac_ext=c
7932 ac_cpp='$CPP $CPPFLAGS'
7933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936
7937
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7939 $as_echo_n "checking for ANSI C header files... " >&6; }
7940 if ${ac_cv_header_stdc+:} false; then :
7941 $as_echo_n "(cached) " >&6
7942 else
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7944 /* end confdefs.h. */
7945 #include <stdlib.h>
7946 #include <stdarg.h>
7947 #include <string.h>
7948 #include <float.h>
7949
7950 int
7951 main ()
7952 {
7953
7954 ;
7955 return 0;
7956 }
7957 _ACEOF
7958 if ac_fn_c_try_compile "$LINENO"; then :
7959 ac_cv_header_stdc=yes
7960 else
7961 ac_cv_header_stdc=no
7962 fi
7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7964
7965 if test $ac_cv_header_stdc = yes; then
7966 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7969 #include <string.h>
7970
7971 _ACEOF
7972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7973 $EGREP "memchr" >/dev/null 2>&1; then :
7974
7975 else
7976 ac_cv_header_stdc=no
7977 fi
7978 rm -f conftest*
7979
7980 fi
7981
7982 if test $ac_cv_header_stdc = yes; then
7983 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985 /* end confdefs.h. */
7986 #include <stdlib.h>
7987
7988 _ACEOF
7989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7990 $EGREP "free" >/dev/null 2>&1; then :
7991
7992 else
7993 ac_cv_header_stdc=no
7994 fi
7995 rm -f conftest*
7996
7997 fi
7998
7999 if test $ac_cv_header_stdc = yes; then
8000 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8001 if test "$cross_compiling" = yes; then :
8002 :
8003 else
8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006 #include <ctype.h>
8007 #include <stdlib.h>
8008 #if ((' ' & 0x0FF) == 0x020)
8009 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8010 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8011 #else
8012 # define ISLOWER(c) \
8013 (('a' <= (c) && (c) <= 'i') \
8014 || ('j' <= (c) && (c) <= 'r') \
8015 || ('s' <= (c) && (c) <= 'z'))
8016 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8017 #endif
8018
8019 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8020 int
8021 main ()
8022 {
8023 int i;
8024 for (i = 0; i < 256; i++)
8025 if (XOR (islower (i), ISLOWER (i))
8026 || toupper (i) != TOUPPER (i))
8027 return 2;
8028 return 0;
8029 }
8030 _ACEOF
8031 if ac_fn_c_try_run "$LINENO"; then :
8032
8033 else
8034 ac_cv_header_stdc=no
8035 fi
8036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8037 conftest.$ac_objext conftest.beam conftest.$ac_ext
8038 fi
8039
8040 fi
8041 fi
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8043 $as_echo "$ac_cv_header_stdc" >&6; }
8044 if test $ac_cv_header_stdc = yes; then
8045
8046 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8047
8048 fi
8049
8050 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8051 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8052 inttypes.h stdint.h unistd.h
8053 do :
8054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8055 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8056 "
8057 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8058 cat >>confdefs.h <<_ACEOF
8059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8060 _ACEOF
8061
8062 fi
8063
8064 done
8065
8066
8067 for ac_header in dlfcn.h
8068 do :
8069 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8070 "
8071 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8072 cat >>confdefs.h <<_ACEOF
8073 #define HAVE_DLFCN_H 1
8074 _ACEOF
8075
8076 fi
8077
8078 done
8079
8080
8081
8082
8083
8084
8085 # Set options
8086
8087
8088
8089 enable_dlopen=no
8090
8091
8092 enable_win32_dll=no
8093
8094
8095 # Check whether --enable-shared was given.
8096 if test "${enable_shared+set}" = set; then :
8097 enableval=$enable_shared; p=${PACKAGE-default}
8098 case $enableval in
8099 yes) enable_shared=yes ;;
8100 no) enable_shared=no ;;
8101 *)
8102 enable_shared=no
8103 # Look at the argument we got. We use all the common list separators.
8104 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8105 for pkg in $enableval; do
8106 IFS="$lt_save_ifs"
8107 if test "X$pkg" = "X$p"; then
8108 enable_shared=yes
8109 fi
8110 done
8111 IFS="$lt_save_ifs"
8112 ;;
8113 esac
8114 else
8115 enable_shared=yes
8116 fi
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126 # Check whether --enable-static was given.
8127 if test "${enable_static+set}" = set; then :
8128 enableval=$enable_static; p=${PACKAGE-default}
8129 case $enableval in
8130 yes) enable_static=yes ;;
8131 no) enable_static=no ;;
8132 *)
8133 enable_static=no
8134 # Look at the argument we got. We use all the common list separators.
8135 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8136 for pkg in $enableval; do
8137 IFS="$lt_save_ifs"
8138 if test "X$pkg" = "X$p"; then
8139 enable_static=yes
8140 fi
8141 done
8142 IFS="$lt_save_ifs"
8143 ;;
8144 esac
8145 else
8146 enable_static=yes
8147 fi
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158 # Check whether --with-pic was given.
8159 if test "${with_pic+set}" = set; then :
8160 withval=$with_pic; pic_mode="$withval"
8161 else
8162 pic_mode=default
8163 fi
8164
8165
8166 test -z "$pic_mode" && pic_mode=default
8167
8168
8169
8170
8171
8172
8173
8174 # Check whether --enable-fast-install was given.
8175 if test "${enable_fast_install+set}" = set; then :
8176 enableval=$enable_fast_install; p=${PACKAGE-default}
8177 case $enableval in
8178 yes) enable_fast_install=yes ;;
8179 no) enable_fast_install=no ;;
8180 *)
8181 enable_fast_install=no
8182 # Look at the argument we got. We use all the common list separators.
8183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8184 for pkg in $enableval; do
8185 IFS="$lt_save_ifs"
8186 if test "X$pkg" = "X$p"; then
8187 enable_fast_install=yes
8188 fi
8189 done
8190 IFS="$lt_save_ifs"
8191 ;;
8192 esac
8193 else
8194 enable_fast_install=yes
8195 fi
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207 # This can be used to rebuild libtool when needed
8208 LIBTOOL_DEPS="$ltmain"
8209
8210 # Always use our own libtool.
8211 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238 test -z "$LN_S" && LN_S="ln -s"
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253 if test -n "${ZSH_VERSION+set}" ; then
8254 setopt NO_GLOB_SUBST
8255 fi
8256
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8258 $as_echo_n "checking for objdir... " >&6; }
8259 if ${lt_cv_objdir+:} false; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262 rm -f .libs 2>/dev/null
8263 mkdir .libs 2>/dev/null
8264 if test -d .libs; then
8265 lt_cv_objdir=.libs
8266 else
8267 # MS-DOS does not allow filenames that begin with a dot.
8268 lt_cv_objdir=_libs
8269 fi
8270 rmdir .libs 2>/dev/null
8271 fi
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8273 $as_echo "$lt_cv_objdir" >&6; }
8274 objdir=$lt_cv_objdir
8275
8276
8277
8278
8279
8280 cat >>confdefs.h <<_ACEOF
8281 #define LT_OBJDIR "$lt_cv_objdir/"
8282 _ACEOF
8283
8284
8285
8286
8287 case $host_os in
8288 aix3*)
8289 # AIX sometimes has problems with the GCC collect2 program. For some
8290 # reason, if we set the COLLECT_NAMES environment variable, the problems
8291 # vanish in a puff of smoke.
8292 if test "X${COLLECT_NAMES+set}" != Xset; then
8293 COLLECT_NAMES=
8294 export COLLECT_NAMES
8295 fi
8296 ;;
8297 esac
8298
8299 # Global variables:
8300 ofile=libtool
8301 can_build_shared=yes
8302
8303 # All known linkers require a `.a' archive for static linking (except MSVC,
8304 # which needs '.lib').
8305 libext=a
8306
8307 with_gnu_ld="$lt_cv_prog_gnu_ld"
8308
8309 old_CC="$CC"
8310 old_CFLAGS="$CFLAGS"
8311
8312 # Set sane defaults for various variables
8313 test -z "$CC" && CC=cc
8314 test -z "$LTCC" && LTCC=$CC
8315 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8316 test -z "$LD" && LD=ld
8317 test -z "$ac_objext" && ac_objext=o
8318
8319 for cc_temp in $compiler""; do
8320 case $cc_temp in
8321 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8322 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8323 \-*) ;;
8324 *) break;;
8325 esac
8326 done
8327 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8328
8329
8330 # Only perform the check for file, if the check method requires it
8331 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8332 case $deplibs_check_method in
8333 file_magic*)
8334 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8336 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8337 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8338 $as_echo_n "(cached) " >&6
8339 else
8340 case $MAGIC_CMD in
8341 [\\/*] | ?:[\\/]*)
8342 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8343 ;;
8344 *)
8345 lt_save_MAGIC_CMD="$MAGIC_CMD"
8346 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8347 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8348 for ac_dir in $ac_dummy; do
8349 IFS="$lt_save_ifs"
8350 test -z "$ac_dir" && ac_dir=.
8351 if test -f $ac_dir/${ac_tool_prefix}file; then
8352 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8353 if test -n "$file_magic_test_file"; then
8354 case $deplibs_check_method in
8355 "file_magic "*)
8356 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8357 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8358 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8359 $EGREP "$file_magic_regex" > /dev/null; then
8360 :
8361 else
8362 cat <<_LT_EOF 1>&2
8363
8364 *** Warning: the command libtool uses to detect shared libraries,
8365 *** $file_magic_cmd, produces output that libtool cannot recognize.
8366 *** The result is that libtool may fail to recognize shared libraries
8367 *** as such. This will affect the creation of libtool libraries that
8368 *** depend on shared libraries, but programs linked with such libtool
8369 *** libraries will work regardless of this problem. Nevertheless, you
8370 *** may want to report the problem to your system manager and/or to
8371 *** bug-libtool@gnu.org
8372
8373 _LT_EOF
8374 fi ;;
8375 esac
8376 fi
8377 break
8378 fi
8379 done
8380 IFS="$lt_save_ifs"
8381 MAGIC_CMD="$lt_save_MAGIC_CMD"
8382 ;;
8383 esac
8384 fi
8385
8386 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8387 if test -n "$MAGIC_CMD"; then
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8389 $as_echo "$MAGIC_CMD" >&6; }
8390 else
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8392 $as_echo "no" >&6; }
8393 fi
8394
8395
8396
8397
8398
8399 if test -z "$lt_cv_path_MAGIC_CMD"; then
8400 if test -n "$ac_tool_prefix"; then
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8402 $as_echo_n "checking for file... " >&6; }
8403 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8404 $as_echo_n "(cached) " >&6
8405 else
8406 case $MAGIC_CMD in
8407 [\\/*] | ?:[\\/]*)
8408 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8409 ;;
8410 *)
8411 lt_save_MAGIC_CMD="$MAGIC_CMD"
8412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8413 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8414 for ac_dir in $ac_dummy; do
8415 IFS="$lt_save_ifs"
8416 test -z "$ac_dir" && ac_dir=.
8417 if test -f $ac_dir/file; then
8418 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8419 if test -n "$file_magic_test_file"; then
8420 case $deplibs_check_method in
8421 "file_magic "*)
8422 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8423 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8424 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8425 $EGREP "$file_magic_regex" > /dev/null; then
8426 :
8427 else
8428 cat <<_LT_EOF 1>&2
8429
8430 *** Warning: the command libtool uses to detect shared libraries,
8431 *** $file_magic_cmd, produces output that libtool cannot recognize.
8432 *** The result is that libtool may fail to recognize shared libraries
8433 *** as such. This will affect the creation of libtool libraries that
8434 *** depend on shared libraries, but programs linked with such libtool
8435 *** libraries will work regardless of this problem. Nevertheless, you
8436 *** may want to report the problem to your system manager and/or to
8437 *** bug-libtool@gnu.org
8438
8439 _LT_EOF
8440 fi ;;
8441 esac
8442 fi
8443 break
8444 fi
8445 done
8446 IFS="$lt_save_ifs"
8447 MAGIC_CMD="$lt_save_MAGIC_CMD"
8448 ;;
8449 esac
8450 fi
8451
8452 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8453 if test -n "$MAGIC_CMD"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8455 $as_echo "$MAGIC_CMD" >&6; }
8456 else
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458 $as_echo "no" >&6; }
8459 fi
8460
8461
8462 else
8463 MAGIC_CMD=:
8464 fi
8465 fi
8466
8467 fi
8468 ;;
8469 esac
8470
8471 # Use C for the default configuration in the libtool script
8472
8473 lt_save_CC="$CC"
8474 ac_ext=c
8475 ac_cpp='$CPP $CPPFLAGS'
8476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8479
8480
8481 # Source file extension for C test sources.
8482 ac_ext=c
8483
8484 # Object file extension for compiled C test sources.
8485 objext=o
8486 objext=$objext
8487
8488 # Code to be used in simple compile tests
8489 lt_simple_compile_test_code="int some_variable = 0;"
8490
8491 # Code to be used in simple link tests
8492 lt_simple_link_test_code='int main(){return(0);}'
8493
8494
8495
8496
8497
8498
8499
8500 # If no C compiler was specified, use CC.
8501 LTCC=${LTCC-"$CC"}
8502
8503 # If no C compiler flags were specified, use CFLAGS.
8504 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8505
8506 # Allow CC to be a program name with arguments.
8507 compiler=$CC
8508
8509 # Save the default compiler, since it gets overwritten when the other
8510 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8511 compiler_DEFAULT=$CC
8512
8513 # save warnings/boilerplate of simple test code
8514 ac_outfile=conftest.$ac_objext
8515 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8516 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8517 _lt_compiler_boilerplate=`cat conftest.err`
8518 $RM conftest*
8519
8520 ac_outfile=conftest.$ac_objext
8521 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8522 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8523 _lt_linker_boilerplate=`cat conftest.err`
8524 $RM -r conftest*
8525
8526
8527 ## CAVEAT EMPTOR:
8528 ## There is no encapsulation within the following macros, do not change
8529 ## the running order or otherwise move them around unless you know exactly
8530 ## what you are doing...
8531 if test -n "$compiler"; then
8532
8533 lt_prog_compiler_no_builtin_flag=
8534
8535 if test "$GCC" = yes; then
8536 case $cc_basename in
8537 nvcc*)
8538 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8539 *)
8540 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8541 esac
8542
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8544 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8545 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8546 $as_echo_n "(cached) " >&6
8547 else
8548 lt_cv_prog_compiler_rtti_exceptions=no
8549 ac_outfile=conftest.$ac_objext
8550 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8551 lt_compiler_flag="-fno-rtti -fno-exceptions"
8552 # Insert the option either (1) after the last *FLAGS variable, or
8553 # (2) before a word containing "conftest.", or (3) at the end.
8554 # Note that $ac_compile itself does not contain backslashes and begins
8555 # with a dollar sign (not a hyphen), so the echo should work correctly.
8556 # The option is referenced via a variable to avoid confusing sed.
8557 lt_compile=`echo "$ac_compile" | $SED \
8558 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8559 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8560 -e 's:$: $lt_compiler_flag:'`
8561 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8562 (eval "$lt_compile" 2>conftest.err)
8563 ac_status=$?
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 if (exit $ac_status) && test -s "$ac_outfile"; then
8567 # The compiler can only warn and ignore the option if not recognized
8568 # So say no if there are warnings other than the usual output.
8569 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8570 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8571 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8572 lt_cv_prog_compiler_rtti_exceptions=yes
8573 fi
8574 fi
8575 $RM conftest*
8576
8577 fi
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8579 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8580
8581 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8582 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8583 else
8584 :
8585 fi
8586
8587 fi
8588
8589
8590
8591
8592
8593
8594 lt_prog_compiler_wl=
8595 lt_prog_compiler_pic=
8596 lt_prog_compiler_static=
8597
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8599 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8600
8601 if test "$GCC" = yes; then
8602 lt_prog_compiler_wl='-Wl,'
8603 lt_prog_compiler_static='-static'
8604
8605 case $host_os in
8606 aix*)
8607 # All AIX code is PIC.
8608 if test "$host_cpu" = ia64; then
8609 # AIX 5 now supports IA64 processor
8610 lt_prog_compiler_static='-Bstatic'
8611 fi
8612 lt_prog_compiler_pic='-fPIC'
8613 ;;
8614
8615 amigaos*)
8616 case $host_cpu in
8617 powerpc)
8618 # see comment about AmigaOS4 .so support
8619 lt_prog_compiler_pic='-fPIC'
8620 ;;
8621 m68k)
8622 # FIXME: we need at least 68020 code to build shared libraries, but
8623 # adding the `-m68020' flag to GCC prevents building anything better,
8624 # like `-m68040'.
8625 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8626 ;;
8627 esac
8628 ;;
8629
8630 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8631 # PIC is the default for these OSes.
8632 ;;
8633
8634 mingw* | cygwin* | pw32* | os2* | cegcc*)
8635 # This hack is so that the source file can tell whether it is being
8636 # built for inclusion in a dll (and should export symbols for example).
8637 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8638 # (--disable-auto-import) libraries
8639 lt_prog_compiler_pic='-DDLL_EXPORT'
8640 ;;
8641
8642 darwin* | rhapsody*)
8643 # PIC is the default on this platform
8644 # Common symbols not allowed in MH_DYLIB files
8645 lt_prog_compiler_pic='-fno-common'
8646 ;;
8647
8648 haiku*)
8649 # PIC is the default for Haiku.
8650 # The "-static" flag exists, but is broken.
8651 lt_prog_compiler_static=
8652 ;;
8653
8654 hpux*)
8655 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8656 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8657 # sets the default TLS model and affects inlining.
8658 case $host_cpu in
8659 hppa*64*)
8660 # +Z the default
8661 ;;
8662 *)
8663 lt_prog_compiler_pic='-fPIC'
8664 ;;
8665 esac
8666 ;;
8667
8668 interix[3-9]*)
8669 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8670 # Instead, we relocate shared libraries at runtime.
8671 ;;
8672
8673 msdosdjgpp*)
8674 # Just because we use GCC doesn't mean we suddenly get shared libraries
8675 # on systems that don't support them.
8676 lt_prog_compiler_can_build_shared=no
8677 enable_shared=no
8678 ;;
8679
8680 *nto* | *qnx*)
8681 # QNX uses GNU C++, but need to define -shared option too, otherwise
8682 # it will coredump.
8683 lt_prog_compiler_pic='-fPIC -shared'
8684 ;;
8685
8686 sysv4*MP*)
8687 if test -d /usr/nec; then
8688 lt_prog_compiler_pic=-Kconform_pic
8689 fi
8690 ;;
8691
8692 *)
8693 lt_prog_compiler_pic='-fPIC'
8694 ;;
8695 esac
8696
8697 case $cc_basename in
8698 nvcc*) # Cuda Compiler Driver 2.2
8699 lt_prog_compiler_wl='-Xlinker '
8700 lt_prog_compiler_pic='-Xcompiler -fPIC'
8701 ;;
8702 esac
8703 else
8704 # PORTME Check for flag to pass linker flags through the system compiler.
8705 case $host_os in
8706 aix*)
8707 lt_prog_compiler_wl='-Wl,'
8708 if test "$host_cpu" = ia64; then
8709 # AIX 5 now supports IA64 processor
8710 lt_prog_compiler_static='-Bstatic'
8711 else
8712 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8713 fi
8714 ;;
8715
8716 mingw* | cygwin* | pw32* | os2* | cegcc*)
8717 # This hack is so that the source file can tell whether it is being
8718 # built for inclusion in a dll (and should export symbols for example).
8719 lt_prog_compiler_pic='-DDLL_EXPORT'
8720 ;;
8721
8722 hpux9* | hpux10* | hpux11*)
8723 lt_prog_compiler_wl='-Wl,'
8724 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8725 # not for PA HP-UX.
8726 case $host_cpu in
8727 hppa*64*|ia64*)
8728 # +Z the default
8729 ;;
8730 *)
8731 lt_prog_compiler_pic='+Z'
8732 ;;
8733 esac
8734 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8735 lt_prog_compiler_static='${wl}-a ${wl}archive'
8736 ;;
8737
8738 irix5* | irix6* | nonstopux*)
8739 lt_prog_compiler_wl='-Wl,'
8740 # PIC (with -KPIC) is the default.
8741 lt_prog_compiler_static='-non_shared'
8742 ;;
8743
8744 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8745 case $cc_basename in
8746 # old Intel for x86_64 which still supported -KPIC.
8747 ecc*)
8748 lt_prog_compiler_wl='-Wl,'
8749 lt_prog_compiler_pic='-KPIC'
8750 lt_prog_compiler_static='-static'
8751 ;;
8752 # icc used to be incompatible with GCC.
8753 # ICC 10 doesn't accept -KPIC any more.
8754 icc* | ifort*)
8755 lt_prog_compiler_wl='-Wl,'
8756 lt_prog_compiler_pic='-fPIC'
8757 lt_prog_compiler_static='-static'
8758 ;;
8759 # Lahey Fortran 8.1.
8760 lf95*)
8761 lt_prog_compiler_wl='-Wl,'
8762 lt_prog_compiler_pic='--shared'
8763 lt_prog_compiler_static='--static'
8764 ;;
8765 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8766 # Portland Group compilers (*not* the Pentium gcc compiler,
8767 # which looks to be a dead project)
8768 lt_prog_compiler_wl='-Wl,'
8769 lt_prog_compiler_pic='-fpic'
8770 lt_prog_compiler_static='-Bstatic'
8771 ;;
8772 ccc*)
8773 lt_prog_compiler_wl='-Wl,'
8774 # All Alpha code is PIC.
8775 lt_prog_compiler_static='-non_shared'
8776 ;;
8777 xl* | bgxl* | bgf* | mpixl*)
8778 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8779 lt_prog_compiler_wl='-Wl,'
8780 lt_prog_compiler_pic='-qpic'
8781 lt_prog_compiler_static='-qstaticlink'
8782 ;;
8783 *)
8784 case `$CC -V 2>&1 | sed 5q` in
8785 *Sun\ F* | *Sun*Fortran*)
8786 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8787 lt_prog_compiler_pic='-KPIC'
8788 lt_prog_compiler_static='-Bstatic'
8789 lt_prog_compiler_wl=''
8790 ;;
8791 *Sun\ C*)
8792 # Sun C 5.9
8793 lt_prog_compiler_pic='-KPIC'
8794 lt_prog_compiler_static='-Bstatic'
8795 lt_prog_compiler_wl='-Wl,'
8796 ;;
8797 esac
8798 ;;
8799 esac
8800 ;;
8801
8802 newsos6)
8803 lt_prog_compiler_pic='-KPIC'
8804 lt_prog_compiler_static='-Bstatic'
8805 ;;
8806
8807 *nto* | *qnx*)
8808 # QNX uses GNU C++, but need to define -shared option too, otherwise
8809 # it will coredump.
8810 lt_prog_compiler_pic='-fPIC -shared'
8811 ;;
8812
8813 osf3* | osf4* | osf5*)
8814 lt_prog_compiler_wl='-Wl,'
8815 # All OSF/1 code is PIC.
8816 lt_prog_compiler_static='-non_shared'
8817 ;;
8818
8819 rdos*)
8820 lt_prog_compiler_static='-non_shared'
8821 ;;
8822
8823 solaris*)
8824 lt_prog_compiler_pic='-KPIC'
8825 lt_prog_compiler_static='-Bstatic'
8826 case $cc_basename in
8827 f77* | f90* | f95*)
8828 lt_prog_compiler_wl='-Qoption ld ';;
8829 *)
8830 lt_prog_compiler_wl='-Wl,';;
8831 esac
8832 ;;
8833
8834 sunos4*)
8835 lt_prog_compiler_wl='-Qoption ld '
8836 lt_prog_compiler_pic='-PIC'
8837 lt_prog_compiler_static='-Bstatic'
8838 ;;
8839
8840 sysv4 | sysv4.2uw2* | sysv4.3*)
8841 lt_prog_compiler_wl='-Wl,'
8842 lt_prog_compiler_pic='-KPIC'
8843 lt_prog_compiler_static='-Bstatic'
8844 ;;
8845
8846 sysv4*MP*)
8847 if test -d /usr/nec ;then
8848 lt_prog_compiler_pic='-Kconform_pic'
8849 lt_prog_compiler_static='-Bstatic'
8850 fi
8851 ;;
8852
8853 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8854 lt_prog_compiler_wl='-Wl,'
8855 lt_prog_compiler_pic='-KPIC'
8856 lt_prog_compiler_static='-Bstatic'
8857 ;;
8858
8859 unicos*)
8860 lt_prog_compiler_wl='-Wl,'
8861 lt_prog_compiler_can_build_shared=no
8862 ;;
8863
8864 uts4*)
8865 lt_prog_compiler_pic='-pic'
8866 lt_prog_compiler_static='-Bstatic'
8867 ;;
8868
8869 *)
8870 lt_prog_compiler_can_build_shared=no
8871 ;;
8872 esac
8873 fi
8874
8875 case $host_os in
8876 # For platforms which do not support PIC, -DPIC is meaningless:
8877 *djgpp*)
8878 lt_prog_compiler_pic=
8879 ;;
8880 *)
8881 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8882 ;;
8883 esac
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8885 $as_echo "$lt_prog_compiler_pic" >&6; }
8886
8887
8888
8889
8890
8891
8892 #
8893 # Check to make sure the PIC flag actually works.
8894 #
8895 if test -n "$lt_prog_compiler_pic"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8897 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8898 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8899 $as_echo_n "(cached) " >&6
8900 else
8901 lt_cv_prog_compiler_pic_works=no
8902 ac_outfile=conftest.$ac_objext
8903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8904 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8905 # Insert the option either (1) after the last *FLAGS variable, or
8906 # (2) before a word containing "conftest.", or (3) at the end.
8907 # Note that $ac_compile itself does not contain backslashes and begins
8908 # with a dollar sign (not a hyphen), so the echo should work correctly.
8909 # The option is referenced via a variable to avoid confusing sed.
8910 lt_compile=`echo "$ac_compile" | $SED \
8911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8913 -e 's:$: $lt_compiler_flag:'`
8914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8915 (eval "$lt_compile" 2>conftest.err)
8916 ac_status=$?
8917 cat conftest.err >&5
8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919 if (exit $ac_status) && test -s "$ac_outfile"; then
8920 # The compiler can only warn and ignore the option if not recognized
8921 # So say no if there are warnings other than the usual output.
8922 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8925 lt_cv_prog_compiler_pic_works=yes
8926 fi
8927 fi
8928 $RM conftest*
8929
8930 fi
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8932 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8933
8934 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8935 case $lt_prog_compiler_pic in
8936 "" | " "*) ;;
8937 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8938 esac
8939 else
8940 lt_prog_compiler_pic=
8941 lt_prog_compiler_can_build_shared=no
8942 fi
8943
8944 fi
8945
8946
8947
8948
8949
8950
8951 #
8952 # Check to make sure the static flag actually works.
8953 #
8954 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8956 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8957 if ${lt_cv_prog_compiler_static_works+:} false; then :
8958 $as_echo_n "(cached) " >&6
8959 else
8960 lt_cv_prog_compiler_static_works=no
8961 save_LDFLAGS="$LDFLAGS"
8962 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8963 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8964 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8965 # The linker can only warn and ignore the option if not recognized
8966 # So say no if there are warnings
8967 if test -s conftest.err; then
8968 # Append any errors to the config.log.
8969 cat conftest.err 1>&5
8970 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8972 if diff conftest.exp conftest.er2 >/dev/null; then
8973 lt_cv_prog_compiler_static_works=yes
8974 fi
8975 else
8976 lt_cv_prog_compiler_static_works=yes
8977 fi
8978 fi
8979 $RM -r conftest*
8980 LDFLAGS="$save_LDFLAGS"
8981
8982 fi
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8984 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8985
8986 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8987 :
8988 else
8989 lt_prog_compiler_static=
8990 fi
8991
8992
8993
8994
8995
8996
8997
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8999 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9000 if ${lt_cv_prog_compiler_c_o+:} false; then :
9001 $as_echo_n "(cached) " >&6
9002 else
9003 lt_cv_prog_compiler_c_o=no
9004 $RM -r conftest 2>/dev/null
9005 mkdir conftest
9006 cd conftest
9007 mkdir out
9008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9009
9010 lt_compiler_flag="-o out/conftest2.$ac_objext"
9011 # Insert the option either (1) after the last *FLAGS variable, or
9012 # (2) before a word containing "conftest.", or (3) at the end.
9013 # Note that $ac_compile itself does not contain backslashes and begins
9014 # with a dollar sign (not a hyphen), so the echo should work correctly.
9015 lt_compile=`echo "$ac_compile" | $SED \
9016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9018 -e 's:$: $lt_compiler_flag:'`
9019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9020 (eval "$lt_compile" 2>out/conftest.err)
9021 ac_status=$?
9022 cat out/conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9025 then
9026 # The compiler can only warn and ignore the option if not recognized
9027 # So say no if there are warnings
9028 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9029 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9030 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9031 lt_cv_prog_compiler_c_o=yes
9032 fi
9033 fi
9034 chmod u+w . 2>&5
9035 $RM conftest*
9036 # SGI C++ compiler will create directory out/ii_files/ for
9037 # template instantiation
9038 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9039 $RM out/* && rmdir out
9040 cd ..
9041 $RM -r conftest
9042 $RM conftest*
9043
9044 fi
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9046 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9047
9048
9049
9050
9051
9052
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9054 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9055 if ${lt_cv_prog_compiler_c_o+:} false; then :
9056 $as_echo_n "(cached) " >&6
9057 else
9058 lt_cv_prog_compiler_c_o=no
9059 $RM -r conftest 2>/dev/null
9060 mkdir conftest
9061 cd conftest
9062 mkdir out
9063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9064
9065 lt_compiler_flag="-o out/conftest2.$ac_objext"
9066 # Insert the option either (1) after the last *FLAGS variable, or
9067 # (2) before a word containing "conftest.", or (3) at the end.
9068 # Note that $ac_compile itself does not contain backslashes and begins
9069 # with a dollar sign (not a hyphen), so the echo should work correctly.
9070 lt_compile=`echo "$ac_compile" | $SED \
9071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9073 -e 's:$: $lt_compiler_flag:'`
9074 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9075 (eval "$lt_compile" 2>out/conftest.err)
9076 ac_status=$?
9077 cat out/conftest.err >&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9080 then
9081 # The compiler can only warn and ignore the option if not recognized
9082 # So say no if there are warnings
9083 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9084 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9085 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9086 lt_cv_prog_compiler_c_o=yes
9087 fi
9088 fi
9089 chmod u+w . 2>&5
9090 $RM conftest*
9091 # SGI C++ compiler will create directory out/ii_files/ for
9092 # template instantiation
9093 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9094 $RM out/* && rmdir out
9095 cd ..
9096 $RM -r conftest
9097 $RM conftest*
9098
9099 fi
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9101 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9102
9103
9104
9105
9106 hard_links="nottested"
9107 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9108 # do not overwrite the value of need_locks provided by the user
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9110 $as_echo_n "checking if we can lock with hard links... " >&6; }
9111 hard_links=yes
9112 $RM conftest*
9113 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9114 touch conftest.a
9115 ln conftest.a conftest.b 2>&5 || hard_links=no
9116 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9118 $as_echo "$hard_links" >&6; }
9119 if test "$hard_links" = no; then
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9121 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9122 need_locks=warn
9123 fi
9124 else
9125 need_locks=no
9126 fi
9127
9128
9129
9130
9131
9132
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9134 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9135
9136 runpath_var=
9137 allow_undefined_flag=
9138 always_export_symbols=no
9139 archive_cmds=
9140 archive_expsym_cmds=
9141 compiler_needs_object=no
9142 enable_shared_with_static_runtimes=no
9143 export_dynamic_flag_spec=
9144 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9145 hardcode_automatic=no
9146 hardcode_direct=no
9147 hardcode_direct_absolute=no
9148 hardcode_libdir_flag_spec=
9149 hardcode_libdir_flag_spec_ld=
9150 hardcode_libdir_separator=
9151 hardcode_minus_L=no
9152 hardcode_shlibpath_var=unsupported
9153 inherit_rpath=no
9154 link_all_deplibs=unknown
9155 module_cmds=
9156 module_expsym_cmds=
9157 old_archive_from_new_cmds=
9158 old_archive_from_expsyms_cmds=
9159 thread_safe_flag_spec=
9160 whole_archive_flag_spec=
9161 # include_expsyms should be a list of space-separated symbols to be *always*
9162 # included in the symbol list
9163 include_expsyms=
9164 # exclude_expsyms can be an extended regexp of symbols to exclude
9165 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9166 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9167 # as well as any symbol that contains `d'.
9168 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9169 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9170 # platforms (ab)use it in PIC code, but their linkers get confused if
9171 # the symbol is explicitly referenced. Since portable code cannot
9172 # rely on this symbol name, it's probably fine to never include it in
9173 # preloaded symbol tables.
9174 # Exclude shared library initialization/finalization symbols.
9175 extract_expsyms_cmds=
9176
9177 case $host_os in
9178 cygwin* | mingw* | pw32* | cegcc*)
9179 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9180 # When not using gcc, we currently assume that we are using
9181 # Microsoft Visual C++.
9182 if test "$GCC" != yes; then
9183 with_gnu_ld=no
9184 fi
9185 ;;
9186 interix*)
9187 # we just hope/assume this is gcc and not c89 (= MSVC++)
9188 with_gnu_ld=yes
9189 ;;
9190 openbsd*)
9191 with_gnu_ld=no
9192 ;;
9193 esac
9194
9195 ld_shlibs=yes
9196
9197 # On some targets, GNU ld is compatible enough with the native linker
9198 # that we're better off using the native interface for both.
9199 lt_use_gnu_ld_interface=no
9200 if test "$with_gnu_ld" = yes; then
9201 case $host_os in
9202 aix*)
9203 # The AIX port of GNU ld has always aspired to compatibility
9204 # with the native linker. However, as the warning in the GNU ld
9205 # block says, versions before 2.19.5* couldn't really create working
9206 # shared libraries, regardless of the interface used.
9207 case `$LD -v 2>&1` in
9208 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9209 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9210 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9211 *)
9212 lt_use_gnu_ld_interface=yes
9213 ;;
9214 esac
9215 ;;
9216 *)
9217 lt_use_gnu_ld_interface=yes
9218 ;;
9219 esac
9220 fi
9221
9222 if test "$lt_use_gnu_ld_interface" = yes; then
9223 # If archive_cmds runs LD, not CC, wlarc should be empty
9224 wlarc='${wl}'
9225
9226 # Set some defaults for GNU ld with shared library support. These
9227 # are reset later if shared libraries are not supported. Putting them
9228 # here allows them to be overridden if necessary.
9229 runpath_var=LD_RUN_PATH
9230 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9231 export_dynamic_flag_spec='${wl}--export-dynamic'
9232 # ancient GNU ld didn't support --whole-archive et. al.
9233 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9234 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9235 else
9236 whole_archive_flag_spec=
9237 fi
9238 supports_anon_versioning=no
9239 case `$LD -v 2>&1` in
9240 *GNU\ gold*) supports_anon_versioning=yes ;;
9241 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9242 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9243 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9244 *\ 2.11.*) ;; # other 2.11 versions
9245 *) supports_anon_versioning=yes ;;
9246 esac
9247
9248 # See if GNU ld supports shared libraries.
9249 case $host_os in
9250 aix[3-9]*)
9251 # On AIX/PPC, the GNU linker is very broken
9252 if test "$host_cpu" != ia64; then
9253 ld_shlibs=no
9254 cat <<_LT_EOF 1>&2
9255
9256 *** Warning: the GNU linker, at least up to release 2.19, is reported
9257 *** to be unable to reliably create shared libraries on AIX.
9258 *** Therefore, libtool is disabling shared libraries support. If you
9259 *** really care for shared libraries, you may want to install binutils
9260 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9261 *** You will then need to restart the configuration process.
9262
9263 _LT_EOF
9264 fi
9265 ;;
9266
9267 amigaos*)
9268 case $host_cpu in
9269 powerpc)
9270 # see comment about AmigaOS4 .so support
9271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9272 archive_expsym_cmds=''
9273 ;;
9274 m68k)
9275 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)'
9276 hardcode_libdir_flag_spec='-L$libdir'
9277 hardcode_minus_L=yes
9278 ;;
9279 esac
9280 ;;
9281
9282 beos*)
9283 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9284 allow_undefined_flag=unsupported
9285 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9286 # support --undefined. This deserves some investigation. FIXME
9287 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9288 else
9289 ld_shlibs=no
9290 fi
9291 ;;
9292
9293 cygwin* | mingw* | pw32* | cegcc*)
9294 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9295 # as there is no search path for DLLs.
9296 hardcode_libdir_flag_spec='-L$libdir'
9297 export_dynamic_flag_spec='${wl}--export-all-symbols'
9298 allow_undefined_flag=unsupported
9299 always_export_symbols=no
9300 enable_shared_with_static_runtimes=yes
9301 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9302
9303 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9305 # If the export-symbols file already is a .def file (1st line
9306 # is EXPORTS), use it as is; otherwise, prepend...
9307 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9308 cp $export_symbols $output_objdir/$soname.def;
9309 else
9310 echo EXPORTS > $output_objdir/$soname.def;
9311 cat $export_symbols >> $output_objdir/$soname.def;
9312 fi~
9313 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9314 else
9315 ld_shlibs=no
9316 fi
9317 ;;
9318
9319 haiku*)
9320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9321 link_all_deplibs=yes
9322 ;;
9323
9324 interix[3-9]*)
9325 hardcode_direct=no
9326 hardcode_shlibpath_var=no
9327 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9328 export_dynamic_flag_spec='${wl}-E'
9329 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9330 # Instead, shared libraries are loaded at an image base (0x10000000 by
9331 # default) and relocated if they conflict, which is a slow very memory
9332 # consuming and fragmenting process. To avoid this, we pick a random,
9333 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9334 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9335 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9336 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'
9337 ;;
9338
9339 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9340 tmp_diet=no
9341 if test "$host_os" = linux-dietlibc; then
9342 case $cc_basename in
9343 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9344 esac
9345 fi
9346 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9347 && test "$tmp_diet" = no
9348 then
9349 tmp_addflag=' $pic_flag'
9350 tmp_sharedflag='-shared'
9351 case $cc_basename,$host_cpu in
9352 pgcc*) # Portland Group C compiler
9353 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'
9354 tmp_addflag=' $pic_flag'
9355 ;;
9356 pgf77* | pgf90* | pgf95* | pgfortran*)
9357 # Portland Group f77 and f90 compilers
9358 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'
9359 tmp_addflag=' $pic_flag -Mnomain' ;;
9360 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9361 tmp_addflag=' -i_dynamic' ;;
9362 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9363 tmp_addflag=' -i_dynamic -nofor_main' ;;
9364 ifc* | ifort*) # Intel Fortran compiler
9365 tmp_addflag=' -nofor_main' ;;
9366 lf95*) # Lahey Fortran 8.1
9367 whole_archive_flag_spec=
9368 tmp_sharedflag='--shared' ;;
9369 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9370 tmp_sharedflag='-qmkshrobj'
9371 tmp_addflag= ;;
9372 nvcc*) # Cuda Compiler Driver 2.2
9373 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'
9374 compiler_needs_object=yes
9375 ;;
9376 esac
9377 case `$CC -V 2>&1 | sed 5q` in
9378 *Sun\ C*) # Sun C 5.9
9379 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'
9380 compiler_needs_object=yes
9381 tmp_sharedflag='-G' ;;
9382 *Sun\ F*) # Sun Fortran 8.3
9383 tmp_sharedflag='-G' ;;
9384 esac
9385 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9386
9387 if test "x$supports_anon_versioning" = xyes; then
9388 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9389 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9390 echo "local: *; };" >> $output_objdir/$libname.ver~
9391 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9392 fi
9393
9394 case $cc_basename in
9395 xlf* | bgf* | bgxlf* | mpixlf*)
9396 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9397 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9398 hardcode_libdir_flag_spec=
9399 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9400 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9401 if test "x$supports_anon_versioning" = xyes; then
9402 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9403 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9404 echo "local: *; };" >> $output_objdir/$libname.ver~
9405 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9406 fi
9407 ;;
9408 esac
9409 else
9410 ld_shlibs=no
9411 fi
9412 ;;
9413
9414 netbsd*)
9415 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9416 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9417 wlarc=
9418 else
9419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9420 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9421 fi
9422 ;;
9423
9424 solaris*)
9425 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9426 ld_shlibs=no
9427 cat <<_LT_EOF 1>&2
9428
9429 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9430 *** create shared libraries on Solaris systems. Therefore, libtool
9431 *** is disabling shared libraries support. We urge you to upgrade GNU
9432 *** binutils to release 2.9.1 or newer. Another option is to modify
9433 *** your PATH or compiler configuration so that the native linker is
9434 *** used, and then restart.
9435
9436 _LT_EOF
9437 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9439 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9440 else
9441 ld_shlibs=no
9442 fi
9443 ;;
9444
9445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9446 case `$LD -v 2>&1` in
9447 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9448 ld_shlibs=no
9449 cat <<_LT_EOF 1>&2
9450
9451 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9452 *** reliably create shared libraries on SCO systems. Therefore, libtool
9453 *** is disabling shared libraries support. We urge you to upgrade GNU
9454 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9455 *** your PATH or compiler configuration so that the native linker is
9456 *** used, and then restart.
9457
9458 _LT_EOF
9459 ;;
9460 *)
9461 # For security reasons, it is highly recommended that you always
9462 # use absolute paths for naming shared libraries, and exclude the
9463 # DT_RUNPATH tag from executables and libraries. But doing so
9464 # requires that you compile everything twice, which is a pain.
9465 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9466 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9468 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9469 else
9470 ld_shlibs=no
9471 fi
9472 ;;
9473 esac
9474 ;;
9475
9476 sunos4*)
9477 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9478 wlarc=
9479 hardcode_direct=yes
9480 hardcode_shlibpath_var=no
9481 ;;
9482
9483 *)
9484 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9486 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9487 else
9488 ld_shlibs=no
9489 fi
9490 ;;
9491 esac
9492
9493 if test "$ld_shlibs" = no; then
9494 runpath_var=
9495 hardcode_libdir_flag_spec=
9496 export_dynamic_flag_spec=
9497 whole_archive_flag_spec=
9498 fi
9499 else
9500 # PORTME fill in a description of your system's linker (not GNU ld)
9501 case $host_os in
9502 aix3*)
9503 allow_undefined_flag=unsupported
9504 always_export_symbols=yes
9505 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'
9506 # Note: this linker hardcodes the directories in LIBPATH if there
9507 # are no directories specified by -L.
9508 hardcode_minus_L=yes
9509 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9510 # Neither direct hardcoding nor static linking is supported with a
9511 # broken collect2.
9512 hardcode_direct=unsupported
9513 fi
9514 ;;
9515
9516 aix[4-9]*)
9517 if test "$host_cpu" = ia64; then
9518 # On IA64, the linker does run time linking by default, so we don't
9519 # have to do anything special.
9520 aix_use_runtimelinking=no
9521 exp_sym_flag='-Bexport'
9522 no_entry_flag=""
9523 else
9524 # If we're using GNU nm, then we don't want the "-C" option.
9525 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9526 # Also, AIX nm treats weak defined symbols like other global
9527 # defined symbols, whereas GNU nm marks them as "W".
9528 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9529 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9530 else
9531 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9532 fi
9533 aix_use_runtimelinking=no
9534
9535 # Test if we are trying to use run time linking or normal
9536 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9537 # need to do runtime linking.
9538 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9539 for ld_flag in $LDFLAGS; do
9540 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9541 aix_use_runtimelinking=yes
9542 break
9543 fi
9544 done
9545 ;;
9546 esac
9547
9548 exp_sym_flag='-bexport'
9549 no_entry_flag='-bnoentry'
9550 fi
9551
9552 # When large executables or shared objects are built, AIX ld can
9553 # have problems creating the table of contents. If linking a library
9554 # or program results in "error TOC overflow" add -mminimal-toc to
9555 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9556 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9557
9558 archive_cmds=''
9559 hardcode_direct=yes
9560 hardcode_direct_absolute=yes
9561 hardcode_libdir_separator=':'
9562 link_all_deplibs=yes
9563 file_list_spec='${wl}-f,'
9564
9565 if test "$GCC" = yes; then
9566 case $host_os in aix4.[012]|aix4.[012].*)
9567 # We only want to do this on AIX 4.2 and lower, the check
9568 # below for broken collect2 doesn't work under 4.3+
9569 collect2name=`${CC} -print-prog-name=collect2`
9570 if test -f "$collect2name" &&
9571 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9572 then
9573 # We have reworked collect2
9574 :
9575 else
9576 # We have old collect2
9577 hardcode_direct=unsupported
9578 # It fails to find uninstalled libraries when the uninstalled
9579 # path is not listed in the libpath. Setting hardcode_minus_L
9580 # to unsupported forces relinking
9581 hardcode_minus_L=yes
9582 hardcode_libdir_flag_spec='-L$libdir'
9583 hardcode_libdir_separator=
9584 fi
9585 ;;
9586 esac
9587 shared_flag='-shared'
9588 if test "$aix_use_runtimelinking" = yes; then
9589 shared_flag="$shared_flag "'${wl}-G'
9590 fi
9591 else
9592 # not using gcc
9593 if test "$host_cpu" = ia64; then
9594 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9595 # chokes on -Wl,-G. The following line is correct:
9596 shared_flag='-G'
9597 else
9598 if test "$aix_use_runtimelinking" = yes; then
9599 shared_flag='${wl}-G'
9600 else
9601 shared_flag='${wl}-bM:SRE'
9602 fi
9603 fi
9604 fi
9605
9606 export_dynamic_flag_spec='${wl}-bexpall'
9607 # It seems that -bexpall does not export symbols beginning with
9608 # underscore (_), so it is better to generate a list of symbols to export.
9609 always_export_symbols=yes
9610 if test "$aix_use_runtimelinking" = yes; then
9611 # Warning - without using the other runtime loading flags (-brtl),
9612 # -berok will link without error, but may produce a broken library.
9613 allow_undefined_flag='-berok'
9614 # Determine the default libpath from the value encoded in an
9615 # empty executable.
9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9617 /* end confdefs.h. */
9618
9619 int
9620 main ()
9621 {
9622
9623 ;
9624 return 0;
9625 }
9626 _ACEOF
9627 if ac_fn_c_try_link "$LINENO"; then :
9628
9629 lt_aix_libpath_sed='
9630 /Import File Strings/,/^$/ {
9631 /^0/ {
9632 s/^0 *\(.*\)$/\1/
9633 p
9634 }
9635 }'
9636 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9637 # Check for a 64-bit object if we didn't find anything.
9638 if test -z "$aix_libpath"; then
9639 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9640 fi
9641 fi
9642 rm -f core conftest.err conftest.$ac_objext \
9643 conftest$ac_exeext conftest.$ac_ext
9644 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9645
9646 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9647 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9648 else
9649 if test "$host_cpu" = ia64; then
9650 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9651 allow_undefined_flag="-z nodefs"
9652 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"
9653 else
9654 # Determine the default libpath from the value encoded in an
9655 # empty executable.
9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9657 /* end confdefs.h. */
9658
9659 int
9660 main ()
9661 {
9662
9663 ;
9664 return 0;
9665 }
9666 _ACEOF
9667 if ac_fn_c_try_link "$LINENO"; then :
9668
9669 lt_aix_libpath_sed='
9670 /Import File Strings/,/^$/ {
9671 /^0/ {
9672 s/^0 *\(.*\)$/\1/
9673 p
9674 }
9675 }'
9676 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9677 # Check for a 64-bit object if we didn't find anything.
9678 if test -z "$aix_libpath"; then
9679 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9680 fi
9681 fi
9682 rm -f core conftest.err conftest.$ac_objext \
9683 conftest$ac_exeext conftest.$ac_ext
9684 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9685
9686 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9687 # Warning - without using the other run time loading flags,
9688 # -berok will link without error, but may produce a broken library.
9689 no_undefined_flag=' ${wl}-bernotok'
9690 allow_undefined_flag=' ${wl}-berok'
9691 if test "$with_gnu_ld" = yes; then
9692 # We only use this code for GNU lds that support --whole-archive.
9693 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9694 else
9695 # Exported symbols can be pulled into shared objects from archives
9696 whole_archive_flag_spec='$convenience'
9697 fi
9698 archive_cmds_need_lc=yes
9699 # This is similar to how AIX traditionally builds its shared libraries.
9700 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9701 fi
9702 fi
9703 ;;
9704
9705 amigaos*)
9706 case $host_cpu in
9707 powerpc)
9708 # see comment about AmigaOS4 .so support
9709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9710 archive_expsym_cmds=''
9711 ;;
9712 m68k)
9713 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)'
9714 hardcode_libdir_flag_spec='-L$libdir'
9715 hardcode_minus_L=yes
9716 ;;
9717 esac
9718 ;;
9719
9720 bsdi[45]*)
9721 export_dynamic_flag_spec=-rdynamic
9722 ;;
9723
9724 cygwin* | mingw* | pw32* | cegcc*)
9725 # When not using gcc, we currently assume that we are using
9726 # Microsoft Visual C++.
9727 # hardcode_libdir_flag_spec is actually meaningless, as there is
9728 # no search path for DLLs.
9729 hardcode_libdir_flag_spec=' '
9730 allow_undefined_flag=unsupported
9731 # Tell ltmain to make .lib files, not .a files.
9732 libext=lib
9733 # Tell ltmain to make .dll files, not .so files.
9734 shrext_cmds=".dll"
9735 # FIXME: Setting linknames here is a bad hack.
9736 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9737 # The linker will automatically build a .lib file if we build a DLL.
9738 old_archive_from_new_cmds='true'
9739 # FIXME: Should let the user specify the lib program.
9740 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9741 fix_srcfile_path='`cygpath -w "$srcfile"`'
9742 enable_shared_with_static_runtimes=yes
9743 ;;
9744
9745 darwin* | rhapsody*)
9746
9747
9748 archive_cmds_need_lc=no
9749 hardcode_direct=no
9750 hardcode_automatic=yes
9751 hardcode_shlibpath_var=unsupported
9752 if test "$lt_cv_ld_force_load" = "yes"; then
9753 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\"`'
9754 else
9755 whole_archive_flag_spec=''
9756 fi
9757 link_all_deplibs=yes
9758 allow_undefined_flag="$_lt_dar_allow_undefined"
9759 case $cc_basename in
9760 ifort*) _lt_dar_can_shared=yes ;;
9761 *) _lt_dar_can_shared=$GCC ;;
9762 esac
9763 if test "$_lt_dar_can_shared" = "yes"; then
9764 output_verbose_link_cmd=func_echo_all
9765 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9766 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9767 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}"
9768 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}"
9769
9770 else
9771 ld_shlibs=no
9772 fi
9773
9774 ;;
9775
9776 dgux*)
9777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9778 hardcode_libdir_flag_spec='-L$libdir'
9779 hardcode_shlibpath_var=no
9780 ;;
9781
9782 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9783 # support. Future versions do this automatically, but an explicit c++rt0.o
9784 # does not break anything, and helps significantly (at the cost of a little
9785 # extra space).
9786 freebsd2.2*)
9787 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9788 hardcode_libdir_flag_spec='-R$libdir'
9789 hardcode_direct=yes
9790 hardcode_shlibpath_var=no
9791 ;;
9792
9793 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9794 freebsd2.*)
9795 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9796 hardcode_direct=yes
9797 hardcode_minus_L=yes
9798 hardcode_shlibpath_var=no
9799 ;;
9800
9801 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9802 freebsd* | dragonfly*)
9803 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9804 hardcode_libdir_flag_spec='-R$libdir'
9805 hardcode_direct=yes
9806 hardcode_shlibpath_var=no
9807 ;;
9808
9809 hpux9*)
9810 if test "$GCC" = yes; then
9811 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9812 else
9813 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9814 fi
9815 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9816 hardcode_libdir_separator=:
9817 hardcode_direct=yes
9818
9819 # hardcode_minus_L: Not really in the search PATH,
9820 # but as the default location of the library.
9821 hardcode_minus_L=yes
9822 export_dynamic_flag_spec='${wl}-E'
9823 ;;
9824
9825 hpux10*)
9826 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9827 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9828 else
9829 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9830 fi
9831 if test "$with_gnu_ld" = no; then
9832 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9833 hardcode_libdir_flag_spec_ld='+b $libdir'
9834 hardcode_libdir_separator=:
9835 hardcode_direct=yes
9836 hardcode_direct_absolute=yes
9837 export_dynamic_flag_spec='${wl}-E'
9838 # hardcode_minus_L: Not really in the search PATH,
9839 # but as the default location of the library.
9840 hardcode_minus_L=yes
9841 fi
9842 ;;
9843
9844 hpux11*)
9845 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9846 case $host_cpu in
9847 hppa*64*)
9848 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9849 ;;
9850 ia64*)
9851 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9852 ;;
9853 *)
9854 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9855 ;;
9856 esac
9857 else
9858 case $host_cpu in
9859 hppa*64*)
9860 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9861 ;;
9862 ia64*)
9863 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9864 ;;
9865 *)
9866
9867 # Older versions of the 11.00 compiler do not understand -b yet
9868 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9870 $as_echo_n "checking if $CC understands -b... " >&6; }
9871 if ${lt_cv_prog_compiler__b+:} false; then :
9872 $as_echo_n "(cached) " >&6
9873 else
9874 lt_cv_prog_compiler__b=no
9875 save_LDFLAGS="$LDFLAGS"
9876 LDFLAGS="$LDFLAGS -b"
9877 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9878 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9879 # The linker can only warn and ignore the option if not recognized
9880 # So say no if there are warnings
9881 if test -s conftest.err; then
9882 # Append any errors to the config.log.
9883 cat conftest.err 1>&5
9884 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9885 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9886 if diff conftest.exp conftest.er2 >/dev/null; then
9887 lt_cv_prog_compiler__b=yes
9888 fi
9889 else
9890 lt_cv_prog_compiler__b=yes
9891 fi
9892 fi
9893 $RM -r conftest*
9894 LDFLAGS="$save_LDFLAGS"
9895
9896 fi
9897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9898 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9899
9900 if test x"$lt_cv_prog_compiler__b" = xyes; then
9901 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9902 else
9903 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9904 fi
9905
9906 ;;
9907 esac
9908 fi
9909 if test "$with_gnu_ld" = no; then
9910 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9911 hardcode_libdir_separator=:
9912
9913 case $host_cpu in
9914 hppa*64*|ia64*)
9915 hardcode_direct=no
9916 hardcode_shlibpath_var=no
9917 ;;
9918 *)
9919 hardcode_direct=yes
9920 hardcode_direct_absolute=yes
9921 export_dynamic_flag_spec='${wl}-E'
9922
9923 # hardcode_minus_L: Not really in the search PATH,
9924 # but as the default location of the library.
9925 hardcode_minus_L=yes
9926 ;;
9927 esac
9928 fi
9929 ;;
9930
9931 irix5* | irix6* | nonstopux*)
9932 if test "$GCC" = yes; then
9933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9934 # Try to use the -exported_symbol ld option, if it does not
9935 # work, assume that -exports_file does not work either and
9936 # implicitly export all symbols.
9937 save_LDFLAGS="$LDFLAGS"
9938 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9940 /* end confdefs.h. */
9941 int foo(void) {}
9942 _ACEOF
9943 if ac_fn_c_try_link "$LINENO"; then :
9944 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9945
9946 fi
9947 rm -f core conftest.err conftest.$ac_objext \
9948 conftest$ac_exeext conftest.$ac_ext
9949 LDFLAGS="$save_LDFLAGS"
9950 else
9951 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'
9952 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'
9953 fi
9954 archive_cmds_need_lc='no'
9955 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9956 hardcode_libdir_separator=:
9957 inherit_rpath=yes
9958 link_all_deplibs=yes
9959 ;;
9960
9961 netbsd*)
9962 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9964 else
9965 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9966 fi
9967 hardcode_libdir_flag_spec='-R$libdir'
9968 hardcode_direct=yes
9969 hardcode_shlibpath_var=no
9970 ;;
9971
9972 newsos6)
9973 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9974 hardcode_direct=yes
9975 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9976 hardcode_libdir_separator=:
9977 hardcode_shlibpath_var=no
9978 ;;
9979
9980 *nto* | *qnx*)
9981 ;;
9982
9983 openbsd*)
9984 if test -f /usr/libexec/ld.so; then
9985 hardcode_direct=yes
9986 hardcode_shlibpath_var=no
9987 hardcode_direct_absolute=yes
9988 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9989 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9990 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9991 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9992 export_dynamic_flag_spec='${wl}-E'
9993 else
9994 case $host_os in
9995 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9996 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9997 hardcode_libdir_flag_spec='-R$libdir'
9998 ;;
9999 *)
10000 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10001 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10002 ;;
10003 esac
10004 fi
10005 else
10006 ld_shlibs=no
10007 fi
10008 ;;
10009
10010 os2*)
10011 hardcode_libdir_flag_spec='-L$libdir'
10012 hardcode_minus_L=yes
10013 allow_undefined_flag=unsupported
10014 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10015 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10016 ;;
10017
10018 osf3*)
10019 if test "$GCC" = yes; then
10020 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10021 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'
10022 else
10023 allow_undefined_flag=' -expect_unresolved \*'
10024 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'
10025 fi
10026 archive_cmds_need_lc='no'
10027 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10028 hardcode_libdir_separator=:
10029 ;;
10030
10031 osf4* | osf5*) # as osf3* with the addition of -msym flag
10032 if test "$GCC" = yes; then
10033 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10034 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10035 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10036 else
10037 allow_undefined_flag=' -expect_unresolved \*'
10038 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'
10039 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~
10040 $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'
10041
10042 # Both c and cxx compiler support -rpath directly
10043 hardcode_libdir_flag_spec='-rpath $libdir'
10044 fi
10045 archive_cmds_need_lc='no'
10046 hardcode_libdir_separator=:
10047 ;;
10048
10049 solaris*)
10050 no_undefined_flag=' -z defs'
10051 if test "$GCC" = yes; then
10052 wlarc='${wl}'
10053 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10054 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10055 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10056 else
10057 case `$CC -V 2>&1` in
10058 *"Compilers 5.0"*)
10059 wlarc=''
10060 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10061 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10062 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10063 ;;
10064 *)
10065 wlarc='${wl}'
10066 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10067 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10068 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10069 ;;
10070 esac
10071 fi
10072 hardcode_libdir_flag_spec='-R$libdir'
10073 hardcode_shlibpath_var=no
10074 case $host_os in
10075 solaris2.[0-5] | solaris2.[0-5].*) ;;
10076 *)
10077 # The compiler driver will combine and reorder linker options,
10078 # but understands `-z linker_flag'. GCC discards it without `$wl',
10079 # but is careful enough not to reorder.
10080 # Supported since Solaris 2.6 (maybe 2.5.1?)
10081 if test "$GCC" = yes; then
10082 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10083 else
10084 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10085 fi
10086 ;;
10087 esac
10088 link_all_deplibs=yes
10089 ;;
10090
10091 sunos4*)
10092 if test "x$host_vendor" = xsequent; then
10093 # Use $CC to link under sequent, because it throws in some extra .o
10094 # files that make .init and .fini sections work.
10095 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10096 else
10097 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10098 fi
10099 hardcode_libdir_flag_spec='-L$libdir'
10100 hardcode_direct=yes
10101 hardcode_minus_L=yes
10102 hardcode_shlibpath_var=no
10103 ;;
10104
10105 sysv4)
10106 case $host_vendor in
10107 sni)
10108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10109 hardcode_direct=yes # is this really true???
10110 ;;
10111 siemens)
10112 ## LD is ld it makes a PLAMLIB
10113 ## CC just makes a GrossModule.
10114 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10115 reload_cmds='$CC -r -o $output$reload_objs'
10116 hardcode_direct=no
10117 ;;
10118 motorola)
10119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10120 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10121 ;;
10122 esac
10123 runpath_var='LD_RUN_PATH'
10124 hardcode_shlibpath_var=no
10125 ;;
10126
10127 sysv4.3*)
10128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10129 hardcode_shlibpath_var=no
10130 export_dynamic_flag_spec='-Bexport'
10131 ;;
10132
10133 sysv4*MP*)
10134 if test -d /usr/nec; then
10135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10136 hardcode_shlibpath_var=no
10137 runpath_var=LD_RUN_PATH
10138 hardcode_runpath_var=yes
10139 ld_shlibs=yes
10140 fi
10141 ;;
10142
10143 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10144 no_undefined_flag='${wl}-z,text'
10145 archive_cmds_need_lc=no
10146 hardcode_shlibpath_var=no
10147 runpath_var='LD_RUN_PATH'
10148
10149 if test "$GCC" = yes; then
10150 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10151 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10152 else
10153 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10154 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10155 fi
10156 ;;
10157
10158 sysv5* | sco3.2v5* | sco5v6*)
10159 # Note: We can NOT use -z defs as we might desire, because we do not
10160 # link with -lc, and that would cause any symbols used from libc to
10161 # always be unresolved, which means just about no library would
10162 # ever link correctly. If we're not using GNU ld we use -z text
10163 # though, which does catch some bad symbols but isn't as heavy-handed
10164 # as -z defs.
10165 no_undefined_flag='${wl}-z,text'
10166 allow_undefined_flag='${wl}-z,nodefs'
10167 archive_cmds_need_lc=no
10168 hardcode_shlibpath_var=no
10169 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10170 hardcode_libdir_separator=':'
10171 link_all_deplibs=yes
10172 export_dynamic_flag_spec='${wl}-Bexport'
10173 runpath_var='LD_RUN_PATH'
10174
10175 if test "$GCC" = yes; then
10176 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10177 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178 else
10179 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10180 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10181 fi
10182 ;;
10183
10184 uts4*)
10185 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10186 hardcode_libdir_flag_spec='-L$libdir'
10187 hardcode_shlibpath_var=no
10188 ;;
10189
10190 *)
10191 ld_shlibs=no
10192 ;;
10193 esac
10194
10195 if test x$host_vendor = xsni; then
10196 case $host in
10197 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10198 export_dynamic_flag_spec='${wl}-Blargedynsym'
10199 ;;
10200 esac
10201 fi
10202 fi
10203
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10205 $as_echo "$ld_shlibs" >&6; }
10206 test "$ld_shlibs" = no && can_build_shared=no
10207
10208 with_gnu_ld=$with_gnu_ld
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224 #
10225 # Do we need to explicitly link libc?
10226 #
10227 case "x$archive_cmds_need_lc" in
10228 x|xyes)
10229 # Assume -lc should be added
10230 archive_cmds_need_lc=yes
10231
10232 if test "$enable_shared" = yes && test "$GCC" = yes; then
10233 case $archive_cmds in
10234 *'~'*)
10235 # FIXME: we may have to deal with multi-command sequences.
10236 ;;
10237 '$CC '*)
10238 # Test whether the compiler implicitly links with -lc since on some
10239 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10240 # to ld, don't add -lc before -lgcc.
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10242 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10243 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10244 $as_echo_n "(cached) " >&6
10245 else
10246 $RM conftest*
10247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10248
10249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10250 (eval $ac_compile) 2>&5
10251 ac_status=$?
10252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10253 test $ac_status = 0; } 2>conftest.err; then
10254 soname=conftest
10255 lib=conftest
10256 libobjs=conftest.$ac_objext
10257 deplibs=
10258 wl=$lt_prog_compiler_wl
10259 pic_flag=$lt_prog_compiler_pic
10260 compiler_flags=-v
10261 linker_flags=-v
10262 verstring=
10263 output_objdir=.
10264 libname=conftest
10265 lt_save_allow_undefined_flag=$allow_undefined_flag
10266 allow_undefined_flag=
10267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10268 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10269 ac_status=$?
10270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10271 test $ac_status = 0; }
10272 then
10273 lt_cv_archive_cmds_need_lc=no
10274 else
10275 lt_cv_archive_cmds_need_lc=yes
10276 fi
10277 allow_undefined_flag=$lt_save_allow_undefined_flag
10278 else
10279 cat conftest.err 1>&5
10280 fi
10281 $RM conftest*
10282
10283 fi
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10285 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10286 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10287 ;;
10288 esac
10289 fi
10290 ;;
10291 esac
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10450 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10451
10452 if test "$GCC" = yes; then
10453 case $host_os in
10454 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10455 *) lt_awk_arg="/^libraries:/" ;;
10456 esac
10457 case $host_os in
10458 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10459 *) lt_sed_strip_eq="s,=/,/,g" ;;
10460 esac
10461 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10462 case $lt_search_path_spec in
10463 *\;*)
10464 # if the path contains ";" then we assume it to be the separator
10465 # otherwise default to the standard path separator (i.e. ":") - it is
10466 # assumed that no part of a normal pathname contains ";" but that should
10467 # okay in the real world where ";" in dirpaths is itself problematic.
10468 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10469 ;;
10470 *)
10471 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10472 ;;
10473 esac
10474 # Ok, now we have the path, separated by spaces, we can step through it
10475 # and add multilib dir if necessary.
10476 lt_tmp_lt_search_path_spec=
10477 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10478 for lt_sys_path in $lt_search_path_spec; do
10479 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10480 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10481 else
10482 test -d "$lt_sys_path" && \
10483 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10484 fi
10485 done
10486 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10487 BEGIN {RS=" "; FS="/|\n";} {
10488 lt_foo="";
10489 lt_count=0;
10490 for (lt_i = NF; lt_i > 0; lt_i--) {
10491 if ($lt_i != "" && $lt_i != ".") {
10492 if ($lt_i == "..") {
10493 lt_count++;
10494 } else {
10495 if (lt_count == 0) {
10496 lt_foo="/" $lt_i lt_foo;
10497 } else {
10498 lt_count--;
10499 }
10500 }
10501 }
10502 }
10503 if (lt_foo != "") { lt_freq[lt_foo]++; }
10504 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10505 }'`
10506 # AWK program above erroneously prepends '/' to C:/dos/paths
10507 # for these hosts.
10508 case $host_os in
10509 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10510 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10511 esac
10512 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10513 else
10514 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10515 fi
10516 library_names_spec=
10517 libname_spec='lib$name'
10518 soname_spec=
10519 shrext_cmds=".so"
10520 postinstall_cmds=
10521 postuninstall_cmds=
10522 finish_cmds=
10523 finish_eval=
10524 shlibpath_var=
10525 shlibpath_overrides_runpath=unknown
10526 version_type=none
10527 dynamic_linker="$host_os ld.so"
10528 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10529 need_lib_prefix=unknown
10530 hardcode_into_libs=no
10531
10532 # when you set need_version to no, make sure it does not cause -set_version
10533 # flags to be left without arguments
10534 need_version=unknown
10535
10536 case $host_os in
10537 aix3*)
10538 version_type=linux
10539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10540 shlibpath_var=LIBPATH
10541
10542 # AIX 3 has no versioning support, so we append a major version to the name.
10543 soname_spec='${libname}${release}${shared_ext}$major'
10544 ;;
10545
10546 aix[4-9]*)
10547 version_type=linux
10548 need_lib_prefix=no
10549 need_version=no
10550 hardcode_into_libs=yes
10551 if test "$host_cpu" = ia64; then
10552 # AIX 5 supports IA64
10553 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10554 shlibpath_var=LD_LIBRARY_PATH
10555 else
10556 # With GCC up to 2.95.x, collect2 would create an import file
10557 # for dependence libraries. The import file would start with
10558 # the line `#! .'. This would cause the generated library to
10559 # depend on `.', always an invalid library. This was fixed in
10560 # development snapshots of GCC prior to 3.0.
10561 case $host_os in
10562 aix4 | aix4.[01] | aix4.[01].*)
10563 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10564 echo ' yes '
10565 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10566 :
10567 else
10568 can_build_shared=no
10569 fi
10570 ;;
10571 esac
10572 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10573 # soname into executable. Probably we can add versioning support to
10574 # collect2, so additional links can be useful in future.
10575 if test "$aix_use_runtimelinking" = yes; then
10576 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10577 # instead of lib<name>.a to let people know that these are not
10578 # typical AIX shared libraries.
10579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10580 else
10581 # We preserve .a as extension for shared libraries through AIX4.2
10582 # and later when we are not doing run time linking.
10583 library_names_spec='${libname}${release}.a $libname.a'
10584 soname_spec='${libname}${release}${shared_ext}$major'
10585 fi
10586 shlibpath_var=LIBPATH
10587 fi
10588 ;;
10589
10590 amigaos*)
10591 case $host_cpu in
10592 powerpc)
10593 # Since July 2007 AmigaOS4 officially supports .so libraries.
10594 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10596 ;;
10597 m68k)
10598 library_names_spec='$libname.ixlibrary $libname.a'
10599 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10600 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10601 ;;
10602 esac
10603 ;;
10604
10605 beos*)
10606 library_names_spec='${libname}${shared_ext}'
10607 dynamic_linker="$host_os ld.so"
10608 shlibpath_var=LIBRARY_PATH
10609 ;;
10610
10611 bsdi[45]*)
10612 version_type=linux
10613 need_version=no
10614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10615 soname_spec='${libname}${release}${shared_ext}$major'
10616 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10617 shlibpath_var=LD_LIBRARY_PATH
10618 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10619 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10620 # the default ld.so.conf also contains /usr/contrib/lib and
10621 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10622 # libtool to hard-code these into programs
10623 ;;
10624
10625 cygwin* | mingw* | pw32* | cegcc*)
10626 version_type=windows
10627 shrext_cmds=".dll"
10628 need_version=no
10629 need_lib_prefix=no
10630
10631 case $GCC,$host_os in
10632 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10633 library_names_spec='$libname.dll.a'
10634 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10635 postinstall_cmds='base_file=`basename \${file}`~
10636 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10637 dldir=$destdir/`dirname \$dlpath`~
10638 test -d \$dldir || mkdir -p \$dldir~
10639 $install_prog $dir/$dlname \$dldir/$dlname~
10640 chmod a+x \$dldir/$dlname~
10641 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10642 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10643 fi'
10644 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10645 dlpath=$dir/\$dldll~
10646 $RM \$dlpath'
10647 shlibpath_overrides_runpath=yes
10648
10649 case $host_os in
10650 cygwin*)
10651 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10652 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10653
10654 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10655 ;;
10656 mingw* | cegcc*)
10657 # MinGW DLLs use traditional 'lib' prefix
10658 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10659 ;;
10660 pw32*)
10661 # pw32 DLLs use 'pw' prefix rather than 'lib'
10662 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10663 ;;
10664 esac
10665 ;;
10666
10667 *)
10668 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10669 ;;
10670 esac
10671 dynamic_linker='Win32 ld.exe'
10672 # FIXME: first we should search . and the directory the executable is in
10673 shlibpath_var=PATH
10674 ;;
10675
10676 darwin* | rhapsody*)
10677 dynamic_linker="$host_os dyld"
10678 version_type=darwin
10679 need_lib_prefix=no
10680 need_version=no
10681 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10682 soname_spec='${libname}${release}${major}$shared_ext'
10683 shlibpath_overrides_runpath=yes
10684 shlibpath_var=DYLD_LIBRARY_PATH
10685 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10686
10687 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10688 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10689 ;;
10690
10691 dgux*)
10692 version_type=linux
10693 need_lib_prefix=no
10694 need_version=no
10695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10696 soname_spec='${libname}${release}${shared_ext}$major'
10697 shlibpath_var=LD_LIBRARY_PATH
10698 ;;
10699
10700 freebsd* | dragonfly*)
10701 # DragonFly does not have aout. When/if they implement a new
10702 # versioning mechanism, adjust this.
10703 if test -x /usr/bin/objformat; then
10704 objformat=`/usr/bin/objformat`
10705 else
10706 case $host_os in
10707 freebsd[23].*) objformat=aout ;;
10708 *) objformat=elf ;;
10709 esac
10710 fi
10711 version_type=freebsd-$objformat
10712 case $version_type in
10713 freebsd-elf*)
10714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10715 need_version=no
10716 need_lib_prefix=no
10717 ;;
10718 freebsd-*)
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10720 need_version=yes
10721 ;;
10722 esac
10723 shlibpath_var=LD_LIBRARY_PATH
10724 case $host_os in
10725 freebsd2.*)
10726 shlibpath_overrides_runpath=yes
10727 ;;
10728 freebsd3.[01]* | freebsdelf3.[01]*)
10729 shlibpath_overrides_runpath=yes
10730 hardcode_into_libs=yes
10731 ;;
10732 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10733 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10734 shlibpath_overrides_runpath=no
10735 hardcode_into_libs=yes
10736 ;;
10737 *) # from 4.6 on, and DragonFly
10738 shlibpath_overrides_runpath=yes
10739 hardcode_into_libs=yes
10740 ;;
10741 esac
10742 ;;
10743
10744 gnu*)
10745 version_type=linux
10746 need_lib_prefix=no
10747 need_version=no
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 shlibpath_var=LD_LIBRARY_PATH
10751 hardcode_into_libs=yes
10752 ;;
10753
10754 haiku*)
10755 version_type=linux
10756 need_lib_prefix=no
10757 need_version=no
10758 dynamic_linker="$host_os runtime_loader"
10759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10760 soname_spec='${libname}${release}${shared_ext}$major'
10761 shlibpath_var=LIBRARY_PATH
10762 shlibpath_overrides_runpath=yes
10763 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10764 hardcode_into_libs=yes
10765 ;;
10766
10767 hpux9* | hpux10* | hpux11*)
10768 # Give a soname corresponding to the major version so that dld.sl refuses to
10769 # link against other versions.
10770 version_type=sunos
10771 need_lib_prefix=no
10772 need_version=no
10773 case $host_cpu in
10774 ia64*)
10775 shrext_cmds='.so'
10776 hardcode_into_libs=yes
10777 dynamic_linker="$host_os dld.so"
10778 shlibpath_var=LD_LIBRARY_PATH
10779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781 soname_spec='${libname}${release}${shared_ext}$major'
10782 if test "X$HPUX_IA64_MODE" = X32; then
10783 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10784 else
10785 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10786 fi
10787 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10788 ;;
10789 hppa*64*)
10790 shrext_cmds='.sl'
10791 hardcode_into_libs=yes
10792 dynamic_linker="$host_os dld.sl"
10793 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10794 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796 soname_spec='${libname}${release}${shared_ext}$major'
10797 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10798 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10799 ;;
10800 *)
10801 shrext_cmds='.sl'
10802 dynamic_linker="$host_os dld.sl"
10803 shlibpath_var=SHLIB_PATH
10804 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10806 soname_spec='${libname}${release}${shared_ext}$major'
10807 ;;
10808 esac
10809 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10810 postinstall_cmds='chmod 555 $lib'
10811 # or fails outright, so override atomically:
10812 install_override_mode=555
10813 ;;
10814
10815 interix[3-9]*)
10816 version_type=linux
10817 need_lib_prefix=no
10818 need_version=no
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10820 soname_spec='${libname}${release}${shared_ext}$major'
10821 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10822 shlibpath_var=LD_LIBRARY_PATH
10823 shlibpath_overrides_runpath=no
10824 hardcode_into_libs=yes
10825 ;;
10826
10827 irix5* | irix6* | nonstopux*)
10828 case $host_os in
10829 nonstopux*) version_type=nonstopux ;;
10830 *)
10831 if test "$lt_cv_prog_gnu_ld" = yes; then
10832 version_type=linux
10833 else
10834 version_type=irix
10835 fi ;;
10836 esac
10837 need_lib_prefix=no
10838 need_version=no
10839 soname_spec='${libname}${release}${shared_ext}$major'
10840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10841 case $host_os in
10842 irix5* | nonstopux*)
10843 libsuff= shlibsuff=
10844 ;;
10845 *)
10846 case $LD in # libtool.m4 will add one of these switches to LD
10847 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10848 libsuff= shlibsuff= libmagic=32-bit;;
10849 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10850 libsuff=32 shlibsuff=N32 libmagic=N32;;
10851 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10852 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10853 *) libsuff= shlibsuff= libmagic=never-match;;
10854 esac
10855 ;;
10856 esac
10857 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10858 shlibpath_overrides_runpath=no
10859 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10860 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10861 hardcode_into_libs=yes
10862 ;;
10863
10864 # No shared lib support for Linux oldld, aout, or coff.
10865 linux*oldld* | linux*aout* | linux*coff*)
10866 dynamic_linker=no
10867 ;;
10868
10869 # This must be Linux ELF.
10870
10871 # uclinux* changes (here and below) have been submitted to the libtool
10872 # project, but have not yet been accepted: they are GCC-local changes
10873 # for the time being. (See
10874 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10875 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10876 version_type=linux
10877 need_lib_prefix=no
10878 need_version=no
10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10880 soname_spec='${libname}${release}${shared_ext}$major'
10881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10882 shlibpath_var=LD_LIBRARY_PATH
10883 shlibpath_overrides_runpath=no
10884
10885 # Some binutils ld are patched to set DT_RUNPATH
10886 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10887 $as_echo_n "(cached) " >&6
10888 else
10889 lt_cv_shlibpath_overrides_runpath=no
10890 save_LDFLAGS=$LDFLAGS
10891 save_libdir=$libdir
10892 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10893 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h. */
10896
10897 int
10898 main ()
10899 {
10900
10901 ;
10902 return 0;
10903 }
10904 _ACEOF
10905 if ac_fn_c_try_link "$LINENO"; then :
10906 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10907 lt_cv_shlibpath_overrides_runpath=yes
10908 fi
10909 fi
10910 rm -f core conftest.err conftest.$ac_objext \
10911 conftest$ac_exeext conftest.$ac_ext
10912 LDFLAGS=$save_LDFLAGS
10913 libdir=$save_libdir
10914
10915 fi
10916
10917 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10918
10919 # This implies no fast_install, which is unacceptable.
10920 # Some rework will be needed to allow for fast_install
10921 # before this can be enabled.
10922 hardcode_into_libs=yes
10923
10924 # Append ld.so.conf contents to the search path
10925 if test -f /etc/ld.so.conf; then
10926 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' ' '`
10927 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10928 fi
10929
10930 # We used to test for /lib/ld.so.1 and disable shared libraries on
10931 # powerpc, because MkLinux only supported shared libraries with the
10932 # GNU dynamic linker. Since this was broken with cross compilers,
10933 # most powerpc-linux boxes support dynamic linking these days and
10934 # people can always --disable-shared, the test was removed, and we
10935 # assume the GNU/Linux dynamic linker is in use.
10936 dynamic_linker='GNU/Linux ld.so'
10937 ;;
10938
10939 netbsd*)
10940 version_type=sunos
10941 need_lib_prefix=no
10942 need_version=no
10943 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10945 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10946 dynamic_linker='NetBSD (a.out) ld.so'
10947 else
10948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10949 soname_spec='${libname}${release}${shared_ext}$major'
10950 dynamic_linker='NetBSD ld.elf_so'
10951 fi
10952 shlibpath_var=LD_LIBRARY_PATH
10953 shlibpath_overrides_runpath=yes
10954 hardcode_into_libs=yes
10955 ;;
10956
10957 newsos6)
10958 version_type=linux
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10960 shlibpath_var=LD_LIBRARY_PATH
10961 shlibpath_overrides_runpath=yes
10962 ;;
10963
10964 *nto* | *qnx*)
10965 version_type=qnx
10966 need_lib_prefix=no
10967 need_version=no
10968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969 soname_spec='${libname}${release}${shared_ext}$major'
10970 shlibpath_var=LD_LIBRARY_PATH
10971 shlibpath_overrides_runpath=no
10972 hardcode_into_libs=yes
10973 dynamic_linker='ldqnx.so'
10974 ;;
10975
10976 openbsd*)
10977 version_type=sunos
10978 sys_lib_dlsearch_path_spec="/usr/lib"
10979 need_lib_prefix=no
10980 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10981 case $host_os in
10982 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10983 *) need_version=no ;;
10984 esac
10985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10987 shlibpath_var=LD_LIBRARY_PATH
10988 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10989 case $host_os in
10990 openbsd2.[89] | openbsd2.[89].*)
10991 shlibpath_overrides_runpath=no
10992 ;;
10993 *)
10994 shlibpath_overrides_runpath=yes
10995 ;;
10996 esac
10997 else
10998 shlibpath_overrides_runpath=yes
10999 fi
11000 ;;
11001
11002 os2*)
11003 libname_spec='$name'
11004 shrext_cmds=".dll"
11005 need_lib_prefix=no
11006 library_names_spec='$libname${shared_ext} $libname.a'
11007 dynamic_linker='OS/2 ld.exe'
11008 shlibpath_var=LIBPATH
11009 ;;
11010
11011 osf3* | osf4* | osf5*)
11012 version_type=osf
11013 need_lib_prefix=no
11014 need_version=no
11015 soname_spec='${libname}${release}${shared_ext}$major'
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017 shlibpath_var=LD_LIBRARY_PATH
11018 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11019 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11020 ;;
11021
11022 rdos*)
11023 dynamic_linker=no
11024 ;;
11025
11026 solaris*)
11027 version_type=linux
11028 need_lib_prefix=no
11029 need_version=no
11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031 soname_spec='${libname}${release}${shared_ext}$major'
11032 shlibpath_var=LD_LIBRARY_PATH
11033 shlibpath_overrides_runpath=yes
11034 hardcode_into_libs=yes
11035 # ldd complains unless libraries are executable
11036 postinstall_cmds='chmod +x $lib'
11037 ;;
11038
11039 sunos4*)
11040 version_type=sunos
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11042 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11043 shlibpath_var=LD_LIBRARY_PATH
11044 shlibpath_overrides_runpath=yes
11045 if test "$with_gnu_ld" = yes; then
11046 need_lib_prefix=no
11047 fi
11048 need_version=yes
11049 ;;
11050
11051 sysv4 | sysv4.3*)
11052 version_type=linux
11053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11054 soname_spec='${libname}${release}${shared_ext}$major'
11055 shlibpath_var=LD_LIBRARY_PATH
11056 case $host_vendor in
11057 sni)
11058 shlibpath_overrides_runpath=no
11059 need_lib_prefix=no
11060 runpath_var=LD_RUN_PATH
11061 ;;
11062 siemens)
11063 need_lib_prefix=no
11064 ;;
11065 motorola)
11066 need_lib_prefix=no
11067 need_version=no
11068 shlibpath_overrides_runpath=no
11069 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11070 ;;
11071 esac
11072 ;;
11073
11074 sysv4*MP*)
11075 if test -d /usr/nec ;then
11076 version_type=linux
11077 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11078 soname_spec='$libname${shared_ext}.$major'
11079 shlibpath_var=LD_LIBRARY_PATH
11080 fi
11081 ;;
11082
11083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11084 version_type=freebsd-elf
11085 need_lib_prefix=no
11086 need_version=no
11087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11088 soname_spec='${libname}${release}${shared_ext}$major'
11089 shlibpath_var=LD_LIBRARY_PATH
11090 shlibpath_overrides_runpath=yes
11091 hardcode_into_libs=yes
11092 if test "$with_gnu_ld" = yes; then
11093 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11094 else
11095 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11096 case $host_os in
11097 sco3.2v5*)
11098 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11099 ;;
11100 esac
11101 fi
11102 sys_lib_dlsearch_path_spec='/usr/lib'
11103 ;;
11104
11105 tpf*)
11106 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11107 version_type=linux
11108 need_lib_prefix=no
11109 need_version=no
11110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11111 shlibpath_var=LD_LIBRARY_PATH
11112 shlibpath_overrides_runpath=no
11113 hardcode_into_libs=yes
11114 ;;
11115
11116 uts4*)
11117 version_type=linux
11118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119 soname_spec='${libname}${release}${shared_ext}$major'
11120 shlibpath_var=LD_LIBRARY_PATH
11121 ;;
11122
11123 *)
11124 dynamic_linker=no
11125 ;;
11126 esac
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11128 $as_echo "$dynamic_linker" >&6; }
11129 test "$dynamic_linker" = no && can_build_shared=no
11130
11131 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11132 if test "$GCC" = yes; then
11133 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11134 fi
11135
11136 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11137 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11138 fi
11139 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11140 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11141 fi
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11235 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11236 hardcode_action=
11237 if test -n "$hardcode_libdir_flag_spec" ||
11238 test -n "$runpath_var" ||
11239 test "X$hardcode_automatic" = "Xyes" ; then
11240
11241 # We can hardcode non-existent directories.
11242 if test "$hardcode_direct" != no &&
11243 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11244 # have to relink, otherwise we might link with an installed library
11245 # when we should be linking with a yet-to-be-installed one
11246 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11247 test "$hardcode_minus_L" != no; then
11248 # Linking always hardcodes the temporary library directory.
11249 hardcode_action=relink
11250 else
11251 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11252 hardcode_action=immediate
11253 fi
11254 else
11255 # We cannot hardcode anything, or else we can only hardcode existing
11256 # directories.
11257 hardcode_action=unsupported
11258 fi
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11260 $as_echo "$hardcode_action" >&6; }
11261
11262 if test "$hardcode_action" = relink ||
11263 test "$inherit_rpath" = yes; then
11264 # Fast installation is not supported
11265 enable_fast_install=no
11266 elif test "$shlibpath_overrides_runpath" = yes ||
11267 test "$enable_shared" = no; then
11268 # Fast installation is not necessary
11269 enable_fast_install=needless
11270 fi
11271
11272
11273
11274
11275
11276
11277 if test "x$enable_dlopen" != xyes; then
11278 enable_dlopen=unknown
11279 enable_dlopen_self=unknown
11280 enable_dlopen_self_static=unknown
11281 else
11282 lt_cv_dlopen=no
11283 lt_cv_dlopen_libs=
11284
11285 case $host_os in
11286 beos*)
11287 lt_cv_dlopen="load_add_on"
11288 lt_cv_dlopen_libs=
11289 lt_cv_dlopen_self=yes
11290 ;;
11291
11292 mingw* | pw32* | cegcc*)
11293 lt_cv_dlopen="LoadLibrary"
11294 lt_cv_dlopen_libs=
11295 ;;
11296
11297 cygwin*)
11298 lt_cv_dlopen="dlopen"
11299 lt_cv_dlopen_libs=
11300 ;;
11301
11302 darwin*)
11303 # if libdl is installed we need to link against it
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11305 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11306 if ${ac_cv_lib_dl_dlopen+:} false; then :
11307 $as_echo_n "(cached) " >&6
11308 else
11309 ac_check_lib_save_LIBS=$LIBS
11310 LIBS="-ldl $LIBS"
11311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11312 /* end confdefs.h. */
11313
11314 /* Override any GCC internal prototype to avoid an error.
11315 Use char because int might match the return type of a GCC
11316 builtin and then its argument prototype would still apply. */
11317 #ifdef __cplusplus
11318 extern "C"
11319 #endif
11320 char dlopen ();
11321 int
11322 main ()
11323 {
11324 return dlopen ();
11325 ;
11326 return 0;
11327 }
11328 _ACEOF
11329 if ac_fn_c_try_link "$LINENO"; then :
11330 ac_cv_lib_dl_dlopen=yes
11331 else
11332 ac_cv_lib_dl_dlopen=no
11333 fi
11334 rm -f core conftest.err conftest.$ac_objext \
11335 conftest$ac_exeext conftest.$ac_ext
11336 LIBS=$ac_check_lib_save_LIBS
11337 fi
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11339 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11340 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11341 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11342 else
11343
11344 lt_cv_dlopen="dyld"
11345 lt_cv_dlopen_libs=
11346 lt_cv_dlopen_self=yes
11347
11348 fi
11349
11350 ;;
11351
11352 *)
11353 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11354 if test "x$ac_cv_func_shl_load" = xyes; then :
11355 lt_cv_dlopen="shl_load"
11356 else
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11358 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11359 if ${ac_cv_lib_dld_shl_load+:} false; then :
11360 $as_echo_n "(cached) " >&6
11361 else
11362 ac_check_lib_save_LIBS=$LIBS
11363 LIBS="-ldld $LIBS"
11364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11365 /* end confdefs.h. */
11366
11367 /* Override any GCC internal prototype to avoid an error.
11368 Use char because int might match the return type of a GCC
11369 builtin and then its argument prototype would still apply. */
11370 #ifdef __cplusplus
11371 extern "C"
11372 #endif
11373 char shl_load ();
11374 int
11375 main ()
11376 {
11377 return shl_load ();
11378 ;
11379 return 0;
11380 }
11381 _ACEOF
11382 if ac_fn_c_try_link "$LINENO"; then :
11383 ac_cv_lib_dld_shl_load=yes
11384 else
11385 ac_cv_lib_dld_shl_load=no
11386 fi
11387 rm -f core conftest.err conftest.$ac_objext \
11388 conftest$ac_exeext conftest.$ac_ext
11389 LIBS=$ac_check_lib_save_LIBS
11390 fi
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11392 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11393 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11394 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11395 else
11396 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11397 if test "x$ac_cv_func_dlopen" = xyes; then :
11398 lt_cv_dlopen="dlopen"
11399 else
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11401 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11402 if ${ac_cv_lib_dl_dlopen+:} false; then :
11403 $as_echo_n "(cached) " >&6
11404 else
11405 ac_check_lib_save_LIBS=$LIBS
11406 LIBS="-ldl $LIBS"
11407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11408 /* end confdefs.h. */
11409
11410 /* Override any GCC internal prototype to avoid an error.
11411 Use char because int might match the return type of a GCC
11412 builtin and then its argument prototype would still apply. */
11413 #ifdef __cplusplus
11414 extern "C"
11415 #endif
11416 char dlopen ();
11417 int
11418 main ()
11419 {
11420 return dlopen ();
11421 ;
11422 return 0;
11423 }
11424 _ACEOF
11425 if ac_fn_c_try_link "$LINENO"; then :
11426 ac_cv_lib_dl_dlopen=yes
11427 else
11428 ac_cv_lib_dl_dlopen=no
11429 fi
11430 rm -f core conftest.err conftest.$ac_objext \
11431 conftest$ac_exeext conftest.$ac_ext
11432 LIBS=$ac_check_lib_save_LIBS
11433 fi
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11435 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11436 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11437 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11438 else
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11440 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11441 if ${ac_cv_lib_svld_dlopen+:} false; then :
11442 $as_echo_n "(cached) " >&6
11443 else
11444 ac_check_lib_save_LIBS=$LIBS
11445 LIBS="-lsvld $LIBS"
11446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11447 /* end confdefs.h. */
11448
11449 /* Override any GCC internal prototype to avoid an error.
11450 Use char because int might match the return type of a GCC
11451 builtin and then its argument prototype would still apply. */
11452 #ifdef __cplusplus
11453 extern "C"
11454 #endif
11455 char dlopen ();
11456 int
11457 main ()
11458 {
11459 return dlopen ();
11460 ;
11461 return 0;
11462 }
11463 _ACEOF
11464 if ac_fn_c_try_link "$LINENO"; then :
11465 ac_cv_lib_svld_dlopen=yes
11466 else
11467 ac_cv_lib_svld_dlopen=no
11468 fi
11469 rm -f core conftest.err conftest.$ac_objext \
11470 conftest$ac_exeext conftest.$ac_ext
11471 LIBS=$ac_check_lib_save_LIBS
11472 fi
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11474 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11475 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11477 else
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11479 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11480 if ${ac_cv_lib_dld_dld_link+:} false; then :
11481 $as_echo_n "(cached) " >&6
11482 else
11483 ac_check_lib_save_LIBS=$LIBS
11484 LIBS="-ldld $LIBS"
11485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11486 /* end confdefs.h. */
11487
11488 /* Override any GCC internal prototype to avoid an error.
11489 Use char because int might match the return type of a GCC
11490 builtin and then its argument prototype would still apply. */
11491 #ifdef __cplusplus
11492 extern "C"
11493 #endif
11494 char dld_link ();
11495 int
11496 main ()
11497 {
11498 return dld_link ();
11499 ;
11500 return 0;
11501 }
11502 _ACEOF
11503 if ac_fn_c_try_link "$LINENO"; then :
11504 ac_cv_lib_dld_dld_link=yes
11505 else
11506 ac_cv_lib_dld_dld_link=no
11507 fi
11508 rm -f core conftest.err conftest.$ac_objext \
11509 conftest$ac_exeext conftest.$ac_ext
11510 LIBS=$ac_check_lib_save_LIBS
11511 fi
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11513 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11514 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11515 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11516 fi
11517
11518
11519 fi
11520
11521
11522 fi
11523
11524
11525 fi
11526
11527
11528 fi
11529
11530
11531 fi
11532
11533 ;;
11534 esac
11535
11536 if test "x$lt_cv_dlopen" != xno; then
11537 enable_dlopen=yes
11538 else
11539 enable_dlopen=no
11540 fi
11541
11542 case $lt_cv_dlopen in
11543 dlopen)
11544 save_CPPFLAGS="$CPPFLAGS"
11545 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11546
11547 save_LDFLAGS="$LDFLAGS"
11548 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11549
11550 save_LIBS="$LIBS"
11551 LIBS="$lt_cv_dlopen_libs $LIBS"
11552
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11554 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11555 if ${lt_cv_dlopen_self+:} false; then :
11556 $as_echo_n "(cached) " >&6
11557 else
11558 if test "$cross_compiling" = yes; then :
11559 lt_cv_dlopen_self=cross
11560 else
11561 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11562 lt_status=$lt_dlunknown
11563 cat > conftest.$ac_ext <<_LT_EOF
11564 #line 11564 "configure"
11565 #include "confdefs.h"
11566
11567 #if HAVE_DLFCN_H
11568 #include <dlfcn.h>
11569 #endif
11570
11571 #include <stdio.h>
11572
11573 #ifdef RTLD_GLOBAL
11574 # define LT_DLGLOBAL RTLD_GLOBAL
11575 #else
11576 # ifdef DL_GLOBAL
11577 # define LT_DLGLOBAL DL_GLOBAL
11578 # else
11579 # define LT_DLGLOBAL 0
11580 # endif
11581 #endif
11582
11583 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11584 find out it does not work in some platform. */
11585 #ifndef LT_DLLAZY_OR_NOW
11586 # ifdef RTLD_LAZY
11587 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11588 # else
11589 # ifdef DL_LAZY
11590 # define LT_DLLAZY_OR_NOW DL_LAZY
11591 # else
11592 # ifdef RTLD_NOW
11593 # define LT_DLLAZY_OR_NOW RTLD_NOW
11594 # else
11595 # ifdef DL_NOW
11596 # define LT_DLLAZY_OR_NOW DL_NOW
11597 # else
11598 # define LT_DLLAZY_OR_NOW 0
11599 # endif
11600 # endif
11601 # endif
11602 # endif
11603 #endif
11604
11605 /* When -fvisbility=hidden is used, assume the code has been annotated
11606 correspondingly for the symbols needed. */
11607 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11608 void fnord () __attribute__((visibility("default")));
11609 #endif
11610
11611 void fnord () { int i=42; }
11612 int main ()
11613 {
11614 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11615 int status = $lt_dlunknown;
11616
11617 if (self)
11618 {
11619 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11620 else
11621 {
11622 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11623 else puts (dlerror ());
11624 }
11625 /* dlclose (self); */
11626 }
11627 else
11628 puts (dlerror ());
11629
11630 return status;
11631 }
11632 _LT_EOF
11633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11634 (eval $ac_link) 2>&5
11635 ac_status=$?
11636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11637 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11638 (./conftest; exit; ) >&5 2>/dev/null
11639 lt_status=$?
11640 case x$lt_status in
11641 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11642 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11643 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11644 esac
11645 else :
11646 # compilation failed
11647 lt_cv_dlopen_self=no
11648 fi
11649 fi
11650 rm -fr conftest*
11651
11652
11653 fi
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11655 $as_echo "$lt_cv_dlopen_self" >&6; }
11656
11657 if test "x$lt_cv_dlopen_self" = xyes; then
11658 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11660 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11661 if ${lt_cv_dlopen_self_static+:} false; then :
11662 $as_echo_n "(cached) " >&6
11663 else
11664 if test "$cross_compiling" = yes; then :
11665 lt_cv_dlopen_self_static=cross
11666 else
11667 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11668 lt_status=$lt_dlunknown
11669 cat > conftest.$ac_ext <<_LT_EOF
11670 #line 11670 "configure"
11671 #include "confdefs.h"
11672
11673 #if HAVE_DLFCN_H
11674 #include <dlfcn.h>
11675 #endif
11676
11677 #include <stdio.h>
11678
11679 #ifdef RTLD_GLOBAL
11680 # define LT_DLGLOBAL RTLD_GLOBAL
11681 #else
11682 # ifdef DL_GLOBAL
11683 # define LT_DLGLOBAL DL_GLOBAL
11684 # else
11685 # define LT_DLGLOBAL 0
11686 # endif
11687 #endif
11688
11689 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11690 find out it does not work in some platform. */
11691 #ifndef LT_DLLAZY_OR_NOW
11692 # ifdef RTLD_LAZY
11693 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11694 # else
11695 # ifdef DL_LAZY
11696 # define LT_DLLAZY_OR_NOW DL_LAZY
11697 # else
11698 # ifdef RTLD_NOW
11699 # define LT_DLLAZY_OR_NOW RTLD_NOW
11700 # else
11701 # ifdef DL_NOW
11702 # define LT_DLLAZY_OR_NOW DL_NOW
11703 # else
11704 # define LT_DLLAZY_OR_NOW 0
11705 # endif
11706 # endif
11707 # endif
11708 # endif
11709 #endif
11710
11711 /* When -fvisbility=hidden is used, assume the code has been annotated
11712 correspondingly for the symbols needed. */
11713 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11714 void fnord () __attribute__((visibility("default")));
11715 #endif
11716
11717 void fnord () { int i=42; }
11718 int main ()
11719 {
11720 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11721 int status = $lt_dlunknown;
11722
11723 if (self)
11724 {
11725 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11726 else
11727 {
11728 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11729 else puts (dlerror ());
11730 }
11731 /* dlclose (self); */
11732 }
11733 else
11734 puts (dlerror ());
11735
11736 return status;
11737 }
11738 _LT_EOF
11739 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11740 (eval $ac_link) 2>&5
11741 ac_status=$?
11742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11743 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11744 (./conftest; exit; ) >&5 2>/dev/null
11745 lt_status=$?
11746 case x$lt_status in
11747 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11748 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11749 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11750 esac
11751 else :
11752 # compilation failed
11753 lt_cv_dlopen_self_static=no
11754 fi
11755 fi
11756 rm -fr conftest*
11757
11758
11759 fi
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11761 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11762 fi
11763
11764 CPPFLAGS="$save_CPPFLAGS"
11765 LDFLAGS="$save_LDFLAGS"
11766 LIBS="$save_LIBS"
11767 ;;
11768 esac
11769
11770 case $lt_cv_dlopen_self in
11771 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11772 *) enable_dlopen_self=unknown ;;
11773 esac
11774
11775 case $lt_cv_dlopen_self_static in
11776 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11777 *) enable_dlopen_self_static=unknown ;;
11778 esac
11779 fi
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797 striplib=
11798 old_striplib=
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11800 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11801 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11802 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11803 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11805 $as_echo "yes" >&6; }
11806 else
11807 # FIXME - insert some real tests, host_os isn't really good enough
11808 case $host_os in
11809 darwin*)
11810 if test -n "$STRIP" ; then
11811 striplib="$STRIP -x"
11812 old_striplib="$STRIP -S"
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11814 $as_echo "yes" >&6; }
11815 else
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11817 $as_echo "no" >&6; }
11818 fi
11819 ;;
11820 *)
11821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11822 $as_echo "no" >&6; }
11823 ;;
11824 esac
11825 fi
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838 # Report which library types will actually be built
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11840 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11842 $as_echo "$can_build_shared" >&6; }
11843
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11845 $as_echo_n "checking whether to build shared libraries... " >&6; }
11846 test "$can_build_shared" = "no" && enable_shared=no
11847
11848 # On AIX, shared libraries and static libraries use the same namespace, and
11849 # are all built from PIC.
11850 case $host_os in
11851 aix3*)
11852 test "$enable_shared" = yes && enable_static=no
11853 if test -n "$RANLIB"; then
11854 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11855 postinstall_cmds='$RANLIB $lib'
11856 fi
11857 ;;
11858
11859 aix[4-9]*)
11860 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11861 test "$enable_shared" = yes && enable_static=no
11862 fi
11863 ;;
11864 esac
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11866 $as_echo "$enable_shared" >&6; }
11867
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11869 $as_echo_n "checking whether to build static libraries... " >&6; }
11870 # Make sure either enable_shared or enable_static is yes.
11871 test "$enable_shared" = yes || enable_static=yes
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11873 $as_echo "$enable_static" >&6; }
11874
11875
11876
11877
11878 fi
11879 ac_ext=c
11880 ac_cpp='$CPP $CPPFLAGS'
11881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11884
11885 CC="$lt_save_CC"
11886
11887 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11888 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11889 (test "X$CXX" != "Xg++"))) ; then
11890 ac_ext=cpp
11891 ac_cpp='$CXXCPP $CPPFLAGS'
11892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11896 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11897 if test -z "$CXXCPP"; then
11898 if ${ac_cv_prog_CXXCPP+:} false; then :
11899 $as_echo_n "(cached) " >&6
11900 else
11901 # Double quotes because CXXCPP needs to be expanded
11902 for CXXCPP in "$CXX -E" "/lib/cpp"
11903 do
11904 ac_preproc_ok=false
11905 for ac_cxx_preproc_warn_flag in '' yes
11906 do
11907 # Use a header file that comes with gcc, so configuring glibc
11908 # with a fresh cross-compiler works.
11909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11910 # <limits.h> exists even on freestanding compilers.
11911 # On the NeXT, cc -E runs the code through the compiler's parser,
11912 # not just through cpp. "Syntax error" is here to catch this case.
11913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11914 /* end confdefs.h. */
11915 #ifdef __STDC__
11916 # include <limits.h>
11917 #else
11918 # include <assert.h>
11919 #endif
11920 Syntax error
11921 _ACEOF
11922 if ac_fn_cxx_try_cpp "$LINENO"; then :
11923
11924 else
11925 # Broken: fails on valid input.
11926 continue
11927 fi
11928 rm -f conftest.err conftest.i conftest.$ac_ext
11929
11930 # OK, works on sane cases. Now check whether nonexistent headers
11931 # can be detected and how.
11932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11933 /* end confdefs.h. */
11934 #include <ac_nonexistent.h>
11935 _ACEOF
11936 if ac_fn_cxx_try_cpp "$LINENO"; then :
11937 # Broken: success on invalid input.
11938 continue
11939 else
11940 # Passes both tests.
11941 ac_preproc_ok=:
11942 break
11943 fi
11944 rm -f conftest.err conftest.i conftest.$ac_ext
11945
11946 done
11947 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11948 rm -f conftest.i conftest.err conftest.$ac_ext
11949 if $ac_preproc_ok; then :
11950 break
11951 fi
11952
11953 done
11954 ac_cv_prog_CXXCPP=$CXXCPP
11955
11956 fi
11957 CXXCPP=$ac_cv_prog_CXXCPP
11958 else
11959 ac_cv_prog_CXXCPP=$CXXCPP
11960 fi
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11962 $as_echo "$CXXCPP" >&6; }
11963 ac_preproc_ok=false
11964 for ac_cxx_preproc_warn_flag in '' yes
11965 do
11966 # Use a header file that comes with gcc, so configuring glibc
11967 # with a fresh cross-compiler works.
11968 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11969 # <limits.h> exists even on freestanding compilers.
11970 # On the NeXT, cc -E runs the code through the compiler's parser,
11971 # not just through cpp. "Syntax error" is here to catch this case.
11972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973 /* end confdefs.h. */
11974 #ifdef __STDC__
11975 # include <limits.h>
11976 #else
11977 # include <assert.h>
11978 #endif
11979 Syntax error
11980 _ACEOF
11981 if ac_fn_cxx_try_cpp "$LINENO"; then :
11982
11983 else
11984 # Broken: fails on valid input.
11985 continue
11986 fi
11987 rm -f conftest.err conftest.i conftest.$ac_ext
11988
11989 # OK, works on sane cases. Now check whether nonexistent headers
11990 # can be detected and how.
11991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11992 /* end confdefs.h. */
11993 #include <ac_nonexistent.h>
11994 _ACEOF
11995 if ac_fn_cxx_try_cpp "$LINENO"; then :
11996 # Broken: success on invalid input.
11997 continue
11998 else
11999 # Passes both tests.
12000 ac_preproc_ok=:
12001 break
12002 fi
12003 rm -f conftest.err conftest.i conftest.$ac_ext
12004
12005 done
12006 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12007 rm -f conftest.i conftest.err conftest.$ac_ext
12008 if $ac_preproc_ok; then :
12009
12010 else
12011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12013 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12014 See \`config.log' for more details" "$LINENO" 5; }
12015 fi
12016
12017 ac_ext=c
12018 ac_cpp='$CPP $CPPFLAGS'
12019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12022
12023 else
12024 _lt_caught_CXX_error=yes
12025 fi
12026
12027 ac_ext=cpp
12028 ac_cpp='$CXXCPP $CPPFLAGS'
12029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12032
12033 archive_cmds_need_lc_CXX=no
12034 allow_undefined_flag_CXX=
12035 always_export_symbols_CXX=no
12036 archive_expsym_cmds_CXX=
12037 compiler_needs_object_CXX=no
12038 export_dynamic_flag_spec_CXX=
12039 hardcode_direct_CXX=no
12040 hardcode_direct_absolute_CXX=no
12041 hardcode_libdir_flag_spec_CXX=
12042 hardcode_libdir_flag_spec_ld_CXX=
12043 hardcode_libdir_separator_CXX=
12044 hardcode_minus_L_CXX=no
12045 hardcode_shlibpath_var_CXX=unsupported
12046 hardcode_automatic_CXX=no
12047 inherit_rpath_CXX=no
12048 module_cmds_CXX=
12049 module_expsym_cmds_CXX=
12050 link_all_deplibs_CXX=unknown
12051 old_archive_cmds_CXX=$old_archive_cmds
12052 reload_flag_CXX=$reload_flag
12053 reload_cmds_CXX=$reload_cmds
12054 no_undefined_flag_CXX=
12055 whole_archive_flag_spec_CXX=
12056 enable_shared_with_static_runtimes_CXX=no
12057
12058 # Source file extension for C++ test sources.
12059 ac_ext=cpp
12060
12061 # Object file extension for compiled C++ test sources.
12062 objext=o
12063 objext_CXX=$objext
12064
12065 # No sense in running all these tests if we already determined that
12066 # the CXX compiler isn't working. Some variables (like enable_shared)
12067 # are currently assumed to apply to all compilers on this platform,
12068 # and will be corrupted by setting them based on a non-working compiler.
12069 if test "$_lt_caught_CXX_error" != yes; then
12070 # Code to be used in simple compile tests
12071 lt_simple_compile_test_code="int some_variable = 0;"
12072
12073 # Code to be used in simple link tests
12074 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12075
12076 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12077
12078
12079
12080
12081
12082
12083 # If no C compiler was specified, use CC.
12084 LTCC=${LTCC-"$CC"}
12085
12086 # If no C compiler flags were specified, use CFLAGS.
12087 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12088
12089 # Allow CC to be a program name with arguments.
12090 compiler=$CC
12091
12092
12093 # save warnings/boilerplate of simple test code
12094 ac_outfile=conftest.$ac_objext
12095 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12096 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12097 _lt_compiler_boilerplate=`cat conftest.err`
12098 $RM conftest*
12099
12100 ac_outfile=conftest.$ac_objext
12101 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12102 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12103 _lt_linker_boilerplate=`cat conftest.err`
12104 $RM -r conftest*
12105
12106
12107 # Allow CC to be a program name with arguments.
12108 lt_save_CC=$CC
12109 lt_save_LD=$LD
12110 lt_save_GCC=$GCC
12111 GCC=$GXX
12112 lt_save_with_gnu_ld=$with_gnu_ld
12113 lt_save_path_LD=$lt_cv_path_LD
12114 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12115 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12116 else
12117 $as_unset lt_cv_prog_gnu_ld
12118 fi
12119 if test -n "${lt_cv_path_LDCXX+set}"; then
12120 lt_cv_path_LD=$lt_cv_path_LDCXX
12121 else
12122 $as_unset lt_cv_path_LD
12123 fi
12124 test -z "${LDCXX+set}" || LD=$LDCXX
12125 CC=${CXX-"c++"}
12126 compiler=$CC
12127 compiler_CXX=$CC
12128 for cc_temp in $compiler""; do
12129 case $cc_temp in
12130 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12131 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12132 \-*) ;;
12133 *) break;;
12134 esac
12135 done
12136 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12137
12138
12139 if test -n "$compiler"; then
12140 # We don't want -fno-exception when compiling C++ code, so set the
12141 # no_builtin_flag separately
12142 if test "$GXX" = yes; then
12143 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12144 else
12145 lt_prog_compiler_no_builtin_flag_CXX=
12146 fi
12147
12148 if test "$GXX" = yes; then
12149 # Set up default GNU C++ configuration
12150
12151
12152
12153 # Check whether --with-gnu-ld was given.
12154 if test "${with_gnu_ld+set}" = set; then :
12155 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12156 else
12157 with_gnu_ld=no
12158 fi
12159
12160 ac_prog=ld
12161 if test "$GCC" = yes; then
12162 # Check if gcc -print-prog-name=ld gives a path.
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12164 $as_echo_n "checking for ld used by $CC... " >&6; }
12165 case $host in
12166 *-*-mingw*)
12167 # gcc leaves a trailing carriage return which upsets mingw
12168 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12169 *)
12170 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12171 esac
12172 case $ac_prog in
12173 # Accept absolute paths.
12174 [\\/]* | ?:[\\/]*)
12175 re_direlt='/[^/][^/]*/\.\./'
12176 # Canonicalize the pathname of ld
12177 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12178 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12179 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12180 done
12181 test -z "$LD" && LD="$ac_prog"
12182 ;;
12183 "")
12184 # If it fails, then pretend we aren't using GCC.
12185 ac_prog=ld
12186 ;;
12187 *)
12188 # If it is relative, then search for the first ld in PATH.
12189 with_gnu_ld=unknown
12190 ;;
12191 esac
12192 elif test "$with_gnu_ld" = yes; then
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12194 $as_echo_n "checking for GNU ld... " >&6; }
12195 else
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12197 $as_echo_n "checking for non-GNU ld... " >&6; }
12198 fi
12199 if ${lt_cv_path_LD+:} false; then :
12200 $as_echo_n "(cached) " >&6
12201 else
12202 if test -z "$LD"; then
12203 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12204 for ac_dir in $PATH; do
12205 IFS="$lt_save_ifs"
12206 test -z "$ac_dir" && ac_dir=.
12207 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12208 lt_cv_path_LD="$ac_dir/$ac_prog"
12209 # Check to see if the program is GNU ld. I'd rather use --version,
12210 # but apparently some variants of GNU ld only accept -v.
12211 # Break only if it was the GNU/non-GNU ld that we prefer.
12212 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12213 *GNU* | *'with BFD'*)
12214 test "$with_gnu_ld" != no && break
12215 ;;
12216 *)
12217 test "$with_gnu_ld" != yes && break
12218 ;;
12219 esac
12220 fi
12221 done
12222 IFS="$lt_save_ifs"
12223 else
12224 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12225 fi
12226 fi
12227
12228 LD="$lt_cv_path_LD"
12229 if test -n "$LD"; then
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12231 $as_echo "$LD" >&6; }
12232 else
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12234 $as_echo "no" >&6; }
12235 fi
12236 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12238 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12239 if ${lt_cv_prog_gnu_ld+:} false; then :
12240 $as_echo_n "(cached) " >&6
12241 else
12242 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12243 case `$LD -v 2>&1 </dev/null` in
12244 *GNU* | *'with BFD'*)
12245 lt_cv_prog_gnu_ld=yes
12246 ;;
12247 *)
12248 lt_cv_prog_gnu_ld=no
12249 ;;
12250 esac
12251 fi
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12253 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12254 with_gnu_ld=$lt_cv_prog_gnu_ld
12255
12256
12257
12258
12259
12260
12261
12262 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12263 # archiving commands below assume that GNU ld is being used.
12264 if test "$with_gnu_ld" = yes; then
12265 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12266 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'
12267
12268 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12269 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12270
12271 # If archive_cmds runs LD, not CC, wlarc should be empty
12272 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12273 # investigate it a little bit more. (MM)
12274 wlarc='${wl}'
12275
12276 # ancient GNU ld didn't support --whole-archive et. al.
12277 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12278 $GREP 'no-whole-archive' > /dev/null; then
12279 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12280 else
12281 whole_archive_flag_spec_CXX=
12282 fi
12283 else
12284 with_gnu_ld=no
12285 wlarc=
12286
12287 # A generic and very simple default shared library creation
12288 # command for GNU C++ for the case where it uses the native
12289 # linker, instead of GNU ld. If possible, this setting should
12290 # overridden to take advantage of the native linker features on
12291 # the platform it is being used on.
12292 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12293 fi
12294
12295 # Commands to make compiler produce verbose output that lists
12296 # what "hidden" libraries, object files and flags are used when
12297 # linking a shared library.
12298 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12299
12300 else
12301 GXX=no
12302 with_gnu_ld=no
12303 wlarc=
12304 fi
12305
12306 # PORTME: fill in a description of your system's C++ link characteristics
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12308 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12309 ld_shlibs_CXX=yes
12310 case $host_os in
12311 aix3*)
12312 # FIXME: insert proper C++ library support
12313 ld_shlibs_CXX=no
12314 ;;
12315 aix[4-9]*)
12316 if test "$host_cpu" = ia64; then
12317 # On IA64, the linker does run time linking by default, so we don't
12318 # have to do anything special.
12319 aix_use_runtimelinking=no
12320 exp_sym_flag='-Bexport'
12321 no_entry_flag=""
12322 else
12323 aix_use_runtimelinking=no
12324
12325 # Test if we are trying to use run time linking or normal
12326 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12327 # need to do runtime linking.
12328 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12329 for ld_flag in $LDFLAGS; do
12330 case $ld_flag in
12331 *-brtl*)
12332 aix_use_runtimelinking=yes
12333 break
12334 ;;
12335 esac
12336 done
12337 ;;
12338 esac
12339
12340 exp_sym_flag='-bexport'
12341 no_entry_flag='-bnoentry'
12342 fi
12343
12344 # When large executables or shared objects are built, AIX ld can
12345 # have problems creating the table of contents. If linking a library
12346 # or program results in "error TOC overflow" add -mminimal-toc to
12347 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12348 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12349
12350 archive_cmds_CXX=''
12351 hardcode_direct_CXX=yes
12352 hardcode_direct_absolute_CXX=yes
12353 hardcode_libdir_separator_CXX=':'
12354 link_all_deplibs_CXX=yes
12355 file_list_spec_CXX='${wl}-f,'
12356
12357 if test "$GXX" = yes; then
12358 case $host_os in aix4.[012]|aix4.[012].*)
12359 # We only want to do this on AIX 4.2 and lower, the check
12360 # below for broken collect2 doesn't work under 4.3+
12361 collect2name=`${CC} -print-prog-name=collect2`
12362 if test -f "$collect2name" &&
12363 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12364 then
12365 # We have reworked collect2
12366 :
12367 else
12368 # We have old collect2
12369 hardcode_direct_CXX=unsupported
12370 # It fails to find uninstalled libraries when the uninstalled
12371 # path is not listed in the libpath. Setting hardcode_minus_L
12372 # to unsupported forces relinking
12373 hardcode_minus_L_CXX=yes
12374 hardcode_libdir_flag_spec_CXX='-L$libdir'
12375 hardcode_libdir_separator_CXX=
12376 fi
12377 esac
12378 shared_flag='-shared'
12379 if test "$aix_use_runtimelinking" = yes; then
12380 shared_flag="$shared_flag "'${wl}-G'
12381 fi
12382 else
12383 # not using gcc
12384 if test "$host_cpu" = ia64; then
12385 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12386 # chokes on -Wl,-G. The following line is correct:
12387 shared_flag='-G'
12388 else
12389 if test "$aix_use_runtimelinking" = yes; then
12390 shared_flag='${wl}-G'
12391 else
12392 shared_flag='${wl}-bM:SRE'
12393 fi
12394 fi
12395 fi
12396
12397 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12398 # It seems that -bexpall does not export symbols beginning with
12399 # underscore (_), so it is better to generate a list of symbols to
12400 # export.
12401 always_export_symbols_CXX=yes
12402 if test "$aix_use_runtimelinking" = yes; then
12403 # Warning - without using the other runtime loading flags (-brtl),
12404 # -berok will link without error, but may produce a broken library.
12405 allow_undefined_flag_CXX='-berok'
12406 # Determine the default libpath from the value encoded in an empty
12407 # executable.
12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409 /* end confdefs.h. */
12410
12411 int
12412 main ()
12413 {
12414
12415 ;
12416 return 0;
12417 }
12418 _ACEOF
12419 if ac_fn_cxx_try_link "$LINENO"; then :
12420
12421 lt_aix_libpath_sed='
12422 /Import File Strings/,/^$/ {
12423 /^0/ {
12424 s/^0 *\(.*\)$/\1/
12425 p
12426 }
12427 }'
12428 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12429 # Check for a 64-bit object if we didn't find anything.
12430 if test -z "$aix_libpath"; then
12431 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12432 fi
12433 fi
12434 rm -f core conftest.err conftest.$ac_objext \
12435 conftest$ac_exeext conftest.$ac_ext
12436 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12437
12438 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12439
12440 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12441 else
12442 if test "$host_cpu" = ia64; then
12443 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12444 allow_undefined_flag_CXX="-z nodefs"
12445 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"
12446 else
12447 # Determine the default libpath from the value encoded in an
12448 # empty executable.
12449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12450 /* end confdefs.h. */
12451
12452 int
12453 main ()
12454 {
12455
12456 ;
12457 return 0;
12458 }
12459 _ACEOF
12460 if ac_fn_cxx_try_link "$LINENO"; then :
12461
12462 lt_aix_libpath_sed='
12463 /Import File Strings/,/^$/ {
12464 /^0/ {
12465 s/^0 *\(.*\)$/\1/
12466 p
12467 }
12468 }'
12469 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12470 # Check for a 64-bit object if we didn't find anything.
12471 if test -z "$aix_libpath"; then
12472 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12473 fi
12474 fi
12475 rm -f core conftest.err conftest.$ac_objext \
12476 conftest$ac_exeext conftest.$ac_ext
12477 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12478
12479 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12480 # Warning - without using the other run time loading flags,
12481 # -berok will link without error, but may produce a broken library.
12482 no_undefined_flag_CXX=' ${wl}-bernotok'
12483 allow_undefined_flag_CXX=' ${wl}-berok'
12484 if test "$with_gnu_ld" = yes; then
12485 # We only use this code for GNU lds that support --whole-archive.
12486 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12487 else
12488 # Exported symbols can be pulled into shared objects from archives
12489 whole_archive_flag_spec_CXX='$convenience'
12490 fi
12491 archive_cmds_need_lc_CXX=yes
12492 # This is similar to how AIX traditionally builds its shared
12493 # libraries.
12494 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12495 fi
12496 fi
12497 ;;
12498
12499 beos*)
12500 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12501 allow_undefined_flag_CXX=unsupported
12502 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12503 # support --undefined. This deserves some investigation. FIXME
12504 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12505 else
12506 ld_shlibs_CXX=no
12507 fi
12508 ;;
12509
12510 chorus*)
12511 case $cc_basename in
12512 *)
12513 # FIXME: insert proper C++ library support
12514 ld_shlibs_CXX=no
12515 ;;
12516 esac
12517 ;;
12518
12519 cygwin* | mingw* | pw32* | cegcc*)
12520 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12521 # as there is no search path for DLLs.
12522 hardcode_libdir_flag_spec_CXX='-L$libdir'
12523 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12524 allow_undefined_flag_CXX=unsupported
12525 always_export_symbols_CXX=no
12526 enable_shared_with_static_runtimes_CXX=yes
12527
12528 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12529 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'
12530 # If the export-symbols file already is a .def file (1st line
12531 # is EXPORTS), use it as is; otherwise, prepend...
12532 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12533 cp $export_symbols $output_objdir/$soname.def;
12534 else
12535 echo EXPORTS > $output_objdir/$soname.def;
12536 cat $export_symbols >> $output_objdir/$soname.def;
12537 fi~
12538 $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'
12539 else
12540 ld_shlibs_CXX=no
12541 fi
12542 ;;
12543 darwin* | rhapsody*)
12544
12545
12546 archive_cmds_need_lc_CXX=no
12547 hardcode_direct_CXX=no
12548 hardcode_automatic_CXX=yes
12549 hardcode_shlibpath_var_CXX=unsupported
12550 if test "$lt_cv_ld_force_load" = "yes"; then
12551 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\"`'
12552 else
12553 whole_archive_flag_spec_CXX=''
12554 fi
12555 link_all_deplibs_CXX=yes
12556 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12557 case $cc_basename in
12558 ifort*) _lt_dar_can_shared=yes ;;
12559 *) _lt_dar_can_shared=$GCC ;;
12560 esac
12561 if test "$_lt_dar_can_shared" = "yes"; then
12562 output_verbose_link_cmd=func_echo_all
12563 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}"
12564 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12565 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}"
12566 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}"
12567 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12568 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}"
12569 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}"
12570 fi
12571
12572 else
12573 ld_shlibs_CXX=no
12574 fi
12575
12576 ;;
12577
12578 dgux*)
12579 case $cc_basename in
12580 ec++*)
12581 # FIXME: insert proper C++ library support
12582 ld_shlibs_CXX=no
12583 ;;
12584 ghcx*)
12585 # Green Hills C++ Compiler
12586 # FIXME: insert proper C++ library support
12587 ld_shlibs_CXX=no
12588 ;;
12589 *)
12590 # FIXME: insert proper C++ library support
12591 ld_shlibs_CXX=no
12592 ;;
12593 esac
12594 ;;
12595
12596 freebsd2.*)
12597 # C++ shared libraries reported to be fairly broken before
12598 # switch to ELF
12599 ld_shlibs_CXX=no
12600 ;;
12601
12602 freebsd-elf*)
12603 archive_cmds_need_lc_CXX=no
12604 ;;
12605
12606 freebsd* | dragonfly*)
12607 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12608 # conventions
12609 ld_shlibs_CXX=yes
12610 ;;
12611
12612 gnu*)
12613 ;;
12614
12615 haiku*)
12616 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12617 link_all_deplibs_CXX=yes
12618 ;;
12619
12620 hpux9*)
12621 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12622 hardcode_libdir_separator_CXX=:
12623 export_dynamic_flag_spec_CXX='${wl}-E'
12624 hardcode_direct_CXX=yes
12625 hardcode_minus_L_CXX=yes # Not in the search PATH,
12626 # but as the default
12627 # location of the library.
12628
12629 case $cc_basename in
12630 CC*)
12631 # FIXME: insert proper C++ library support
12632 ld_shlibs_CXX=no
12633 ;;
12634 aCC*)
12635 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12636 # Commands to make compiler produce verbose output that lists
12637 # what "hidden" libraries, object files and flags are used when
12638 # linking a shared library.
12639 #
12640 # There doesn't appear to be a way to prevent this compiler from
12641 # explicitly linking system object files so we need to strip them
12642 # from the output so that they don't get included in the library
12643 # dependencies.
12644 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"'
12645 ;;
12646 *)
12647 if test "$GXX" = yes; then
12648 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12649 else
12650 # FIXME: insert proper C++ library support
12651 ld_shlibs_CXX=no
12652 fi
12653 ;;
12654 esac
12655 ;;
12656
12657 hpux10*|hpux11*)
12658 if test $with_gnu_ld = no; then
12659 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12660 hardcode_libdir_separator_CXX=:
12661
12662 case $host_cpu in
12663 hppa*64*|ia64*)
12664 ;;
12665 *)
12666 export_dynamic_flag_spec_CXX='${wl}-E'
12667 ;;
12668 esac
12669 fi
12670 case $host_cpu in
12671 hppa*64*|ia64*)
12672 hardcode_direct_CXX=no
12673 hardcode_shlibpath_var_CXX=no
12674 ;;
12675 *)
12676 hardcode_direct_CXX=yes
12677 hardcode_direct_absolute_CXX=yes
12678 hardcode_minus_L_CXX=yes # Not in the search PATH,
12679 # but as the default
12680 # location of the library.
12681 ;;
12682 esac
12683
12684 case $cc_basename in
12685 CC*)
12686 # FIXME: insert proper C++ library support
12687 ld_shlibs_CXX=no
12688 ;;
12689 aCC*)
12690 case $host_cpu in
12691 hppa*64*)
12692 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12693 ;;
12694 ia64*)
12695 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12696 ;;
12697 *)
12698 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12699 ;;
12700 esac
12701 # Commands to make compiler produce verbose output that lists
12702 # what "hidden" libraries, object files and flags are used when
12703 # linking a shared library.
12704 #
12705 # There doesn't appear to be a way to prevent this compiler from
12706 # explicitly linking system object files so we need to strip them
12707 # from the output so that they don't get included in the library
12708 # dependencies.
12709 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"'
12710 ;;
12711 *)
12712 if test "$GXX" = yes; then
12713 if test $with_gnu_ld = no; then
12714 case $host_cpu in
12715 hppa*64*)
12716 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12717 ;;
12718 ia64*)
12719 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12720 ;;
12721 *)
12722 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12723 ;;
12724 esac
12725 fi
12726 else
12727 # FIXME: insert proper C++ library support
12728 ld_shlibs_CXX=no
12729 fi
12730 ;;
12731 esac
12732 ;;
12733
12734 interix[3-9]*)
12735 hardcode_direct_CXX=no
12736 hardcode_shlibpath_var_CXX=no
12737 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12738 export_dynamic_flag_spec_CXX='${wl}-E'
12739 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12740 # Instead, shared libraries are loaded at an image base (0x10000000 by
12741 # default) and relocated if they conflict, which is a slow very memory
12742 # consuming and fragmenting process. To avoid this, we pick a random,
12743 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12744 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12745 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'
12746 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'
12747 ;;
12748 irix5* | irix6*)
12749 case $cc_basename in
12750 CC*)
12751 # SGI C++
12752 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'
12753
12754 # Archives containing C++ object files must be created using
12755 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12756 # necessary to make sure instantiated templates are included
12757 # in the archive.
12758 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12759 ;;
12760 *)
12761 if test "$GXX" = yes; then
12762 if test "$with_gnu_ld" = no; then
12763 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12764 else
12765 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12766 fi
12767 fi
12768 link_all_deplibs_CXX=yes
12769 ;;
12770 esac
12771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12772 hardcode_libdir_separator_CXX=:
12773 inherit_rpath_CXX=yes
12774 ;;
12775
12776 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12777 case $cc_basename in
12778 KCC*)
12779 # Kuck and Associates, Inc. (KAI) C++ Compiler
12780
12781 # KCC will only create a shared library if the output file
12782 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12783 # to its proper name (with version) after linking.
12784 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'
12785 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'
12786 # Commands to make compiler produce verbose output that lists
12787 # what "hidden" libraries, object files and flags are used when
12788 # linking a shared library.
12789 #
12790 # There doesn't appear to be a way to prevent this compiler from
12791 # explicitly linking system object files so we need to strip them
12792 # from the output so that they don't get included in the library
12793 # dependencies.
12794 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"'
12795
12796 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12797 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12798
12799 # Archives containing C++ object files must be created using
12800 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12801 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12802 ;;
12803 icpc* | ecpc* )
12804 # Intel C++
12805 with_gnu_ld=yes
12806 # version 8.0 and above of icpc choke on multiply defined symbols
12807 # if we add $predep_objects and $postdep_objects, however 7.1 and
12808 # earlier do not add the objects themselves.
12809 case `$CC -V 2>&1` in
12810 *"Version 7."*)
12811 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12812 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'
12813 ;;
12814 *) # Version 8.0 or newer
12815 tmp_idyn=
12816 case $host_cpu in
12817 ia64*) tmp_idyn=' -i_dynamic';;
12818 esac
12819 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12820 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'
12821 ;;
12822 esac
12823 archive_cmds_need_lc_CXX=no
12824 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12825 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12826 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12827 ;;
12828 pgCC* | pgcpp*)
12829 # Portland Group C++ compiler
12830 case `$CC -V` in
12831 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12832 prelink_cmds_CXX='tpldir=Template.dir~
12833 rm -rf $tpldir~
12834 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12835 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12836 old_archive_cmds_CXX='tpldir=Template.dir~
12837 rm -rf $tpldir~
12838 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12839 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12840 $RANLIB $oldlib'
12841 archive_cmds_CXX='tpldir=Template.dir~
12842 rm -rf $tpldir~
12843 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12844 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12845 archive_expsym_cmds_CXX='tpldir=Template.dir~
12846 rm -rf $tpldir~
12847 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12848 $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'
12849 ;;
12850 *) # Version 6 and above use weak symbols
12851 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12852 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'
12853 ;;
12854 esac
12855
12856 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12857 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12858 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'
12859 ;;
12860 cxx*)
12861 # Compaq C++
12862 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12863 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'
12864
12865 runpath_var=LD_RUN_PATH
12866 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12867 hardcode_libdir_separator_CXX=:
12868
12869 # Commands to make compiler produce verbose output that lists
12870 # what "hidden" libraries, object files and flags are used when
12871 # linking a shared library.
12872 #
12873 # There doesn't appear to be a way to prevent this compiler from
12874 # explicitly linking system object files so we need to strip them
12875 # from the output so that they don't get included in the library
12876 # dependencies.
12877 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'
12878 ;;
12879 xl* | mpixl* | bgxl*)
12880 # IBM XL 8.0 on PPC, with GNU ld
12881 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12882 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12883 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12884 if test "x$supports_anon_versioning" = xyes; then
12885 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12886 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12887 echo "local: *; };" >> $output_objdir/$libname.ver~
12888 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12889 fi
12890 ;;
12891 *)
12892 case `$CC -V 2>&1 | sed 5q` in
12893 *Sun\ C*)
12894 # Sun C++ 5.9
12895 no_undefined_flag_CXX=' -zdefs'
12896 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12897 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'
12898 hardcode_libdir_flag_spec_CXX='-R$libdir'
12899 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'
12900 compiler_needs_object_CXX=yes
12901
12902 # Not sure whether something based on
12903 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12904 # would be better.
12905 output_verbose_link_cmd='func_echo_all'
12906
12907 # Archives containing C++ object files must be created using
12908 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12909 # necessary to make sure instantiated templates are included
12910 # in the archive.
12911 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12912 ;;
12913 esac
12914 ;;
12915 esac
12916 ;;
12917
12918 lynxos*)
12919 # FIXME: insert proper C++ library support
12920 ld_shlibs_CXX=no
12921 ;;
12922
12923 m88k*)
12924 # FIXME: insert proper C++ library support
12925 ld_shlibs_CXX=no
12926 ;;
12927
12928 mvs*)
12929 case $cc_basename in
12930 cxx*)
12931 # FIXME: insert proper C++ library support
12932 ld_shlibs_CXX=no
12933 ;;
12934 *)
12935 # FIXME: insert proper C++ library support
12936 ld_shlibs_CXX=no
12937 ;;
12938 esac
12939 ;;
12940
12941 netbsd*)
12942 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12943 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12944 wlarc=
12945 hardcode_libdir_flag_spec_CXX='-R$libdir'
12946 hardcode_direct_CXX=yes
12947 hardcode_shlibpath_var_CXX=no
12948 fi
12949 # Workaround some broken pre-1.5 toolchains
12950 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12951 ;;
12952
12953 *nto* | *qnx*)
12954 ld_shlibs_CXX=yes
12955 ;;
12956
12957 openbsd2*)
12958 # C++ shared libraries are fairly broken
12959 ld_shlibs_CXX=no
12960 ;;
12961
12962 openbsd*)
12963 if test -f /usr/libexec/ld.so; then
12964 hardcode_direct_CXX=yes
12965 hardcode_shlibpath_var_CXX=no
12966 hardcode_direct_absolute_CXX=yes
12967 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12968 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12969 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12970 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12971 export_dynamic_flag_spec_CXX='${wl}-E'
12972 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12973 fi
12974 output_verbose_link_cmd=func_echo_all
12975 else
12976 ld_shlibs_CXX=no
12977 fi
12978 ;;
12979
12980 osf3* | osf4* | osf5*)
12981 case $cc_basename in
12982 KCC*)
12983 # Kuck and Associates, Inc. (KAI) C++ Compiler
12984
12985 # KCC will only create a shared library if the output file
12986 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12987 # to its proper name (with version) after linking.
12988 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'
12989
12990 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12991 hardcode_libdir_separator_CXX=:
12992
12993 # Archives containing C++ object files must be created using
12994 # the KAI C++ compiler.
12995 case $host in
12996 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12997 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12998 esac
12999 ;;
13000 RCC*)
13001 # Rational C++ 2.4.1
13002 # FIXME: insert proper C++ library support
13003 ld_shlibs_CXX=no
13004 ;;
13005 cxx*)
13006 case $host in
13007 osf3*)
13008 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13009 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'
13010 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13011 ;;
13012 *)
13013 allow_undefined_flag_CXX=' -expect_unresolved \*'
13014 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'
13015 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13016 echo "-hidden">> $lib.exp~
13017 $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~
13018 $RM $lib.exp'
13019 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13020 ;;
13021 esac
13022
13023 hardcode_libdir_separator_CXX=:
13024
13025 # Commands to make compiler produce verbose output that lists
13026 # what "hidden" libraries, object files and flags are used when
13027 # linking a shared library.
13028 #
13029 # There doesn't appear to be a way to prevent this compiler from
13030 # explicitly linking system object files so we need to strip them
13031 # from the output so that they don't get included in the library
13032 # dependencies.
13033 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"'
13034 ;;
13035 *)
13036 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13037 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13038 case $host in
13039 osf3*)
13040 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'
13041 ;;
13042 *)
13043 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13044 ;;
13045 esac
13046
13047 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13048 hardcode_libdir_separator_CXX=:
13049
13050 # Commands to make compiler produce verbose output that lists
13051 # what "hidden" libraries, object files and flags are used when
13052 # linking a shared library.
13053 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13054
13055 else
13056 # FIXME: insert proper C++ library support
13057 ld_shlibs_CXX=no
13058 fi
13059 ;;
13060 esac
13061 ;;
13062
13063 psos*)
13064 # FIXME: insert proper C++ library support
13065 ld_shlibs_CXX=no
13066 ;;
13067
13068 sunos4*)
13069 case $cc_basename in
13070 CC*)
13071 # Sun C++ 4.x
13072 # FIXME: insert proper C++ library support
13073 ld_shlibs_CXX=no
13074 ;;
13075 lcc*)
13076 # Lucid
13077 # FIXME: insert proper C++ library support
13078 ld_shlibs_CXX=no
13079 ;;
13080 *)
13081 # FIXME: insert proper C++ library support
13082 ld_shlibs_CXX=no
13083 ;;
13084 esac
13085 ;;
13086
13087 solaris*)
13088 case $cc_basename in
13089 CC*)
13090 # Sun C++ 4.2, 5.x and Centerline C++
13091 archive_cmds_need_lc_CXX=yes
13092 no_undefined_flag_CXX=' -zdefs'
13093 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13094 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13095 $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'
13096
13097 hardcode_libdir_flag_spec_CXX='-R$libdir'
13098 hardcode_shlibpath_var_CXX=no
13099 case $host_os in
13100 solaris2.[0-5] | solaris2.[0-5].*) ;;
13101 *)
13102 # The compiler driver will combine and reorder linker options,
13103 # but understands `-z linker_flag'.
13104 # Supported since Solaris 2.6 (maybe 2.5.1?)
13105 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13106 ;;
13107 esac
13108 link_all_deplibs_CXX=yes
13109
13110 output_verbose_link_cmd='func_echo_all'
13111
13112 # Archives containing C++ object files must be created using
13113 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13114 # necessary to make sure instantiated templates are included
13115 # in the archive.
13116 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13117 ;;
13118 gcx*)
13119 # Green Hills C++ Compiler
13120 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13121
13122 # The C++ compiler must be used to create the archive.
13123 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13124 ;;
13125 *)
13126 # GNU C++ compiler with Solaris linker
13127 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13128 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13129 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13130 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13131 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13132 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13133
13134 # Commands to make compiler produce verbose output that lists
13135 # what "hidden" libraries, object files and flags are used when
13136 # linking a shared library.
13137 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13138 else
13139 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13140 # platform.
13141 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13142 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13143 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13144
13145 # Commands to make compiler produce verbose output that lists
13146 # what "hidden" libraries, object files and flags are used when
13147 # linking a shared library.
13148 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13149 fi
13150
13151 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13152 case $host_os in
13153 solaris2.[0-5] | solaris2.[0-5].*) ;;
13154 *)
13155 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13156 ;;
13157 esac
13158 fi
13159 ;;
13160 esac
13161 ;;
13162
13163 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13164 no_undefined_flag_CXX='${wl}-z,text'
13165 archive_cmds_need_lc_CXX=no
13166 hardcode_shlibpath_var_CXX=no
13167 runpath_var='LD_RUN_PATH'
13168
13169 case $cc_basename in
13170 CC*)
13171 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13172 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13173 ;;
13174 *)
13175 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13176 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13177 ;;
13178 esac
13179 ;;
13180
13181 sysv5* | sco3.2v5* | sco5v6*)
13182 # Note: We can NOT use -z defs as we might desire, because we do not
13183 # link with -lc, and that would cause any symbols used from libc to
13184 # always be unresolved, which means just about no library would
13185 # ever link correctly. If we're not using GNU ld we use -z text
13186 # though, which does catch some bad symbols but isn't as heavy-handed
13187 # as -z defs.
13188 no_undefined_flag_CXX='${wl}-z,text'
13189 allow_undefined_flag_CXX='${wl}-z,nodefs'
13190 archive_cmds_need_lc_CXX=no
13191 hardcode_shlibpath_var_CXX=no
13192 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13193 hardcode_libdir_separator_CXX=':'
13194 link_all_deplibs_CXX=yes
13195 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13196 runpath_var='LD_RUN_PATH'
13197
13198 case $cc_basename in
13199 CC*)
13200 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13201 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13202 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13203 '"$old_archive_cmds_CXX"
13204 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13205 '"$reload_cmds_CXX"
13206 ;;
13207 *)
13208 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13209 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13210 ;;
13211 esac
13212 ;;
13213
13214 tandem*)
13215 case $cc_basename in
13216 NCC*)
13217 # NonStop-UX NCC 3.20
13218 # FIXME: insert proper C++ library support
13219 ld_shlibs_CXX=no
13220 ;;
13221 *)
13222 # FIXME: insert proper C++ library support
13223 ld_shlibs_CXX=no
13224 ;;
13225 esac
13226 ;;
13227
13228 vxworks*)
13229 # FIXME: insert proper C++ library support
13230 ld_shlibs_CXX=no
13231 ;;
13232
13233 *)
13234 # FIXME: insert proper C++ library support
13235 ld_shlibs_CXX=no
13236 ;;
13237 esac
13238
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13240 $as_echo "$ld_shlibs_CXX" >&6; }
13241 test "$ld_shlibs_CXX" = no && can_build_shared=no
13242
13243 GCC_CXX="$GXX"
13244 LD_CXX="$LD"
13245
13246 ## CAVEAT EMPTOR:
13247 ## There is no encapsulation within the following macros, do not change
13248 ## the running order or otherwise move them around unless you know exactly
13249 ## what you are doing...
13250 # Dependencies to place before and after the object being linked:
13251 predep_objects_CXX=
13252 postdep_objects_CXX=
13253 predeps_CXX=
13254 postdeps_CXX=
13255 compiler_lib_search_path_CXX=
13256
13257 cat > conftest.$ac_ext <<_LT_EOF
13258 class Foo
13259 {
13260 public:
13261 Foo (void) { a = 0; }
13262 private:
13263 int a;
13264 };
13265 _LT_EOF
13266
13267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13268 (eval $ac_compile) 2>&5
13269 ac_status=$?
13270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13271 test $ac_status = 0; }; then
13272 # Parse the compiler output and extract the necessary
13273 # objects, libraries and library flags.
13274
13275 # Sentinel used to keep track of whether or not we are before
13276 # the conftest object file.
13277 pre_test_object_deps_done=no
13278
13279 for p in `eval "$output_verbose_link_cmd"`; do
13280 case $p in
13281
13282 -L* | -R* | -l*)
13283 # Some compilers place space between "-{L,R}" and the path.
13284 # Remove the space.
13285 if test $p = "-L" ||
13286 test $p = "-R"; then
13287 prev=$p
13288 continue
13289 else
13290 prev=
13291 fi
13292
13293 if test "$pre_test_object_deps_done" = no; then
13294 case $p in
13295 -L* | -R*)
13296 # Internal compiler library paths should come after those
13297 # provided the user. The postdeps already come after the
13298 # user supplied libs so there is no need to process them.
13299 if test -z "$compiler_lib_search_path_CXX"; then
13300 compiler_lib_search_path_CXX="${prev}${p}"
13301 else
13302 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13303 fi
13304 ;;
13305 # The "-l" case would never come before the object being
13306 # linked, so don't bother handling this case.
13307 esac
13308 else
13309 if test -z "$postdeps_CXX"; then
13310 postdeps_CXX="${prev}${p}"
13311 else
13312 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13313 fi
13314 fi
13315 ;;
13316
13317 *.$objext)
13318 # This assumes that the test object file only shows up
13319 # once in the compiler output.
13320 if test "$p" = "conftest.$objext"; then
13321 pre_test_object_deps_done=yes
13322 continue
13323 fi
13324
13325 if test "$pre_test_object_deps_done" = no; then
13326 if test -z "$predep_objects_CXX"; then
13327 predep_objects_CXX="$p"
13328 else
13329 predep_objects_CXX="$predep_objects_CXX $p"
13330 fi
13331 else
13332 if test -z "$postdep_objects_CXX"; then
13333 postdep_objects_CXX="$p"
13334 else
13335 postdep_objects_CXX="$postdep_objects_CXX $p"
13336 fi
13337 fi
13338 ;;
13339
13340 *) ;; # Ignore the rest.
13341
13342 esac
13343 done
13344
13345 # Clean up.
13346 rm -f a.out a.exe
13347 else
13348 echo "libtool.m4: error: problem compiling CXX test program"
13349 fi
13350
13351 $RM -f confest.$objext
13352
13353 # PORTME: override above test on systems where it is broken
13354 case $host_os in
13355 interix[3-9]*)
13356 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13357 # hack all around it, let's just trust "g++" to DTRT.
13358 predep_objects_CXX=
13359 postdep_objects_CXX=
13360 postdeps_CXX=
13361 ;;
13362
13363 linux*)
13364 case `$CC -V 2>&1 | sed 5q` in
13365 *Sun\ C*)
13366 # Sun C++ 5.9
13367
13368 # The more standards-conforming stlport4 library is
13369 # incompatible with the Cstd library. Avoid specifying
13370 # it if it's in CXXFLAGS. Ignore libCrun as
13371 # -library=stlport4 depends on it.
13372 case " $CXX $CXXFLAGS " in
13373 *" -library=stlport4 "*)
13374 solaris_use_stlport4=yes
13375 ;;
13376 esac
13377
13378 if test "$solaris_use_stlport4" != yes; then
13379 postdeps_CXX='-library=Cstd -library=Crun'
13380 fi
13381 ;;
13382 esac
13383 ;;
13384
13385 solaris*)
13386 case $cc_basename in
13387 CC*)
13388 # The more standards-conforming stlport4 library is
13389 # incompatible with the Cstd library. Avoid specifying
13390 # it if it's in CXXFLAGS. Ignore libCrun as
13391 # -library=stlport4 depends on it.
13392 case " $CXX $CXXFLAGS " in
13393 *" -library=stlport4 "*)
13394 solaris_use_stlport4=yes
13395 ;;
13396 esac
13397
13398 # Adding this requires a known-good setup of shared libraries for
13399 # Sun compiler versions before 5.6, else PIC objects from an old
13400 # archive will be linked into the output, leading to subtle bugs.
13401 if test "$solaris_use_stlport4" != yes; then
13402 postdeps_CXX='-library=Cstd -library=Crun'
13403 fi
13404 ;;
13405 esac
13406 ;;
13407 esac
13408
13409
13410 case " $postdeps_CXX " in
13411 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13412 esac
13413 compiler_lib_search_dirs_CXX=
13414 if test -n "${compiler_lib_search_path_CXX}"; then
13415 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13416 fi
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439
13440
13441
13442
13443
13444
13445
13446
13447
13448 lt_prog_compiler_wl_CXX=
13449 lt_prog_compiler_pic_CXX=
13450 lt_prog_compiler_static_CXX=
13451
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13453 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13454
13455 # C++ specific cases for pic, static, wl, etc.
13456 if test "$GXX" = yes; then
13457 lt_prog_compiler_wl_CXX='-Wl,'
13458 lt_prog_compiler_static_CXX='-static'
13459
13460 case $host_os in
13461 aix*)
13462 # All AIX code is PIC.
13463 if test "$host_cpu" = ia64; then
13464 # AIX 5 now supports IA64 processor
13465 lt_prog_compiler_static_CXX='-Bstatic'
13466 fi
13467 lt_prog_compiler_pic_CXX='-fPIC'
13468 ;;
13469
13470 amigaos*)
13471 case $host_cpu in
13472 powerpc)
13473 # see comment about AmigaOS4 .so support
13474 lt_prog_compiler_pic_CXX='-fPIC'
13475 ;;
13476 m68k)
13477 # FIXME: we need at least 68020 code to build shared libraries, but
13478 # adding the `-m68020' flag to GCC prevents building anything better,
13479 # like `-m68040'.
13480 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13481 ;;
13482 esac
13483 ;;
13484
13485 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13486 # PIC is the default for these OSes.
13487 ;;
13488 mingw* | cygwin* | os2* | pw32* | cegcc*)
13489 # This hack is so that the source file can tell whether it is being
13490 # built for inclusion in a dll (and should export symbols for example).
13491 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13492 # (--disable-auto-import) libraries
13493 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13494 ;;
13495 darwin* | rhapsody*)
13496 # PIC is the default on this platform
13497 # Common symbols not allowed in MH_DYLIB files
13498 lt_prog_compiler_pic_CXX='-fno-common'
13499 ;;
13500 *djgpp*)
13501 # DJGPP does not support shared libraries at all
13502 lt_prog_compiler_pic_CXX=
13503 ;;
13504 haiku*)
13505 # PIC is the default for Haiku.
13506 # The "-static" flag exists, but is broken.
13507 lt_prog_compiler_static_CXX=
13508 ;;
13509 interix[3-9]*)
13510 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13511 # Instead, we relocate shared libraries at runtime.
13512 ;;
13513 sysv4*MP*)
13514 if test -d /usr/nec; then
13515 lt_prog_compiler_pic_CXX=-Kconform_pic
13516 fi
13517 ;;
13518 hpux*)
13519 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13520 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13521 # sets the default TLS model and affects inlining.
13522 case $host_cpu in
13523 hppa*64*)
13524 ;;
13525 *)
13526 lt_prog_compiler_pic_CXX='-fPIC'
13527 ;;
13528 esac
13529 ;;
13530 *qnx* | *nto*)
13531 # QNX uses GNU C++, but need to define -shared option too, otherwise
13532 # it will coredump.
13533 lt_prog_compiler_pic_CXX='-fPIC -shared'
13534 ;;
13535 *)
13536 lt_prog_compiler_pic_CXX='-fPIC'
13537 ;;
13538 esac
13539 else
13540 case $host_os in
13541 aix[4-9]*)
13542 # All AIX code is PIC.
13543 if test "$host_cpu" = ia64; then
13544 # AIX 5 now supports IA64 processor
13545 lt_prog_compiler_static_CXX='-Bstatic'
13546 else
13547 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13548 fi
13549 ;;
13550 chorus*)
13551 case $cc_basename in
13552 cxch68*)
13553 # Green Hills C++ Compiler
13554 # _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"
13555 ;;
13556 esac
13557 ;;
13558 dgux*)
13559 case $cc_basename in
13560 ec++*)
13561 lt_prog_compiler_pic_CXX='-KPIC'
13562 ;;
13563 ghcx*)
13564 # Green Hills C++ Compiler
13565 lt_prog_compiler_pic_CXX='-pic'
13566 ;;
13567 *)
13568 ;;
13569 esac
13570 ;;
13571 freebsd* | dragonfly*)
13572 # FreeBSD uses GNU C++
13573 ;;
13574 hpux9* | hpux10* | hpux11*)
13575 case $cc_basename in
13576 CC*)
13577 lt_prog_compiler_wl_CXX='-Wl,'
13578 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13579 if test "$host_cpu" != ia64; then
13580 lt_prog_compiler_pic_CXX='+Z'
13581 fi
13582 ;;
13583 aCC*)
13584 lt_prog_compiler_wl_CXX='-Wl,'
13585 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13586 case $host_cpu in
13587 hppa*64*|ia64*)
13588 # +Z the default
13589 ;;
13590 *)
13591 lt_prog_compiler_pic_CXX='+Z'
13592 ;;
13593 esac
13594 ;;
13595 *)
13596 ;;
13597 esac
13598 ;;
13599 interix*)
13600 # This is c89, which is MS Visual C++ (no shared libs)
13601 # Anyone wants to do a port?
13602 ;;
13603 irix5* | irix6* | nonstopux*)
13604 case $cc_basename in
13605 CC*)
13606 lt_prog_compiler_wl_CXX='-Wl,'
13607 lt_prog_compiler_static_CXX='-non_shared'
13608 # CC pic flag -KPIC is the default.
13609 ;;
13610 *)
13611 ;;
13612 esac
13613 ;;
13614 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13615 case $cc_basename in
13616 KCC*)
13617 # KAI C++ Compiler
13618 lt_prog_compiler_wl_CXX='--backend -Wl,'
13619 lt_prog_compiler_pic_CXX='-fPIC'
13620 ;;
13621 ecpc* )
13622 # old Intel C++ for x86_64 which still supported -KPIC.
13623 lt_prog_compiler_wl_CXX='-Wl,'
13624 lt_prog_compiler_pic_CXX='-KPIC'
13625 lt_prog_compiler_static_CXX='-static'
13626 ;;
13627 icpc* )
13628 # Intel C++, used to be incompatible with GCC.
13629 # ICC 10 doesn't accept -KPIC any more.
13630 lt_prog_compiler_wl_CXX='-Wl,'
13631 lt_prog_compiler_pic_CXX='-fPIC'
13632 lt_prog_compiler_static_CXX='-static'
13633 ;;
13634 pgCC* | pgcpp*)
13635 # Portland Group C++ compiler
13636 lt_prog_compiler_wl_CXX='-Wl,'
13637 lt_prog_compiler_pic_CXX='-fpic'
13638 lt_prog_compiler_static_CXX='-Bstatic'
13639 ;;
13640 cxx*)
13641 # Compaq C++
13642 # Make sure the PIC flag is empty. It appears that all Alpha
13643 # Linux and Compaq Tru64 Unix objects are PIC.
13644 lt_prog_compiler_pic_CXX=
13645 lt_prog_compiler_static_CXX='-non_shared'
13646 ;;
13647 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13648 # IBM XL 8.0, 9.0 on PPC and BlueGene
13649 lt_prog_compiler_wl_CXX='-Wl,'
13650 lt_prog_compiler_pic_CXX='-qpic'
13651 lt_prog_compiler_static_CXX='-qstaticlink'
13652 ;;
13653 *)
13654 case `$CC -V 2>&1 | sed 5q` in
13655 *Sun\ C*)
13656 # Sun C++ 5.9
13657 lt_prog_compiler_pic_CXX='-KPIC'
13658 lt_prog_compiler_static_CXX='-Bstatic'
13659 lt_prog_compiler_wl_CXX='-Qoption ld '
13660 ;;
13661 esac
13662 ;;
13663 esac
13664 ;;
13665 lynxos*)
13666 ;;
13667 m88k*)
13668 ;;
13669 mvs*)
13670 case $cc_basename in
13671 cxx*)
13672 lt_prog_compiler_pic_CXX='-W c,exportall'
13673 ;;
13674 *)
13675 ;;
13676 esac
13677 ;;
13678 netbsd*)
13679 ;;
13680 *qnx* | *nto*)
13681 # QNX uses GNU C++, but need to define -shared option too, otherwise
13682 # it will coredump.
13683 lt_prog_compiler_pic_CXX='-fPIC -shared'
13684 ;;
13685 osf3* | osf4* | osf5*)
13686 case $cc_basename in
13687 KCC*)
13688 lt_prog_compiler_wl_CXX='--backend -Wl,'
13689 ;;
13690 RCC*)
13691 # Rational C++ 2.4.1
13692 lt_prog_compiler_pic_CXX='-pic'
13693 ;;
13694 cxx*)
13695 # Digital/Compaq C++
13696 lt_prog_compiler_wl_CXX='-Wl,'
13697 # Make sure the PIC flag is empty. It appears that all Alpha
13698 # Linux and Compaq Tru64 Unix objects are PIC.
13699 lt_prog_compiler_pic_CXX=
13700 lt_prog_compiler_static_CXX='-non_shared'
13701 ;;
13702 *)
13703 ;;
13704 esac
13705 ;;
13706 psos*)
13707 ;;
13708 solaris*)
13709 case $cc_basename in
13710 CC*)
13711 # Sun C++ 4.2, 5.x and Centerline C++
13712 lt_prog_compiler_pic_CXX='-KPIC'
13713 lt_prog_compiler_static_CXX='-Bstatic'
13714 lt_prog_compiler_wl_CXX='-Qoption ld '
13715 ;;
13716 gcx*)
13717 # Green Hills C++ Compiler
13718 lt_prog_compiler_pic_CXX='-PIC'
13719 ;;
13720 *)
13721 ;;
13722 esac
13723 ;;
13724 sunos4*)
13725 case $cc_basename in
13726 CC*)
13727 # Sun C++ 4.x
13728 lt_prog_compiler_pic_CXX='-pic'
13729 lt_prog_compiler_static_CXX='-Bstatic'
13730 ;;
13731 lcc*)
13732 # Lucid
13733 lt_prog_compiler_pic_CXX='-pic'
13734 ;;
13735 *)
13736 ;;
13737 esac
13738 ;;
13739 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13740 case $cc_basename in
13741 CC*)
13742 lt_prog_compiler_wl_CXX='-Wl,'
13743 lt_prog_compiler_pic_CXX='-KPIC'
13744 lt_prog_compiler_static_CXX='-Bstatic'
13745 ;;
13746 esac
13747 ;;
13748 tandem*)
13749 case $cc_basename in
13750 NCC*)
13751 # NonStop-UX NCC 3.20
13752 lt_prog_compiler_pic_CXX='-KPIC'
13753 ;;
13754 *)
13755 ;;
13756 esac
13757 ;;
13758 vxworks*)
13759 ;;
13760 *)
13761 lt_prog_compiler_can_build_shared_CXX=no
13762 ;;
13763 esac
13764 fi
13765
13766 case $host_os in
13767 # For platforms which do not support PIC, -DPIC is meaningless:
13768 *djgpp*)
13769 lt_prog_compiler_pic_CXX=
13770 ;;
13771 *)
13772 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13773 ;;
13774 esac
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13776 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13777
13778
13779
13780 #
13781 # Check to make sure the PIC flag actually works.
13782 #
13783 if test -n "$lt_prog_compiler_pic_CXX"; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13785 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13786 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13787 $as_echo_n "(cached) " >&6
13788 else
13789 lt_cv_prog_compiler_pic_works_CXX=no
13790 ac_outfile=conftest.$ac_objext
13791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13792 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13793 # Insert the option either (1) after the last *FLAGS variable, or
13794 # (2) before a word containing "conftest.", or (3) at the end.
13795 # Note that $ac_compile itself does not contain backslashes and begins
13796 # with a dollar sign (not a hyphen), so the echo should work correctly.
13797 # The option is referenced via a variable to avoid confusing sed.
13798 lt_compile=`echo "$ac_compile" | $SED \
13799 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13800 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13801 -e 's:$: $lt_compiler_flag:'`
13802 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13803 (eval "$lt_compile" 2>conftest.err)
13804 ac_status=$?
13805 cat conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13807 if (exit $ac_status) && test -s "$ac_outfile"; then
13808 # The compiler can only warn and ignore the option if not recognized
13809 # So say no if there are warnings other than the usual output.
13810 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13811 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13812 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13813 lt_cv_prog_compiler_pic_works_CXX=yes
13814 fi
13815 fi
13816 $RM conftest*
13817
13818 fi
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13820 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13821
13822 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13823 case $lt_prog_compiler_pic_CXX in
13824 "" | " "*) ;;
13825 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13826 esac
13827 else
13828 lt_prog_compiler_pic_CXX=
13829 lt_prog_compiler_can_build_shared_CXX=no
13830 fi
13831
13832 fi
13833
13834
13835
13836 #
13837 # Check to make sure the static flag actually works.
13838 #
13839 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13841 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13842 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13843 $as_echo_n "(cached) " >&6
13844 else
13845 lt_cv_prog_compiler_static_works_CXX=no
13846 save_LDFLAGS="$LDFLAGS"
13847 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13848 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13849 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13850 # The linker can only warn and ignore the option if not recognized
13851 # So say no if there are warnings
13852 if test -s conftest.err; then
13853 # Append any errors to the config.log.
13854 cat conftest.err 1>&5
13855 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13856 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13857 if diff conftest.exp conftest.er2 >/dev/null; then
13858 lt_cv_prog_compiler_static_works_CXX=yes
13859 fi
13860 else
13861 lt_cv_prog_compiler_static_works_CXX=yes
13862 fi
13863 fi
13864 $RM -r conftest*
13865 LDFLAGS="$save_LDFLAGS"
13866
13867 fi
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13869 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13870
13871 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13872 :
13873 else
13874 lt_prog_compiler_static_CXX=
13875 fi
13876
13877
13878
13879
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13881 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13882 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13883 $as_echo_n "(cached) " >&6
13884 else
13885 lt_cv_prog_compiler_c_o_CXX=no
13886 $RM -r conftest 2>/dev/null
13887 mkdir conftest
13888 cd conftest
13889 mkdir out
13890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13891
13892 lt_compiler_flag="-o out/conftest2.$ac_objext"
13893 # Insert the option either (1) after the last *FLAGS variable, or
13894 # (2) before a word containing "conftest.", or (3) at the end.
13895 # Note that $ac_compile itself does not contain backslashes and begins
13896 # with a dollar sign (not a hyphen), so the echo should work correctly.
13897 lt_compile=`echo "$ac_compile" | $SED \
13898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13900 -e 's:$: $lt_compiler_flag:'`
13901 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13902 (eval "$lt_compile" 2>out/conftest.err)
13903 ac_status=$?
13904 cat out/conftest.err >&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13907 then
13908 # The compiler can only warn and ignore the option if not recognized
13909 # So say no if there are warnings
13910 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13911 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13912 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13913 lt_cv_prog_compiler_c_o_CXX=yes
13914 fi
13915 fi
13916 chmod u+w . 2>&5
13917 $RM conftest*
13918 # SGI C++ compiler will create directory out/ii_files/ for
13919 # template instantiation
13920 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13921 $RM out/* && rmdir out
13922 cd ..
13923 $RM -r conftest
13924 $RM conftest*
13925
13926 fi
13927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13928 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13929
13930
13931
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13933 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13934 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13935 $as_echo_n "(cached) " >&6
13936 else
13937 lt_cv_prog_compiler_c_o_CXX=no
13938 $RM -r conftest 2>/dev/null
13939 mkdir conftest
13940 cd conftest
13941 mkdir out
13942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13943
13944 lt_compiler_flag="-o out/conftest2.$ac_objext"
13945 # Insert the option either (1) after the last *FLAGS variable, or
13946 # (2) before a word containing "conftest.", or (3) at the end.
13947 # Note that $ac_compile itself does not contain backslashes and begins
13948 # with a dollar sign (not a hyphen), so the echo should work correctly.
13949 lt_compile=`echo "$ac_compile" | $SED \
13950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13952 -e 's:$: $lt_compiler_flag:'`
13953 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13954 (eval "$lt_compile" 2>out/conftest.err)
13955 ac_status=$?
13956 cat out/conftest.err >&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13959 then
13960 # The compiler can only warn and ignore the option if not recognized
13961 # So say no if there are warnings
13962 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13963 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13964 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13965 lt_cv_prog_compiler_c_o_CXX=yes
13966 fi
13967 fi
13968 chmod u+w . 2>&5
13969 $RM conftest*
13970 # SGI C++ compiler will create directory out/ii_files/ for
13971 # template instantiation
13972 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13973 $RM out/* && rmdir out
13974 cd ..
13975 $RM -r conftest
13976 $RM conftest*
13977
13978 fi
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13980 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13981
13982
13983
13984
13985 hard_links="nottested"
13986 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13987 # do not overwrite the value of need_locks provided by the user
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13989 $as_echo_n "checking if we can lock with hard links... " >&6; }
13990 hard_links=yes
13991 $RM conftest*
13992 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13993 touch conftest.a
13994 ln conftest.a conftest.b 2>&5 || hard_links=no
13995 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13997 $as_echo "$hard_links" >&6; }
13998 if test "$hard_links" = no; then
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14000 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14001 need_locks=warn
14002 fi
14003 else
14004 need_locks=no
14005 fi
14006
14007
14008
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14010 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14011
14012 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14013 case $host_os in
14014 aix[4-9]*)
14015 # If we're using GNU nm, then we don't want the "-C" option.
14016 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14017 # Also, AIX nm treats weak defined symbols like other global defined
14018 # symbols, whereas GNU nm marks them as "W".
14019 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14020 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14021 else
14022 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14023 fi
14024 ;;
14025 pw32*)
14026 export_symbols_cmds_CXX="$ltdll_cmds"
14027 ;;
14028 cygwin* | mingw* | cegcc*)
14029 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14030 ;;
14031 *)
14032 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14033 ;;
14034 esac
14035 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14036
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14038 $as_echo "$ld_shlibs_CXX" >&6; }
14039 test "$ld_shlibs_CXX" = no && can_build_shared=no
14040
14041 with_gnu_ld_CXX=$with_gnu_ld
14042
14043
14044
14045
14046
14047
14048 #
14049 # Do we need to explicitly link libc?
14050 #
14051 case "x$archive_cmds_need_lc_CXX" in
14052 x|xyes)
14053 # Assume -lc should be added
14054 archive_cmds_need_lc_CXX=yes
14055
14056 if test "$enable_shared" = yes && test "$GCC" = yes; then
14057 case $archive_cmds_CXX in
14058 *'~'*)
14059 # FIXME: we may have to deal with multi-command sequences.
14060 ;;
14061 '$CC '*)
14062 # Test whether the compiler implicitly links with -lc since on some
14063 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14064 # to ld, don't add -lc before -lgcc.
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14066 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14067 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14068 $as_echo_n "(cached) " >&6
14069 else
14070 $RM conftest*
14071 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14072
14073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14074 (eval $ac_compile) 2>&5
14075 ac_status=$?
14076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14077 test $ac_status = 0; } 2>conftest.err; then
14078 soname=conftest
14079 lib=conftest
14080 libobjs=conftest.$ac_objext
14081 deplibs=
14082 wl=$lt_prog_compiler_wl_CXX
14083 pic_flag=$lt_prog_compiler_pic_CXX
14084 compiler_flags=-v
14085 linker_flags=-v
14086 verstring=
14087 output_objdir=.
14088 libname=conftest
14089 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14090 allow_undefined_flag_CXX=
14091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14092 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14093 ac_status=$?
14094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14095 test $ac_status = 0; }
14096 then
14097 lt_cv_archive_cmds_need_lc_CXX=no
14098 else
14099 lt_cv_archive_cmds_need_lc_CXX=yes
14100 fi
14101 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14102 else
14103 cat conftest.err 1>&5
14104 fi
14105 $RM conftest*
14106
14107 fi
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14109 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14110 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14111 ;;
14112 esac
14113 fi
14114 ;;
14115 esac
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156
14157
14158
14159
14160
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14181 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14182
14183 library_names_spec=
14184 libname_spec='lib$name'
14185 soname_spec=
14186 shrext_cmds=".so"
14187 postinstall_cmds=
14188 postuninstall_cmds=
14189 finish_cmds=
14190 finish_eval=
14191 shlibpath_var=
14192 shlibpath_overrides_runpath=unknown
14193 version_type=none
14194 dynamic_linker="$host_os ld.so"
14195 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14196 need_lib_prefix=unknown
14197 hardcode_into_libs=no
14198
14199 # when you set need_version to no, make sure it does not cause -set_version
14200 # flags to be left without arguments
14201 need_version=unknown
14202
14203 case $host_os in
14204 aix3*)
14205 version_type=linux
14206 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14207 shlibpath_var=LIBPATH
14208
14209 # AIX 3 has no versioning support, so we append a major version to the name.
14210 soname_spec='${libname}${release}${shared_ext}$major'
14211 ;;
14212
14213 aix[4-9]*)
14214 version_type=linux
14215 need_lib_prefix=no
14216 need_version=no
14217 hardcode_into_libs=yes
14218 if test "$host_cpu" = ia64; then
14219 # AIX 5 supports IA64
14220 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14221 shlibpath_var=LD_LIBRARY_PATH
14222 else
14223 # With GCC up to 2.95.x, collect2 would create an import file
14224 # for dependence libraries. The import file would start with
14225 # the line `#! .'. This would cause the generated library to
14226 # depend on `.', always an invalid library. This was fixed in
14227 # development snapshots of GCC prior to 3.0.
14228 case $host_os in
14229 aix4 | aix4.[01] | aix4.[01].*)
14230 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14231 echo ' yes '
14232 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14233 :
14234 else
14235 can_build_shared=no
14236 fi
14237 ;;
14238 esac
14239 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14240 # soname into executable. Probably we can add versioning support to
14241 # collect2, so additional links can be useful in future.
14242 if test "$aix_use_runtimelinking" = yes; then
14243 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14244 # instead of lib<name>.a to let people know that these are not
14245 # typical AIX shared libraries.
14246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14247 else
14248 # We preserve .a as extension for shared libraries through AIX4.2
14249 # and later when we are not doing run time linking.
14250 library_names_spec='${libname}${release}.a $libname.a'
14251 soname_spec='${libname}${release}${shared_ext}$major'
14252 fi
14253 shlibpath_var=LIBPATH
14254 fi
14255 ;;
14256
14257 amigaos*)
14258 case $host_cpu in
14259 powerpc)
14260 # Since July 2007 AmigaOS4 officially supports .so libraries.
14261 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14263 ;;
14264 m68k)
14265 library_names_spec='$libname.ixlibrary $libname.a'
14266 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14267 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14268 ;;
14269 esac
14270 ;;
14271
14272 beos*)
14273 library_names_spec='${libname}${shared_ext}'
14274 dynamic_linker="$host_os ld.so"
14275 shlibpath_var=LIBRARY_PATH
14276 ;;
14277
14278 bsdi[45]*)
14279 version_type=linux
14280 need_version=no
14281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14282 soname_spec='${libname}${release}${shared_ext}$major'
14283 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14284 shlibpath_var=LD_LIBRARY_PATH
14285 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14286 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14287 # the default ld.so.conf also contains /usr/contrib/lib and
14288 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14289 # libtool to hard-code these into programs
14290 ;;
14291
14292 cygwin* | mingw* | pw32* | cegcc*)
14293 version_type=windows
14294 shrext_cmds=".dll"
14295 need_version=no
14296 need_lib_prefix=no
14297
14298 case $GCC,$host_os in
14299 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14300 library_names_spec='$libname.dll.a'
14301 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14302 postinstall_cmds='base_file=`basename \${file}`~
14303 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14304 dldir=$destdir/`dirname \$dlpath`~
14305 test -d \$dldir || mkdir -p \$dldir~
14306 $install_prog $dir/$dlname \$dldir/$dlname~
14307 chmod a+x \$dldir/$dlname~
14308 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14309 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14310 fi'
14311 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14312 dlpath=$dir/\$dldll~
14313 $RM \$dlpath'
14314 shlibpath_overrides_runpath=yes
14315
14316 case $host_os in
14317 cygwin*)
14318 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14319 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14320
14321 ;;
14322 mingw* | cegcc*)
14323 # MinGW DLLs use traditional 'lib' prefix
14324 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14325 ;;
14326 pw32*)
14327 # pw32 DLLs use 'pw' prefix rather than 'lib'
14328 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14329 ;;
14330 esac
14331 ;;
14332
14333 *)
14334 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14335 ;;
14336 esac
14337 dynamic_linker='Win32 ld.exe'
14338 # FIXME: first we should search . and the directory the executable is in
14339 shlibpath_var=PATH
14340 ;;
14341
14342 darwin* | rhapsody*)
14343 dynamic_linker="$host_os dyld"
14344 version_type=darwin
14345 need_lib_prefix=no
14346 need_version=no
14347 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14348 soname_spec='${libname}${release}${major}$shared_ext'
14349 shlibpath_overrides_runpath=yes
14350 shlibpath_var=DYLD_LIBRARY_PATH
14351 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14352
14353 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14354 ;;
14355
14356 dgux*)
14357 version_type=linux
14358 need_lib_prefix=no
14359 need_version=no
14360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14361 soname_spec='${libname}${release}${shared_ext}$major'
14362 shlibpath_var=LD_LIBRARY_PATH
14363 ;;
14364
14365 freebsd* | dragonfly*)
14366 # DragonFly does not have aout. When/if they implement a new
14367 # versioning mechanism, adjust this.
14368 if test -x /usr/bin/objformat; then
14369 objformat=`/usr/bin/objformat`
14370 else
14371 case $host_os in
14372 freebsd[23].*) objformat=aout ;;
14373 *) objformat=elf ;;
14374 esac
14375 fi
14376 version_type=freebsd-$objformat
14377 case $version_type in
14378 freebsd-elf*)
14379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14380 need_version=no
14381 need_lib_prefix=no
14382 ;;
14383 freebsd-*)
14384 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14385 need_version=yes
14386 ;;
14387 esac
14388 shlibpath_var=LD_LIBRARY_PATH
14389 case $host_os in
14390 freebsd2.*)
14391 shlibpath_overrides_runpath=yes
14392 ;;
14393 freebsd3.[01]* | freebsdelf3.[01]*)
14394 shlibpath_overrides_runpath=yes
14395 hardcode_into_libs=yes
14396 ;;
14397 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14398 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14399 shlibpath_overrides_runpath=no
14400 hardcode_into_libs=yes
14401 ;;
14402 *) # from 4.6 on, and DragonFly
14403 shlibpath_overrides_runpath=yes
14404 hardcode_into_libs=yes
14405 ;;
14406 esac
14407 ;;
14408
14409 gnu*)
14410 version_type=linux
14411 need_lib_prefix=no
14412 need_version=no
14413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14414 soname_spec='${libname}${release}${shared_ext}$major'
14415 shlibpath_var=LD_LIBRARY_PATH
14416 hardcode_into_libs=yes
14417 ;;
14418
14419 haiku*)
14420 version_type=linux
14421 need_lib_prefix=no
14422 need_version=no
14423 dynamic_linker="$host_os runtime_loader"
14424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14425 soname_spec='${libname}${release}${shared_ext}$major'
14426 shlibpath_var=LIBRARY_PATH
14427 shlibpath_overrides_runpath=yes
14428 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14429 hardcode_into_libs=yes
14430 ;;
14431
14432 hpux9* | hpux10* | hpux11*)
14433 # Give a soname corresponding to the major version so that dld.sl refuses to
14434 # link against other versions.
14435 version_type=sunos
14436 need_lib_prefix=no
14437 need_version=no
14438 case $host_cpu in
14439 ia64*)
14440 shrext_cmds='.so'
14441 hardcode_into_libs=yes
14442 dynamic_linker="$host_os dld.so"
14443 shlibpath_var=LD_LIBRARY_PATH
14444 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14446 soname_spec='${libname}${release}${shared_ext}$major'
14447 if test "X$HPUX_IA64_MODE" = X32; then
14448 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14449 else
14450 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14451 fi
14452 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14453 ;;
14454 hppa*64*)
14455 shrext_cmds='.sl'
14456 hardcode_into_libs=yes
14457 dynamic_linker="$host_os dld.sl"
14458 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14459 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14461 soname_spec='${libname}${release}${shared_ext}$major'
14462 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14463 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14464 ;;
14465 *)
14466 shrext_cmds='.sl'
14467 dynamic_linker="$host_os dld.sl"
14468 shlibpath_var=SHLIB_PATH
14469 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14471 soname_spec='${libname}${release}${shared_ext}$major'
14472 ;;
14473 esac
14474 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14475 postinstall_cmds='chmod 555 $lib'
14476 # or fails outright, so override atomically:
14477 install_override_mode=555
14478 ;;
14479
14480 interix[3-9]*)
14481 version_type=linux
14482 need_lib_prefix=no
14483 need_version=no
14484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14485 soname_spec='${libname}${release}${shared_ext}$major'
14486 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14487 shlibpath_var=LD_LIBRARY_PATH
14488 shlibpath_overrides_runpath=no
14489 hardcode_into_libs=yes
14490 ;;
14491
14492 irix5* | irix6* | nonstopux*)
14493 case $host_os in
14494 nonstopux*) version_type=nonstopux ;;
14495 *)
14496 if test "$lt_cv_prog_gnu_ld" = yes; then
14497 version_type=linux
14498 else
14499 version_type=irix
14500 fi ;;
14501 esac
14502 need_lib_prefix=no
14503 need_version=no
14504 soname_spec='${libname}${release}${shared_ext}$major'
14505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14506 case $host_os in
14507 irix5* | nonstopux*)
14508 libsuff= shlibsuff=
14509 ;;
14510 *)
14511 case $LD in # libtool.m4 will add one of these switches to LD
14512 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14513 libsuff= shlibsuff= libmagic=32-bit;;
14514 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14515 libsuff=32 shlibsuff=N32 libmagic=N32;;
14516 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14517 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14518 *) libsuff= shlibsuff= libmagic=never-match;;
14519 esac
14520 ;;
14521 esac
14522 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14523 shlibpath_overrides_runpath=no
14524 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14525 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14526 hardcode_into_libs=yes
14527 ;;
14528
14529 # No shared lib support for Linux oldld, aout, or coff.
14530 linux*oldld* | linux*aout* | linux*coff*)
14531 dynamic_linker=no
14532 ;;
14533
14534 # This must be Linux ELF.
14535
14536 # uclinux* changes (here and below) have been submitted to the libtool
14537 # project, but have not yet been accepted: they are GCC-local changes
14538 # for the time being. (See
14539 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14540 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14541 version_type=linux
14542 need_lib_prefix=no
14543 need_version=no
14544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14545 soname_spec='${libname}${release}${shared_ext}$major'
14546 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14547 shlibpath_var=LD_LIBRARY_PATH
14548 shlibpath_overrides_runpath=no
14549
14550 # Some binutils ld are patched to set DT_RUNPATH
14551 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14552 $as_echo_n "(cached) " >&6
14553 else
14554 lt_cv_shlibpath_overrides_runpath=no
14555 save_LDFLAGS=$LDFLAGS
14556 save_libdir=$libdir
14557 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14558 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14560 /* end confdefs.h. */
14561
14562 int
14563 main ()
14564 {
14565
14566 ;
14567 return 0;
14568 }
14569 _ACEOF
14570 if ac_fn_cxx_try_link "$LINENO"; then :
14571 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14572 lt_cv_shlibpath_overrides_runpath=yes
14573 fi
14574 fi
14575 rm -f core conftest.err conftest.$ac_objext \
14576 conftest$ac_exeext conftest.$ac_ext
14577 LDFLAGS=$save_LDFLAGS
14578 libdir=$save_libdir
14579
14580 fi
14581
14582 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14583
14584 # This implies no fast_install, which is unacceptable.
14585 # Some rework will be needed to allow for fast_install
14586 # before this can be enabled.
14587 hardcode_into_libs=yes
14588
14589 # Append ld.so.conf contents to the search path
14590 if test -f /etc/ld.so.conf; then
14591 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' ' '`
14592 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14593 fi
14594
14595 # We used to test for /lib/ld.so.1 and disable shared libraries on
14596 # powerpc, because MkLinux only supported shared libraries with the
14597 # GNU dynamic linker. Since this was broken with cross compilers,
14598 # most powerpc-linux boxes support dynamic linking these days and
14599 # people can always --disable-shared, the test was removed, and we
14600 # assume the GNU/Linux dynamic linker is in use.
14601 dynamic_linker='GNU/Linux ld.so'
14602 ;;
14603
14604 netbsd*)
14605 version_type=sunos
14606 need_lib_prefix=no
14607 need_version=no
14608 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14610 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14611 dynamic_linker='NetBSD (a.out) ld.so'
14612 else
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14614 soname_spec='${libname}${release}${shared_ext}$major'
14615 dynamic_linker='NetBSD ld.elf_so'
14616 fi
14617 shlibpath_var=LD_LIBRARY_PATH
14618 shlibpath_overrides_runpath=yes
14619 hardcode_into_libs=yes
14620 ;;
14621
14622 newsos6)
14623 version_type=linux
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14625 shlibpath_var=LD_LIBRARY_PATH
14626 shlibpath_overrides_runpath=yes
14627 ;;
14628
14629 *nto* | *qnx*)
14630 version_type=qnx
14631 need_lib_prefix=no
14632 need_version=no
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14634 soname_spec='${libname}${release}${shared_ext}$major'
14635 shlibpath_var=LD_LIBRARY_PATH
14636 shlibpath_overrides_runpath=no
14637 hardcode_into_libs=yes
14638 dynamic_linker='ldqnx.so'
14639 ;;
14640
14641 openbsd*)
14642 version_type=sunos
14643 sys_lib_dlsearch_path_spec="/usr/lib"
14644 need_lib_prefix=no
14645 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14646 case $host_os in
14647 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14648 *) need_version=no ;;
14649 esac
14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14652 shlibpath_var=LD_LIBRARY_PATH
14653 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14654 case $host_os in
14655 openbsd2.[89] | openbsd2.[89].*)
14656 shlibpath_overrides_runpath=no
14657 ;;
14658 *)
14659 shlibpath_overrides_runpath=yes
14660 ;;
14661 esac
14662 else
14663 shlibpath_overrides_runpath=yes
14664 fi
14665 ;;
14666
14667 os2*)
14668 libname_spec='$name'
14669 shrext_cmds=".dll"
14670 need_lib_prefix=no
14671 library_names_spec='$libname${shared_ext} $libname.a'
14672 dynamic_linker='OS/2 ld.exe'
14673 shlibpath_var=LIBPATH
14674 ;;
14675
14676 osf3* | osf4* | osf5*)
14677 version_type=osf
14678 need_lib_prefix=no
14679 need_version=no
14680 soname_spec='${libname}${release}${shared_ext}$major'
14681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14682 shlibpath_var=LD_LIBRARY_PATH
14683 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14684 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14685 ;;
14686
14687 rdos*)
14688 dynamic_linker=no
14689 ;;
14690
14691 solaris*)
14692 version_type=linux
14693 need_lib_prefix=no
14694 need_version=no
14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696 soname_spec='${libname}${release}${shared_ext}$major'
14697 shlibpath_var=LD_LIBRARY_PATH
14698 shlibpath_overrides_runpath=yes
14699 hardcode_into_libs=yes
14700 # ldd complains unless libraries are executable
14701 postinstall_cmds='chmod +x $lib'
14702 ;;
14703
14704 sunos4*)
14705 version_type=sunos
14706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14707 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14708 shlibpath_var=LD_LIBRARY_PATH
14709 shlibpath_overrides_runpath=yes
14710 if test "$with_gnu_ld" = yes; then
14711 need_lib_prefix=no
14712 fi
14713 need_version=yes
14714 ;;
14715
14716 sysv4 | sysv4.3*)
14717 version_type=linux
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14719 soname_spec='${libname}${release}${shared_ext}$major'
14720 shlibpath_var=LD_LIBRARY_PATH
14721 case $host_vendor in
14722 sni)
14723 shlibpath_overrides_runpath=no
14724 need_lib_prefix=no
14725 runpath_var=LD_RUN_PATH
14726 ;;
14727 siemens)
14728 need_lib_prefix=no
14729 ;;
14730 motorola)
14731 need_lib_prefix=no
14732 need_version=no
14733 shlibpath_overrides_runpath=no
14734 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14735 ;;
14736 esac
14737 ;;
14738
14739 sysv4*MP*)
14740 if test -d /usr/nec ;then
14741 version_type=linux
14742 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14743 soname_spec='$libname${shared_ext}.$major'
14744 shlibpath_var=LD_LIBRARY_PATH
14745 fi
14746 ;;
14747
14748 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14749 version_type=freebsd-elf
14750 need_lib_prefix=no
14751 need_version=no
14752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14753 soname_spec='${libname}${release}${shared_ext}$major'
14754 shlibpath_var=LD_LIBRARY_PATH
14755 shlibpath_overrides_runpath=yes
14756 hardcode_into_libs=yes
14757 if test "$with_gnu_ld" = yes; then
14758 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14759 else
14760 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14761 case $host_os in
14762 sco3.2v5*)
14763 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14764 ;;
14765 esac
14766 fi
14767 sys_lib_dlsearch_path_spec='/usr/lib'
14768 ;;
14769
14770 tpf*)
14771 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14772 version_type=linux
14773 need_lib_prefix=no
14774 need_version=no
14775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14776 shlibpath_var=LD_LIBRARY_PATH
14777 shlibpath_overrides_runpath=no
14778 hardcode_into_libs=yes
14779 ;;
14780
14781 uts4*)
14782 version_type=linux
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14784 soname_spec='${libname}${release}${shared_ext}$major'
14785 shlibpath_var=LD_LIBRARY_PATH
14786 ;;
14787
14788 *)
14789 dynamic_linker=no
14790 ;;
14791 esac
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14793 $as_echo "$dynamic_linker" >&6; }
14794 test "$dynamic_linker" = no && can_build_shared=no
14795
14796 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14797 if test "$GCC" = yes; then
14798 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14799 fi
14800
14801 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14802 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14803 fi
14804 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14805 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14806 fi
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14846 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14847 hardcode_action_CXX=
14848 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14849 test -n "$runpath_var_CXX" ||
14850 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14851
14852 # We can hardcode non-existent directories.
14853 if test "$hardcode_direct_CXX" != no &&
14854 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14855 # have to relink, otherwise we might link with an installed library
14856 # when we should be linking with a yet-to-be-installed one
14857 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14858 test "$hardcode_minus_L_CXX" != no; then
14859 # Linking always hardcodes the temporary library directory.
14860 hardcode_action_CXX=relink
14861 else
14862 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14863 hardcode_action_CXX=immediate
14864 fi
14865 else
14866 # We cannot hardcode anything, or else we can only hardcode existing
14867 # directories.
14868 hardcode_action_CXX=unsupported
14869 fi
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14871 $as_echo "$hardcode_action_CXX" >&6; }
14872
14873 if test "$hardcode_action_CXX" = relink ||
14874 test "$inherit_rpath_CXX" = yes; then
14875 # Fast installation is not supported
14876 enable_fast_install=no
14877 elif test "$shlibpath_overrides_runpath" = yes ||
14878 test "$enable_shared" = no; then
14879 # Fast installation is not necessary
14880 enable_fast_install=needless
14881 fi
14882
14883
14884
14885
14886
14887
14888
14889 fi # test -n "$compiler"
14890
14891 CC=$lt_save_CC
14892 LDCXX=$LD
14893 LD=$lt_save_LD
14894 GCC=$lt_save_GCC
14895 with_gnu_ld=$lt_save_with_gnu_ld
14896 lt_cv_path_LDCXX=$lt_cv_path_LD
14897 lt_cv_path_LD=$lt_save_path_LD
14898 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14899 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14900 fi # test "$_lt_caught_CXX_error" != yes
14901
14902 ac_ext=c
14903 ac_cpp='$CPP $CPPFLAGS'
14904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919
14920 ac_config_commands="$ac_config_commands libtool"
14921
14922
14923
14924
14925 # Only expand once:
14926
14927
14928
14929 # Test for 64-bit build.
14930 # The cast to long int works around a bug in the HP C Compiler
14931 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14932 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14933 # This bug is HP SR number 8606223364.
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
14935 $as_echo_n "checking size of size_t... " >&6; }
14936 if ${ac_cv_sizeof_size_t+:} false; then :
14937 $as_echo_n "(cached) " >&6
14938 else
14939 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
14940
14941 else
14942 if test "$ac_cv_type_size_t" = yes; then
14943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14945 as_fn_error 77 "cannot compute sizeof (size_t)
14946 See \`config.log' for more details" "$LINENO" 5; }
14947 else
14948 ac_cv_sizeof_size_t=0
14949 fi
14950 fi
14951
14952 fi
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
14954 $as_echo "$ac_cv_sizeof_size_t" >&6; }
14955
14956
14957
14958 cat >>confdefs.h <<_ACEOF
14959 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
14960 _ACEOF
14961
14962
14963
14964
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
14966 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
14967 # Check whether --enable-maintainer-mode was given.
14968 if test "${enable_maintainer_mode+set}" = set; then :
14969 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
14970 else
14971 USE_MAINTAINER_MODE=no
14972 fi
14973
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
14975 $as_echo "$USE_MAINTAINER_MODE" >&6; }
14976 if test $USE_MAINTAINER_MODE = yes; then
14977 MAINTAINER_MODE_TRUE=
14978 MAINTAINER_MODE_FALSE='#'
14979 else
14980 MAINTAINER_MODE_TRUE='#'
14981 MAINTAINER_MODE_FALSE=
14982 fi
14983
14984 MAINT=$MAINTAINER_MODE_TRUE
14985
14986
14987
14988 for ac_header in sys/mman.h
14989 do :
14990 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
14991 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
14992 cat >>confdefs.h <<_ACEOF
14993 #define HAVE_SYS_MMAN_H 1
14994 _ACEOF
14995
14996 fi
14997
14998 done
14999
15000 for ac_func in mmap mkostemp
15001 do :
15002 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15003 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15004 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15005 cat >>confdefs.h <<_ACEOF
15006 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15007 _ACEOF
15008
15009 fi
15010 done
15011
15012
15013 ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
15014 if test "x$ac_cv_header_sys_mman_h" = xyes; then :
15015 libffi_header_sys_mman_h=yes
15016 else
15017 libffi_header_sys_mman_h=no
15018 fi
15019
15020
15021 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
15022 if test "x$ac_cv_func_mmap" = xyes; then :
15023 libffi_func_mmap=yes
15024 else
15025 libffi_func_mmap=no
15026 fi
15027
15028 if test "$libffi_header_sys_mman_h" != yes \
15029 || test "$libffi_func_mmap" != yes; then
15030 ac_cv_func_mmap_file=no
15031 ac_cv_func_mmap_dev_zero=no
15032 ac_cv_func_mmap_anon=no
15033 else
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether read-only mmap of a plain file works" >&5
15035 $as_echo_n "checking whether read-only mmap of a plain file works... " >&6; }
15036 if ${ac_cv_func_mmap_file+:} false; then :
15037 $as_echo_n "(cached) " >&6
15038 else
15039 # Add a system to this blacklist if
15040 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a
15041 # memory area containing the same data that you'd get if you applied
15042 # read() to the same fd. The only system known to have a problem here
15043 # is VMS, where text files have record structure.
15044 case "$host_os" in
15045 vms* | ultrix*)
15046 ac_cv_func_mmap_file=no ;;
15047 *)
15048 ac_cv_func_mmap_file=yes;;
15049 esac
15050 fi
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
15052 $as_echo "$ac_cv_func_mmap_file" >&6; }
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap from /dev/zero works" >&5
15054 $as_echo_n "checking whether mmap from /dev/zero works... " >&6; }
15055 if ${ac_cv_func_mmap_dev_zero+:} false; then :
15056 $as_echo_n "(cached) " >&6
15057 else
15058 # Add a system to this blacklist if it has mmap() but /dev/zero
15059 # does not exist, or if mmapping /dev/zero does not give anonymous
15060 # zeroed pages with both the following properties:
15061 # 1. If you map N consecutive pages in with one call, and then
15062 # unmap any subset of those pages, the pages that were not
15063 # explicitly unmapped remain accessible.
15064 # 2. If you map two adjacent blocks of memory and then unmap them
15065 # both at once, they must both go away.
15066 # Systems known to be in this category are Windows (all variants),
15067 # VMS, and Darwin.
15068 case "$host_os" in
15069 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00)
15070 ac_cv_func_mmap_dev_zero=no ;;
15071 *)
15072 ac_cv_func_mmap_dev_zero=yes;;
15073 esac
15074 fi
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_dev_zero" >&5
15076 $as_echo "$ac_cv_func_mmap_dev_zero" >&6; }
15077
15078 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for.
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANON(YMOUS)" >&5
15080 $as_echo_n "checking for MAP_ANON(YMOUS)... " >&6; }
15081 if ${ac_cv_decl_map_anon+:} false; then :
15082 $as_echo_n "(cached) " >&6
15083 else
15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15085 /* end confdefs.h. */
15086 #include <sys/types.h>
15087 #include <sys/mman.h>
15088 #include <unistd.h>
15089
15090 #ifndef MAP_ANONYMOUS
15091 #define MAP_ANONYMOUS MAP_ANON
15092 #endif
15093
15094 int
15095 main ()
15096 {
15097 int n = MAP_ANONYMOUS;
15098 ;
15099 return 0;
15100 }
15101 _ACEOF
15102 if ac_fn_c_try_compile "$LINENO"; then :
15103 ac_cv_decl_map_anon=yes
15104 else
15105 ac_cv_decl_map_anon=no
15106 fi
15107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15108 fi
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_decl_map_anon" >&5
15110 $as_echo "$ac_cv_decl_map_anon" >&6; }
15111
15112 if test $ac_cv_decl_map_anon = no; then
15113 ac_cv_func_mmap_anon=no
15114 else
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mmap with MAP_ANON(YMOUS) works" >&5
15116 $as_echo_n "checking whether mmap with MAP_ANON(YMOUS) works... " >&6; }
15117 if ${ac_cv_func_mmap_anon+:} false; then :
15118 $as_echo_n "(cached) " >&6
15119 else
15120 # Add a system to this blacklist if it has mmap() and MAP_ANON or
15121 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
15122 # doesn't give anonymous zeroed pages with the same properties listed
15123 # above for use of /dev/zero.
15124 # Systems known to be in this category are Windows, VMS, and SCO Unix.
15125 case "$host_os" in
15126 vms* | cygwin* | pe | mingw* | sco* | udk* )
15127 ac_cv_func_mmap_anon=no ;;
15128 *)
15129 ac_cv_func_mmap_anon=yes;;
15130 esac
15131 fi
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_anon" >&5
15133 $as_echo "$ac_cv_func_mmap_anon" >&6; }
15134 fi
15135 fi
15136
15137 if test $ac_cv_func_mmap_file = yes; then
15138
15139 $as_echo "#define HAVE_MMAP_FILE 1" >>confdefs.h
15140
15141 fi
15142 if test $ac_cv_func_mmap_dev_zero = yes; then
15143
15144 $as_echo "#define HAVE_MMAP_DEV_ZERO 1" >>confdefs.h
15145
15146 fi
15147 if test $ac_cv_func_mmap_anon = yes; then
15148
15149 $as_echo "#define HAVE_MMAP_ANON 1" >>confdefs.h
15150
15151 fi
15152
15153
15154 if test -d $srcdir/testsuite; then
15155 TESTSUBDIR_TRUE=
15156 TESTSUBDIR_FALSE='#'
15157 else
15158 TESTSUBDIR_TRUE='#'
15159 TESTSUBDIR_FALSE=
15160 fi
15161
15162
15163 TARGETDIR="unknown"
15164 HAVE_LONG_DOUBLE_VARIANT=0
15165
15166 . ${srcdir}/configure.host
15167
15168 if test -n "${UNSUPPORTED}"; then
15169 as_fn_error $? "\"libffi has not been ported to $host.\"" "$LINENO" 5
15170 fi
15171
15172
15173
15174
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15176 $as_echo_n "checking for ANSI C header files... " >&6; }
15177 if ${ac_cv_header_stdc+:} false; then :
15178 $as_echo_n "(cached) " >&6
15179 else
15180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15181 /* end confdefs.h. */
15182 #include <stdlib.h>
15183 #include <stdarg.h>
15184 #include <string.h>
15185 #include <float.h>
15186
15187 int
15188 main ()
15189 {
15190
15191 ;
15192 return 0;
15193 }
15194 _ACEOF
15195 if ac_fn_c_try_compile "$LINENO"; then :
15196 ac_cv_header_stdc=yes
15197 else
15198 ac_cv_header_stdc=no
15199 fi
15200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15201
15202 if test $ac_cv_header_stdc = yes; then
15203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15205 /* end confdefs.h. */
15206 #include <string.h>
15207
15208 _ACEOF
15209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15210 $EGREP "memchr" >/dev/null 2>&1; then :
15211
15212 else
15213 ac_cv_header_stdc=no
15214 fi
15215 rm -f conftest*
15216
15217 fi
15218
15219 if test $ac_cv_header_stdc = yes; then
15220 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15222 /* end confdefs.h. */
15223 #include <stdlib.h>
15224
15225 _ACEOF
15226 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15227 $EGREP "free" >/dev/null 2>&1; then :
15228
15229 else
15230 ac_cv_header_stdc=no
15231 fi
15232 rm -f conftest*
15233
15234 fi
15235
15236 if test $ac_cv_header_stdc = yes; then
15237 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15238 if test "$cross_compiling" = yes; then :
15239 :
15240 else
15241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15242 /* end confdefs.h. */
15243 #include <ctype.h>
15244 #include <stdlib.h>
15245 #if ((' ' & 0x0FF) == 0x020)
15246 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15247 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15248 #else
15249 # define ISLOWER(c) \
15250 (('a' <= (c) && (c) <= 'i') \
15251 || ('j' <= (c) && (c) <= 'r') \
15252 || ('s' <= (c) && (c) <= 'z'))
15253 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15254 #endif
15255
15256 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15257 int
15258 main ()
15259 {
15260 int i;
15261 for (i = 0; i < 256; i++)
15262 if (XOR (islower (i), ISLOWER (i))
15263 || toupper (i) != TOUPPER (i))
15264 return 2;
15265 return 0;
15266 }
15267 _ACEOF
15268 if ac_fn_c_try_run "$LINENO"; then :
15269
15270 else
15271 ac_cv_header_stdc=no
15272 fi
15273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15274 conftest.$ac_objext conftest.beam conftest.$ac_ext
15275 fi
15276
15277 fi
15278 fi
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15280 $as_echo "$ac_cv_header_stdc" >&6; }
15281 if test $ac_cv_header_stdc = yes; then
15282
15283 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15284
15285 fi
15286
15287 for ac_func in memcpy
15288 do :
15289 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
15290 if test "x$ac_cv_func_memcpy" = xyes; then :
15291 cat >>confdefs.h <<_ACEOF
15292 #define HAVE_MEMCPY 1
15293 _ACEOF
15294
15295 fi
15296 done
15297
15298 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15299 if test "x$ac_cv_type_size_t" = xyes; then :
15300
15301 else
15302
15303 cat >>confdefs.h <<_ACEOF
15304 #define size_t unsigned int
15305 _ACEOF
15306
15307 fi
15308
15309 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15310 # for constant arguments. Useless!
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
15312 $as_echo_n "checking for working alloca.h... " >&6; }
15313 if ${ac_cv_working_alloca_h+:} false; then :
15314 $as_echo_n "(cached) " >&6
15315 else
15316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317 /* end confdefs.h. */
15318 #include <alloca.h>
15319 int
15320 main ()
15321 {
15322 char *p = (char *) alloca (2 * sizeof (int));
15323 if (p) return 0;
15324 ;
15325 return 0;
15326 }
15327 _ACEOF
15328 if ac_fn_c_try_link "$LINENO"; then :
15329 ac_cv_working_alloca_h=yes
15330 else
15331 ac_cv_working_alloca_h=no
15332 fi
15333 rm -f core conftest.err conftest.$ac_objext \
15334 conftest$ac_exeext conftest.$ac_ext
15335 fi
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
15337 $as_echo "$ac_cv_working_alloca_h" >&6; }
15338 if test $ac_cv_working_alloca_h = yes; then
15339
15340 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
15341
15342 fi
15343
15344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
15345 $as_echo_n "checking for alloca... " >&6; }
15346 if ${ac_cv_func_alloca_works+:} false; then :
15347 $as_echo_n "(cached) " >&6
15348 else
15349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15350 /* end confdefs.h. */
15351 #ifdef __GNUC__
15352 # define alloca __builtin_alloca
15353 #else
15354 # ifdef _MSC_VER
15355 # include <malloc.h>
15356 # define alloca _alloca
15357 # else
15358 # ifdef HAVE_ALLOCA_H
15359 # include <alloca.h>
15360 # else
15361 # ifdef _AIX
15362 #pragma alloca
15363 # else
15364 # ifndef alloca /* predefined by HP cc +Olibcalls */
15365 void *alloca (size_t);
15366 # endif
15367 # endif
15368 # endif
15369 # endif
15370 #endif
15371
15372 int
15373 main ()
15374 {
15375 char *p = (char *) alloca (1);
15376 if (p) return 0;
15377 ;
15378 return 0;
15379 }
15380 _ACEOF
15381 if ac_fn_c_try_link "$LINENO"; then :
15382 ac_cv_func_alloca_works=yes
15383 else
15384 ac_cv_func_alloca_works=no
15385 fi
15386 rm -f core conftest.err conftest.$ac_objext \
15387 conftest$ac_exeext conftest.$ac_ext
15388 fi
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
15390 $as_echo "$ac_cv_func_alloca_works" >&6; }
15391
15392 if test $ac_cv_func_alloca_works = yes; then
15393
15394 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
15395
15396 else
15397 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15398 # that cause trouble. Some versions do not even contain alloca or
15399 # contain a buggy version. If you still want to use their alloca,
15400 # use ar to extract alloca.o from them instead of compiling alloca.c.
15401
15402 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15403
15404 $as_echo "#define C_ALLOCA 1" >>confdefs.h
15405
15406
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
15408 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
15409 if ${ac_cv_os_cray+:} false; then :
15410 $as_echo_n "(cached) " >&6
15411 else
15412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15413 /* end confdefs.h. */
15414 #if defined CRAY && ! defined CRAY2
15415 webecray
15416 #else
15417 wenotbecray
15418 #endif
15419
15420 _ACEOF
15421 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15422 $EGREP "webecray" >/dev/null 2>&1; then :
15423 ac_cv_os_cray=yes
15424 else
15425 ac_cv_os_cray=no
15426 fi
15427 rm -f conftest*
15428
15429 fi
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
15431 $as_echo "$ac_cv_os_cray" >&6; }
15432 if test $ac_cv_os_cray = yes; then
15433 for ac_func in _getb67 GETB67 getb67; do
15434 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15435 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15436 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15437
15438 cat >>confdefs.h <<_ACEOF
15439 #define CRAY_STACKSEG_END $ac_func
15440 _ACEOF
15441
15442 break
15443 fi
15444
15445 done
15446 fi
15447
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
15449 $as_echo_n "checking stack direction for C alloca... " >&6; }
15450 if ${ac_cv_c_stack_direction+:} false; then :
15451 $as_echo_n "(cached) " >&6
15452 else
15453 if test "$cross_compiling" = yes; then :
15454 ac_cv_c_stack_direction=0
15455 else
15456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15457 /* end confdefs.h. */
15458 $ac_includes_default
15459 int
15460 find_stack_direction (int *addr, int depth)
15461 {
15462 int dir, dummy = 0;
15463 if (! addr)
15464 addr = &dummy;
15465 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
15466 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
15467 return dir + dummy;
15468 }
15469
15470 int
15471 main (int argc, char **argv)
15472 {
15473 return find_stack_direction (0, argc + !argv + 20) < 0;
15474 }
15475 _ACEOF
15476 if ac_fn_c_try_run "$LINENO"; then :
15477 ac_cv_c_stack_direction=1
15478 else
15479 ac_cv_c_stack_direction=-1
15480 fi
15481 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15482 conftest.$ac_objext conftest.beam conftest.$ac_ext
15483 fi
15484
15485 fi
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
15487 $as_echo "$ac_cv_c_stack_direction" >&6; }
15488 cat >>confdefs.h <<_ACEOF
15489 #define STACK_DIRECTION $ac_cv_c_stack_direction
15490 _ACEOF
15491
15492
15493 fi
15494
15495
15496 # The cast to long int works around a bug in the HP C Compiler
15497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15499 # This bug is HP SR number 8606223364.
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
15501 $as_echo_n "checking size of double... " >&6; }
15502 if ${ac_cv_sizeof_double+:} false; then :
15503 $as_echo_n "(cached) " >&6
15504 else
15505 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
15506
15507 else
15508 if test "$ac_cv_type_double" = yes; then
15509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15511 as_fn_error 77 "cannot compute sizeof (double)
15512 See \`config.log' for more details" "$LINENO" 5; }
15513 else
15514 ac_cv_sizeof_double=0
15515 fi
15516 fi
15517
15518 fi
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
15520 $as_echo "$ac_cv_sizeof_double" >&6; }
15521
15522
15523
15524 cat >>confdefs.h <<_ACEOF
15525 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
15526 _ACEOF
15527
15528
15529 # The cast to long int works around a bug in the HP C Compiler
15530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15532 # This bug is HP SR number 8606223364.
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
15534 $as_echo_n "checking size of long double... " >&6; }
15535 if ${ac_cv_sizeof_long_double+:} false; then :
15536 $as_echo_n "(cached) " >&6
15537 else
15538 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
15539
15540 else
15541 if test "$ac_cv_type_long_double" = yes; then
15542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15544 as_fn_error 77 "cannot compute sizeof (long double)
15545 See \`config.log' for more details" "$LINENO" 5; }
15546 else
15547 ac_cv_sizeof_long_double=0
15548 fi
15549 fi
15550
15551 fi
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
15553 $as_echo "$ac_cv_sizeof_long_double" >&6; }
15554
15555
15556
15557 cat >>confdefs.h <<_ACEOF
15558 #define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
15559 _ACEOF
15560
15561
15562
15563 # Also AC_SUBST this variable for ffi.h.
15564 if test -z "$HAVE_LONG_DOUBLE"; then
15565 HAVE_LONG_DOUBLE=0
15566 if test $ac_cv_sizeof_long_double != 0; then
15567 if test $HAVE_LONG_DOUBLE_VARIANT != 0; then
15568
15569 $as_echo "#define HAVE_LONG_DOUBLE_VARIANT 1" >>confdefs.h
15570
15571 HAVE_LONG_DOUBLE=1
15572 else
15573 if test $ac_cv_sizeof_double != $ac_cv_sizeof_long_double; then
15574 HAVE_LONG_DOUBLE=1
15575
15576 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
15577
15578 fi
15579 fi
15580 fi
15581 fi
15582
15583
15584
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15586 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15587 if ${ac_cv_c_bigendian+:} false; then :
15588 $as_echo_n "(cached) " >&6
15589 else
15590 ac_cv_c_bigendian=unknown
15591 # See if we're dealing with a universal compiler.
15592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15593 /* end confdefs.h. */
15594 #ifndef __APPLE_CC__
15595 not a universal capable compiler
15596 #endif
15597 typedef int dummy;
15598
15599 _ACEOF
15600 if ac_fn_c_try_compile "$LINENO"; then :
15601
15602 # Check for potential -arch flags. It is not universal unless
15603 # there are at least two -arch flags with different values.
15604 ac_arch=
15605 ac_prev=
15606 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15607 if test -n "$ac_prev"; then
15608 case $ac_word in
15609 i?86 | x86_64 | ppc | ppc64)
15610 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15611 ac_arch=$ac_word
15612 else
15613 ac_cv_c_bigendian=universal
15614 break
15615 fi
15616 ;;
15617 esac
15618 ac_prev=
15619 elif test "x$ac_word" = "x-arch"; then
15620 ac_prev=arch
15621 fi
15622 done
15623 fi
15624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15625 if test $ac_cv_c_bigendian = unknown; then
15626 # See if sys/param.h defines the BYTE_ORDER macro.
15627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15628 /* end confdefs.h. */
15629 #include <sys/types.h>
15630 #include <sys/param.h>
15631
15632 int
15633 main ()
15634 {
15635 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15636 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15637 && LITTLE_ENDIAN)
15638 bogus endian macros
15639 #endif
15640
15641 ;
15642 return 0;
15643 }
15644 _ACEOF
15645 if ac_fn_c_try_compile "$LINENO"; then :
15646 # It does; now see whether it defined to BIG_ENDIAN or not.
15647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15648 /* end confdefs.h. */
15649 #include <sys/types.h>
15650 #include <sys/param.h>
15651
15652 int
15653 main ()
15654 {
15655 #if BYTE_ORDER != BIG_ENDIAN
15656 not big endian
15657 #endif
15658
15659 ;
15660 return 0;
15661 }
15662 _ACEOF
15663 if ac_fn_c_try_compile "$LINENO"; then :
15664 ac_cv_c_bigendian=yes
15665 else
15666 ac_cv_c_bigendian=no
15667 fi
15668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 fi
15670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15671 fi
15672 if test $ac_cv_c_bigendian = unknown; then
15673 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15676 #include <limits.h>
15677
15678 int
15679 main ()
15680 {
15681 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15682 bogus endian macros
15683 #endif
15684
15685 ;
15686 return 0;
15687 }
15688 _ACEOF
15689 if ac_fn_c_try_compile "$LINENO"; then :
15690 # It does; now see whether it defined to _BIG_ENDIAN or not.
15691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15692 /* end confdefs.h. */
15693 #include <limits.h>
15694
15695 int
15696 main ()
15697 {
15698 #ifndef _BIG_ENDIAN
15699 not big endian
15700 #endif
15701
15702 ;
15703 return 0;
15704 }
15705 _ACEOF
15706 if ac_fn_c_try_compile "$LINENO"; then :
15707 ac_cv_c_bigendian=yes
15708 else
15709 ac_cv_c_bigendian=no
15710 fi
15711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712 fi
15713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15714 fi
15715 if test $ac_cv_c_bigendian = unknown; then
15716 # Compile a test program.
15717 if test "$cross_compiling" = yes; then :
15718 # Try to guess by grepping values from an object file.
15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15721 short int ascii_mm[] =
15722 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15723 short int ascii_ii[] =
15724 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15725 int use_ascii (int i) {
15726 return ascii_mm[i] + ascii_ii[i];
15727 }
15728 short int ebcdic_ii[] =
15729 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15730 short int ebcdic_mm[] =
15731 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15732 int use_ebcdic (int i) {
15733 return ebcdic_mm[i] + ebcdic_ii[i];
15734 }
15735 extern int foo;
15736
15737 int
15738 main ()
15739 {
15740 return use_ascii (foo) == use_ebcdic (foo);
15741 ;
15742 return 0;
15743 }
15744 _ACEOF
15745 if ac_fn_c_try_compile "$LINENO"; then :
15746 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15747 ac_cv_c_bigendian=yes
15748 fi
15749 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15750 if test "$ac_cv_c_bigendian" = unknown; then
15751 ac_cv_c_bigendian=no
15752 else
15753 # finding both strings is unlikely to happen, but who knows?
15754 ac_cv_c_bigendian=unknown
15755 fi
15756 fi
15757 fi
15758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15759 else
15760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761 /* end confdefs.h. */
15762 $ac_includes_default
15763 int
15764 main ()
15765 {
15766
15767 /* Are we little or big endian? From Harbison&Steele. */
15768 union
15769 {
15770 long int l;
15771 char c[sizeof (long int)];
15772 } u;
15773 u.l = 1;
15774 return u.c[sizeof (long int) - 1] == 1;
15775
15776 ;
15777 return 0;
15778 }
15779 _ACEOF
15780 if ac_fn_c_try_run "$LINENO"; then :
15781 ac_cv_c_bigendian=no
15782 else
15783 ac_cv_c_bigendian=yes
15784 fi
15785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15786 conftest.$ac_objext conftest.beam conftest.$ac_ext
15787 fi
15788
15789 fi
15790 fi
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15792 $as_echo "$ac_cv_c_bigendian" >&6; }
15793 case $ac_cv_c_bigendian in #(
15794 yes)
15795 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15796 ;; #(
15797 no)
15798 ;; #(
15799 universal)
15800
15801 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15802
15803 ;; #(
15804 *)
15805 as_fn_error $? "unknown endianness
15806 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15807 esac
15808
15809
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .cfi pseudo-op support" >&5
15811 $as_echo_n "checking assembler .cfi pseudo-op support... " >&6; }
15812 if ${gcc_cv_as_cfi_pseudo_op+:} false; then :
15813 $as_echo_n "(cached) " >&6
15814 else
15815
15816 gcc_cv_as_cfi_pseudo_op=unknown
15817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15818 /* end confdefs.h. */
15819 asm (".cfi_startproc\n\t.cfi_endproc");
15820 int
15821 main ()
15822 {
15823
15824 ;
15825 return 0;
15826 }
15827 _ACEOF
15828 if ac_fn_c_try_compile "$LINENO"; then :
15829 gcc_cv_as_cfi_pseudo_op=yes
15830 else
15831 gcc_cv_as_cfi_pseudo_op=no
15832 fi
15833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15834
15835 fi
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_pseudo_op" >&5
15837 $as_echo "$gcc_cv_as_cfi_pseudo_op" >&6; }
15838 if test "x$gcc_cv_as_cfi_pseudo_op" = xyes; then
15839
15840 $as_echo "#define HAVE_AS_CFI_PSEUDO_OP 1" >>confdefs.h
15841
15842 fi
15843
15844
15845 case "$TARGET" in
15846 SPARC)
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler and linker support unaligned pc related relocs" >&5
15848 $as_echo_n "checking assembler and linker support unaligned pc related relocs... " >&6; }
15849 if ${libffi_cv_as_sparc_ua_pcrel+:} false; then :
15850 $as_echo_n "(cached) " >&6
15851 else
15852
15853 save_CFLAGS="$CFLAGS"
15854 save_LDFLAGS="$LDFLAGS"
15855 CFLAGS="$CFLAGS -fpic"
15856 LDFLAGS="$LDFLAGS -shared"
15857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15858 /* end confdefs.h. */
15859 asm (".text; foo: nop; .data; .align 4; .byte 0; .uaword %r_disp32(foo); .text");
15860 int
15861 main ()
15862 {
15863
15864 ;
15865 return 0;
15866 }
15867 _ACEOF
15868 if ac_fn_c_try_link "$LINENO"; then :
15869 libffi_cv_as_sparc_ua_pcrel=yes
15870 else
15871 libffi_cv_as_sparc_ua_pcrel=no
15872 fi
15873 rm -f core conftest.err conftest.$ac_objext \
15874 conftest$ac_exeext conftest.$ac_ext
15875 CFLAGS="$save_CFLAGS"
15876 LDFLAGS="$save_LDFLAGS"
15877 fi
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_sparc_ua_pcrel" >&5
15879 $as_echo "$libffi_cv_as_sparc_ua_pcrel" >&6; }
15880 if test "x$libffi_cv_as_sparc_ua_pcrel" = xyes; then
15881
15882 $as_echo "#define HAVE_AS_SPARC_UA_PCREL 1" >>confdefs.h
15883
15884 fi
15885
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler .register pseudo-op support" >&5
15887 $as_echo_n "checking assembler .register pseudo-op support... " >&6; }
15888 if ${libffi_cv_as_register_pseudo_op+:} false; then :
15889 $as_echo_n "(cached) " >&6
15890 else
15891
15892 libffi_cv_as_register_pseudo_op=unknown
15893 # Check if we have .register
15894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15895 /* end confdefs.h. */
15896
15897 int
15898 main ()
15899 {
15900 asm (".register %g2, #scratch");
15901 ;
15902 return 0;
15903 }
15904 _ACEOF
15905 if ac_fn_c_try_compile "$LINENO"; then :
15906 libffi_cv_as_register_pseudo_op=yes
15907 else
15908 libffi_cv_as_register_pseudo_op=no
15909 fi
15910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15911
15912 fi
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_register_pseudo_op" >&5
15914 $as_echo "$libffi_cv_as_register_pseudo_op" >&6; }
15915 if test "x$libffi_cv_as_register_pseudo_op" = xyes; then
15916
15917 $as_echo "#define HAVE_AS_REGISTER_PSEUDO_OP 1" >>confdefs.h
15918
15919 fi
15920 ;;
15921
15922 X86*)
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler supports pc related relocs" >&5
15924 $as_echo_n "checking assembler supports pc related relocs... " >&6; }
15925 if ${libffi_cv_as_x86_pcrel+:} false; then :
15926 $as_echo_n "(cached) " >&6
15927 else
15928
15929 libffi_cv_as_x86_pcrel=no
15930 echo '.text; foo: nop; .data; .long foo-.; .text' > conftest.s
15931 if $CC $CFLAGS -c conftest.s > /dev/null 2>&1; then
15932 libffi_cv_as_x86_pcrel=yes
15933 fi
15934
15935 fi
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_pcrel" >&5
15937 $as_echo "$libffi_cv_as_x86_pcrel" >&6; }
15938 if test "x$libffi_cv_as_x86_pcrel" = xyes; then
15939
15940 $as_echo "#define HAVE_AS_X86_PCREL 1" >>confdefs.h
15941
15942 fi
15943 ;;
15944
15945 S390)
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler uses zarch features" >&5
15947 $as_echo_n "checking compiler uses zarch features... " >&6; }
15948 if ${libffi_cv_as_s390_zarch+:} false; then :
15949 $as_echo_n "(cached) " >&6
15950 else
15951
15952 libffi_cv_as_s390_zarch=no
15953 echo 'void foo(void) { bar(); bar(); }' > conftest.c
15954 if $CC $CFLAGS -S conftest.c > /dev/null 2>&1; then
15955 if grep -q brasl conftest.s; then
15956 libffi_cv_as_s390_zarch=yes
15957 fi
15958 fi
15959
15960 fi
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_s390_zarch" >&5
15962 $as_echo "$libffi_cv_as_s390_zarch" >&6; }
15963 if test "x$libffi_cv_as_s390_zarch" = xyes; then
15964
15965 $as_echo "#define HAVE_AS_S390_ZARCH 1" >>confdefs.h
15966
15967 fi
15968 ;;
15969 esac
15970
15971 # On PaX enable kernels that have MPROTECT enable we can't use PROT_EXEC.
15972 # Check whether --enable-pax_emutramp was given.
15973 if test "${enable_pax_emutramp+set}" = set; then :
15974 enableval=$enable_pax_emutramp; if test "$enable_pax_emutramp" = "yes"; then
15975
15976 $as_echo "#define FFI_MMAP_EXEC_EMUTRAMP_PAX 1" >>confdefs.h
15977
15978 fi
15979 fi
15980
15981
15982 FFI_EXEC_TRAMPOLINE_TABLE=0
15983 case "$target" in
15984 *arm*-apple-darwin* | aarch64-apple-darwin*)
15985 FFI_EXEC_TRAMPOLINE_TABLE=1
15986
15987 $as_echo "#define FFI_EXEC_TRAMPOLINE_TABLE 1" >>confdefs.h
15988
15989 ;;
15990 *-apple-darwin1* | *-*-freebsd* | *-*-kfreebsd* | *-*-openbsd* | *-pc-solaris*)
15991
15992 $as_echo "#define FFI_MMAP_EXEC_WRIT 1" >>confdefs.h
15993
15994 ;;
15995 esac
15996 if test x$FFI_EXEC_TRAMPOLINE_TABLE = x1; then
15997 FFI_EXEC_TRAMPOLINE_TABLE_TRUE=
15998 FFI_EXEC_TRAMPOLINE_TABLE_FALSE='#'
15999 else
16000 FFI_EXEC_TRAMPOLINE_TABLE_TRUE='#'
16001 FFI_EXEC_TRAMPOLINE_TABLE_FALSE=
16002 fi
16003
16004
16005
16006 if test x$TARGET = xX86_64; then
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking toolchain supports unwind section type" >&5
16008 $as_echo_n "checking toolchain supports unwind section type... " >&6; }
16009 if ${libffi_cv_as_x86_64_unwind_section_type+:} false; then :
16010 $as_echo_n "(cached) " >&6
16011 else
16012
16013 cat > conftest1.s << EOF
16014 .text
16015 .globl foo
16016 foo:
16017 jmp bar
16018 .section .eh_frame,"a",@unwind
16019 bar:
16020 EOF
16021
16022 cat > conftest2.c << EOF
16023 extern void foo();
16024 int main(){foo();}
16025 EOF
16026
16027 libffi_cv_as_x86_64_unwind_section_type=no
16028 # we ensure that we can compile _and_ link an assembly file containing an @unwind section
16029 # since the compiler can support it and not the linker (ie old binutils)
16030 if $CC -Wa,--fatal-warnings $CFLAGS -c conftest1.s > /dev/null 2>&1 && \
16031 $CC conftest2.c conftest1.o > /dev/null 2>&1 ; then
16032 libffi_cv_as_x86_64_unwind_section_type=yes
16033 fi
16034
16035 fi
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_as_x86_64_unwind_section_type" >&5
16037 $as_echo "$libffi_cv_as_x86_64_unwind_section_type" >&6; }
16038 if test "x$libffi_cv_as_x86_64_unwind_section_type" = xyes; then
16039
16040 $as_echo "#define HAVE_AS_X86_64_UNWIND_SECTION_TYPE 1" >>confdefs.h
16041
16042 fi
16043 fi
16044
16045 if test "x$GCC" = "xyes"; then
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .eh_frame section should be read-only" >&5
16047 $as_echo_n "checking whether .eh_frame section should be read-only... " >&6; }
16048 if ${libffi_cv_ro_eh_frame+:} false; then :
16049 $as_echo_n "(cached) " >&6
16050 else
16051
16052 libffi_cv_ro_eh_frame=no
16053 echo 'extern void foo (void); void bar (void) { foo (); foo (); }' > conftest.c
16054 if $CC $CFLAGS -c -fpic -fexceptions -o conftest.o conftest.c > /dev/null 2>&1; then
16055 objdump -h conftest.o > conftest.dump 2>&1
16056 libffi_eh_frame_line=`grep -n eh_frame conftest.dump | cut -d: -f 1`
16057 if test "x$libffi_eh_frame_line" != "x"; then
16058 libffi_test_line=`expr $libffi_eh_frame_line + 1`p
16059 sed -n $libffi_test_line conftest.dump > conftest.line
16060 if grep READONLY conftest.line > /dev/null; then
16061 libffi_cv_ro_eh_frame=yes
16062 fi
16063 fi
16064 fi
16065 rm -f conftest.*
16066
16067 fi
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_ro_eh_frame" >&5
16069 $as_echo "$libffi_cv_ro_eh_frame" >&6; }
16070 if test "x$libffi_cv_ro_eh_frame" = xyes; then
16071
16072 $as_echo "#define HAVE_RO_EH_FRAME 1" >>confdefs.h
16073
16074
16075 $as_echo "#define EH_FRAME_FLAGS \"a\"" >>confdefs.h
16076
16077 else
16078
16079 $as_echo "#define EH_FRAME_FLAGS \"aw\"" >>confdefs.h
16080
16081 fi
16082
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__((visibility(\"hidden\")))" >&5
16084 $as_echo_n "checking for __attribute__((visibility(\"hidden\")))... " >&6; }
16085 if ${libffi_cv_hidden_visibility_attribute+:} false; then :
16086 $as_echo_n "(cached) " >&6
16087 else
16088
16089 echo 'int __attribute__ ((visibility ("hidden"))) foo (void) { return 1 ; }' > conftest.c
16090 libffi_cv_hidden_visibility_attribute=no
16091 if { ac_try='${CC-cc} -Werror -S conftest.c -o conftest.s 1>&5'
16092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16093 (eval $ac_try) 2>&5
16094 ac_status=$?
16095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16096 test $ac_status = 0; }; }; then
16097 if grep '\.hidden.*foo' conftest.s >/dev/null; then
16098 libffi_cv_hidden_visibility_attribute=yes
16099 fi
16100 fi
16101 rm -f conftest.*
16102
16103 fi
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libffi_cv_hidden_visibility_attribute" >&5
16105 $as_echo "$libffi_cv_hidden_visibility_attribute" >&6; }
16106 if test $libffi_cv_hidden_visibility_attribute = yes; then
16107
16108 $as_echo "#define HAVE_HIDDEN_VISIBILITY_ATTRIBUTE 1" >>confdefs.h
16109
16110 fi
16111 fi
16112
16113
16114
16115
16116
16117
16118
16119 TARGET_OBJ=
16120 for i in $SOURCES; do
16121 TARGET_OBJ="${TARGET_OBJ} src/${TARGETDIR}/"`echo $i | sed 's/[cS]$/lo/'`
16122 done
16123
16124
16125
16126
16127
16128 # Check whether --enable-debug was given.
16129 if test "${enable_debug+set}" = set; then :
16130 enableval=$enable_debug; if test "$enable_debug" = "yes"; then
16131
16132 $as_echo "#define FFI_DEBUG 1" >>confdefs.h
16133
16134 fi
16135 fi
16136
16137 if test "$enable_debug" = "yes"; then
16138 FFI_DEBUG_TRUE=
16139 FFI_DEBUG_FALSE='#'
16140 else
16141 FFI_DEBUG_TRUE='#'
16142 FFI_DEBUG_FALSE=
16143 fi
16144
16145
16146 # Check whether --enable-structs was given.
16147 if test "${enable_structs+set}" = set; then :
16148 enableval=$enable_structs; if test "$enable_structs" = "no"; then
16149
16150 $as_echo "#define FFI_NO_STRUCTS 1" >>confdefs.h
16151
16152 fi
16153 fi
16154
16155 if test "$enable_debug" = "yes"; then
16156 FFI_DEBUG_TRUE=
16157 FFI_DEBUG_FALSE='#'
16158 else
16159 FFI_DEBUG_TRUE='#'
16160 FFI_DEBUG_FALSE=
16161 fi
16162
16163
16164 # Check whether --enable-raw-api was given.
16165 if test "${enable_raw_api+set}" = set; then :
16166 enableval=$enable_raw_api; if test "$enable_raw_api" = "no"; then
16167
16168 $as_echo "#define FFI_NO_RAW_API 1" >>confdefs.h
16169
16170 fi
16171 fi
16172
16173
16174 # Check whether --enable-purify-safety was given.
16175 if test "${enable_purify_safety+set}" = set; then :
16176 enableval=$enable_purify_safety; if test "$enable_purify_safety" = "yes"; then
16177
16178 $as_echo "#define USING_PURIFY 1" >>confdefs.h
16179
16180 fi
16181 fi
16182
16183
16184
16185 # Check whether --with-toolexeclibdir was given.
16186 if test "${with_toolexeclibdir+set}" = set; then :
16187 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
16188 /)
16189 ;;
16190 */)
16191 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
16192 ;;
16193 esac
16194 else
16195 with_toolexeclibdir=no
16196 fi
16197
16198
16199
16200 if test -n "$with_cross_host" &&
16201 test x"$with_cross_host" != x"no"; then
16202 toolexecdir='$(exec_prefix)/$(target_alias)'
16203 case ${with_toolexeclibdir} in
16204 no)
16205 toolexeclibdir='$(toolexecdir)/lib'
16206 ;;
16207 *)
16208 toolexeclibdir=${with_toolexeclibdir}
16209 ;;
16210 esac
16211 else
16212 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
16213 toolexeclibdir='$(libdir)'
16214 fi
16215 multi_os_directory=`$CC -print-multi-os-directory`
16216 case $multi_os_directory in
16217 .) ;; # Avoid trailing /.
16218 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
16219 esac
16220
16221
16222
16223 if test "${multilib}" = "yes"; then
16224 multilib_arg="--enable-multilib"
16225 else
16226 multilib_arg=
16227 fi
16228
16229 # Check linker support.
16230
16231
16232 # Check whether --with-gnu-ld was given.
16233 if test "${with_gnu_ld+set}" = set; then :
16234 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16235 else
16236 with_gnu_ld=no
16237 fi
16238
16239 ac_prog=ld
16240 if test "$GCC" = yes; then
16241 # Check if gcc -print-prog-name=ld gives a path.
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16243 $as_echo_n "checking for ld used by $CC... " >&6; }
16244 case $host in
16245 *-*-mingw*)
16246 # gcc leaves a trailing carriage return which upsets mingw
16247 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16248 *)
16249 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16250 esac
16251 case $ac_prog in
16252 # Accept absolute paths.
16253 [\\/]* | ?:[\\/]*)
16254 re_direlt='/[^/][^/]*/\.\./'
16255 # Canonicalize the pathname of ld
16256 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16257 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16258 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16259 done
16260 test -z "$LD" && LD="$ac_prog"
16261 ;;
16262 "")
16263 # If it fails, then pretend we aren't using GCC.
16264 ac_prog=ld
16265 ;;
16266 *)
16267 # If it is relative, then search for the first ld in PATH.
16268 with_gnu_ld=unknown
16269 ;;
16270 esac
16271 elif test "$with_gnu_ld" = yes; then
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16273 $as_echo_n "checking for GNU ld... " >&6; }
16274 else
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16276 $as_echo_n "checking for non-GNU ld... " >&6; }
16277 fi
16278 if ${lt_cv_path_LD+:} false; then :
16279 $as_echo_n "(cached) " >&6
16280 else
16281 if test -z "$LD"; then
16282 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16283 for ac_dir in $PATH; do
16284 IFS="$lt_save_ifs"
16285 test -z "$ac_dir" && ac_dir=.
16286 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16287 lt_cv_path_LD="$ac_dir/$ac_prog"
16288 # Check to see if the program is GNU ld. I'd rather use --version,
16289 # but apparently some variants of GNU ld only accept -v.
16290 # Break only if it was the GNU/non-GNU ld that we prefer.
16291 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16292 *GNU* | *'with BFD'*)
16293 test "$with_gnu_ld" != no && break
16294 ;;
16295 *)
16296 test "$with_gnu_ld" != yes && break
16297 ;;
16298 esac
16299 fi
16300 done
16301 IFS="$lt_save_ifs"
16302 else
16303 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16304 fi
16305 fi
16306
16307 LD="$lt_cv_path_LD"
16308 if test -n "$LD"; then
16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16310 $as_echo "$LD" >&6; }
16311 else
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16313 $as_echo "no" >&6; }
16314 fi
16315 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16317 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16318 if ${lt_cv_prog_gnu_ld+:} false; then :
16319 $as_echo_n "(cached) " >&6
16320 else
16321 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16322 case `$LD -v 2>&1 </dev/null` in
16323 *GNU* | *'with BFD'*)
16324 lt_cv_prog_gnu_ld=yes
16325 ;;
16326 *)
16327 lt_cv_prog_gnu_ld=no
16328 ;;
16329 esac
16330 fi
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16332 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16333 with_gnu_ld=$lt_cv_prog_gnu_ld
16334
16335
16336
16337
16338
16339
16340
16341 # If we're not using GNU ld, then there's no point in even trying these
16342 # tests. Check for that first. We should have already tested for gld
16343 # by now (in libtool), but require it now just to be safe...
16344 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16345 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16346
16347
16348
16349 # The name set by libtool depends on the version of libtool. Shame on us
16350 # for depending on an impl detail, but c'est la vie. Older versions used
16351 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16352 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16353 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16354 # set (hence we're using an older libtool), then set it.
16355 if test x${with_gnu_ld+set} != xset; then
16356 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16357 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16358 with_gnu_ld=no
16359 else
16360 with_gnu_ld=$ac_cv_prog_gnu_ld
16361 fi
16362 fi
16363
16364 # Start by getting the version number. I think the libtool test already
16365 # does some of this, but throws away the result.
16366 libat_ld_is_gold=no
16367 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16368 libat_ld_is_gold=yes
16369 fi
16370
16371 ldver=`$LD --version 2>/dev/null |
16372 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16373
16374 libat_gnu_ld_version=`echo $ldver | \
16375 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16376
16377 # Set --gc-sections.
16378 if test "$with_gnu_ld" = "notbroken"; then
16379 # GNU ld it is! Joy and bunny rabbits!
16380
16381 # All these tests are for C++; save the language and the compiler flags.
16382 # Need to do this so that g++ won't try to link in libstdc++
16383 ac_test_CFLAGS="${CFLAGS+set}"
16384 ac_save_CFLAGS="$CFLAGS"
16385 CFLAGS='-x c++ -Wl,--gc-sections'
16386
16387 # Check for -Wl,--gc-sections
16388 # XXX This test is broken at the moment, as symbols required for linking
16389 # are now in libsupc++ (not built yet). In addition, this test has
16390 # cored on solaris in the past. In addition, --gc-sections doesn't
16391 # really work at the moment (keeps on discarding used sections, first
16392 # .eh_frame and now some of the glibc sections for iconv).
16393 # Bzzzzt. Thanks for playing, maybe next time.
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16395 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16396 if test "$cross_compiling" = yes; then :
16397 ac_sectionLDflags=yes
16398 else
16399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16400 /* end confdefs.h. */
16401
16402 int main(void)
16403 {
16404 try { throw 1; }
16405 catch (...) { };
16406 return 0;
16407 }
16408
16409 _ACEOF
16410 if ac_fn_c_try_run "$LINENO"; then :
16411 ac_sectionLDflags=yes
16412 else
16413 ac_sectionLDflags=no
16414 fi
16415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16416 conftest.$ac_objext conftest.beam conftest.$ac_ext
16417 fi
16418
16419 if test "$ac_test_CFLAGS" = set; then
16420 CFLAGS="$ac_save_CFLAGS"
16421 else
16422 # this is the suspicious part
16423 CFLAGS=''
16424 fi
16425 if test "$ac_sectionLDflags" = "yes"; then
16426 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16427 fi
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16429 $as_echo "$ac_sectionLDflags" >&6; }
16430 fi
16431
16432 # Set linker optimization flags.
16433 if test x"$with_gnu_ld" = x"yes"; then
16434 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16435 fi
16436
16437
16438
16439
16440
16441
16442 # Check whether --enable-symvers was given.
16443 if test "${enable_symvers+set}" = set; then :
16444 enableval=$enable_symvers;
16445 case "$enableval" in
16446 yes|no|gnu*|sun) ;;
16447 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16448 esac
16449
16450 else
16451 enable_symvers=yes
16452 fi
16453
16454
16455
16456 # If we never went through the LIBAT_CHECK_LINKER_FEATURES macro, then we
16457 # don't know enough about $LD to do tricks...
16458
16459
16460 # Turn a 'yes' into a suitable default.
16461 if test x$enable_symvers = xyes ; then
16462 # FIXME The following test is too strict, in theory.
16463 if test $enable_shared = no || test "x$LD" = x; then
16464 enable_symvers=no
16465 else
16466 if test $with_gnu_ld = yes ; then
16467 enable_symvers=gnu
16468 else
16469 case ${target_os} in
16470 # Sun symbol versioning exists since Solaris 2.5.
16471 solaris2.[5-9]* | solaris2.1[0-9]*)
16472 enable_symvers=sun ;;
16473 *)
16474 enable_symvers=no ;;
16475 esac
16476 fi
16477 fi
16478 fi
16479
16480 # Check if 'sun' was requested on non-Solaris 2 platforms.
16481 if test x$enable_symvers = xsun ; then
16482 case ${target_os} in
16483 solaris2*)
16484 # All fine.
16485 ;;
16486 *)
16487 # Unlikely to work.
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16489 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16491 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16493 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16494 enable_symvers=no
16495 ;;
16496 esac
16497 fi
16498
16499 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16500 if test $enable_symvers != no; then
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16502 $as_echo_n "checking for shared libgcc... " >&6; }
16503 ac_save_CFLAGS="$CFLAGS"
16504 CFLAGS=' -lgcc_s'
16505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16506 /* end confdefs.h. */
16507
16508 int
16509 main ()
16510 {
16511 return 0;
16512 ;
16513 return 0;
16514 }
16515 _ACEOF
16516 if ac_fn_c_try_link "$LINENO"; then :
16517 libat_shared_libgcc=yes
16518 else
16519 libat_shared_libgcc=no
16520 fi
16521 rm -f core conftest.err conftest.$ac_objext \
16522 conftest$ac_exeext conftest.$ac_ext
16523 CFLAGS="$ac_save_CFLAGS"
16524 if test $libat_shared_libgcc = no; then
16525 cat > conftest.c <<EOF
16526 int main (void) { return 0; }
16527 EOF
16528 libat_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16529 -shared -shared-libgcc -o conftest.so \
16530 conftest.c -v 2>&1 >/dev/null \
16531 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16532 rm -f conftest.c conftest.so
16533 if test x${libat_libgcc_s_suffix+set} = xset; then
16534 CFLAGS=" -lgcc_s$libat_libgcc_s_suffix"
16535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16536 /* end confdefs.h. */
16537
16538 int
16539 main ()
16540 {
16541 return 0;
16542 ;
16543 return 0;
16544 }
16545 _ACEOF
16546 if ac_fn_c_try_link "$LINENO"; then :
16547 libat_shared_libgcc=yes
16548 fi
16549 rm -f core conftest.err conftest.$ac_objext \
16550 conftest$ac_exeext conftest.$ac_ext
16551 CFLAGS="$ac_save_CFLAGS"
16552 fi
16553 fi
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libat_shared_libgcc" >&5
16555 $as_echo "$libat_shared_libgcc" >&6; }
16556 fi
16557
16558 # For GNU ld, we need at least this version. The format is described in
16559 # LIBAT_CHECK_LINKER_FEATURES above.
16560 libat_min_gnu_ld_version=21400
16561 # XXXXXXXXXXX libat_gnu_ld_version=21390
16562
16563 # Check to see if unspecified "yes" value can win, given results above.
16564 # Change "yes" into either "no" or a style name.
16565 if test $enable_symvers != no && test $libat_shared_libgcc = yes; then
16566 if test $with_gnu_ld = yes; then
16567 if test $libat_gnu_ld_version -ge $libat_min_gnu_ld_version ; then
16568 enable_symvers=gnu
16569 elif test $libat_ld_is_gold = yes ; then
16570 enable_symvers=gnu
16571 else
16572 # The right tools, the right setup, but too old. Fallbacks?
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&5
16574 $as_echo "$as_me: WARNING: === Linker version $libat_gnu_ld_version is too old for" >&2;}
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16576 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16578 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&5
16580 $as_echo "$as_me: WARNING: === $libat_min_gnu_ld_version or later and rebuild GCC." >&2;}
16581 if test $libat_gnu_ld_version -ge 21200 ; then
16582 # Globbing fix is present, proper block support is not.
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16584 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16585 enable_symvers=no
16586 else
16587 # 2.11 or older.
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16589 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16590 enable_symvers=no
16591 fi
16592 fi
16593 elif test $enable_symvers = sun; then
16594 : All interesting versions of Sun ld support sun style symbol versioning.
16595 else
16596 # just fail for now
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16598 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16600 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16602 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16604 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16605 enable_symvers=no
16606 fi
16607 fi
16608 if test $enable_symvers = gnu; then
16609
16610 $as_echo "#define LIBAT_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16611
16612 fi
16613
16614 if test $enable_symvers != no; then
16615 LIBAT_BUILD_VERSIONED_SHLIB_TRUE=
16616 LIBAT_BUILD_VERSIONED_SHLIB_FALSE='#'
16617 else
16618 LIBAT_BUILD_VERSIONED_SHLIB_TRUE='#'
16619 LIBAT_BUILD_VERSIONED_SHLIB_FALSE=
16620 fi
16621
16622 if test $enable_symvers = gnu; then
16623 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16624 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16625 else
16626 LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16627 LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16628 fi
16629
16630 if test $enable_symvers = sun; then
16631 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16632 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16633 else
16634 LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16635 LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16636 fi
16637
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16639 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16640
16641
16642 # Determine what GCC version number to use in filesystem paths.
16643
16644 get_gcc_base_ver="cat"
16645
16646 # Check whether --with-gcc-major-version-only was given.
16647 if test "${with_gcc_major_version_only+set}" = set; then :
16648 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16649 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16650 fi
16651
16652 fi
16653
16654
16655
16656
16657 ac_config_commands="$ac_config_commands include"
16658
16659 ac_config_commands="$ac_config_commands src"
16660
16661
16662 ac_config_links="$ac_config_links include/ffitarget.h:src/$TARGETDIR/ffitarget.h"
16663
16664
16665 ac_config_files="$ac_config_files include/Makefile include/ffi.h Makefile testsuite/Makefile man/Makefile libffi.pc"
16666
16667
16668 cat >confcache <<\_ACEOF
16669 # This file is a shell script that caches the results of configure
16670 # tests run on this system so they can be shared between configure
16671 # scripts and configure runs, see configure's option --config-cache.
16672 # It is not useful on other systems. If it contains results you don't
16673 # want to keep, you may remove or edit it.
16674 #
16675 # config.status only pays attention to the cache file if you give it
16676 # the --recheck option to rerun configure.
16677 #
16678 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16679 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16680 # following values.
16681
16682 _ACEOF
16683
16684 # The following way of writing the cache mishandles newlines in values,
16685 # but we know of no workaround that is simple, portable, and efficient.
16686 # So, we kill variables containing newlines.
16687 # Ultrix sh set writes to stderr and can't be redirected directly,
16688 # and sets the high bit in the cache file unless we assign to the vars.
16689 (
16690 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16691 eval ac_val=\$$ac_var
16692 case $ac_val in #(
16693 *${as_nl}*)
16694 case $ac_var in #(
16695 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16696 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16697 esac
16698 case $ac_var in #(
16699 _ | IFS | as_nl) ;; #(
16700 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16701 *) { eval $ac_var=; unset $ac_var;} ;;
16702 esac ;;
16703 esac
16704 done
16705
16706 (set) 2>&1 |
16707 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16708 *${as_nl}ac_space=\ *)
16709 # `set' does not quote correctly, so add quotes: double-quote
16710 # substitution turns \\\\ into \\, and sed turns \\ into \.
16711 sed -n \
16712 "s/'/'\\\\''/g;
16713 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16714 ;; #(
16715 *)
16716 # `set' quotes correctly as required by POSIX, so do not add quotes.
16717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16718 ;;
16719 esac |
16720 sort
16721 ) |
16722 sed '
16723 /^ac_cv_env_/b end
16724 t clear
16725 :clear
16726 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16727 t end
16728 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16729 :end' >>confcache
16730 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16731 if test -w "$cache_file"; then
16732 if test "x$cache_file" != "x/dev/null"; then
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16734 $as_echo "$as_me: updating cache $cache_file" >&6;}
16735 if test ! -f "$cache_file" || test -h "$cache_file"; then
16736 cat confcache >"$cache_file"
16737 else
16738 case $cache_file in #(
16739 */* | ?:*)
16740 mv -f confcache "$cache_file"$$ &&
16741 mv -f "$cache_file"$$ "$cache_file" ;; #(
16742 *)
16743 mv -f confcache "$cache_file" ;;
16744 esac
16745 fi
16746 fi
16747 else
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16749 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16750 fi
16751 fi
16752 rm -f confcache
16753
16754 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16755 # Let make expand exec_prefix.
16756 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16757
16758 DEFS=-DHAVE_CONFIG_H
16759
16760 ac_libobjs=
16761 ac_ltlibobjs=
16762 U=
16763 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16764 # 1. Remove the extension, and $U if already installed.
16765 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16766 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16767 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16768 # will be set to the directory where LIBOBJS objects are built.
16769 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16770 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16771 done
16772 LIBOBJS=$ac_libobjs
16773
16774 LTLIBOBJS=$ac_ltlibobjs
16775
16776
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16778 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16779 if test -n "$am_sleep_pid"; then
16780 # Hide warnings about reused PIDs.
16781 wait $am_sleep_pid 2>/dev/null
16782 fi
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16784 $as_echo "done" >&6; }
16785 if test -n "$EXEEXT"; then
16786 am__EXEEXT_TRUE=
16787 am__EXEEXT_FALSE='#'
16788 else
16789 am__EXEEXT_TRUE='#'
16790 am__EXEEXT_FALSE=
16791 fi
16792
16793 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
16794 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
16795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16796 fi
16797 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
16798 as_fn_error $? "conditional \"GENINSRC\" was never defined.
16799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16800 fi
16801 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16802 as_fn_error $? "conditional \"AMDEP\" was never defined.
16803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16804 fi
16805 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16806 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16808 fi
16809 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
16810 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
16811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16812 fi
16813 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
16814 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
16815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16816 fi
16817 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
16818 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
16819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16820 fi
16821 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
16822 as_fn_error $? "conditional \"TESTSUBDIR\" was never defined.
16823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16824 fi
16825
16826 if test -z "${FFI_EXEC_TRAMPOLINE_TABLE_TRUE}" && test -z "${FFI_EXEC_TRAMPOLINE_TABLE_FALSE}"; then
16827 as_fn_error $? "conditional \"FFI_EXEC_TRAMPOLINE_TABLE\" was never defined.
16828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16829 fi
16830 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16831 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
16832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16833 fi
16834 if test -z "${FFI_DEBUG_TRUE}" && test -z "${FFI_DEBUG_FALSE}"; then
16835 as_fn_error $? "conditional \"FFI_DEBUG\" was never defined.
16836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16837 fi
16838 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_FALSE}"; then
16839 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB\" was never defined.
16840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16841 fi
16842 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
16843 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
16844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16845 fi
16846 if test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBAT_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
16847 as_fn_error $? "conditional \"LIBAT_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
16848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16849 fi
16850
16851 : "${CONFIG_STATUS=./config.status}"
16852 ac_write_fail=0
16853 ac_clean_files_save=$ac_clean_files
16854 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16856 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16857 as_write_fail=0
16858 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16859 #! $SHELL
16860 # Generated by $as_me.
16861 # Run this file to recreate the current configuration.
16862 # Compiler output produced by configure, useful for debugging
16863 # configure, is in config.log if it exists.
16864
16865 debug=false
16866 ac_cs_recheck=false
16867 ac_cs_silent=false
16868
16869 SHELL=\${CONFIG_SHELL-$SHELL}
16870 export SHELL
16871 _ASEOF
16872 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16873 ## -------------------- ##
16874 ## M4sh Initialization. ##
16875 ## -------------------- ##
16876
16877 # Be more Bourne compatible
16878 DUALCASE=1; export DUALCASE # for MKS sh
16879 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16880 emulate sh
16881 NULLCMD=:
16882 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16883 # is contrary to our usage. Disable this feature.
16884 alias -g '${1+"$@"}'='"$@"'
16885 setopt NO_GLOB_SUBST
16886 else
16887 case `(set -o) 2>/dev/null` in #(
16888 *posix*) :
16889 set -o posix ;; #(
16890 *) :
16891 ;;
16892 esac
16893 fi
16894
16895
16896 as_nl='
16897 '
16898 export as_nl
16899 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16900 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16901 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16902 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16903 # Prefer a ksh shell builtin over an external printf program on Solaris,
16904 # but without wasting forks for bash or zsh.
16905 if test -z "$BASH_VERSION$ZSH_VERSION" \
16906 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16907 as_echo='print -r --'
16908 as_echo_n='print -rn --'
16909 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16910 as_echo='printf %s\n'
16911 as_echo_n='printf %s'
16912 else
16913 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16914 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16915 as_echo_n='/usr/ucb/echo -n'
16916 else
16917 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16918 as_echo_n_body='eval
16919 arg=$1;
16920 case $arg in #(
16921 *"$as_nl"*)
16922 expr "X$arg" : "X\\(.*\\)$as_nl";
16923 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16924 esac;
16925 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16926 '
16927 export as_echo_n_body
16928 as_echo_n='sh -c $as_echo_n_body as_echo'
16929 fi
16930 export as_echo_body
16931 as_echo='sh -c $as_echo_body as_echo'
16932 fi
16933
16934 # The user is always right.
16935 if test "${PATH_SEPARATOR+set}" != set; then
16936 PATH_SEPARATOR=:
16937 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16938 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16939 PATH_SEPARATOR=';'
16940 }
16941 fi
16942
16943
16944 # IFS
16945 # We need space, tab and new line, in precisely that order. Quoting is
16946 # there to prevent editors from complaining about space-tab.
16947 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16948 # splitting by setting IFS to empty value.)
16949 IFS=" "" $as_nl"
16950
16951 # Find who we are. Look in the path if we contain no directory separator.
16952 as_myself=
16953 case $0 in #((
16954 *[\\/]* ) as_myself=$0 ;;
16955 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16956 for as_dir in $PATH
16957 do
16958 IFS=$as_save_IFS
16959 test -z "$as_dir" && as_dir=.
16960 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16961 done
16962 IFS=$as_save_IFS
16963
16964 ;;
16965 esac
16966 # We did not find ourselves, most probably we were run as `sh COMMAND'
16967 # in which case we are not to be found in the path.
16968 if test "x$as_myself" = x; then
16969 as_myself=$0
16970 fi
16971 if test ! -f "$as_myself"; then
16972 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16973 exit 1
16974 fi
16975
16976 # Unset variables that we do not need and which cause bugs (e.g. in
16977 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16978 # suppresses any "Segmentation fault" message there. '((' could
16979 # trigger a bug in pdksh 5.2.14.
16980 for as_var in BASH_ENV ENV MAIL MAILPATH
16981 do eval test x\${$as_var+set} = xset \
16982 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16983 done
16984 PS1='$ '
16985 PS2='> '
16986 PS4='+ '
16987
16988 # NLS nuisances.
16989 LC_ALL=C
16990 export LC_ALL
16991 LANGUAGE=C
16992 export LANGUAGE
16993
16994 # CDPATH.
16995 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16996
16997
16998 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16999 # ----------------------------------------
17000 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17001 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17002 # script with STATUS, using 1 if that was 0.
17003 as_fn_error ()
17004 {
17005 as_status=$1; test $as_status -eq 0 && as_status=1
17006 if test "$4"; then
17007 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17008 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17009 fi
17010 $as_echo "$as_me: error: $2" >&2
17011 as_fn_exit $as_status
17012 } # as_fn_error
17013
17014
17015 # as_fn_set_status STATUS
17016 # -----------------------
17017 # Set $? to STATUS, without forking.
17018 as_fn_set_status ()
17019 {
17020 return $1
17021 } # as_fn_set_status
17022
17023 # as_fn_exit STATUS
17024 # -----------------
17025 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17026 as_fn_exit ()
17027 {
17028 set +e
17029 as_fn_set_status $1
17030 exit $1
17031 } # as_fn_exit
17032
17033 # as_fn_unset VAR
17034 # ---------------
17035 # Portably unset VAR.
17036 as_fn_unset ()
17037 {
17038 { eval $1=; unset $1;}
17039 }
17040 as_unset=as_fn_unset
17041 # as_fn_append VAR VALUE
17042 # ----------------------
17043 # Append the text in VALUE to the end of the definition contained in VAR. Take
17044 # advantage of any shell optimizations that allow amortized linear growth over
17045 # repeated appends, instead of the typical quadratic growth present in naive
17046 # implementations.
17047 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17048 eval 'as_fn_append ()
17049 {
17050 eval $1+=\$2
17051 }'
17052 else
17053 as_fn_append ()
17054 {
17055 eval $1=\$$1\$2
17056 }
17057 fi # as_fn_append
17058
17059 # as_fn_arith ARG...
17060 # ------------------
17061 # Perform arithmetic evaluation on the ARGs, and store the result in the
17062 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17063 # must be portable across $(()) and expr.
17064 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17065 eval 'as_fn_arith ()
17066 {
17067 as_val=$(( $* ))
17068 }'
17069 else
17070 as_fn_arith ()
17071 {
17072 as_val=`expr "$@" || test $? -eq 1`
17073 }
17074 fi # as_fn_arith
17075
17076
17077 if expr a : '\(a\)' >/dev/null 2>&1 &&
17078 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17079 as_expr=expr
17080 else
17081 as_expr=false
17082 fi
17083
17084 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17085 as_basename=basename
17086 else
17087 as_basename=false
17088 fi
17089
17090 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17091 as_dirname=dirname
17092 else
17093 as_dirname=false
17094 fi
17095
17096 as_me=`$as_basename -- "$0" ||
17097 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17098 X"$0" : 'X\(//\)$' \| \
17099 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17100 $as_echo X/"$0" |
17101 sed '/^.*\/\([^/][^/]*\)\/*$/{
17102 s//\1/
17103 q
17104 }
17105 /^X\/\(\/\/\)$/{
17106 s//\1/
17107 q
17108 }
17109 /^X\/\(\/\).*/{
17110 s//\1/
17111 q
17112 }
17113 s/.*/./; q'`
17114
17115 # Avoid depending upon Character Ranges.
17116 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17117 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17118 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17119 as_cr_digits='0123456789'
17120 as_cr_alnum=$as_cr_Letters$as_cr_digits
17121
17122 ECHO_C= ECHO_N= ECHO_T=
17123 case `echo -n x` in #(((((
17124 -n*)
17125 case `echo 'xy\c'` in
17126 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17127 xy) ECHO_C='\c';;
17128 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17129 ECHO_T=' ';;
17130 esac;;
17131 *)
17132 ECHO_N='-n';;
17133 esac
17134
17135 rm -f conf$$ conf$$.exe conf$$.file
17136 if test -d conf$$.dir; then
17137 rm -f conf$$.dir/conf$$.file
17138 else
17139 rm -f conf$$.dir
17140 mkdir conf$$.dir 2>/dev/null
17141 fi
17142 if (echo >conf$$.file) 2>/dev/null; then
17143 if ln -s conf$$.file conf$$ 2>/dev/null; then
17144 as_ln_s='ln -s'
17145 # ... but there are two gotchas:
17146 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17147 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17148 # In both cases, we have to default to `cp -pR'.
17149 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17150 as_ln_s='cp -pR'
17151 elif ln conf$$.file conf$$ 2>/dev/null; then
17152 as_ln_s=ln
17153 else
17154 as_ln_s='cp -pR'
17155 fi
17156 else
17157 as_ln_s='cp -pR'
17158 fi
17159 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17160 rmdir conf$$.dir 2>/dev/null
17161
17162
17163 # as_fn_mkdir_p
17164 # -------------
17165 # Create "$as_dir" as a directory, including parents if necessary.
17166 as_fn_mkdir_p ()
17167 {
17168
17169 case $as_dir in #(
17170 -*) as_dir=./$as_dir;;
17171 esac
17172 test -d "$as_dir" || eval $as_mkdir_p || {
17173 as_dirs=
17174 while :; do
17175 case $as_dir in #(
17176 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17177 *) as_qdir=$as_dir;;
17178 esac
17179 as_dirs="'$as_qdir' $as_dirs"
17180 as_dir=`$as_dirname -- "$as_dir" ||
17181 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17182 X"$as_dir" : 'X\(//\)[^/]' \| \
17183 X"$as_dir" : 'X\(//\)$' \| \
17184 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17185 $as_echo X"$as_dir" |
17186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17187 s//\1/
17188 q
17189 }
17190 /^X\(\/\/\)[^/].*/{
17191 s//\1/
17192 q
17193 }
17194 /^X\(\/\/\)$/{
17195 s//\1/
17196 q
17197 }
17198 /^X\(\/\).*/{
17199 s//\1/
17200 q
17201 }
17202 s/.*/./; q'`
17203 test -d "$as_dir" && break
17204 done
17205 test -z "$as_dirs" || eval "mkdir $as_dirs"
17206 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17207
17208
17209 } # as_fn_mkdir_p
17210 if mkdir -p . 2>/dev/null; then
17211 as_mkdir_p='mkdir -p "$as_dir"'
17212 else
17213 test -d ./-p && rmdir ./-p
17214 as_mkdir_p=false
17215 fi
17216
17217
17218 # as_fn_executable_p FILE
17219 # -----------------------
17220 # Test if FILE is an executable regular file.
17221 as_fn_executable_p ()
17222 {
17223 test -f "$1" && test -x "$1"
17224 } # as_fn_executable_p
17225 as_test_x='test -x'
17226 as_executable_p=as_fn_executable_p
17227
17228 # Sed expression to map a string onto a valid CPP name.
17229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17230
17231 # Sed expression to map a string onto a valid variable name.
17232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17233
17234
17235 exec 6>&1
17236 ## ----------------------------------- ##
17237 ## Main body of $CONFIG_STATUS script. ##
17238 ## ----------------------------------- ##
17239 _ASEOF
17240 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17241
17242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17243 # Save the log message, to keep $0 and so on meaningful, and to
17244 # report actual input values of CONFIG_FILES etc. instead of their
17245 # values after options handling.
17246 ac_log="
17247 This file was extended by libffi $as_me 3.99999, which was
17248 generated by GNU Autoconf 2.69. Invocation command line was
17249
17250 CONFIG_FILES = $CONFIG_FILES
17251 CONFIG_HEADERS = $CONFIG_HEADERS
17252 CONFIG_LINKS = $CONFIG_LINKS
17253 CONFIG_COMMANDS = $CONFIG_COMMANDS
17254 $ $0 $@
17255
17256 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17257 "
17258
17259 _ACEOF
17260
17261 case $ac_config_files in *"
17262 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17263 esac
17264
17265 case $ac_config_headers in *"
17266 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17267 esac
17268
17269
17270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17271 # Files that config.status was made for.
17272 config_files="$ac_config_files"
17273 config_headers="$ac_config_headers"
17274 config_links="$ac_config_links"
17275 config_commands="$ac_config_commands"
17276
17277 _ACEOF
17278
17279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17280 ac_cs_usage="\
17281 \`$as_me' instantiates files and other configuration actions
17282 from templates according to the current configuration. Unless the files
17283 and actions are specified as TAGs, all are instantiated by default.
17284
17285 Usage: $0 [OPTION]... [TAG]...
17286
17287 -h, --help print this help, then exit
17288 -V, --version print version number and configuration settings, then exit
17289 --config print configuration, then exit
17290 -q, --quiet, --silent
17291 do not print progress messages
17292 -d, --debug don't remove temporary files
17293 --recheck update $as_me by reconfiguring in the same conditions
17294 --file=FILE[:TEMPLATE]
17295 instantiate the configuration file FILE
17296 --header=FILE[:TEMPLATE]
17297 instantiate the configuration header FILE
17298
17299 Configuration files:
17300 $config_files
17301
17302 Configuration headers:
17303 $config_headers
17304
17305 Configuration links:
17306 $config_links
17307
17308 Configuration commands:
17309 $config_commands
17310
17311 Report bugs to <http://github.com/atgreen/libffi/issues>."
17312
17313 _ACEOF
17314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17315 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17316 ac_cs_version="\\
17317 libffi config.status 3.99999
17318 configured by $0, generated by GNU Autoconf 2.69,
17319 with options \\"\$ac_cs_config\\"
17320
17321 Copyright (C) 2012 Free Software Foundation, Inc.
17322 This config.status script is free software; the Free Software Foundation
17323 gives unlimited permission to copy, distribute and modify it."
17324
17325 ac_pwd='$ac_pwd'
17326 srcdir='$srcdir'
17327 INSTALL='$INSTALL'
17328 MKDIR_P='$MKDIR_P'
17329 AWK='$AWK'
17330 test -n "\$AWK" || AWK=awk
17331 _ACEOF
17332
17333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17334 # The default lists apply if the user does not specify any file.
17335 ac_need_defaults=:
17336 while test $# != 0
17337 do
17338 case $1 in
17339 --*=?*)
17340 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17341 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17342 ac_shift=:
17343 ;;
17344 --*=)
17345 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17346 ac_optarg=
17347 ac_shift=:
17348 ;;
17349 *)
17350 ac_option=$1
17351 ac_optarg=$2
17352 ac_shift=shift
17353 ;;
17354 esac
17355
17356 case $ac_option in
17357 # Handling of the options.
17358 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17359 ac_cs_recheck=: ;;
17360 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17361 $as_echo "$ac_cs_version"; exit ;;
17362 --config | --confi | --conf | --con | --co | --c )
17363 $as_echo "$ac_cs_config"; exit ;;
17364 --debug | --debu | --deb | --de | --d | -d )
17365 debug=: ;;
17366 --file | --fil | --fi | --f )
17367 $ac_shift
17368 case $ac_optarg in
17369 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17370 '') as_fn_error $? "missing file argument" ;;
17371 esac
17372 as_fn_append CONFIG_FILES " '$ac_optarg'"
17373 ac_need_defaults=false;;
17374 --header | --heade | --head | --hea )
17375 $ac_shift
17376 case $ac_optarg in
17377 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17378 esac
17379 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17380 ac_need_defaults=false;;
17381 --he | --h)
17382 # Conflict between --help and --header
17383 as_fn_error $? "ambiguous option: \`$1'
17384 Try \`$0 --help' for more information.";;
17385 --help | --hel | -h )
17386 $as_echo "$ac_cs_usage"; exit ;;
17387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17388 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17389 ac_cs_silent=: ;;
17390
17391 # This is an error.
17392 -*) as_fn_error $? "unrecognized option: \`$1'
17393 Try \`$0 --help' for more information." ;;
17394
17395 *) as_fn_append ac_config_targets " $1"
17396 ac_need_defaults=false ;;
17397
17398 esac
17399 shift
17400 done
17401
17402 ac_configure_extra_args=
17403
17404 if $ac_cs_silent; then
17405 exec 6>/dev/null
17406 ac_configure_extra_args="$ac_configure_extra_args --silent"
17407 fi
17408
17409 _ACEOF
17410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17411 if \$ac_cs_recheck; then
17412 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17413 shift
17414 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17415 CONFIG_SHELL='$SHELL'
17416 export CONFIG_SHELL
17417 exec "\$@"
17418 fi
17419
17420 _ACEOF
17421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17422 exec 5>>config.log
17423 {
17424 echo
17425 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17426 ## Running $as_me. ##
17427 _ASBOX
17428 $as_echo "$ac_log"
17429 } >&5
17430
17431 _ACEOF
17432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17433 #
17434 # INIT-COMMANDS
17435 #
17436
17437 srcdir="$srcdir"
17438 host="$host"
17439 target="$target"
17440 with_multisubdir="$with_multisubdir"
17441 with_multisrctop="$with_multisrctop"
17442 with_target_subdir="$with_target_subdir"
17443 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17444 multi_basedir="$multi_basedir"
17445 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17446 CC="$CC"
17447 CXX="$CXX"
17448 GFORTRAN="$GFORTRAN"
17449 GDC="$GDC"
17450 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17451
17452
17453 # The HP-UX ksh and POSIX shell print the target directory to stdout
17454 # if CDPATH is set.
17455 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17456
17457 sed_quote_subst='$sed_quote_subst'
17458 double_quote_subst='$double_quote_subst'
17459 delay_variable_subst='$delay_variable_subst'
17460 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17461 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17462 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17463 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17464 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17465 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17466 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17467 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17468 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17469 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17470 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17471 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17472 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17473 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17474 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17475 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17476 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17477 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17478 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17479 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17480 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17481 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17482 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17483 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17484 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17485 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17486 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17487 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17488 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17489 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17490 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17491 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17492 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17493 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17494 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17495 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17496 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17497 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17498 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17499 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17500 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17501 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17502 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17503 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17504 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17505 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17506 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17507 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17508 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"`'
17509 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17510 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17511 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17512 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17513 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17514 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17515 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17516 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17517 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17518 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17519 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17520 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17521 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17522 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17523 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17524 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17525 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17526 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17527 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17528 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17529 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17530 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17531 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17532 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17533 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17534 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17535 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17536 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17537 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17538 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17539 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17540 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17541 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17542 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17543 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17544 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17545 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17546 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17547 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17548 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17549 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17550 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17551 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17552 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17553 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17554 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17555 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17556 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17557 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17558 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17559 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17560 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17561 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17562 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17563 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17564 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17565 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17566 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17567 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17568 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17569 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17570 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17571 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17572 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17573 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17574 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17575 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17576 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17577 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17578 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17579 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17580 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17581 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17582 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17583 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17584 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17585 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17586 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
17587 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
17588 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17589 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17590 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
17591 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
17592 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
17593 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
17594 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
17595 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
17596 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
17597 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
17598 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
17599 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17600 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17601 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
17602 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17603 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17604 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17605 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17606 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17607 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17608 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
17609 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17610 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
17611 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
17612 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
17613 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
17614 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
17615 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
17616 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
17617 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
17618 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
17619 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
17620 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
17621 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
17622 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
17623 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17624 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17625 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
17626 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
17627 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
17628 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
17629 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
17630 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17631 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
17632 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
17633 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
17634 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
17635
17636 LTCC='$LTCC'
17637 LTCFLAGS='$LTCFLAGS'
17638 compiler='$compiler_DEFAULT'
17639
17640 # A function that is used when there is no print builtin or printf.
17641 func_fallback_echo ()
17642 {
17643 eval 'cat <<_LTECHO_EOF
17644 \$1
17645 _LTECHO_EOF'
17646 }
17647
17648 # Quote evaled strings.
17649 for var in SHELL \
17650 ECHO \
17651 SED \
17652 GREP \
17653 EGREP \
17654 FGREP \
17655 LD \
17656 NM \
17657 LN_S \
17658 lt_SP2NL \
17659 lt_NL2SP \
17660 reload_flag \
17661 OBJDUMP \
17662 deplibs_check_method \
17663 file_magic_cmd \
17664 AR \
17665 AR_FLAGS \
17666 STRIP \
17667 RANLIB \
17668 CC \
17669 CFLAGS \
17670 compiler \
17671 lt_cv_sys_global_symbol_pipe \
17672 lt_cv_sys_global_symbol_to_cdecl \
17673 lt_cv_sys_global_symbol_to_c_name_address \
17674 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17675 lt_prog_compiler_no_builtin_flag \
17676 lt_prog_compiler_wl \
17677 lt_prog_compiler_pic \
17678 lt_prog_compiler_static \
17679 lt_cv_prog_compiler_c_o \
17680 need_locks \
17681 DSYMUTIL \
17682 NMEDIT \
17683 LIPO \
17684 OTOOL \
17685 OTOOL64 \
17686 shrext_cmds \
17687 export_dynamic_flag_spec \
17688 whole_archive_flag_spec \
17689 compiler_needs_object \
17690 with_gnu_ld \
17691 allow_undefined_flag \
17692 no_undefined_flag \
17693 hardcode_libdir_flag_spec \
17694 hardcode_libdir_flag_spec_ld \
17695 hardcode_libdir_separator \
17696 fix_srcfile_path \
17697 exclude_expsyms \
17698 include_expsyms \
17699 file_list_spec \
17700 variables_saved_for_relink \
17701 libname_spec \
17702 library_names_spec \
17703 soname_spec \
17704 install_override_mode \
17705 finish_eval \
17706 old_striplib \
17707 striplib \
17708 compiler_lib_search_dirs \
17709 predep_objects \
17710 postdep_objects \
17711 predeps \
17712 postdeps \
17713 compiler_lib_search_path \
17714 LD_CXX \
17715 reload_flag_CXX \
17716 compiler_CXX \
17717 lt_prog_compiler_no_builtin_flag_CXX \
17718 lt_prog_compiler_wl_CXX \
17719 lt_prog_compiler_pic_CXX \
17720 lt_prog_compiler_static_CXX \
17721 lt_cv_prog_compiler_c_o_CXX \
17722 export_dynamic_flag_spec_CXX \
17723 whole_archive_flag_spec_CXX \
17724 compiler_needs_object_CXX \
17725 with_gnu_ld_CXX \
17726 allow_undefined_flag_CXX \
17727 no_undefined_flag_CXX \
17728 hardcode_libdir_flag_spec_CXX \
17729 hardcode_libdir_flag_spec_ld_CXX \
17730 hardcode_libdir_separator_CXX \
17731 fix_srcfile_path_CXX \
17732 exclude_expsyms_CXX \
17733 include_expsyms_CXX \
17734 file_list_spec_CXX \
17735 compiler_lib_search_dirs_CXX \
17736 predep_objects_CXX \
17737 postdep_objects_CXX \
17738 predeps_CXX \
17739 postdeps_CXX \
17740 compiler_lib_search_path_CXX; do
17741 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17742 *[\\\\\\\`\\"\\\$]*)
17743 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17744 ;;
17745 *)
17746 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17747 ;;
17748 esac
17749 done
17750
17751 # Double-quote double-evaled strings.
17752 for var in reload_cmds \
17753 old_postinstall_cmds \
17754 old_postuninstall_cmds \
17755 old_archive_cmds \
17756 extract_expsyms_cmds \
17757 old_archive_from_new_cmds \
17758 old_archive_from_expsyms_cmds \
17759 archive_cmds \
17760 archive_expsym_cmds \
17761 module_cmds \
17762 module_expsym_cmds \
17763 export_symbols_cmds \
17764 prelink_cmds \
17765 postinstall_cmds \
17766 postuninstall_cmds \
17767 finish_cmds \
17768 sys_lib_search_path_spec \
17769 sys_lib_dlsearch_path_spec \
17770 reload_cmds_CXX \
17771 old_archive_cmds_CXX \
17772 old_archive_from_new_cmds_CXX \
17773 old_archive_from_expsyms_cmds_CXX \
17774 archive_cmds_CXX \
17775 archive_expsym_cmds_CXX \
17776 module_cmds_CXX \
17777 module_expsym_cmds_CXX \
17778 export_symbols_cmds_CXX \
17779 prelink_cmds_CXX; do
17780 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17781 *[\\\\\\\`\\"\\\$]*)
17782 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17783 ;;
17784 *)
17785 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17786 ;;
17787 esac
17788 done
17789
17790 ac_aux_dir='$ac_aux_dir'
17791 xsi_shell='$xsi_shell'
17792 lt_shell_append='$lt_shell_append'
17793
17794 # See if we are running on zsh, and set the options which allow our
17795 # commands through without removal of \ escapes INIT.
17796 if test -n "\${ZSH_VERSION+set}" ; then
17797 setopt NO_GLOB_SUBST
17798 fi
17799
17800
17801 PACKAGE='$PACKAGE'
17802 VERSION='$VERSION'
17803 TIMESTAMP='$TIMESTAMP'
17804 RM='$RM'
17805 ofile='$ofile'
17806
17807
17808
17809
17810
17811 TARGETDIR="$TARGETDIR"
17812
17813 _ACEOF
17814
17815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17816
17817 # Handling of arguments.
17818 for ac_config_target in $ac_config_targets
17819 do
17820 case $ac_config_target in
17821 "fficonfig.h") CONFIG_HEADERS="$CONFIG_HEADERS fficonfig.h" ;;
17822 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
17823 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17824 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17825 "include") CONFIG_COMMANDS="$CONFIG_COMMANDS include" ;;
17826 "src") CONFIG_COMMANDS="$CONFIG_COMMANDS src" ;;
17827 "include/ffitarget.h") CONFIG_LINKS="$CONFIG_LINKS include/ffitarget.h:src/$TARGETDIR/ffitarget.h" ;;
17828 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17829 "include/ffi.h") CONFIG_FILES="$CONFIG_FILES include/ffi.h" ;;
17830 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17831 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
17832 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17833 "libffi.pc") CONFIG_FILES="$CONFIG_FILES libffi.pc" ;;
17834
17835 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17836 esac
17837 done
17838
17839
17840 # If the user did not use the arguments to specify the items to instantiate,
17841 # then the envvar interface is used. Set only those that are not.
17842 # We use the long form for the default assignment because of an extremely
17843 # bizarre bug on SunOS 4.1.3.
17844 if $ac_need_defaults; then
17845 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17846 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17847 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
17848 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17849 fi
17850
17851 # Have a temporary directory for convenience. Make it in the build tree
17852 # simply because there is no reason against having it here, and in addition,
17853 # creating and moving files from /tmp can sometimes cause problems.
17854 # Hook for its removal unless debugging.
17855 # Note that there is a small window in which the directory will not be cleaned:
17856 # after its creation but before its name has been assigned to `$tmp'.
17857 $debug ||
17858 {
17859 tmp= ac_tmp=
17860 trap 'exit_status=$?
17861 : "${ac_tmp:=$tmp}"
17862 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17863 ' 0
17864 trap 'as_fn_exit 1' 1 2 13 15
17865 }
17866 # Create a (secure) tmp directory for tmp files.
17867
17868 {
17869 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17870 test -d "$tmp"
17871 } ||
17872 {
17873 tmp=./conf$$-$RANDOM
17874 (umask 077 && mkdir "$tmp")
17875 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17876 ac_tmp=$tmp
17877
17878 # Set up the scripts for CONFIG_FILES section.
17879 # No need to generate them if there are no CONFIG_FILES.
17880 # This happens for instance with `./config.status config.h'.
17881 if test -n "$CONFIG_FILES"; then
17882
17883
17884 ac_cr=`echo X | tr X '\015'`
17885 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17886 # But we know of no other shell where ac_cr would be empty at this
17887 # point, so we can use a bashism as a fallback.
17888 if test "x$ac_cr" = x; then
17889 eval ac_cr=\$\'\\r\'
17890 fi
17891 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17892 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17893 ac_cs_awk_cr='\\r'
17894 else
17895 ac_cs_awk_cr=$ac_cr
17896 fi
17897
17898 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17899 _ACEOF
17900
17901
17902 {
17903 echo "cat >conf$$subs.awk <<_ACEOF" &&
17904 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17905 echo "_ACEOF"
17906 } >conf$$subs.sh ||
17907 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17908 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17909 ac_delim='%!_!# '
17910 for ac_last_try in false false false false false :; do
17911 . ./conf$$subs.sh ||
17912 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17913
17914 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17915 if test $ac_delim_n = $ac_delim_num; then
17916 break
17917 elif $ac_last_try; then
17918 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17919 else
17920 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17921 fi
17922 done
17923 rm -f conf$$subs.sh
17924
17925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17926 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17927 _ACEOF
17928 sed -n '
17929 h
17930 s/^/S["/; s/!.*/"]=/
17931 p
17932 g
17933 s/^[^!]*!//
17934 :repl
17935 t repl
17936 s/'"$ac_delim"'$//
17937 t delim
17938 :nl
17939 h
17940 s/\(.\{148\}\)..*/\1/
17941 t more1
17942 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17943 p
17944 n
17945 b repl
17946 :more1
17947 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17948 p
17949 g
17950 s/.\{148\}//
17951 t nl
17952 :delim
17953 h
17954 s/\(.\{148\}\)..*/\1/
17955 t more2
17956 s/["\\]/\\&/g; s/^/"/; s/$/"/
17957 p
17958 b
17959 :more2
17960 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17961 p
17962 g
17963 s/.\{148\}//
17964 t delim
17965 ' <conf$$subs.awk | sed '
17966 /^[^""]/{
17967 N
17968 s/\n//
17969 }
17970 ' >>$CONFIG_STATUS || ac_write_fail=1
17971 rm -f conf$$subs.awk
17972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17973 _ACAWK
17974 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17975 for (key in S) S_is_set[key] = 1
17976 FS = "\a"
17977
17978 }
17979 {
17980 line = $ 0
17981 nfields = split(line, field, "@")
17982 substed = 0
17983 len = length(field[1])
17984 for (i = 2; i < nfields; i++) {
17985 key = field[i]
17986 keylen = length(key)
17987 if (S_is_set[key]) {
17988 value = S[key]
17989 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17990 len += length(value) + length(field[++i])
17991 substed = 1
17992 } else
17993 len += 1 + keylen
17994 }
17995
17996 print line
17997 }
17998
17999 _ACAWK
18000 _ACEOF
18001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18002 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18003 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18004 else
18005 cat
18006 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18007 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18008 _ACEOF
18009
18010 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18011 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18012 # trailing colons and then remove the whole line if VPATH becomes empty
18013 # (actually we leave an empty line to preserve line numbers).
18014 if test "x$srcdir" = x.; then
18015 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18016 h
18017 s///
18018 s/^/:/
18019 s/[ ]*$/:/
18020 s/:\$(srcdir):/:/g
18021 s/:\${srcdir}:/:/g
18022 s/:@srcdir@:/:/g
18023 s/^:*//
18024 s/:*$//
18025 x
18026 s/\(=[ ]*\).*/\1/
18027 G
18028 s/\n//
18029 s/^[^=]*=[ ]*$//
18030 }'
18031 fi
18032
18033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18034 fi # test -n "$CONFIG_FILES"
18035
18036 # Set up the scripts for CONFIG_HEADERS section.
18037 # No need to generate them if there are no CONFIG_HEADERS.
18038 # This happens for instance with `./config.status Makefile'.
18039 if test -n "$CONFIG_HEADERS"; then
18040 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18041 BEGIN {
18042 _ACEOF
18043
18044 # Transform confdefs.h into an awk script `defines.awk', embedded as
18045 # here-document in config.status, that substitutes the proper values into
18046 # config.h.in to produce config.h.
18047
18048 # Create a delimiter string that does not exist in confdefs.h, to ease
18049 # handling of long lines.
18050 ac_delim='%!_!# '
18051 for ac_last_try in false false :; do
18052 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18053 if test -z "$ac_tt"; then
18054 break
18055 elif $ac_last_try; then
18056 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18057 else
18058 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18059 fi
18060 done
18061
18062 # For the awk script, D is an array of macro values keyed by name,
18063 # likewise P contains macro parameters if any. Preserve backslash
18064 # newline sequences.
18065
18066 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18067 sed -n '
18068 s/.\{148\}/&'"$ac_delim"'/g
18069 t rset
18070 :rset
18071 s/^[ ]*#[ ]*define[ ][ ]*/ /
18072 t def
18073 d
18074 :def
18075 s/\\$//
18076 t bsnl
18077 s/["\\]/\\&/g
18078 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18079 D["\1"]=" \3"/p
18080 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18081 d
18082 :bsnl
18083 s/["\\]/\\&/g
18084 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18085 D["\1"]=" \3\\\\\\n"\\/p
18086 t cont
18087 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18088 t cont
18089 d
18090 :cont
18091 n
18092 s/.\{148\}/&'"$ac_delim"'/g
18093 t clear
18094 :clear
18095 s/\\$//
18096 t bsnlc
18097 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18098 d
18099 :bsnlc
18100 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18101 b cont
18102 ' <confdefs.h | sed '
18103 s/'"$ac_delim"'/"\\\
18104 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18105
18106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18107 for (key in D) D_is_set[key] = 1
18108 FS = "\a"
18109 }
18110 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18111 line = \$ 0
18112 split(line, arg, " ")
18113 if (arg[1] == "#") {
18114 defundef = arg[2]
18115 mac1 = arg[3]
18116 } else {
18117 defundef = substr(arg[1], 2)
18118 mac1 = arg[2]
18119 }
18120 split(mac1, mac2, "(") #)
18121 macro = mac2[1]
18122 prefix = substr(line, 1, index(line, defundef) - 1)
18123 if (D_is_set[macro]) {
18124 # Preserve the white space surrounding the "#".
18125 print prefix "define", macro P[macro] D[macro]
18126 next
18127 } else {
18128 # Replace #undef with comments. This is necessary, for example,
18129 # in the case of _POSIX_SOURCE, which is predefined and required
18130 # on some systems where configure will not decide to define it.
18131 if (defundef == "undef") {
18132 print "/*", prefix defundef, macro, "*/"
18133 next
18134 }
18135 }
18136 }
18137 { print }
18138 _ACAWK
18139 _ACEOF
18140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18141 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18142 fi # test -n "$CONFIG_HEADERS"
18143
18144
18145 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
18146 shift
18147 for ac_tag
18148 do
18149 case $ac_tag in
18150 :[FHLC]) ac_mode=$ac_tag; continue;;
18151 esac
18152 case $ac_mode$ac_tag in
18153 :[FHL]*:*);;
18154 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18155 :[FH]-) ac_tag=-:-;;
18156 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18157 esac
18158 ac_save_IFS=$IFS
18159 IFS=:
18160 set x $ac_tag
18161 IFS=$ac_save_IFS
18162 shift
18163 ac_file=$1
18164 shift
18165
18166 case $ac_mode in
18167 :L) ac_source=$1;;
18168 :[FH])
18169 ac_file_inputs=
18170 for ac_f
18171 do
18172 case $ac_f in
18173 -) ac_f="$ac_tmp/stdin";;
18174 *) # Look for the file first in the build tree, then in the source tree
18175 # (if the path is not absolute). The absolute path cannot be DOS-style,
18176 # because $ac_f cannot contain `:'.
18177 test -f "$ac_f" ||
18178 case $ac_f in
18179 [\\/$]*) false;;
18180 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18181 esac ||
18182 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18183 esac
18184 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18185 as_fn_append ac_file_inputs " '$ac_f'"
18186 done
18187
18188 # Let's still pretend it is `configure' which instantiates (i.e., don't
18189 # use $as_me), people would be surprised to read:
18190 # /* config.h. Generated by config.status. */
18191 configure_input='Generated from '`
18192 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18193 `' by configure.'
18194 if test x"$ac_file" != x-; then
18195 configure_input="$ac_file. $configure_input"
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18197 $as_echo "$as_me: creating $ac_file" >&6;}
18198 fi
18199 # Neutralize special characters interpreted by sed in replacement strings.
18200 case $configure_input in #(
18201 *\&* | *\|* | *\\* )
18202 ac_sed_conf_input=`$as_echo "$configure_input" |
18203 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18204 *) ac_sed_conf_input=$configure_input;;
18205 esac
18206
18207 case $ac_tag in
18208 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18209 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18210 esac
18211 ;;
18212 esac
18213
18214 ac_dir=`$as_dirname -- "$ac_file" ||
18215 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18216 X"$ac_file" : 'X\(//\)[^/]' \| \
18217 X"$ac_file" : 'X\(//\)$' \| \
18218 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18219 $as_echo X"$ac_file" |
18220 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18221 s//\1/
18222 q
18223 }
18224 /^X\(\/\/\)[^/].*/{
18225 s//\1/
18226 q
18227 }
18228 /^X\(\/\/\)$/{
18229 s//\1/
18230 q
18231 }
18232 /^X\(\/\).*/{
18233 s//\1/
18234 q
18235 }
18236 s/.*/./; q'`
18237 as_dir="$ac_dir"; as_fn_mkdir_p
18238 ac_builddir=.
18239
18240 case "$ac_dir" in
18241 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18242 *)
18243 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18244 # A ".." for each directory in $ac_dir_suffix.
18245 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18246 case $ac_top_builddir_sub in
18247 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18248 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18249 esac ;;
18250 esac
18251 ac_abs_top_builddir=$ac_pwd
18252 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18253 # for backward compatibility:
18254 ac_top_builddir=$ac_top_build_prefix
18255
18256 case $srcdir in
18257 .) # We are building in place.
18258 ac_srcdir=.
18259 ac_top_srcdir=$ac_top_builddir_sub
18260 ac_abs_top_srcdir=$ac_pwd ;;
18261 [\\/]* | ?:[\\/]* ) # Absolute name.
18262 ac_srcdir=$srcdir$ac_dir_suffix;
18263 ac_top_srcdir=$srcdir
18264 ac_abs_top_srcdir=$srcdir ;;
18265 *) # Relative name.
18266 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18267 ac_top_srcdir=$ac_top_build_prefix$srcdir
18268 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18269 esac
18270 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18271
18272
18273 case $ac_mode in
18274 :F)
18275 #
18276 # CONFIG_FILE
18277 #
18278
18279 case $INSTALL in
18280 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18281 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18282 esac
18283 ac_MKDIR_P=$MKDIR_P
18284 case $MKDIR_P in
18285 [\\/$]* | ?:[\\/]* ) ;;
18286 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18287 esac
18288 _ACEOF
18289
18290 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18291 # If the template does not know about datarootdir, expand it.
18292 # FIXME: This hack should be removed a few years after 2.60.
18293 ac_datarootdir_hack=; ac_datarootdir_seen=
18294 ac_sed_dataroot='
18295 /datarootdir/ {
18296 p
18297 q
18298 }
18299 /@datadir@/p
18300 /@docdir@/p
18301 /@infodir@/p
18302 /@localedir@/p
18303 /@mandir@/p'
18304 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18305 *datarootdir*) ac_datarootdir_seen=yes;;
18306 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18308 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18309 _ACEOF
18310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18311 ac_datarootdir_hack='
18312 s&@datadir@&$datadir&g
18313 s&@docdir@&$docdir&g
18314 s&@infodir@&$infodir&g
18315 s&@localedir@&$localedir&g
18316 s&@mandir@&$mandir&g
18317 s&\\\${datarootdir}&$datarootdir&g' ;;
18318 esac
18319 _ACEOF
18320
18321 # Neutralize VPATH when `$srcdir' = `.'.
18322 # Shell code in configure.ac might set extrasub.
18323 # FIXME: do we really want to maintain this feature?
18324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18325 ac_sed_extra="$ac_vpsub
18326 $extrasub
18327 _ACEOF
18328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18329 :t
18330 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18331 s|@configure_input@|$ac_sed_conf_input|;t t
18332 s&@top_builddir@&$ac_top_builddir_sub&;t t
18333 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18334 s&@srcdir@&$ac_srcdir&;t t
18335 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18336 s&@top_srcdir@&$ac_top_srcdir&;t t
18337 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18338 s&@builddir@&$ac_builddir&;t t
18339 s&@abs_builddir@&$ac_abs_builddir&;t t
18340 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18341 s&@INSTALL@&$ac_INSTALL&;t t
18342 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18343 $ac_datarootdir_hack
18344 "
18345 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18346 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18347
18348 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18349 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18350 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18351 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18353 which seems to be undefined. Please make sure it is defined" >&5
18354 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18355 which seems to be undefined. Please make sure it is defined" >&2;}
18356
18357 rm -f "$ac_tmp/stdin"
18358 case $ac_file in
18359 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18360 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18361 esac \
18362 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18363 ;;
18364 :H)
18365 #
18366 # CONFIG_HEADER
18367 #
18368 if test x"$ac_file" != x-; then
18369 {
18370 $as_echo "/* $configure_input */" \
18371 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18372 } >"$ac_tmp/config.h" \
18373 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18374 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18375 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18376 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18377 else
18378 rm -f "$ac_file"
18379 mv "$ac_tmp/config.h" "$ac_file" \
18380 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18381 fi
18382 else
18383 $as_echo "/* $configure_input */" \
18384 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18385 || as_fn_error $? "could not create -" "$LINENO" 5
18386 fi
18387 # Compute "$ac_file"'s index in $config_headers.
18388 _am_arg="$ac_file"
18389 _am_stamp_count=1
18390 for _am_header in $config_headers :; do
18391 case $_am_header in
18392 $_am_arg | $_am_arg:* )
18393 break ;;
18394 * )
18395 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18396 esac
18397 done
18398 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18399 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18400 X"$_am_arg" : 'X\(//\)[^/]' \| \
18401 X"$_am_arg" : 'X\(//\)$' \| \
18402 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18403 $as_echo X"$_am_arg" |
18404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18405 s//\1/
18406 q
18407 }
18408 /^X\(\/\/\)[^/].*/{
18409 s//\1/
18410 q
18411 }
18412 /^X\(\/\/\)$/{
18413 s//\1/
18414 q
18415 }
18416 /^X\(\/\).*/{
18417 s//\1/
18418 q
18419 }
18420 s/.*/./; q'`/stamp-h$_am_stamp_count
18421 ;;
18422 :L)
18423 #
18424 # CONFIG_LINK
18425 #
18426
18427 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
18428 :
18429 else
18430 # Prefer the file from the source tree if names are identical.
18431 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
18432 ac_source=$srcdir/$ac_source
18433 fi
18434
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
18436 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
18437
18438 if test ! -r "$ac_source"; then
18439 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
18440 fi
18441 rm -f "$ac_file"
18442
18443 # Try a relative symlink, then a hard link, then a copy.
18444 case $ac_source in
18445 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
18446 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
18447 esac
18448 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
18449 ln "$ac_source" "$ac_file" 2>/dev/null ||
18450 cp -p "$ac_source" "$ac_file" ||
18451 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
18452 fi
18453 ;;
18454 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18455 $as_echo "$as_me: executing $ac_file commands" >&6;}
18456 ;;
18457 esac
18458
18459
18460 case $ac_file$ac_mode in
18461 "default-1":C)
18462 # Only add multilib support code if we just rebuilt the top-level
18463 # Makefile.
18464 case " $CONFIG_FILES " in
18465 *" Makefile "*)
18466 ac_file=Makefile . ${multi_basedir}/config-ml.in
18467 ;;
18468 esac ;;
18469 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18470 # Older Autoconf quotes --file arguments for eval, but not when files
18471 # are listed without --file. Let's play safe and only enable the eval
18472 # if we detect the quoting.
18473 case $CONFIG_FILES in
18474 *\'*) eval set x "$CONFIG_FILES" ;;
18475 *) set x $CONFIG_FILES ;;
18476 esac
18477 shift
18478 for mf
18479 do
18480 # Strip MF so we end up with the name of the file.
18481 mf=`echo "$mf" | sed -e 's/:.*$//'`
18482 # Check whether this is an Automake generated Makefile or not.
18483 # We used to match only the files named 'Makefile.in', but
18484 # some people rename them; so instead we look at the file content.
18485 # Grep'ing the first line is not enough: some people post-process
18486 # each Makefile.in and add a new line on top of each file to say so.
18487 # Grep'ing the whole file is not good either: AIX grep has a line
18488 # limit of 2048, but all sed's we know have understand at least 4000.
18489 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18490 dirpart=`$as_dirname -- "$mf" ||
18491 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18492 X"$mf" : 'X\(//\)[^/]' \| \
18493 X"$mf" : 'X\(//\)$' \| \
18494 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18495 $as_echo X"$mf" |
18496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18497 s//\1/
18498 q
18499 }
18500 /^X\(\/\/\)[^/].*/{
18501 s//\1/
18502 q
18503 }
18504 /^X\(\/\/\)$/{
18505 s//\1/
18506 q
18507 }
18508 /^X\(\/\).*/{
18509 s//\1/
18510 q
18511 }
18512 s/.*/./; q'`
18513 else
18514 continue
18515 fi
18516 # Extract the definition of DEPDIR, am__include, and am__quote
18517 # from the Makefile without running 'make'.
18518 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18519 test -z "$DEPDIR" && continue
18520 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18521 test -z "$am__include" && continue
18522 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18523 # Find all dependency output files, they are included files with
18524 # $(DEPDIR) in their names. We invoke sed twice because it is the
18525 # simplest approach to changing $(DEPDIR) to its actual value in the
18526 # expansion.
18527 for file in `sed -n "
18528 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18529 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18530 # Make sure the directory exists.
18531 test -f "$dirpart/$file" && continue
18532 fdir=`$as_dirname -- "$file" ||
18533 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18534 X"$file" : 'X\(//\)[^/]' \| \
18535 X"$file" : 'X\(//\)$' \| \
18536 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18537 $as_echo X"$file" |
18538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18539 s//\1/
18540 q
18541 }
18542 /^X\(\/\/\)[^/].*/{
18543 s//\1/
18544 q
18545 }
18546 /^X\(\/\/\)$/{
18547 s//\1/
18548 q
18549 }
18550 /^X\(\/\).*/{
18551 s//\1/
18552 q
18553 }
18554 s/.*/./; q'`
18555 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18556 # echo "creating $dirpart/$file"
18557 echo '# dummy' > "$dirpart/$file"
18558 done
18559 done
18560 }
18561 ;;
18562 "libtool":C)
18563
18564 # See if we are running on zsh, and set the options which allow our
18565 # commands through without removal of \ escapes.
18566 if test -n "${ZSH_VERSION+set}" ; then
18567 setopt NO_GLOB_SUBST
18568 fi
18569
18570 cfgfile="${ofile}T"
18571 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18572 $RM "$cfgfile"
18573
18574 cat <<_LT_EOF >> "$cfgfile"
18575 #! $SHELL
18576
18577 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18578 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18579 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18580 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18581 #
18582 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18583 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18584 # Written by Gordon Matzigkeit, 1996
18585 #
18586 # This file is part of GNU Libtool.
18587 #
18588 # GNU Libtool is free software; you can redistribute it and/or
18589 # modify it under the terms of the GNU General Public License as
18590 # published by the Free Software Foundation; either version 2 of
18591 # the License, or (at your option) any later version.
18592 #
18593 # As a special exception to the GNU General Public License,
18594 # if you distribute this file as part of a program or library that
18595 # is built using GNU Libtool, you may include this file under the
18596 # same distribution terms that you use for the rest of that program.
18597 #
18598 # GNU Libtool is distributed in the hope that it will be useful,
18599 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18600 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18601 # GNU General Public License for more details.
18602 #
18603 # You should have received a copy of the GNU General Public License
18604 # along with GNU Libtool; see the file COPYING. If not, a copy
18605 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18606 # obtained by writing to the Free Software Foundation, Inc.,
18607 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18608
18609
18610 # The names of the tagged configurations supported by this script.
18611 available_tags="CXX "
18612
18613 # ### BEGIN LIBTOOL CONFIG
18614
18615 # Which release of libtool.m4 was used?
18616 macro_version=$macro_version
18617 macro_revision=$macro_revision
18618
18619 # Whether or not to build shared libraries.
18620 build_libtool_libs=$enable_shared
18621
18622 # Whether or not to build static libraries.
18623 build_old_libs=$enable_static
18624
18625 # What type of objects to build.
18626 pic_mode=$pic_mode
18627
18628 # Whether or not to optimize for fast installation.
18629 fast_install=$enable_fast_install
18630
18631 # Shell to use when invoking shell scripts.
18632 SHELL=$lt_SHELL
18633
18634 # An echo program that protects backslashes.
18635 ECHO=$lt_ECHO
18636
18637 # The host system.
18638 host_alias=$host_alias
18639 host=$host
18640 host_os=$host_os
18641
18642 # The build system.
18643 build_alias=$build_alias
18644 build=$build
18645 build_os=$build_os
18646
18647 # A sed program that does not truncate output.
18648 SED=$lt_SED
18649
18650 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18651 Xsed="\$SED -e 1s/^X//"
18652
18653 # A grep program that handles long lines.
18654 GREP=$lt_GREP
18655
18656 # An ERE matcher.
18657 EGREP=$lt_EGREP
18658
18659 # A literal string matcher.
18660 FGREP=$lt_FGREP
18661
18662 # A BSD- or MS-compatible name lister.
18663 NM=$lt_NM
18664
18665 # Whether we need soft or hard links.
18666 LN_S=$lt_LN_S
18667
18668 # What is the maximum length of a command?
18669 max_cmd_len=$max_cmd_len
18670
18671 # Object file suffix (normally "o").
18672 objext=$ac_objext
18673
18674 # Executable file suffix (normally "").
18675 exeext=$exeext
18676
18677 # whether the shell understands "unset".
18678 lt_unset=$lt_unset
18679
18680 # turn spaces into newlines.
18681 SP2NL=$lt_lt_SP2NL
18682
18683 # turn newlines into spaces.
18684 NL2SP=$lt_lt_NL2SP
18685
18686 # An object symbol dumper.
18687 OBJDUMP=$lt_OBJDUMP
18688
18689 # Method to check whether dependent libraries are shared objects.
18690 deplibs_check_method=$lt_deplibs_check_method
18691
18692 # Command to use when deplibs_check_method == "file_magic".
18693 file_magic_cmd=$lt_file_magic_cmd
18694
18695 # The archiver.
18696 AR=$lt_AR
18697 AR_FLAGS=$lt_AR_FLAGS
18698
18699 # A symbol stripping program.
18700 STRIP=$lt_STRIP
18701
18702 # Commands used to install an old-style archive.
18703 RANLIB=$lt_RANLIB
18704 old_postinstall_cmds=$lt_old_postinstall_cmds
18705 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18706
18707 # Whether to use a lock for old archive extraction.
18708 lock_old_archive_extraction=$lock_old_archive_extraction
18709
18710 # A C compiler.
18711 LTCC=$lt_CC
18712
18713 # LTCC compiler flags.
18714 LTCFLAGS=$lt_CFLAGS
18715
18716 # Take the output of nm and produce a listing of raw symbols and C names.
18717 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18718
18719 # Transform the output of nm in a proper C declaration.
18720 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18721
18722 # Transform the output of nm in a C name address pair.
18723 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18724
18725 # Transform the output of nm in a C name address pair when lib prefix is needed.
18726 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18727
18728 # The name of the directory that contains temporary libtool files.
18729 objdir=$objdir
18730
18731 # Used to examine libraries when file_magic_cmd begins with "file".
18732 MAGIC_CMD=$MAGIC_CMD
18733
18734 # Must we lock files when doing compilation?
18735 need_locks=$lt_need_locks
18736
18737 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18738 DSYMUTIL=$lt_DSYMUTIL
18739
18740 # Tool to change global to local symbols on Mac OS X.
18741 NMEDIT=$lt_NMEDIT
18742
18743 # Tool to manipulate fat objects and archives on Mac OS X.
18744 LIPO=$lt_LIPO
18745
18746 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18747 OTOOL=$lt_OTOOL
18748
18749 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18750 OTOOL64=$lt_OTOOL64
18751
18752 # Old archive suffix (normally "a").
18753 libext=$libext
18754
18755 # Shared library suffix (normally ".so").
18756 shrext_cmds=$lt_shrext_cmds
18757
18758 # The commands to extract the exported symbol list from a shared archive.
18759 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18760
18761 # Variables whose values should be saved in libtool wrapper scripts and
18762 # restored at link time.
18763 variables_saved_for_relink=$lt_variables_saved_for_relink
18764
18765 # Do we need the "lib" prefix for modules?
18766 need_lib_prefix=$need_lib_prefix
18767
18768 # Do we need a version for libraries?
18769 need_version=$need_version
18770
18771 # Library versioning type.
18772 version_type=$version_type
18773
18774 # Shared library runtime path variable.
18775 runpath_var=$runpath_var
18776
18777 # Shared library path variable.
18778 shlibpath_var=$shlibpath_var
18779
18780 # Is shlibpath searched before the hard-coded library search path?
18781 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18782
18783 # Format of library name prefix.
18784 libname_spec=$lt_libname_spec
18785
18786 # List of archive names. First name is the real one, the rest are links.
18787 # The last name is the one that the linker finds with -lNAME
18788 library_names_spec=$lt_library_names_spec
18789
18790 # The coded name of the library, if different from the real name.
18791 soname_spec=$lt_soname_spec
18792
18793 # Permission mode override for installation of shared libraries.
18794 install_override_mode=$lt_install_override_mode
18795
18796 # Command to use after installation of a shared archive.
18797 postinstall_cmds=$lt_postinstall_cmds
18798
18799 # Command to use after uninstallation of a shared archive.
18800 postuninstall_cmds=$lt_postuninstall_cmds
18801
18802 # Commands used to finish a libtool library installation in a directory.
18803 finish_cmds=$lt_finish_cmds
18804
18805 # As "finish_cmds", except a single script fragment to be evaled but
18806 # not shown.
18807 finish_eval=$lt_finish_eval
18808
18809 # Whether we should hardcode library paths into libraries.
18810 hardcode_into_libs=$hardcode_into_libs
18811
18812 # Compile-time system search path for libraries.
18813 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18814
18815 # Run-time system search path for libraries.
18816 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18817
18818 # Whether dlopen is supported.
18819 dlopen_support=$enable_dlopen
18820
18821 # Whether dlopen of programs is supported.
18822 dlopen_self=$enable_dlopen_self
18823
18824 # Whether dlopen of statically linked programs is supported.
18825 dlopen_self_static=$enable_dlopen_self_static
18826
18827 # Commands to strip libraries.
18828 old_striplib=$lt_old_striplib
18829 striplib=$lt_striplib
18830
18831
18832 # The linker used to build libraries.
18833 LD=$lt_LD
18834
18835 # How to create reloadable object files.
18836 reload_flag=$lt_reload_flag
18837 reload_cmds=$lt_reload_cmds
18838
18839 # Commands used to build an old-style archive.
18840 old_archive_cmds=$lt_old_archive_cmds
18841
18842 # A language specific compiler.
18843 CC=$lt_compiler
18844
18845 # Is the compiler the GNU compiler?
18846 with_gcc=$GCC
18847
18848 # Compiler flag to turn off builtin functions.
18849 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18850
18851 # How to pass a linker flag through the compiler.
18852 wl=$lt_lt_prog_compiler_wl
18853
18854 # Additional compiler flags for building library objects.
18855 pic_flag=$lt_lt_prog_compiler_pic
18856
18857 # Compiler flag to prevent dynamic linking.
18858 link_static_flag=$lt_lt_prog_compiler_static
18859
18860 # Does compiler simultaneously support -c and -o options?
18861 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18862
18863 # Whether or not to add -lc for building shared libraries.
18864 build_libtool_need_lc=$archive_cmds_need_lc
18865
18866 # Whether or not to disallow shared libs when runtime libs are static.
18867 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18868
18869 # Compiler flag to allow reflexive dlopens.
18870 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18871
18872 # Compiler flag to generate shared objects directly from archives.
18873 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18874
18875 # Whether the compiler copes with passing no objects directly.
18876 compiler_needs_object=$lt_compiler_needs_object
18877
18878 # Create an old-style archive from a shared archive.
18879 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18880
18881 # Create a temporary old-style archive to link instead of a shared archive.
18882 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18883
18884 # Commands used to build a shared archive.
18885 archive_cmds=$lt_archive_cmds
18886 archive_expsym_cmds=$lt_archive_expsym_cmds
18887
18888 # Commands used to build a loadable module if different from building
18889 # a shared archive.
18890 module_cmds=$lt_module_cmds
18891 module_expsym_cmds=$lt_module_expsym_cmds
18892
18893 # Whether we are building with GNU ld or not.
18894 with_gnu_ld=$lt_with_gnu_ld
18895
18896 # Flag that allows shared libraries with undefined symbols to be built.
18897 allow_undefined_flag=$lt_allow_undefined_flag
18898
18899 # Flag that enforces no undefined symbols.
18900 no_undefined_flag=$lt_no_undefined_flag
18901
18902 # Flag to hardcode \$libdir into a binary during linking.
18903 # This must work even if \$libdir does not exist
18904 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18905
18906 # If ld is used when linking, flag to hardcode \$libdir into a binary
18907 # during linking. This must work even if \$libdir does not exist.
18908 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18909
18910 # Whether we need a single "-rpath" flag with a separated argument.
18911 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18912
18913 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18914 # DIR into the resulting binary.
18915 hardcode_direct=$hardcode_direct
18916
18917 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18918 # DIR into the resulting binary and the resulting library dependency is
18919 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18920 # library is relocated.
18921 hardcode_direct_absolute=$hardcode_direct_absolute
18922
18923 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18924 # into the resulting binary.
18925 hardcode_minus_L=$hardcode_minus_L
18926
18927 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18928 # into the resulting binary.
18929 hardcode_shlibpath_var=$hardcode_shlibpath_var
18930
18931 # Set to "yes" if building a shared library automatically hardcodes DIR
18932 # into the library and all subsequent libraries and executables linked
18933 # against it.
18934 hardcode_automatic=$hardcode_automatic
18935
18936 # Set to yes if linker adds runtime paths of dependent libraries
18937 # to runtime path list.
18938 inherit_rpath=$inherit_rpath
18939
18940 # Whether libtool must link a program against all its dependency libraries.
18941 link_all_deplibs=$link_all_deplibs
18942
18943 # Fix the shell variable \$srcfile for the compiler.
18944 fix_srcfile_path=$lt_fix_srcfile_path
18945
18946 # Set to "yes" if exported symbols are required.
18947 always_export_symbols=$always_export_symbols
18948
18949 # The commands to list exported symbols.
18950 export_symbols_cmds=$lt_export_symbols_cmds
18951
18952 # Symbols that should not be listed in the preloaded symbols.
18953 exclude_expsyms=$lt_exclude_expsyms
18954
18955 # Symbols that must always be exported.
18956 include_expsyms=$lt_include_expsyms
18957
18958 # Commands necessary for linking programs (against libraries) with templates.
18959 prelink_cmds=$lt_prelink_cmds
18960
18961 # Specify filename containing input files.
18962 file_list_spec=$lt_file_list_spec
18963
18964 # How to hardcode a shared library path into an executable.
18965 hardcode_action=$hardcode_action
18966
18967 # The directories searched by this compiler when creating a shared library.
18968 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
18969
18970 # Dependencies to place before and after the objects being linked to
18971 # create a shared library.
18972 predep_objects=$lt_predep_objects
18973 postdep_objects=$lt_postdep_objects
18974 predeps=$lt_predeps
18975 postdeps=$lt_postdeps
18976
18977 # The library search path used internally by the compiler when linking
18978 # a shared library.
18979 compiler_lib_search_path=$lt_compiler_lib_search_path
18980
18981 # ### END LIBTOOL CONFIG
18982
18983 _LT_EOF
18984
18985 case $host_os in
18986 aix3*)
18987 cat <<\_LT_EOF >> "$cfgfile"
18988 # AIX sometimes has problems with the GCC collect2 program. For some
18989 # reason, if we set the COLLECT_NAMES environment variable, the problems
18990 # vanish in a puff of smoke.
18991 if test "X${COLLECT_NAMES+set}" != Xset; then
18992 COLLECT_NAMES=
18993 export COLLECT_NAMES
18994 fi
18995 _LT_EOF
18996 ;;
18997 esac
18998
18999
19000 ltmain="$ac_aux_dir/ltmain.sh"
19001
19002
19003 # We use sed instead of cat because bash on DJGPP gets confused if
19004 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19005 # text mode, it properly converts lines to CR/LF. This bash problem
19006 # is reportedly fixed, but why not run on old versions too?
19007 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19008 || (rm -f "$cfgfile"; exit 1)
19009
19010 case $xsi_shell in
19011 yes)
19012 cat << \_LT_EOF >> "$cfgfile"
19013
19014 # func_dirname file append nondir_replacement
19015 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19016 # otherwise set result to NONDIR_REPLACEMENT.
19017 func_dirname ()
19018 {
19019 case ${1} in
19020 */*) func_dirname_result="${1%/*}${2}" ;;
19021 * ) func_dirname_result="${3}" ;;
19022 esac
19023 }
19024
19025 # func_basename file
19026 func_basename ()
19027 {
19028 func_basename_result="${1##*/}"
19029 }
19030
19031 # func_dirname_and_basename file append nondir_replacement
19032 # perform func_basename and func_dirname in a single function
19033 # call:
19034 # dirname: Compute the dirname of FILE. If nonempty,
19035 # add APPEND to the result, otherwise set result
19036 # to NONDIR_REPLACEMENT.
19037 # value returned in "$func_dirname_result"
19038 # basename: Compute filename of FILE.
19039 # value retuned in "$func_basename_result"
19040 # Implementation must be kept synchronized with func_dirname
19041 # and func_basename. For efficiency, we do not delegate to
19042 # those functions but instead duplicate the functionality here.
19043 func_dirname_and_basename ()
19044 {
19045 case ${1} in
19046 */*) func_dirname_result="${1%/*}${2}" ;;
19047 * ) func_dirname_result="${3}" ;;
19048 esac
19049 func_basename_result="${1##*/}"
19050 }
19051
19052 # func_stripname prefix suffix name
19053 # strip PREFIX and SUFFIX off of NAME.
19054 # PREFIX and SUFFIX must not contain globbing or regex special
19055 # characters, hashes, percent signs, but SUFFIX may contain a leading
19056 # dot (in which case that matches only a dot).
19057 func_stripname ()
19058 {
19059 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19060 # positional parameters, so assign one to ordinary parameter first.
19061 func_stripname_result=${3}
19062 func_stripname_result=${func_stripname_result#"${1}"}
19063 func_stripname_result=${func_stripname_result%"${2}"}
19064 }
19065
19066 # func_opt_split
19067 func_opt_split ()
19068 {
19069 func_opt_split_opt=${1%%=*}
19070 func_opt_split_arg=${1#*=}
19071 }
19072
19073 # func_lo2o object
19074 func_lo2o ()
19075 {
19076 case ${1} in
19077 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19078 *) func_lo2o_result=${1} ;;
19079 esac
19080 }
19081
19082 # func_xform libobj-or-source
19083 func_xform ()
19084 {
19085 func_xform_result=${1%.*}.lo
19086 }
19087
19088 # func_arith arithmetic-term...
19089 func_arith ()
19090 {
19091 func_arith_result=$(( $* ))
19092 }
19093
19094 # func_len string
19095 # STRING may not start with a hyphen.
19096 func_len ()
19097 {
19098 func_len_result=${#1}
19099 }
19100
19101 _LT_EOF
19102 ;;
19103 *) # Bourne compatible functions.
19104 cat << \_LT_EOF >> "$cfgfile"
19105
19106 # func_dirname file append nondir_replacement
19107 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19108 # otherwise set result to NONDIR_REPLACEMENT.
19109 func_dirname ()
19110 {
19111 # Extract subdirectory from the argument.
19112 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19113 if test "X$func_dirname_result" = "X${1}"; then
19114 func_dirname_result="${3}"
19115 else
19116 func_dirname_result="$func_dirname_result${2}"
19117 fi
19118 }
19119
19120 # func_basename file
19121 func_basename ()
19122 {
19123 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19124 }
19125
19126
19127 # func_stripname prefix suffix name
19128 # strip PREFIX and SUFFIX off of NAME.
19129 # PREFIX and SUFFIX must not contain globbing or regex special
19130 # characters, hashes, percent signs, but SUFFIX may contain a leading
19131 # dot (in which case that matches only a dot).
19132 # func_strip_suffix prefix name
19133 func_stripname ()
19134 {
19135 case ${2} in
19136 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19137 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19138 esac
19139 }
19140
19141 # sed scripts:
19142 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19143 my_sed_long_arg='1s/^-[^=]*=//'
19144
19145 # func_opt_split
19146 func_opt_split ()
19147 {
19148 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19149 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19150 }
19151
19152 # func_lo2o object
19153 func_lo2o ()
19154 {
19155 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19156 }
19157
19158 # func_xform libobj-or-source
19159 func_xform ()
19160 {
19161 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19162 }
19163
19164 # func_arith arithmetic-term...
19165 func_arith ()
19166 {
19167 func_arith_result=`expr "$@"`
19168 }
19169
19170 # func_len string
19171 # STRING may not start with a hyphen.
19172 func_len ()
19173 {
19174 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19175 }
19176
19177 _LT_EOF
19178 esac
19179
19180 case $lt_shell_append in
19181 yes)
19182 cat << \_LT_EOF >> "$cfgfile"
19183
19184 # func_append var value
19185 # Append VALUE to the end of shell variable VAR.
19186 func_append ()
19187 {
19188 eval "$1+=\$2"
19189 }
19190 _LT_EOF
19191 ;;
19192 *)
19193 cat << \_LT_EOF >> "$cfgfile"
19194
19195 # func_append var value
19196 # Append VALUE to the end of shell variable VAR.
19197 func_append ()
19198 {
19199 eval "$1=\$$1\$2"
19200 }
19201
19202 _LT_EOF
19203 ;;
19204 esac
19205
19206
19207 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19208 || (rm -f "$cfgfile"; exit 1)
19209
19210 mv -f "$cfgfile" "$ofile" ||
19211 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19212 chmod +x "$ofile"
19213
19214
19215 cat <<_LT_EOF >> "$ofile"
19216
19217 # ### BEGIN LIBTOOL TAG CONFIG: CXX
19218
19219 # The linker used to build libraries.
19220 LD=$lt_LD_CXX
19221
19222 # How to create reloadable object files.
19223 reload_flag=$lt_reload_flag_CXX
19224 reload_cmds=$lt_reload_cmds_CXX
19225
19226 # Commands used to build an old-style archive.
19227 old_archive_cmds=$lt_old_archive_cmds_CXX
19228
19229 # A language specific compiler.
19230 CC=$lt_compiler_CXX
19231
19232 # Is the compiler the GNU compiler?
19233 with_gcc=$GCC_CXX
19234
19235 # Compiler flag to turn off builtin functions.
19236 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
19237
19238 # How to pass a linker flag through the compiler.
19239 wl=$lt_lt_prog_compiler_wl_CXX
19240
19241 # Additional compiler flags for building library objects.
19242 pic_flag=$lt_lt_prog_compiler_pic_CXX
19243
19244 # Compiler flag to prevent dynamic linking.
19245 link_static_flag=$lt_lt_prog_compiler_static_CXX
19246
19247 # Does compiler simultaneously support -c and -o options?
19248 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
19249
19250 # Whether or not to add -lc for building shared libraries.
19251 build_libtool_need_lc=$archive_cmds_need_lc_CXX
19252
19253 # Whether or not to disallow shared libs when runtime libs are static.
19254 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
19255
19256 # Compiler flag to allow reflexive dlopens.
19257 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
19258
19259 # Compiler flag to generate shared objects directly from archives.
19260 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
19261
19262 # Whether the compiler copes with passing no objects directly.
19263 compiler_needs_object=$lt_compiler_needs_object_CXX
19264
19265 # Create an old-style archive from a shared archive.
19266 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
19267
19268 # Create a temporary old-style archive to link instead of a shared archive.
19269 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
19270
19271 # Commands used to build a shared archive.
19272 archive_cmds=$lt_archive_cmds_CXX
19273 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
19274
19275 # Commands used to build a loadable module if different from building
19276 # a shared archive.
19277 module_cmds=$lt_module_cmds_CXX
19278 module_expsym_cmds=$lt_module_expsym_cmds_CXX
19279
19280 # Whether we are building with GNU ld or not.
19281 with_gnu_ld=$lt_with_gnu_ld_CXX
19282
19283 # Flag that allows shared libraries with undefined symbols to be built.
19284 allow_undefined_flag=$lt_allow_undefined_flag_CXX
19285
19286 # Flag that enforces no undefined symbols.
19287 no_undefined_flag=$lt_no_undefined_flag_CXX
19288
19289 # Flag to hardcode \$libdir into a binary during linking.
19290 # This must work even if \$libdir does not exist
19291 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
19292
19293 # If ld is used when linking, flag to hardcode \$libdir into a binary
19294 # during linking. This must work even if \$libdir does not exist.
19295 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
19296
19297 # Whether we need a single "-rpath" flag with a separated argument.
19298 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
19299
19300 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19301 # DIR into the resulting binary.
19302 hardcode_direct=$hardcode_direct_CXX
19303
19304 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19305 # DIR into the resulting binary and the resulting library dependency is
19306 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19307 # library is relocated.
19308 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
19309
19310 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19311 # into the resulting binary.
19312 hardcode_minus_L=$hardcode_minus_L_CXX
19313
19314 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19315 # into the resulting binary.
19316 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
19317
19318 # Set to "yes" if building a shared library automatically hardcodes DIR
19319 # into the library and all subsequent libraries and executables linked
19320 # against it.
19321 hardcode_automatic=$hardcode_automatic_CXX
19322
19323 # Set to yes if linker adds runtime paths of dependent libraries
19324 # to runtime path list.
19325 inherit_rpath=$inherit_rpath_CXX
19326
19327 # Whether libtool must link a program against all its dependency libraries.
19328 link_all_deplibs=$link_all_deplibs_CXX
19329
19330 # Fix the shell variable \$srcfile for the compiler.
19331 fix_srcfile_path=$lt_fix_srcfile_path_CXX
19332
19333 # Set to "yes" if exported symbols are required.
19334 always_export_symbols=$always_export_symbols_CXX
19335
19336 # The commands to list exported symbols.
19337 export_symbols_cmds=$lt_export_symbols_cmds_CXX
19338
19339 # Symbols that should not be listed in the preloaded symbols.
19340 exclude_expsyms=$lt_exclude_expsyms_CXX
19341
19342 # Symbols that must always be exported.
19343 include_expsyms=$lt_include_expsyms_CXX
19344
19345 # Commands necessary for linking programs (against libraries) with templates.
19346 prelink_cmds=$lt_prelink_cmds_CXX
19347
19348 # Specify filename containing input files.
19349 file_list_spec=$lt_file_list_spec_CXX
19350
19351 # How to hardcode a shared library path into an executable.
19352 hardcode_action=$hardcode_action_CXX
19353
19354 # The directories searched by this compiler when creating a shared library.
19355 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
19356
19357 # Dependencies to place before and after the objects being linked to
19358 # create a shared library.
19359 predep_objects=$lt_predep_objects_CXX
19360 postdep_objects=$lt_postdep_objects_CXX
19361 predeps=$lt_predeps_CXX
19362 postdeps=$lt_postdeps_CXX
19363
19364 # The library search path used internally by the compiler when linking
19365 # a shared library.
19366 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
19367
19368 # ### END LIBTOOL TAG CONFIG: CXX
19369 _LT_EOF
19370
19371 ;;
19372 "include":C) test -d include || mkdir include ;;
19373 "src":C)
19374 test -d src || mkdir src
19375 test -d src/$TARGETDIR || mkdir src/$TARGETDIR
19376 ;;
19377
19378 esac
19379 done # for ac_tag
19380
19381
19382 as_fn_exit 0
19383 _ACEOF
19384 ac_clean_files=$ac_clean_files_save
19385
19386 test $ac_write_fail = 0 ||
19387 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19388
19389
19390 # configure is writing to config.log, and then calls config.status.
19391 # config.status does its own redirection, appending to config.log.
19392 # Unfortunately, on DOS this fails, as config.log is still kept open
19393 # by configure, so config.status won't be able to write to it; its
19394 # output is simply discarded. So we exec the FD to /dev/null,
19395 # effectively closing config.log, so it can be properly (re)opened and
19396 # appended to by config.status. When coming back to configure, we
19397 # need to make the FD available again.
19398 if test "$no_create" != yes; then
19399 ac_cs_success=:
19400 ac_config_status_args=
19401 test "$silent" = yes &&
19402 ac_config_status_args="$ac_config_status_args --quiet"
19403 exec 5>/dev/null
19404 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19405 exec 5>>config.log
19406 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19407 # would make configure fail if this is the last instruction.
19408 $ac_cs_success || as_fn_exit 1
19409 fi
19410 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19412 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19413 fi
19414