libatomic: Fix SEQ_CST 128-bit atomic load [PR108891]
[official-gcc.git] / libgm2 / configure
blob8eb1bc81c66362dd399fb73ad6edfff3890b633e
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libgm2'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="Makefile.am"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_unique_file="Makefile.am"
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 get_gcc_base_ver
638 TARGET_DARWIN_FALSE
639 TARGET_DARWIN_TRUE
640 BUILD_LOGLIB_FALSE
641 BUILD_LOGLIB_TRUE
642 BUILD_CORLIB_FALSE
643 BUILD_CORLIB_TRUE
644 BUILD_ISOLIB_FALSE
645 BUILD_ISOLIB_TRUE
646 BUILD_PIMLIB_FALSE
647 BUILD_PIMLIB_TRUE
648 GM2_FOR_TARGET
649 CC_FOR_BUILD
650 enable_static
651 enable_shared
652 CXXCPP
653 OTOOL64
654 OTOOL
655 LIPO
656 NMEDIT
657 DSYMUTIL
658 OBJDUMP
659 LN_S
660 ac_ct_DUMPBIN
661 DUMPBIN
663 FGREP
665 LIBTOOL
666 PERL
667 RANLIB
670 am__fastdepCCAS_FALSE
671 am__fastdepCCAS_TRUE
672 CCASDEPMODE
673 CCASFLAGS
674 CCAS
675 am__fastdepCXX_FALSE
676 am__fastdepCXX_TRUE
677 CXXDEPMODE
678 ac_ct_CXX
679 CXXFLAGS
681 MAINTAINER_MODE_FALSE
682 MAINTAINER_MODE_TRUE
683 toolexeclibdir
684 toolexecdir
685 MAINT
686 slibdir
687 target_subdir
688 host_subdir
689 build_subdir
690 build_libsubdir
691 target_noncanonical
692 host_noncanonical
693 AM_BACKSLASH
694 AM_DEFAULT_VERBOSITY
695 AM_DEFAULT_V
696 AM_V
697 am__fastdepCC_FALSE
698 am__fastdepCC_TRUE
699 CCDEPMODE
700 am__nodep
701 AMDEPBACKSLASH
702 AMDEP_FALSE
703 AMDEP_TRUE
704 am__quote
705 am__include
706 DEPDIR
707 am__untar
708 am__tar
709 AMTAR
710 am__leading_dot
711 SET_MAKE
713 mkdir_p
714 MKDIR_P
715 INSTALL_STRIP_PROGRAM
716 STRIP
717 install_sh
718 MAKEINFO
719 AUTOHEADER
720 AUTOMAKE
721 AUTOCONF
722 ACLOCAL
723 VERSION
724 PACKAGE
725 CYGPATH_W
726 am__isrc
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 target_os
731 target_vendor
732 target_cpu
733 target
734 host_os
735 host_vendor
736 host_cpu
737 host
738 build_os
739 build_vendor
740 build_cpu
741 build
742 EGREP
743 GREP
745 OBJEXT
746 EXEEXT
747 ac_ct_CC
748 CPPFLAGS
749 LDFLAGS
750 CFLAGS
752 multi_basedir
753 libtool_VERSION
754 target_alias
755 host_alias
756 build_alias
757 LIBS
758 ECHO_T
759 ECHO_N
760 ECHO_C
761 DEFS
762 mandir
763 localedir
764 libdir
765 psdir
766 pdfdir
767 dvidir
768 htmldir
769 infodir
770 docdir
771 oldincludedir
772 includedir
773 localstatedir
774 sharedstatedir
775 sysconfdir
776 datadir
777 datarootdir
778 libexecdir
779 sbindir
780 bindir
781 program_transform_name
782 prefix
783 exec_prefix
784 PACKAGE_URL
785 PACKAGE_BUGREPORT
786 PACKAGE_STRING
787 PACKAGE_VERSION
788 PACKAGE_TARNAME
789 PACKAGE_NAME
790 PATH_SEPARATOR
791 SHELL'
792 ac_subst_files=''
793 ac_user_opts='
794 enable_option_checking
795 enable_multilib
796 enable_dependency_tracking
797 enable_silent_rules
798 with_cross_host
799 with_build_libsubdir
800 enable_version_specific_runtime_libs
801 with_slibdir
802 enable_maintainer_mode
803 enable_shared
804 enable_static
805 with_pic
806 enable_fast_install
807 with_gnu_ld
808 enable_libtool_lock
809 with_gcc_major_version_only
811 ac_precious_vars='build_alias
812 host_alias
813 target_alias
815 CFLAGS
816 LDFLAGS
817 LIBS
818 CPPFLAGS
820 CXXCPP'
823 # Initialize some variables set by options.
824 ac_init_help=
825 ac_init_version=false
826 ac_unrecognized_opts=
827 ac_unrecognized_sep=
828 # The variables have the same names as the options, with
829 # dashes changed to underlines.
830 cache_file=/dev/null
831 exec_prefix=NONE
832 no_create=
833 no_recursion=
834 prefix=NONE
835 program_prefix=NONE
836 program_suffix=NONE
837 program_transform_name=s,x,x,
838 silent=
839 site=
840 srcdir=
841 verbose=
842 x_includes=NONE
843 x_libraries=NONE
845 # Installation directory options.
846 # These are left unexpanded so users can "make install exec_prefix=/foo"
847 # and all the variables that are supposed to be based on exec_prefix
848 # by default will actually change.
849 # Use braces instead of parens because sh, perl, etc. also accept them.
850 # (The list follows the same order as the GNU Coding Standards.)
851 bindir='${exec_prefix}/bin'
852 sbindir='${exec_prefix}/sbin'
853 libexecdir='${exec_prefix}/libexec'
854 datarootdir='${prefix}/share'
855 datadir='${datarootdir}'
856 sysconfdir='${prefix}/etc'
857 sharedstatedir='${prefix}/com'
858 localstatedir='${prefix}/var'
859 includedir='${prefix}/include'
860 oldincludedir='/usr/include'
861 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
862 infodir='${datarootdir}/info'
863 htmldir='${docdir}'
864 dvidir='${docdir}'
865 pdfdir='${docdir}'
866 psdir='${docdir}'
867 libdir='${exec_prefix}/lib'
868 localedir='${datarootdir}/locale'
869 mandir='${datarootdir}/man'
871 ac_prev=
872 ac_dashdash=
873 for ac_option
875 # If the previous option needs an argument, assign it.
876 if test -n "$ac_prev"; then
877 eval $ac_prev=\$ac_option
878 ac_prev=
879 continue
882 case $ac_option in
883 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 *=) ac_optarg= ;;
885 *) ac_optarg=yes ;;
886 esac
888 # Accept the important Cygnus configure options, so we can diagnose typos.
890 case $ac_dashdash$ac_option in
892 ac_dashdash=yes ;;
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
895 ac_prev=bindir ;;
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
897 bindir=$ac_optarg ;;
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
911 --config-cache | -C)
912 cache_file=config.cache ;;
914 -datadir | --datadir | --datadi | --datad)
915 ac_prev=datadir ;;
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
926 -disable-* | --disable-*)
927 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
930 as_fn_error $? "invalid feature name: $ac_useropt"
931 ac_useropt_orig=$ac_useropt
932 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
933 case $ac_user_opts in
935 "enable_$ac_useropt"
936 "*) ;;
937 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
938 ac_unrecognized_sep=', ';;
939 esac
940 eval enable_$ac_useropt=no ;;
942 -docdir | --docdir | --docdi | --doc | --do)
943 ac_prev=docdir ;;
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 docdir=$ac_optarg ;;
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 ac_prev=dvidir ;;
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 dvidir=$ac_optarg ;;
952 -enable-* | --enable-*)
953 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
956 as_fn_error $? "invalid feature name: $ac_useropt"
957 ac_useropt_orig=$ac_useropt
958 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
959 case $ac_user_opts in
961 "enable_$ac_useropt"
962 "*) ;;
963 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
964 ac_unrecognized_sep=', ';;
965 esac
966 eval enable_$ac_useropt=\$ac_optarg ;;
968 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
969 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
970 | --exec | --exe | --ex)
971 ac_prev=exec_prefix ;;
972 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
973 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
974 | --exec=* | --exe=* | --ex=*)
975 exec_prefix=$ac_optarg ;;
977 -gas | --gas | --ga | --g)
978 # Obsolete; use --with-gas.
979 with_gas=yes ;;
981 -help | --help | --hel | --he | -h)
982 ac_init_help=long ;;
983 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
984 ac_init_help=recursive ;;
985 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
986 ac_init_help=short ;;
988 -host | --host | --hos | --ho)
989 ac_prev=host_alias ;;
990 -host=* | --host=* | --hos=* | --ho=*)
991 host_alias=$ac_optarg ;;
993 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994 ac_prev=htmldir ;;
995 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996 | --ht=*)
997 htmldir=$ac_optarg ;;
999 -includedir | --includedir | --includedi | --included | --include \
1000 | --includ | --inclu | --incl | --inc)
1001 ac_prev=includedir ;;
1002 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1003 | --includ=* | --inclu=* | --incl=* | --inc=*)
1004 includedir=$ac_optarg ;;
1006 -infodir | --infodir | --infodi | --infod | --info | --inf)
1007 ac_prev=infodir ;;
1008 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1009 infodir=$ac_optarg ;;
1011 -libdir | --libdir | --libdi | --libd)
1012 ac_prev=libdir ;;
1013 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1014 libdir=$ac_optarg ;;
1016 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1017 | --libexe | --libex | --libe)
1018 ac_prev=libexecdir ;;
1019 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1020 | --libexe=* | --libex=* | --libe=*)
1021 libexecdir=$ac_optarg ;;
1023 -localedir | --localedir | --localedi | --localed | --locale)
1024 ac_prev=localedir ;;
1025 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1026 localedir=$ac_optarg ;;
1028 -localstatedir | --localstatedir | --localstatedi | --localstated \
1029 | --localstate | --localstat | --localsta | --localst | --locals)
1030 ac_prev=localstatedir ;;
1031 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1032 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1033 localstatedir=$ac_optarg ;;
1035 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036 ac_prev=mandir ;;
1037 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1038 mandir=$ac_optarg ;;
1040 -nfp | --nfp | --nf)
1041 # Obsolete; use --without-fp.
1042 with_fp=no ;;
1044 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1045 | --no-cr | --no-c | -n)
1046 no_create=yes ;;
1048 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1049 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1050 no_recursion=yes ;;
1052 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1053 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1054 | --oldin | --oldi | --old | --ol | --o)
1055 ac_prev=oldincludedir ;;
1056 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1057 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1058 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1059 oldincludedir=$ac_optarg ;;
1061 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062 ac_prev=prefix ;;
1063 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1064 prefix=$ac_optarg ;;
1066 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1067 | --program-pre | --program-pr | --program-p)
1068 ac_prev=program_prefix ;;
1069 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1070 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1071 program_prefix=$ac_optarg ;;
1073 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1074 | --program-suf | --program-su | --program-s)
1075 ac_prev=program_suffix ;;
1076 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1077 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1078 program_suffix=$ac_optarg ;;
1080 -program-transform-name | --program-transform-name \
1081 | --program-transform-nam | --program-transform-na \
1082 | --program-transform-n | --program-transform- \
1083 | --program-transform | --program-transfor \
1084 | --program-transfo | --program-transf \
1085 | --program-trans | --program-tran \
1086 | --progr-tra | --program-tr | --program-t)
1087 ac_prev=program_transform_name ;;
1088 -program-transform-name=* | --program-transform-name=* \
1089 | --program-transform-nam=* | --program-transform-na=* \
1090 | --program-transform-n=* | --program-transform-=* \
1091 | --program-transform=* | --program-transfor=* \
1092 | --program-transfo=* | --program-transf=* \
1093 | --program-trans=* | --program-tran=* \
1094 | --progr-tra=* | --program-tr=* | --program-t=*)
1095 program_transform_name=$ac_optarg ;;
1097 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098 ac_prev=pdfdir ;;
1099 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1100 pdfdir=$ac_optarg ;;
1102 -psdir | --psdir | --psdi | --psd | --ps)
1103 ac_prev=psdir ;;
1104 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1105 psdir=$ac_optarg ;;
1107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1108 | -silent | --silent | --silen | --sile | --sil)
1109 silent=yes ;;
1111 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112 ac_prev=sbindir ;;
1113 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114 | --sbi=* | --sb=*)
1115 sbindir=$ac_optarg ;;
1117 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1118 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1119 | --sharedst | --shareds | --shared | --share | --shar \
1120 | --sha | --sh)
1121 ac_prev=sharedstatedir ;;
1122 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1123 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1124 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125 | --sha=* | --sh=*)
1126 sharedstatedir=$ac_optarg ;;
1128 -site | --site | --sit)
1129 ac_prev=site ;;
1130 -site=* | --site=* | --sit=*)
1131 site=$ac_optarg ;;
1133 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134 ac_prev=srcdir ;;
1135 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1136 srcdir=$ac_optarg ;;
1138 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1139 | --syscon | --sysco | --sysc | --sys | --sy)
1140 ac_prev=sysconfdir ;;
1141 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1142 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1143 sysconfdir=$ac_optarg ;;
1145 -target | --target | --targe | --targ | --tar | --ta | --t)
1146 ac_prev=target_alias ;;
1147 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1148 target_alias=$ac_optarg ;;
1150 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1151 verbose=yes ;;
1153 -version | --version | --versio | --versi | --vers | -V)
1154 ac_init_version=: ;;
1156 -with-* | --with-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=\$ac_optarg ;;
1172 -without-* | --without-*)
1173 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1174 # Reject names that are not valid shell variable names.
1175 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1176 as_fn_error $? "invalid package name: $ac_useropt"
1177 ac_useropt_orig=$ac_useropt
1178 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1179 case $ac_user_opts in
1181 "with_$ac_useropt"
1182 "*) ;;
1183 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1184 ac_unrecognized_sep=', ';;
1185 esac
1186 eval with_$ac_useropt=no ;;
1188 --x)
1189 # Obsolete; use --with-x.
1190 with_x=yes ;;
1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193 | --x-incl | --x-inc | --x-in | --x-i)
1194 ac_prev=x_includes ;;
1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197 x_includes=$ac_optarg ;;
1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201 ac_prev=x_libraries ;;
1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204 x_libraries=$ac_optarg ;;
1206 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1207 Try \`$0 --help' for more information"
1210 *=*)
1211 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1212 # Reject names that are not valid shell variable names.
1213 case $ac_envvar in #(
1214 '' | [0-9]* | *[!_$as_cr_alnum]* )
1215 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1216 esac
1217 eval $ac_envvar=\$ac_optarg
1218 export $ac_envvar ;;
1221 # FIXME: should be removed in autoconf 3.0.
1222 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1228 esac
1229 done
1231 if test -n "$ac_prev"; then
1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233 as_fn_error $? "missing argument to $ac_option"
1236 if test -n "$ac_unrecognized_opts"; then
1237 case $enable_option_checking in
1238 no) ;;
1239 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1240 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1241 esac
1244 # Check all directory arguments for consistency.
1245 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1246 datadir sysconfdir sharedstatedir localstatedir includedir \
1247 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1248 libdir localedir mandir
1250 eval ac_val=\$$ac_var
1251 # Remove trailing slashes.
1252 case $ac_val in
1253 */ )
1254 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1255 eval $ac_var=\$ac_val;;
1256 esac
1257 # Be sure to have absolute directory names.
1258 case $ac_val in
1259 [\\/$]* | ?:[\\/]* ) continue;;
1260 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261 esac
1262 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1263 done
1265 # There might be people who depend on the old broken behavior: `$host'
1266 # used to hold the argument of --host etc.
1267 # FIXME: To remove some day.
1268 build=$build_alias
1269 host=$host_alias
1270 target=$target_alias
1272 # FIXME: To remove some day.
1273 if test "x$host_alias" != x; then
1274 if test "x$build_alias" = x; then
1275 cross_compiling=maybe
1276 elif test "x$build_alias" != "x$host_alias"; then
1277 cross_compiling=yes
1281 ac_tool_prefix=
1282 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1284 test "$silent" = yes && exec 6>/dev/null
1287 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1288 ac_ls_di=`ls -di .` &&
1289 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1290 as_fn_error $? "working directory cannot be determined"
1291 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1292 as_fn_error $? "pwd does not report name of working directory"
1295 # Find the source files, if location was not specified.
1296 if test -z "$srcdir"; then
1297 ac_srcdir_defaulted=yes
1298 # Try the directory containing this script, then the parent directory.
1299 ac_confdir=`$as_dirname -- "$as_myself" ||
1300 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1301 X"$as_myself" : 'X\(//\)[^/]' \| \
1302 X"$as_myself" : 'X\(//\)$' \| \
1303 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1304 $as_echo X"$as_myself" |
1305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1306 s//\1/
1309 /^X\(\/\/\)[^/].*/{
1310 s//\1/
1313 /^X\(\/\/\)$/{
1314 s//\1/
1317 /^X\(\/\).*/{
1318 s//\1/
1321 s/.*/./; q'`
1322 srcdir=$ac_confdir
1323 if test ! -r "$srcdir/$ac_unique_file"; then
1324 srcdir=..
1326 else
1327 ac_srcdir_defaulted=no
1329 if test ! -r "$srcdir/$ac_unique_file"; then
1330 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1331 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1333 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1334 ac_abs_confdir=`(
1335 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1336 pwd)`
1337 # When building in place, set srcdir=.
1338 if test "$ac_abs_confdir" = "$ac_pwd"; then
1339 srcdir=.
1341 # Remove unnecessary trailing slashes from srcdir.
1342 # Double slashes in file names in object file debugging info
1343 # mess up M-x gdb in Emacs.
1344 case $srcdir in
1345 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1346 esac
1347 for ac_var in $ac_precious_vars; do
1348 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1349 eval ac_env_${ac_var}_value=\$${ac_var}
1350 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1352 done
1355 # Report the --help message.
1357 if test "$ac_init_help" = "long"; then
1358 # Omit some internal or obsolete options to make the list less imposing.
1359 # This message is too long to be a string in the A/UX 3.1 sh.
1360 cat <<_ACEOF
1361 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1363 Usage: $0 [OPTION]... [VAR=VALUE]...
1365 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1366 VAR=VALUE. See below for descriptions of some of the useful variables.
1368 Defaults for the options are specified in brackets.
1370 Configuration:
1371 -h, --help display this help and exit
1372 --help=short display options specific to this package
1373 --help=recursive display the short help of all the included packages
1374 -V, --version display version information and exit
1375 -q, --quiet, --silent do not print \`checking ...' messages
1376 --cache-file=FILE cache test results in FILE [disabled]
1377 -C, --config-cache alias for \`--cache-file=config.cache'
1378 -n, --no-create do not create output files
1379 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1381 Installation directories:
1382 --prefix=PREFIX install architecture-independent files in PREFIX
1383 [$ac_default_prefix]
1384 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1385 [PREFIX]
1387 By default, \`make install' will install all the files in
1388 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1389 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1390 for instance \`--prefix=\$HOME'.
1392 For better control, use the options below.
1394 Fine tuning of the installation directories:
1395 --bindir=DIR user executables [EPREFIX/bin]
1396 --sbindir=DIR system admin executables [EPREFIX/sbin]
1397 --libexecdir=DIR program executables [EPREFIX/libexec]
1398 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1399 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1400 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1401 --libdir=DIR object code libraries [EPREFIX/lib]
1402 --includedir=DIR C header files [PREFIX/include]
1403 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1404 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1405 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1406 --infodir=DIR info documentation [DATAROOTDIR/info]
1407 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1408 --mandir=DIR man documentation [DATAROOTDIR/man]
1409 --docdir=DIR documentation root [DATAROOTDIR/doc/libgm2]
1410 --htmldir=DIR html documentation [DOCDIR]
1411 --dvidir=DIR dvi documentation [DOCDIR]
1412 --pdfdir=DIR pdf documentation [DOCDIR]
1413 --psdir=DIR ps documentation [DOCDIR]
1414 _ACEOF
1416 cat <<\_ACEOF
1418 Program names:
1419 --program-prefix=PREFIX prepend PREFIX to installed program names
1420 --program-suffix=SUFFIX append SUFFIX to installed program names
1421 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1423 System types:
1424 --build=BUILD configure for building on BUILD [guessed]
1425 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1426 --target=TARGET configure for building compilers for TARGET [HOST]
1427 _ACEOF
1430 if test -n "$ac_init_help"; then
1431 case $ac_init_help in
1432 short | recursive ) echo "Configuration of package-unused version-unused:";;
1433 esac
1434 cat <<\_ACEOF
1436 Optional Features:
1437 --disable-option-checking ignore unrecognized --enable/--with options
1438 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1439 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1440 --enable-multilib build many library versions (default)
1441 --enable-dependency-tracking
1442 do not reject slow dependency extractors
1443 --disable-dependency-tracking
1444 speeds up one-time build
1445 --enable-silent-rules less verbose build output (undo: "make V=1")
1446 --disable-silent-rules verbose build output (undo: "make V=0")
1447 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1448 --enable-maintainer-mode
1449 enable make rules and dependencies not useful (and
1450 sometimes confusing) to the casual installer
1451 --enable-maintainer-mode
1452 enable make rules and dependencies not useful (and
1453 sometimes confusing) to the casual installer
1454 --enable-shared[=PKGS] build shared libraries [default=yes]
1455 --enable-static[=PKGS] build static libraries [default=yes]
1456 --enable-fast-install[=PKGS]
1457 optimize for fast installation [default=yes]
1458 --disable-libtool-lock avoid locking (might break parallel builds)
1460 Optional Packages:
1461 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1462 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1463 --with-cross-host=HOST Configuring with a cross compiler
1464 --with-build-libsubdir=DIR Directory where to find libraries for build system
1465 --with-slibdir=DIR shared libraries in DIR LIBDIR
1466 --with-pic try to use only PIC/non-PIC objects [default=use
1467 both]
1468 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1469 --with-gcc-major-version-only
1470 use only GCC major number in filesystem paths
1472 Some influential environment variables:
1473 CC C compiler command
1474 CFLAGS C compiler flags
1475 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1476 nonstandard directory <lib dir>
1477 LIBS libraries to pass to the linker, e.g. -l<library>
1478 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1479 you have headers in a nonstandard directory <include dir>
1480 CPP C preprocessor
1481 CXX C++ compiler command
1482 CXXFLAGS C++ compiler flags
1483 CCAS assembler compiler command (defaults to CC)
1484 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1485 CXXCPP C++ preprocessor
1487 Use these variables to override the choices made by `configure' or to help
1488 it to find libraries and programs with nonstandard names/locations.
1490 Report bugs to the package provider.
1491 _ACEOF
1492 ac_status=$?
1495 if test "$ac_init_help" = "recursive"; then
1496 # If there are subdirs, report their specific --help.
1497 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1498 test -d "$ac_dir" ||
1499 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1500 continue
1501 ac_builddir=.
1503 case "$ac_dir" in
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1507 # A ".." for each directory in $ac_dir_suffix.
1508 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1509 case $ac_top_builddir_sub in
1510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512 esac ;;
1513 esac
1514 ac_abs_top_builddir=$ac_pwd
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir=$ac_top_build_prefix
1519 case $srcdir in
1520 .) # We are building in place.
1521 ac_srcdir=.
1522 ac_top_srcdir=$ac_top_builddir_sub
1523 ac_abs_top_srcdir=$ac_pwd ;;
1524 [\\/]* | ?:[\\/]* ) # Absolute name.
1525 ac_srcdir=$srcdir$ac_dir_suffix;
1526 ac_top_srcdir=$srcdir
1527 ac_abs_top_srcdir=$srcdir ;;
1528 *) # Relative name.
1529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530 ac_top_srcdir=$ac_top_build_prefix$srcdir
1531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532 esac
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535 cd "$ac_dir" || { ac_status=$?; continue; }
1536 # Check for guested configure.
1537 if test -f "$ac_srcdir/configure.gnu"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540 elif test -f "$ac_srcdir/configure"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure" --help=recursive
1543 else
1544 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545 fi || ac_status=$?
1546 cd "$ac_pwd" || { ac_status=$?; break; }
1547 done
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1552 cat <<\_ACEOF
1553 package-unused configure version-unused
1554 generated by GNU Autoconf 2.69
1556 Copyright (C) 2012 Free Software Foundation, Inc.
1557 This configure script is free software; the Free Software Foundation
1558 gives unlimited permission to copy, distribute and modify it.
1559 _ACEOF
1560 exit
1563 ## ------------------------ ##
1564 ## Autoconf initialization. ##
1565 ## ------------------------ ##
1567 # ac_fn_c_try_compile LINENO
1568 # --------------------------
1569 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_compile ()
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 rm -f conftest.$ac_objext
1574 if { { ac_try="$ac_compile"
1575 case "(($ac_try" in
1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1578 esac
1579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 $as_echo "$ac_try_echo"; } >&5
1581 (eval "$ac_compile") 2>conftest.err
1582 ac_status=$?
1583 if test -s conftest.err; then
1584 grep -v '^ *+' conftest.err >conftest.er1
1585 cat conftest.er1 >&5
1586 mv -f conftest.er1 conftest.err
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && {
1590 test -z "$ac_c_werror_flag" ||
1591 test ! -s conftest.err
1592 } && test -s conftest.$ac_objext; then :
1593 ac_retval=0
1594 else
1595 $as_echo "$as_me: failed program was:" >&5
1596 sed 's/^/| /' conftest.$ac_ext >&5
1598 ac_retval=1
1600 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1601 as_fn_set_status $ac_retval
1603 } # ac_fn_c_try_compile
1605 # ac_fn_c_try_cpp LINENO
1606 # ----------------------
1607 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1608 ac_fn_c_try_cpp ()
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 if { { ac_try="$ac_cpp conftest.$ac_ext"
1612 case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615 esac
1616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617 $as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } > conftest.i && {
1627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 }; then :
1630 ac_retval=0
1631 else
1632 $as_echo "$as_me: failed program was:" >&5
1633 sed 's/^/| /' conftest.$ac_ext >&5
1635 ac_retval=1
1637 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1638 as_fn_set_status $ac_retval
1640 } # ac_fn_c_try_cpp
1642 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1643 # -------------------------------------------------------
1644 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1645 # the include files in INCLUDES and setting the cache variable VAR
1646 # accordingly.
1647 ac_fn_c_check_header_mongrel ()
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 if eval \${$3+:} false; then :
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652 $as_echo_n "checking for $2... " >&6; }
1653 if eval \${$3+:} false; then :
1654 $as_echo_n "(cached) " >&6
1656 eval ac_res=\$$3
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1658 $as_echo "$ac_res" >&6; }
1659 else
1660 # Is the header compilable?
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1662 $as_echo_n "checking $2 usability... " >&6; }
1663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1664 /* end confdefs.h. */
1666 #include <$2>
1667 _ACEOF
1668 if ac_fn_c_try_compile "$LINENO"; then :
1669 ac_header_compiler=yes
1670 else
1671 ac_header_compiler=no
1673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1675 $as_echo "$ac_header_compiler" >&6; }
1677 # Is the header present?
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1679 $as_echo_n "checking $2 presence... " >&6; }
1680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681 /* end confdefs.h. */
1682 #include <$2>
1683 _ACEOF
1684 if ac_fn_c_try_cpp "$LINENO"; then :
1685 ac_header_preproc=yes
1686 else
1687 ac_header_preproc=no
1689 rm -f conftest.err conftest.i conftest.$ac_ext
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1691 $as_echo "$ac_header_preproc" >&6; }
1693 # So? What about this header?
1694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1695 yes:no: )
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1697 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1699 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1701 no:yes:* )
1702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1703 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1705 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1707 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1709 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1711 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1713 esac
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1715 $as_echo_n "checking for $2... " >&6; }
1716 if eval \${$3+:} false; then :
1717 $as_echo_n "(cached) " >&6
1718 else
1719 eval "$3=\$ac_header_compiler"
1721 eval ac_res=\$$3
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1723 $as_echo "$ac_res" >&6; }
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 } # ac_fn_c_check_header_mongrel
1729 # ac_fn_c_try_run LINENO
1730 # ----------------------
1731 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1732 # that executables *can* be run.
1733 ac_fn_c_try_run ()
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 if { { ac_try="$ac_link"
1737 case "(($ac_try" in
1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1739 *) ac_try_echo=$ac_try;;
1740 esac
1741 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1742 $as_echo "$ac_try_echo"; } >&5
1743 (eval "$ac_link") 2>&5
1744 ac_status=$?
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1747 { { case "(($ac_try" in
1748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1749 *) ac_try_echo=$ac_try;;
1750 esac
1751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1752 $as_echo "$ac_try_echo"; } >&5
1753 (eval "$ac_try") 2>&5
1754 ac_status=$?
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; }; }; then :
1757 ac_retval=0
1758 else
1759 $as_echo "$as_me: program exited with status $ac_status" >&5
1760 $as_echo "$as_me: failed program was:" >&5
1761 sed 's/^/| /' conftest.$ac_ext >&5
1763 ac_retval=$ac_status
1765 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1767 as_fn_set_status $ac_retval
1769 } # ac_fn_c_try_run
1771 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1772 # -------------------------------------------------------
1773 # Tests whether HEADER exists and can be compiled using the include files in
1774 # INCLUDES, setting the cache variable VAR accordingly.
1775 ac_fn_c_check_header_compile ()
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1779 $as_echo_n "checking for $2... " >&6; }
1780 if eval \${$3+:} false; then :
1781 $as_echo_n "(cached) " >&6
1782 else
1783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1784 /* end confdefs.h. */
1786 #include <$2>
1787 _ACEOF
1788 if ac_fn_c_try_compile "$LINENO"; then :
1789 eval "$3=yes"
1790 else
1791 eval "$3=no"
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795 eval ac_res=\$$3
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 } # ac_fn_c_check_header_compile
1802 # ac_fn_cxx_try_compile LINENO
1803 # ----------------------------
1804 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1805 ac_fn_cxx_try_compile ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 rm -f conftest.$ac_objext
1809 if { { ac_try="$ac_compile"
1810 case "(($ac_try" in
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_compile") 2>conftest.err
1817 ac_status=$?
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } && {
1825 test -z "$ac_cxx_werror_flag" ||
1826 test ! -s conftest.err
1827 } && test -s conftest.$ac_objext; then :
1828 ac_retval=0
1829 else
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1833 ac_retval=1
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1838 } # ac_fn_cxx_try_compile
1840 # ac_fn_c_try_link LINENO
1841 # -----------------------
1842 # Try to link conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_c_try_link ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext conftest$ac_exeext
1847 if { { ac_try="$ac_link"
1848 case "(($ac_try" in
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_link") 2>conftest.err
1855 ac_status=$?
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_c_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest$ac_exeext && {
1866 test "$cross_compiling" = yes ||
1867 test -x conftest$ac_exeext
1868 }; then :
1869 ac_retval=0
1870 else
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1874 ac_retval=1
1876 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1877 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1878 # interfere with the next link command; also delete a directory that is
1879 # left behind by Apple's compiler. We do this before executing the actions.
1880 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
1884 } # ac_fn_c_try_link
1886 # ac_fn_c_check_func LINENO FUNC VAR
1887 # ----------------------------------
1888 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1889 ac_fn_c_check_func ()
1891 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1893 $as_echo_n "checking for $2... " >&6; }
1894 if eval \${$3+:} false; then :
1895 $as_echo_n "(cached) " >&6
1896 else
1897 if test x$gcc_no_link = xyes; then
1898 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1902 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1904 #define $2 innocuous_$2
1906 /* System header to define __stub macros and hopefully few prototypes,
1907 which can conflict with char $2 (); below.
1908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1909 <limits.h> exists even on freestanding compilers. */
1911 #ifdef __STDC__
1912 # include <limits.h>
1913 #else
1914 # include <assert.h>
1915 #endif
1917 #undef $2
1919 /* Override any GCC internal prototype to avoid an error.
1920 Use char because int might match the return type of a GCC
1921 builtin and then its argument prototype would still apply. */
1922 #ifdef __cplusplus
1923 extern "C"
1924 #endif
1925 char $2 ();
1926 /* The GNU C library defines this for functions which it implements
1927 to always fail with ENOSYS. Some functions are actually named
1928 something starting with __ and the normal name is an alias. */
1929 #if defined __stub_$2 || defined __stub___$2
1930 choke me
1931 #endif
1934 main ()
1936 return $2 ();
1938 return 0;
1940 _ACEOF
1941 if ac_fn_c_try_link "$LINENO"; then :
1942 eval "$3=yes"
1943 else
1944 eval "$3=no"
1946 rm -f core conftest.err conftest.$ac_objext \
1947 conftest$ac_exeext conftest.$ac_ext
1949 eval ac_res=\$$3
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1954 } # ac_fn_c_check_func
1956 # ac_fn_cxx_try_cpp LINENO
1957 # ------------------------
1958 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1959 ac_fn_cxx_try_cpp ()
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 if { { ac_try="$ac_cpp conftest.$ac_ext"
1963 case "(($ac_try" in
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1966 esac
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1970 ac_status=$?
1971 if test -s conftest.err; then
1972 grep -v '^ *+' conftest.err >conftest.er1
1973 cat conftest.er1 >&5
1974 mv -f conftest.er1 conftest.err
1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; } > conftest.i && {
1978 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1979 test ! -s conftest.err
1980 }; then :
1981 ac_retval=0
1982 else
1983 $as_echo "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1986 ac_retval=1
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 as_fn_set_status $ac_retval
1991 } # ac_fn_cxx_try_cpp
1993 # ac_fn_cxx_try_link LINENO
1994 # -------------------------
1995 # Try to link conftest.$ac_ext, and return whether this succeeded.
1996 ac_fn_cxx_try_link ()
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 rm -f conftest.$ac_objext conftest$ac_exeext
2000 if { { ac_try="$ac_link"
2001 case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2004 esac
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_link") 2>conftest.err
2008 ac_status=$?
2009 if test -s conftest.err; then
2010 grep -v '^ *+' conftest.err >conftest.er1
2011 cat conftest.er1 >&5
2012 mv -f conftest.er1 conftest.err
2014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015 test $ac_status = 0; } && {
2016 test -z "$ac_cxx_werror_flag" ||
2017 test ! -s conftest.err
2018 } && test -s conftest$ac_exeext && {
2019 test "$cross_compiling" = yes ||
2020 test -x conftest$ac_exeext
2021 }; then :
2022 ac_retval=0
2023 else
2024 $as_echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2027 ac_retval=1
2029 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2030 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2031 # interfere with the next link command; also delete a directory that is
2032 # left behind by Apple's compiler. We do this before executing the actions.
2033 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035 as_fn_set_status $ac_retval
2037 } # ac_fn_cxx_try_link
2039 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2040 # -------------------------------------------
2041 # Tests whether TYPE exists after having included INCLUDES, setting cache
2042 # variable VAR accordingly.
2043 ac_fn_c_check_type ()
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2047 $as_echo_n "checking for $2... " >&6; }
2048 if eval \${$3+:} false; then :
2049 $as_echo_n "(cached) " >&6
2050 else
2051 eval "$3=no"
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2056 main ()
2058 if (sizeof ($2))
2059 return 0;
2061 return 0;
2063 _ACEOF
2064 if ac_fn_c_try_compile "$LINENO"; then :
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2069 main ()
2071 if (sizeof (($2)))
2072 return 0;
2074 return 0;
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2079 else
2080 eval "$3=yes"
2082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086 eval ac_res=\$$3
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091 } # ac_fn_c_check_type
2092 cat >config.log <<_ACEOF
2093 This file contains any messages produced by compilers while
2094 running configure, to aid debugging if configure makes a mistake.
2096 It was created by package-unused $as_me version-unused, which was
2097 generated by GNU Autoconf 2.69. Invocation command line was
2099 $ $0 $@
2101 _ACEOF
2102 exec 5>>config.log
2104 cat <<_ASUNAME
2105 ## --------- ##
2106 ## Platform. ##
2107 ## --------- ##
2109 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2110 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2111 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2112 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2113 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2115 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2116 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2118 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2119 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2120 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2121 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2122 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2123 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2124 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2126 _ASUNAME
2128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129 for as_dir in $PATH
2131 IFS=$as_save_IFS
2132 test -z "$as_dir" && as_dir=.
2133 $as_echo "PATH: $as_dir"
2134 done
2135 IFS=$as_save_IFS
2137 } >&5
2139 cat >&5 <<_ACEOF
2142 ## ----------- ##
2143 ## Core tests. ##
2144 ## ----------- ##
2146 _ACEOF
2149 # Keep a trace of the command line.
2150 # Strip out --no-create and --no-recursion so they do not pile up.
2151 # Strip out --silent because we don't want to record it for future runs.
2152 # Also quote any args containing shell meta-characters.
2153 # Make two passes to allow for proper duplicate-argument suppression.
2154 ac_configure_args=
2155 ac_configure_args0=
2156 ac_configure_args1=
2157 ac_must_keep_next=false
2158 for ac_pass in 1 2
2160 for ac_arg
2162 case $ac_arg in
2163 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2164 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2165 | -silent | --silent | --silen | --sile | --sil)
2166 continue ;;
2167 *\'*)
2168 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2169 esac
2170 case $ac_pass in
2171 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2173 as_fn_append ac_configure_args1 " '$ac_arg'"
2174 if test $ac_must_keep_next = true; then
2175 ac_must_keep_next=false # Got value, back to normal.
2176 else
2177 case $ac_arg in
2178 *=* | --config-cache | -C | -disable-* | --disable-* \
2179 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2180 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2181 | -with-* | --with-* | -without-* | --without-* | --x)
2182 case "$ac_configure_args0 " in
2183 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2184 esac
2186 -* ) ac_must_keep_next=true ;;
2187 esac
2189 as_fn_append ac_configure_args " '$ac_arg'"
2191 esac
2192 done
2193 done
2194 { ac_configure_args0=; unset ac_configure_args0;}
2195 { ac_configure_args1=; unset ac_configure_args1;}
2197 # When interrupted or exit'd, cleanup temporary files, and complete
2198 # config.log. We remove comments because anyway the quotes in there
2199 # would cause problems or look ugly.
2200 # WARNING: Use '\'' to represent an apostrophe within the trap.
2201 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2202 trap 'exit_status=$?
2203 # Save into config.log some information that might help in debugging.
2205 echo
2207 $as_echo "## ---------------- ##
2208 ## Cache variables. ##
2209 ## ---------------- ##"
2210 echo
2211 # The following way of writing the cache mishandles newlines in values,
2213 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2214 eval ac_val=\$$ac_var
2215 case $ac_val in #(
2216 *${as_nl}*)
2217 case $ac_var in #(
2218 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2219 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2220 esac
2221 case $ac_var in #(
2222 _ | IFS | as_nl) ;; #(
2223 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2224 *) { eval $ac_var=; unset $ac_var;} ;;
2225 esac ;;
2226 esac
2227 done
2228 (set) 2>&1 |
2229 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2230 *${as_nl}ac_space=\ *)
2231 sed -n \
2232 "s/'\''/'\''\\\\'\'''\''/g;
2233 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2234 ;; #(
2236 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2238 esac |
2239 sort
2241 echo
2243 $as_echo "## ----------------- ##
2244 ## Output variables. ##
2245 ## ----------------- ##"
2246 echo
2247 for ac_var in $ac_subst_vars
2249 eval ac_val=\$$ac_var
2250 case $ac_val in
2251 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2252 esac
2253 $as_echo "$ac_var='\''$ac_val'\''"
2254 done | sort
2255 echo
2257 if test -n "$ac_subst_files"; then
2258 $as_echo "## ------------------- ##
2259 ## File substitutions. ##
2260 ## ------------------- ##"
2261 echo
2262 for ac_var in $ac_subst_files
2264 eval ac_val=\$$ac_var
2265 case $ac_val in
2266 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2267 esac
2268 $as_echo "$ac_var='\''$ac_val'\''"
2269 done | sort
2270 echo
2273 if test -s confdefs.h; then
2274 $as_echo "## ----------- ##
2275 ## confdefs.h. ##
2276 ## ----------- ##"
2277 echo
2278 cat confdefs.h
2279 echo
2281 test "$ac_signal" != 0 &&
2282 $as_echo "$as_me: caught signal $ac_signal"
2283 $as_echo "$as_me: exit $exit_status"
2284 } >&5
2285 rm -f core *.core core.conftest.* &&
2286 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2287 exit $exit_status
2289 for ac_signal in 1 2 13 15; do
2290 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2291 done
2292 ac_signal=0
2294 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2295 rm -f -r conftest* confdefs.h
2297 $as_echo "/* confdefs.h */" > confdefs.h
2299 # Predefined preprocessor variables.
2301 cat >>confdefs.h <<_ACEOF
2302 #define PACKAGE_NAME "$PACKAGE_NAME"
2303 _ACEOF
2305 cat >>confdefs.h <<_ACEOF
2306 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2307 _ACEOF
2309 cat >>confdefs.h <<_ACEOF
2310 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2311 _ACEOF
2313 cat >>confdefs.h <<_ACEOF
2314 #define PACKAGE_STRING "$PACKAGE_STRING"
2315 _ACEOF
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2319 _ACEOF
2321 cat >>confdefs.h <<_ACEOF
2322 #define PACKAGE_URL "$PACKAGE_URL"
2323 _ACEOF
2326 # Let the site file select an alternate cache file if it wants to.
2327 # Prefer an explicitly selected file to automatically selected ones.
2328 ac_site_file1=NONE
2329 ac_site_file2=NONE
2330 if test -n "$CONFIG_SITE"; then
2331 # We do not want a PATH search for config.site.
2332 case $CONFIG_SITE in #((
2333 -*) ac_site_file1=./$CONFIG_SITE;;
2334 */*) ac_site_file1=$CONFIG_SITE;;
2335 *) ac_site_file1=./$CONFIG_SITE;;
2336 esac
2337 elif test "x$prefix" != xNONE; then
2338 ac_site_file1=$prefix/share/config.site
2339 ac_site_file2=$prefix/etc/config.site
2340 else
2341 ac_site_file1=$ac_default_prefix/share/config.site
2342 ac_site_file2=$ac_default_prefix/etc/config.site
2344 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2346 test "x$ac_site_file" = xNONE && continue
2347 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2349 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2350 sed 's/^/| /' "$ac_site_file" >&5
2351 . "$ac_site_file" \
2352 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2354 as_fn_error $? "failed to load site script $ac_site_file
2355 See \`config.log' for more details" "$LINENO" 5; }
2357 done
2359 if test -r "$cache_file"; then
2360 # Some versions of bash will fail to source /dev/null (special files
2361 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2362 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2364 $as_echo "$as_me: loading cache $cache_file" >&6;}
2365 case $cache_file in
2366 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2367 *) . "./$cache_file";;
2368 esac
2370 else
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2372 $as_echo "$as_me: creating cache $cache_file" >&6;}
2373 >$cache_file
2376 # Check that the precious variables saved in the cache have kept the same
2377 # value.
2378 ac_cache_corrupted=false
2379 for ac_var in $ac_precious_vars; do
2380 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2381 eval ac_new_set=\$ac_env_${ac_var}_set
2382 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2383 eval ac_new_val=\$ac_env_${ac_var}_value
2384 case $ac_old_set,$ac_new_set in
2385 set,)
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2387 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2388 ac_cache_corrupted=: ;;
2389 ,set)
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2391 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2392 ac_cache_corrupted=: ;;
2393 ,);;
2395 if test "x$ac_old_val" != "x$ac_new_val"; then
2396 # differences in whitespace do not lead to failure.
2397 ac_old_val_w=`echo x $ac_old_val`
2398 ac_new_val_w=`echo x $ac_new_val`
2399 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2401 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2402 ac_cache_corrupted=:
2403 else
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2405 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2406 eval $ac_var=\$ac_old_val
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2409 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2411 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2412 fi;;
2413 esac
2414 # Pass precious variables to config.status.
2415 if test "$ac_new_set" = set; then
2416 case $ac_new_val in
2417 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2418 *) ac_arg=$ac_var=$ac_new_val ;;
2419 esac
2420 case " $ac_configure_args " in
2421 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2422 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2423 esac
2425 done
2426 if $ac_cache_corrupted; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2430 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2431 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2433 ## -------------------- ##
2434 ## Main body of script. ##
2435 ## -------------------- ##
2437 ac_ext=c
2438 ac_cpp='$CPP $CPPFLAGS'
2439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2448 # AC_CONFIG_MACRO_DIR([config])
2449 ac_config_headers="$ac_config_headers config.h"
2452 libtool_VERSION=18:0:0
2455 # Default to --enable-multilib
2456 # Check whether --enable-multilib was given.
2457 if test "${enable_multilib+set}" = set; then :
2458 enableval=$enable_multilib; case "$enableval" in
2459 yes) multilib=yes ;;
2460 no) multilib=no ;;
2461 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2462 esac
2463 else
2464 multilib=yes
2468 # We may get other options which we leave undocumented:
2469 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2470 # See config-ml.in if you want the gory details.
2472 if test "$srcdir" = "."; then
2473 if test "$with_target_subdir" != "."; then
2474 multi_basedir="$srcdir/$with_multisrctop../.."
2475 else
2476 multi_basedir="$srcdir/$with_multisrctop.."
2478 else
2479 multi_basedir="$srcdir/.."
2483 # Even if the default multilib is not a cross compilation,
2484 # it may be that some of the other multilibs are.
2485 if test $cross_compiling = no && test $multilib = yes \
2486 && test "x${with_multisubdir}" != x ; then
2487 cross_compiling=maybe
2490 ac_config_commands="$ac_config_commands default-1"
2495 ac_aux_dir=
2496 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2497 if test -f "$ac_dir/install-sh"; then
2498 ac_aux_dir=$ac_dir
2499 ac_install_sh="$ac_aux_dir/install-sh -c"
2500 break
2501 elif test -f "$ac_dir/install.sh"; then
2502 ac_aux_dir=$ac_dir
2503 ac_install_sh="$ac_aux_dir/install.sh -c"
2504 break
2505 elif test -f "$ac_dir/shtool"; then
2506 ac_aux_dir=$ac_dir
2507 ac_install_sh="$ac_aux_dir/shtool install -c"
2508 break
2510 done
2511 if test -z "$ac_aux_dir"; then
2512 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2515 # These three variables are undocumented and unsupported,
2516 # and are intended to be withdrawn in a future Autoconf release.
2517 # They can cause serious problems if a builder's source tree is in a directory
2518 # whose full name contains unusual characters.
2519 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2520 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2521 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2524 # Expand $ac_aux_dir to an absolute path.
2525 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2527 ac_ext=c
2528 ac_cpp='$CPP $CPPFLAGS'
2529 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2530 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2531 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2534 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2536 $as_echo_n "checking for $ac_word... " >&6; }
2537 if ${ac_cv_prog_CC+:} false; then :
2538 $as_echo_n "(cached) " >&6
2539 else
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC="$CC" # Let the user override the test.
2542 else
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2554 done
2555 done
2556 IFS=$as_save_IFS
2560 CC=$ac_cv_prog_CC
2561 if test -n "$CC"; then
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2563 $as_echo "$CC" >&6; }
2564 else
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2566 $as_echo "no" >&6; }
2571 if test -z "$ac_cv_prog_CC"; then
2572 ac_ct_CC=$CC
2573 # Extract the first word of "gcc", so it can be a program name with args.
2574 set dummy gcc; ac_word=$2
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2576 $as_echo_n "checking for $ac_word... " >&6; }
2577 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2578 $as_echo_n "(cached) " >&6
2579 else
2580 if test -n "$ac_ct_CC"; then
2581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2582 else
2583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584 for as_dir in $PATH
2586 IFS=$as_save_IFS
2587 test -z "$as_dir" && as_dir=.
2588 for ac_exec_ext in '' $ac_executable_extensions; do
2589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2590 ac_cv_prog_ac_ct_CC="gcc"
2591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592 break 2
2594 done
2595 done
2596 IFS=$as_save_IFS
2600 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2601 if test -n "$ac_ct_CC"; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2603 $as_echo "$ac_ct_CC" >&6; }
2604 else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2606 $as_echo "no" >&6; }
2609 if test "x$ac_ct_CC" = x; then
2610 CC=""
2611 else
2612 case $cross_compiling:$ac_tool_warned in
2613 yes:)
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2616 ac_tool_warned=yes ;;
2617 esac
2618 CC=$ac_ct_CC
2620 else
2621 CC="$ac_cv_prog_CC"
2624 if test -z "$CC"; then
2625 if test -n "$ac_tool_prefix"; then
2626 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2627 set dummy ${ac_tool_prefix}cc; ac_word=$2
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629 $as_echo_n "checking for $ac_word... " >&6; }
2630 if ${ac_cv_prog_CC+:} false; then :
2631 $as_echo_n "(cached) " >&6
2632 else
2633 if test -n "$CC"; then
2634 ac_cv_prog_CC="$CC" # Let the user override the test.
2635 else
2636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 for as_dir in $PATH
2639 IFS=$as_save_IFS
2640 test -z "$as_dir" && as_dir=.
2641 for ac_exec_ext in '' $ac_executable_extensions; do
2642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2643 ac_cv_prog_CC="${ac_tool_prefix}cc"
2644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 break 2
2647 done
2648 done
2649 IFS=$as_save_IFS
2653 CC=$ac_cv_prog_CC
2654 if test -n "$CC"; then
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2656 $as_echo "$CC" >&6; }
2657 else
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659 $as_echo "no" >&6; }
2665 if test -z "$CC"; then
2666 # Extract the first word of "cc", so it can be a program name with args.
2667 set dummy cc; ac_word=$2
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2669 $as_echo_n "checking for $ac_word... " >&6; }
2670 if ${ac_cv_prog_CC+:} false; then :
2671 $as_echo_n "(cached) " >&6
2672 else
2673 if test -n "$CC"; then
2674 ac_cv_prog_CC="$CC" # Let the user override the test.
2675 else
2676 ac_prog_rejected=no
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2680 IFS=$as_save_IFS
2681 test -z "$as_dir" && as_dir=.
2682 for ac_exec_ext in '' $ac_executable_extensions; do
2683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2684 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2685 ac_prog_rejected=yes
2686 continue
2688 ac_cv_prog_CC="cc"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2692 done
2693 done
2694 IFS=$as_save_IFS
2696 if test $ac_prog_rejected = yes; then
2697 # We found a bogon in the path, so make sure we never use it.
2698 set dummy $ac_cv_prog_CC
2699 shift
2700 if test $# != 0; then
2701 # We chose a different compiler from the bogus one.
2702 # However, it has the same basename, so the bogon will be chosen
2703 # first if we set CC to just the basename; use the full file name.
2704 shift
2705 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2710 CC=$ac_cv_prog_CC
2711 if test -n "$CC"; then
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2713 $as_echo "$CC" >&6; }
2714 else
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2716 $as_echo "no" >&6; }
2721 if test -z "$CC"; then
2722 if test -n "$ac_tool_prefix"; then
2723 for ac_prog in cl.exe
2725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2728 $as_echo_n "checking for $ac_word... " >&6; }
2729 if ${ac_cv_prog_CC+:} false; then :
2730 $as_echo_n "(cached) " >&6
2731 else
2732 if test -n "$CC"; then
2733 ac_cv_prog_CC="$CC" # Let the user override the test.
2734 else
2735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 for as_dir in $PATH
2738 IFS=$as_save_IFS
2739 test -z "$as_dir" && as_dir=.
2740 for ac_exec_ext in '' $ac_executable_extensions; do
2741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2742 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 break 2
2746 done
2747 done
2748 IFS=$as_save_IFS
2752 CC=$ac_cv_prog_CC
2753 if test -n "$CC"; then
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2755 $as_echo "$CC" >&6; }
2756 else
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2758 $as_echo "no" >&6; }
2762 test -n "$CC" && break
2763 done
2765 if test -z "$CC"; then
2766 ac_ct_CC=$CC
2767 for ac_prog in cl.exe
2769 # Extract the first word of "$ac_prog", so it can be a program name with args.
2770 set dummy $ac_prog; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2774 $as_echo_n "(cached) " >&6
2775 else
2776 if test -n "$ac_ct_CC"; then
2777 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2778 else
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780 for as_dir in $PATH
2782 IFS=$as_save_IFS
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2786 ac_cv_prog_ac_ct_CC="$ac_prog"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 break 2
2790 done
2791 done
2792 IFS=$as_save_IFS
2796 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2797 if test -n "$ac_ct_CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2799 $as_echo "$ac_ct_CC" >&6; }
2800 else
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2806 test -n "$ac_ct_CC" && break
2807 done
2809 if test "x$ac_ct_CC" = x; then
2810 CC=""
2811 else
2812 case $cross_compiling:$ac_tool_warned in
2813 yes:)
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2816 ac_tool_warned=yes ;;
2817 esac
2818 CC=$ac_ct_CC
2825 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2827 as_fn_error $? "no acceptable C compiler found in \$PATH
2828 See \`config.log' for more details" "$LINENO" 5; }
2830 # Provide some information about the compiler.
2831 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2832 set X $ac_compile
2833 ac_compiler=$2
2834 for ac_option in --version -v -V -qversion; do
2835 { { ac_try="$ac_compiler $ac_option >&5"
2836 case "(($ac_try" in
2837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2838 *) ac_try_echo=$ac_try;;
2839 esac
2840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2841 $as_echo "$ac_try_echo"; } >&5
2842 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2843 ac_status=$?
2844 if test -s conftest.err; then
2845 sed '10a\
2846 ... rest of stderr output deleted ...
2847 10q' conftest.err >conftest.er1
2848 cat conftest.er1 >&5
2850 rm -f conftest.er1 conftest.err
2851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2852 test $ac_status = 0; }
2853 done
2855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2856 /* end confdefs.h. */
2857 #include <stdio.h>
2859 main ()
2861 printf ("hello world\n");
2863 return 0;
2865 _ACEOF
2866 # FIXME: Cleanup?
2867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
2868 (eval $ac_link) 2>&5
2869 ac_status=$?
2870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2871 test $ac_status = 0; }; then :
2872 gcc_no_link=no
2873 else
2874 gcc_no_link=yes
2876 if test x$gcc_no_link = xyes; then
2877 # Setting cross_compile will disable run tests; it will
2878 # also disable AC_CHECK_FILE but that's generally
2879 # correct if we can't link.
2880 cross_compiling=yes
2881 EXEEXT=
2882 else
2883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884 /* end confdefs.h. */
2887 main ()
2891 return 0;
2893 _ACEOF
2894 ac_clean_files_save=$ac_clean_files
2895 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2896 # Try to create an executable without -o first, disregard a.out.
2897 # It will help us diagnose broken compilers, and finding out an intuition
2898 # of exeext.
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2900 $as_echo_n "checking whether the C compiler works... " >&6; }
2901 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2903 # The possible output files:
2904 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2906 ac_rmfiles=
2907 for ac_file in $ac_files
2909 case $ac_file in
2910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2911 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2912 esac
2913 done
2914 rm -f $ac_rmfiles
2916 if { { ac_try="$ac_link_default"
2917 case "(($ac_try" in
2918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2919 *) ac_try_echo=$ac_try;;
2920 esac
2921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2922 $as_echo "$ac_try_echo"; } >&5
2923 (eval "$ac_link_default") 2>&5
2924 ac_status=$?
2925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2926 test $ac_status = 0; }; then :
2927 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2928 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2929 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2930 # so that the user can short-circuit this test for compilers unknown to
2931 # Autoconf.
2932 for ac_file in $ac_files ''
2934 test -f "$ac_file" || continue
2935 case $ac_file in
2936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2938 [ab].out )
2939 # We found the default executable, but exeext='' is most
2940 # certainly right.
2941 break;;
2942 *.* )
2943 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2944 then :; else
2945 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2947 # We set ac_cv_exeext here because the later test for it is not
2948 # safe: cross compilers may not add the suffix if given an `-o'
2949 # argument, so we may need to know it at that point already.
2950 # Even if this section looks crufty: it has the advantage of
2951 # actually working.
2952 break;;
2954 break;;
2955 esac
2956 done
2957 test "$ac_cv_exeext" = no && ac_cv_exeext=
2959 else
2960 ac_file=''
2962 if test -z "$ac_file"; then :
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2964 $as_echo "no" >&6; }
2965 $as_echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2970 as_fn_error 77 "C compiler cannot create executables
2971 See \`config.log' for more details" "$LINENO" 5; }
2972 else
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2974 $as_echo "yes" >&6; }
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2977 $as_echo_n "checking for C compiler default output file name... " >&6; }
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2979 $as_echo "$ac_file" >&6; }
2980 ac_exeext=$ac_cv_exeext
2982 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2983 ac_clean_files=$ac_clean_files_save
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2985 $as_echo_n "checking for suffix of executables... " >&6; }
2986 if { { ac_try="$ac_link"
2987 case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990 esac
2991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2992 $as_echo "$ac_try_echo"; } >&5
2993 (eval "$ac_link") 2>&5
2994 ac_status=$?
2995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2996 test $ac_status = 0; }; then :
2997 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2998 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2999 # work properly (i.e., refer to `conftest.exe'), while it won't with
3000 # `rm'.
3001 for ac_file in conftest.exe conftest conftest.*; do
3002 test -f "$ac_file" || continue
3003 case $ac_file in
3004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3005 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3006 break;;
3007 * ) break;;
3008 esac
3009 done
3010 else
3011 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3012 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3013 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3014 See \`config.log' for more details" "$LINENO" 5; }
3016 rm -f conftest conftest$ac_cv_exeext
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3018 $as_echo "$ac_cv_exeext" >&6; }
3020 rm -f conftest.$ac_ext
3021 EXEEXT=$ac_cv_exeext
3022 ac_exeext=$EXEEXT
3023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3024 /* end confdefs.h. */
3025 #include <stdio.h>
3027 main ()
3029 FILE *f = fopen ("conftest.out", "w");
3030 return ferror (f) || fclose (f) != 0;
3033 return 0;
3035 _ACEOF
3036 ac_clean_files="$ac_clean_files conftest.out"
3037 # Check that the compiler produces executables we can run. If not, either
3038 # the compiler is broken, or we cross compile.
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3040 $as_echo_n "checking whether we are cross compiling... " >&6; }
3041 if test "$cross_compiling" != yes; then
3042 { { ac_try="$ac_link"
3043 case "(($ac_try" in
3044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3046 esac
3047 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3048 $as_echo "$ac_try_echo"; } >&5
3049 (eval "$ac_link") 2>&5
3050 ac_status=$?
3051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3052 test $ac_status = 0; }
3053 if { ac_try='./conftest$ac_cv_exeext'
3054 { { case "(($ac_try" in
3055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3056 *) ac_try_echo=$ac_try;;
3057 esac
3058 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3059 $as_echo "$ac_try_echo"; } >&5
3060 (eval "$ac_try") 2>&5
3061 ac_status=$?
3062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063 test $ac_status = 0; }; }; then
3064 cross_compiling=no
3065 else
3066 if test "$cross_compiling" = maybe; then
3067 cross_compiling=yes
3068 else
3069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3071 as_fn_error $? "cannot run C compiled programs.
3072 If you meant to cross compile, use \`--host'.
3073 See \`config.log' for more details" "$LINENO" 5; }
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3078 $as_echo "$cross_compiling" >&6; }
3080 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3081 ac_clean_files=$ac_clean_files_save
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3084 $as_echo_n "checking for suffix of object files... " >&6; }
3085 if ${ac_cv_objext+:} false; then :
3086 $as_echo_n "(cached) " >&6
3087 else
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089 /* end confdefs.h. */
3092 main ()
3096 return 0;
3098 _ACEOF
3099 rm -f conftest.o conftest.obj
3100 if { { ac_try="$ac_compile"
3101 case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104 esac
3105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106 $as_echo "$ac_try_echo"; } >&5
3107 (eval "$ac_compile") 2>&5
3108 ac_status=$?
3109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110 test $ac_status = 0; }; then :
3111 for ac_file in conftest.o conftest.obj conftest.*; do
3112 test -f "$ac_file" || continue;
3113 case $ac_file in
3114 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3115 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3116 break;;
3117 esac
3118 done
3119 else
3120 $as_echo "$as_me: failed program was:" >&5
3121 sed 's/^/| /' conftest.$ac_ext >&5
3123 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3124 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3125 as_fn_error $? "cannot compute suffix of object files: cannot compile
3126 See \`config.log' for more details" "$LINENO" 5; }
3128 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3131 $as_echo "$ac_cv_objext" >&6; }
3132 OBJEXT=$ac_cv_objext
3133 ac_objext=$OBJEXT
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3135 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3136 if ${ac_cv_c_compiler_gnu+:} false; then :
3137 $as_echo_n "(cached) " >&6
3138 else
3139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3140 /* end confdefs.h. */
3143 main ()
3145 #ifndef __GNUC__
3146 choke me
3147 #endif
3150 return 0;
3152 _ACEOF
3153 if ac_fn_c_try_compile "$LINENO"; then :
3154 ac_compiler_gnu=yes
3155 else
3156 ac_compiler_gnu=no
3158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3159 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3163 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3164 if test $ac_compiler_gnu = yes; then
3165 GCC=yes
3166 else
3167 GCC=
3169 ac_test_CFLAGS=${CFLAGS+set}
3170 ac_save_CFLAGS=$CFLAGS
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3172 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3173 if ${ac_cv_prog_cc_g+:} false; then :
3174 $as_echo_n "(cached) " >&6
3175 else
3176 ac_save_c_werror_flag=$ac_c_werror_flag
3177 ac_c_werror_flag=yes
3178 ac_cv_prog_cc_g=no
3179 CFLAGS="-g"
3180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3181 /* end confdefs.h. */
3184 main ()
3188 return 0;
3190 _ACEOF
3191 if ac_fn_c_try_compile "$LINENO"; then :
3192 ac_cv_prog_cc_g=yes
3193 else
3194 CFLAGS=""
3195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196 /* end confdefs.h. */
3199 main ()
3203 return 0;
3205 _ACEOF
3206 if ac_fn_c_try_compile "$LINENO"; then :
3208 else
3209 ac_c_werror_flag=$ac_save_c_werror_flag
3210 CFLAGS="-g"
3211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3212 /* end confdefs.h. */
3215 main ()
3219 return 0;
3221 _ACEOF
3222 if ac_fn_c_try_compile "$LINENO"; then :
3223 ac_cv_prog_cc_g=yes
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 ac_c_werror_flag=$ac_save_c_werror_flag
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3233 $as_echo "$ac_cv_prog_cc_g" >&6; }
3234 if test "$ac_test_CFLAGS" = set; then
3235 CFLAGS=$ac_save_CFLAGS
3236 elif test $ac_cv_prog_cc_g = yes; then
3237 if test "$GCC" = yes; then
3238 CFLAGS="-g -O2"
3239 else
3240 CFLAGS="-g"
3242 else
3243 if test "$GCC" = yes; then
3244 CFLAGS="-O2"
3245 else
3246 CFLAGS=
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3250 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3251 if ${ac_cv_prog_cc_c89+:} false; then :
3252 $as_echo_n "(cached) " >&6
3253 else
3254 ac_cv_prog_cc_c89=no
3255 ac_save_CC=$CC
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h. */
3258 #include <stdarg.h>
3259 #include <stdio.h>
3260 struct stat;
3261 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3262 struct buf { int x; };
3263 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3264 static char *e (p, i)
3265 char **p;
3266 int i;
3268 return p[i];
3270 static char *f (char * (*g) (char **, int), char **p, ...)
3272 char *s;
3273 va_list v;
3274 va_start (v,p);
3275 s = g (p, va_arg (v,int));
3276 va_end (v);
3277 return s;
3280 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3281 function prototypes and stuff, but not '\xHH' hex character constants.
3282 These don't provoke an error unfortunately, instead are silently treated
3283 as 'x'. The following induces an error, until -std is added to get
3284 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3285 array size at least. It's necessary to write '\x00'==0 to get something
3286 that's true only with -std. */
3287 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3289 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3290 inside strings and character constants. */
3291 #define FOO(x) 'x'
3292 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3294 int test (int i, double x);
3295 struct s1 {int (*f) (int a);};
3296 struct s2 {int (*f) (double a);};
3297 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3298 int argc;
3299 char **argv;
3301 main ()
3303 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3305 return 0;
3307 _ACEOF
3308 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3309 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3311 CC="$ac_save_CC $ac_arg"
3312 if ac_fn_c_try_compile "$LINENO"; then :
3313 ac_cv_prog_cc_c89=$ac_arg
3315 rm -f core conftest.err conftest.$ac_objext
3316 test "x$ac_cv_prog_cc_c89" != "xno" && break
3317 done
3318 rm -f conftest.$ac_ext
3319 CC=$ac_save_CC
3322 # AC_CACHE_VAL
3323 case "x$ac_cv_prog_cc_c89" in
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3326 $as_echo "none needed" >&6; } ;;
3327 xno)
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3329 $as_echo "unsupported" >&6; } ;;
3331 CC="$CC $ac_cv_prog_cc_c89"
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3333 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3334 esac
3335 if test "x$ac_cv_prog_cc_c89" != xno; then :
3339 ac_ext=c
3340 ac_cpp='$CPP $CPPFLAGS'
3341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3345 ac_ext=c
3346 ac_cpp='$CPP $CPPFLAGS'
3347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3351 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3352 if ${am_cv_prog_cc_c_o+:} false; then :
3353 $as_echo_n "(cached) " >&6
3354 else
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3359 main ()
3363 return 0;
3365 _ACEOF
3366 # Make sure it works both with $CC and with simple cc.
3367 # Following AC_PROG_CC_C_O, we do the test twice because some
3368 # compilers refuse to overwrite an existing .o file with -o,
3369 # though they will create one.
3370 am_cv_prog_cc_c_o=yes
3371 for am_i in 1 2; do
3372 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3373 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } \
3377 && test -f conftest2.$ac_objext; then
3378 : OK
3379 else
3380 am_cv_prog_cc_c_o=no
3381 break
3383 done
3384 rm -f core conftest*
3385 unset am_i
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3388 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3389 if test "$am_cv_prog_cc_c_o" != yes; then
3390 # Losing compiler, so override with the script.
3391 # FIXME: It is wrong to rewrite CC.
3392 # But if we don't then we get into trouble of one sort or another.
3393 # A longer-term fix would be to have automake use am__CC in this case,
3394 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3395 CC="$am_aux_dir/compile $CC"
3397 ac_ext=c
3398 ac_cpp='$CPP $CPPFLAGS'
3399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405 ac_ext=c
3406 ac_cpp='$CPP $CPPFLAGS'
3407 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3408 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3409 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3411 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3412 # On Suns, sometimes $CPP names a directory.
3413 if test -n "$CPP" && test -d "$CPP"; then
3414 CPP=
3416 if test -z "$CPP"; then
3417 if ${ac_cv_prog_CPP+:} false; then :
3418 $as_echo_n "(cached) " >&6
3419 else
3420 # Double quotes because CPP needs to be expanded
3421 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3423 ac_preproc_ok=false
3424 for ac_c_preproc_warn_flag in '' yes
3426 # Use a header file that comes with gcc, so configuring glibc
3427 # with a fresh cross-compiler works.
3428 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3429 # <limits.h> exists even on freestanding compilers.
3430 # On the NeXT, cc -E runs the code through the compiler's parser,
3431 # not just through cpp. "Syntax error" is here to catch this case.
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3434 #ifdef __STDC__
3435 # include <limits.h>
3436 #else
3437 # include <assert.h>
3438 #endif
3439 Syntax error
3440 _ACEOF
3441 if ac_fn_c_try_cpp "$LINENO"; then :
3443 else
3444 # Broken: fails on valid input.
3445 continue
3447 rm -f conftest.err conftest.i conftest.$ac_ext
3449 # OK, works on sane cases. Now check whether nonexistent headers
3450 # can be detected and how.
3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3452 /* end confdefs.h. */
3453 #include <ac_nonexistent.h>
3454 _ACEOF
3455 if ac_fn_c_try_cpp "$LINENO"; then :
3456 # Broken: success on invalid input.
3457 continue
3458 else
3459 # Passes both tests.
3460 ac_preproc_ok=:
3461 break
3463 rm -f conftest.err conftest.i conftest.$ac_ext
3465 done
3466 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3467 rm -f conftest.i conftest.err conftest.$ac_ext
3468 if $ac_preproc_ok; then :
3469 break
3472 done
3473 ac_cv_prog_CPP=$CPP
3476 CPP=$ac_cv_prog_CPP
3477 else
3478 ac_cv_prog_CPP=$CPP
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3481 $as_echo "$CPP" >&6; }
3482 ac_preproc_ok=false
3483 for ac_c_preproc_warn_flag in '' yes
3485 # Use a header file that comes with gcc, so configuring glibc
3486 # with a fresh cross-compiler works.
3487 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3488 # <limits.h> exists even on freestanding compilers.
3489 # On the NeXT, cc -E runs the code through the compiler's parser,
3490 # not just through cpp. "Syntax error" is here to catch this case.
3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h. */
3493 #ifdef __STDC__
3494 # include <limits.h>
3495 #else
3496 # include <assert.h>
3497 #endif
3498 Syntax error
3499 _ACEOF
3500 if ac_fn_c_try_cpp "$LINENO"; then :
3502 else
3503 # Broken: fails on valid input.
3504 continue
3506 rm -f conftest.err conftest.i conftest.$ac_ext
3508 # OK, works on sane cases. Now check whether nonexistent headers
3509 # can be detected and how.
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3511 /* end confdefs.h. */
3512 #include <ac_nonexistent.h>
3513 _ACEOF
3514 if ac_fn_c_try_cpp "$LINENO"; then :
3515 # Broken: success on invalid input.
3516 continue
3517 else
3518 # Passes both tests.
3519 ac_preproc_ok=:
3520 break
3522 rm -f conftest.err conftest.i conftest.$ac_ext
3524 done
3525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3526 rm -f conftest.i conftest.err conftest.$ac_ext
3527 if $ac_preproc_ok; then :
3529 else
3530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3533 See \`config.log' for more details" "$LINENO" 5; }
3536 ac_ext=c
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3544 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3545 if ${ac_cv_path_GREP+:} false; then :
3546 $as_echo_n "(cached) " >&6
3547 else
3548 if test -z "$GREP"; then
3549 ac_path_GREP_found=false
3550 # Loop through the user's path and test for each of PROGNAME-LIST
3551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3552 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3554 IFS=$as_save_IFS
3555 test -z "$as_dir" && as_dir=.
3556 for ac_prog in grep ggrep; do
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3559 as_fn_executable_p "$ac_path_GREP" || continue
3560 # Check for GNU ac_path_GREP and select it if it is found.
3561 # Check for GNU $ac_path_GREP
3562 case `"$ac_path_GREP" --version 2>&1` in
3563 *GNU*)
3564 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3566 ac_count=0
3567 $as_echo_n 0123456789 >"conftest.in"
3568 while :
3570 cat "conftest.in" "conftest.in" >"conftest.tmp"
3571 mv "conftest.tmp" "conftest.in"
3572 cp "conftest.in" "conftest.nl"
3573 $as_echo 'GREP' >> "conftest.nl"
3574 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3575 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3576 as_fn_arith $ac_count + 1 && ac_count=$as_val
3577 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3578 # Best one so far, save it but keep looking for a better one
3579 ac_cv_path_GREP="$ac_path_GREP"
3580 ac_path_GREP_max=$ac_count
3582 # 10*(2^10) chars as input seems more than enough
3583 test $ac_count -gt 10 && break
3584 done
3585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3586 esac
3588 $ac_path_GREP_found && break 3
3589 done
3590 done
3591 done
3592 IFS=$as_save_IFS
3593 if test -z "$ac_cv_path_GREP"; then
3594 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3596 else
3597 ac_cv_path_GREP=$GREP
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3602 $as_echo "$ac_cv_path_GREP" >&6; }
3603 GREP="$ac_cv_path_GREP"
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3607 $as_echo_n "checking for egrep... " >&6; }
3608 if ${ac_cv_path_EGREP+:} false; then :
3609 $as_echo_n "(cached) " >&6
3610 else
3611 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3612 then ac_cv_path_EGREP="$GREP -E"
3613 else
3614 if test -z "$EGREP"; then
3615 ac_path_EGREP_found=false
3616 # Loop through the user's path and test for each of PROGNAME-LIST
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3618 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3620 IFS=$as_save_IFS
3621 test -z "$as_dir" && as_dir=.
3622 for ac_prog in egrep; do
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3625 as_fn_executable_p "$ac_path_EGREP" || continue
3626 # Check for GNU ac_path_EGREP and select it if it is found.
3627 # Check for GNU $ac_path_EGREP
3628 case `"$ac_path_EGREP" --version 2>&1` in
3629 *GNU*)
3630 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3632 ac_count=0
3633 $as_echo_n 0123456789 >"conftest.in"
3634 while :
3636 cat "conftest.in" "conftest.in" >"conftest.tmp"
3637 mv "conftest.tmp" "conftest.in"
3638 cp "conftest.in" "conftest.nl"
3639 $as_echo 'EGREP' >> "conftest.nl"
3640 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3641 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3642 as_fn_arith $ac_count + 1 && ac_count=$as_val
3643 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3644 # Best one so far, save it but keep looking for a better one
3645 ac_cv_path_EGREP="$ac_path_EGREP"
3646 ac_path_EGREP_max=$ac_count
3648 # 10*(2^10) chars as input seems more than enough
3649 test $ac_count -gt 10 && break
3650 done
3651 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3652 esac
3654 $ac_path_EGREP_found && break 3
3655 done
3656 done
3657 done
3658 IFS=$as_save_IFS
3659 if test -z "$ac_cv_path_EGREP"; then
3660 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3662 else
3663 ac_cv_path_EGREP=$EGREP
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3669 $as_echo "$ac_cv_path_EGREP" >&6; }
3670 EGREP="$ac_cv_path_EGREP"
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3674 $as_echo_n "checking for ANSI C header files... " >&6; }
3675 if ${ac_cv_header_stdc+:} false; then :
3676 $as_echo_n "(cached) " >&6
3677 else
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3680 #include <stdlib.h>
3681 #include <stdarg.h>
3682 #include <string.h>
3683 #include <float.h>
3686 main ()
3690 return 0;
3692 _ACEOF
3693 if ac_fn_c_try_compile "$LINENO"; then :
3694 ac_cv_header_stdc=yes
3695 else
3696 ac_cv_header_stdc=no
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 if test $ac_cv_header_stdc = yes; then
3701 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3704 #include <string.h>
3706 _ACEOF
3707 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3708 $EGREP "memchr" >/dev/null 2>&1; then :
3710 else
3711 ac_cv_header_stdc=no
3713 rm -f conftest*
3717 if test $ac_cv_header_stdc = yes; then
3718 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3721 #include <stdlib.h>
3723 _ACEOF
3724 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3725 $EGREP "free" >/dev/null 2>&1; then :
3727 else
3728 ac_cv_header_stdc=no
3730 rm -f conftest*
3734 if test $ac_cv_header_stdc = yes; then
3735 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3736 if test "$cross_compiling" = yes; then :
3738 else
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3741 #include <ctype.h>
3742 #include <stdlib.h>
3743 #if ((' ' & 0x0FF) == 0x020)
3744 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3745 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3746 #else
3747 # define ISLOWER(c) \
3748 (('a' <= (c) && (c) <= 'i') \
3749 || ('j' <= (c) && (c) <= 'r') \
3750 || ('s' <= (c) && (c) <= 'z'))
3751 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3752 #endif
3754 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3756 main ()
3758 int i;
3759 for (i = 0; i < 256; i++)
3760 if (XOR (islower (i), ISLOWER (i))
3761 || toupper (i) != TOUPPER (i))
3762 return 2;
3763 return 0;
3765 _ACEOF
3766 if ac_fn_c_try_run "$LINENO"; then :
3768 else
3769 ac_cv_header_stdc=no
3771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3772 conftest.$ac_objext conftest.beam conftest.$ac_ext
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3778 $as_echo "$ac_cv_header_stdc" >&6; }
3779 if test $ac_cv_header_stdc = yes; then
3781 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3785 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3786 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3787 inttypes.h stdint.h unistd.h
3788 do :
3789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3790 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3792 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3793 cat >>confdefs.h <<_ACEOF
3794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3795 _ACEOF
3799 done
3803 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3804 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3805 MINIX=yes
3806 else
3807 MINIX=
3811 if test "$MINIX" = yes; then
3813 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3816 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3819 $as_echo "#define _MINIX 1" >>confdefs.h
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3825 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3826 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3827 $as_echo_n "(cached) " >&6
3828 else
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3832 # define __EXTENSIONS__ 1
3833 $ac_includes_default
3835 main ()
3839 return 0;
3841 _ACEOF
3842 if ac_fn_c_try_compile "$LINENO"; then :
3843 ac_cv_safe_to_define___extensions__=yes
3844 else
3845 ac_cv_safe_to_define___extensions__=no
3847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3850 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3851 test $ac_cv_safe_to_define___extensions__ = yes &&
3852 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3854 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3856 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3858 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3860 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3864 # Do not delete or change the following two lines. For why, see
3865 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
3866 # Make sure we can run config.sub.
3867 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3868 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3871 $as_echo_n "checking build system type... " >&6; }
3872 if ${ac_cv_build+:} false; then :
3873 $as_echo_n "(cached) " >&6
3874 else
3875 ac_build_alias=$build_alias
3876 test "x$ac_build_alias" = x &&
3877 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3878 test "x$ac_build_alias" = x &&
3879 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3880 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3881 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3885 $as_echo "$ac_cv_build" >&6; }
3886 case $ac_cv_build in
3887 *-*-*) ;;
3888 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3889 esac
3890 build=$ac_cv_build
3891 ac_save_IFS=$IFS; IFS='-'
3892 set x $ac_cv_build
3893 shift
3894 build_cpu=$1
3895 build_vendor=$2
3896 shift; shift
3897 # Remember, the first character of IFS is used to create $*,
3898 # except with old shells:
3899 build_os=$*
3900 IFS=$ac_save_IFS
3901 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3905 $as_echo_n "checking host system type... " >&6; }
3906 if ${ac_cv_host+:} false; then :
3907 $as_echo_n "(cached) " >&6
3908 else
3909 if test "x$host_alias" = x; then
3910 ac_cv_host=$ac_cv_build
3911 else
3912 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3913 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3918 $as_echo "$ac_cv_host" >&6; }
3919 case $ac_cv_host in
3920 *-*-*) ;;
3921 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3922 esac
3923 host=$ac_cv_host
3924 ac_save_IFS=$IFS; IFS='-'
3925 set x $ac_cv_host
3926 shift
3927 host_cpu=$1
3928 host_vendor=$2
3929 shift; shift
3930 # Remember, the first character of IFS is used to create $*,
3931 # except with old shells:
3932 host_os=$*
3933 IFS=$ac_save_IFS
3934 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3938 $as_echo_n "checking target system type... " >&6; }
3939 if ${ac_cv_target+:} false; then :
3940 $as_echo_n "(cached) " >&6
3941 else
3942 if test "x$target_alias" = x; then
3943 ac_cv_target=$ac_cv_host
3944 else
3945 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3946 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3951 $as_echo "$ac_cv_target" >&6; }
3952 case $ac_cv_target in
3953 *-*-*) ;;
3954 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3955 esac
3956 target=$ac_cv_target
3957 ac_save_IFS=$IFS; IFS='-'
3958 set x $ac_cv_target
3959 shift
3960 target_cpu=$1
3961 target_vendor=$2
3962 shift; shift
3963 # Remember, the first character of IFS is used to create $*,
3964 # except with old shells:
3965 target_os=$*
3966 IFS=$ac_save_IFS
3967 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3970 # The aliases save the names the user supplied, while $host etc.
3971 # will get canonicalized.
3972 test -n "$target_alias" &&
3973 test "$program_prefix$program_suffix$program_transform_name" = \
3974 NONENONEs,x,x, &&
3975 program_prefix=${target_alias}-
3977 target_alias=${target_alias-$host_alias}
3980 am__api_version='1.15'
3982 # Find a good install program. We prefer a C program (faster),
3983 # so one script is as good as another. But avoid the broken or
3984 # incompatible versions:
3985 # SysV /etc/install, /usr/sbin/install
3986 # SunOS /usr/etc/install
3987 # IRIX /sbin/install
3988 # AIX /bin/install
3989 # AmigaOS /C/install, which installs bootblocks on floppy discs
3990 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3991 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3992 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3993 # OS/2's system install, which has a completely different semantic
3994 # ./install, which can be erroneously created by make from ./install.sh.
3995 # Reject install programs that cannot install multiple files.
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3997 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3998 if test -z "$INSTALL"; then
3999 if ${ac_cv_path_install+:} false; then :
4000 $as_echo_n "(cached) " >&6
4001 else
4002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003 for as_dir in $PATH
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 # Account for people who put trailing slashes in PATH elements.
4008 case $as_dir/ in #((
4009 ./ | .// | /[cC]/* | \
4010 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4011 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4012 /usr/ucb/* ) ;;
4014 # OSF1 and SCO ODT 3.0 have their own names for install.
4015 # Don't use installbsd from OSF since it installs stuff as root
4016 # by default.
4017 for ac_prog in ginstall scoinst install; do
4018 for ac_exec_ext in '' $ac_executable_extensions; do
4019 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4020 if test $ac_prog = install &&
4021 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4022 # AIX install. It has an incompatible calling convention.
4024 elif test $ac_prog = install &&
4025 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4026 # program-specific install script used by HP pwplus--don't use.
4028 else
4029 rm -rf conftest.one conftest.two conftest.dir
4030 echo one > conftest.one
4031 echo two > conftest.two
4032 mkdir conftest.dir
4033 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4034 test -s conftest.one && test -s conftest.two &&
4035 test -s conftest.dir/conftest.one &&
4036 test -s conftest.dir/conftest.two
4037 then
4038 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4039 break 3
4043 done
4044 done
4046 esac
4048 done
4049 IFS=$as_save_IFS
4051 rm -rf conftest.one conftest.two conftest.dir
4054 if test "${ac_cv_path_install+set}" = set; then
4055 INSTALL=$ac_cv_path_install
4056 else
4057 # As a last resort, use the slow shell script. Don't cache a
4058 # value for INSTALL within a source directory, because that will
4059 # break other packages using the cache if that directory is
4060 # removed, or if the value is a relative name.
4061 INSTALL=$ac_install_sh
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4065 $as_echo "$INSTALL" >&6; }
4067 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4068 # It thinks the first close brace ends the variable substitution.
4069 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4071 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4073 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4076 $as_echo_n "checking whether build environment is sane... " >&6; }
4077 # Reject unsafe characters in $srcdir or the absolute working directory
4078 # name. Accept space and tab only in the latter.
4079 am_lf='
4081 case `pwd` in
4082 *[\\\"\#\$\&\'\`$am_lf]*)
4083 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4084 esac
4085 case $srcdir in
4086 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4087 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4088 esac
4090 # Do 'set' in a subshell so we don't clobber the current shell's
4091 # arguments. Must try -L first in case configure is actually a
4092 # symlink; some systems play weird games with the mod time of symlinks
4093 # (eg FreeBSD returns the mod time of the symlink's containing
4094 # directory).
4095 if (
4096 am_has_slept=no
4097 for am_try in 1 2; do
4098 echo "timestamp, slept: $am_has_slept" > conftest.file
4099 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4100 if test "$*" = "X"; then
4101 # -L didn't work.
4102 set X `ls -t "$srcdir/configure" conftest.file`
4104 if test "$*" != "X $srcdir/configure conftest.file" \
4105 && test "$*" != "X conftest.file $srcdir/configure"; then
4107 # If neither matched, then we have a broken ls. This can happen
4108 # if, for instance, CONFIG_SHELL is bash and it inherits a
4109 # broken ls alias from the environment. This has actually
4110 # happened. Such a system could not be considered "sane".
4111 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4112 alias in your environment" "$LINENO" 5
4114 if test "$2" = conftest.file || test $am_try -eq 2; then
4115 break
4117 # Just in case.
4118 sleep 1
4119 am_has_slept=yes
4120 done
4121 test "$2" = conftest.file
4123 then
4124 # Ok.
4126 else
4127 as_fn_error $? "newly created file is older than distributed files!
4128 Check your system clock" "$LINENO" 5
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4131 $as_echo "yes" >&6; }
4132 # If we didn't sleep, we still need to ensure time stamps of config.status and
4133 # generated files are strictly newer.
4134 am_sleep_pid=
4135 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4136 ( sleep 1 ) &
4137 am_sleep_pid=$!
4140 rm -f conftest.file
4142 test "$program_prefix" != NONE &&
4143 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4144 # Use a double $ so make ignores it.
4145 test "$program_suffix" != NONE &&
4146 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4147 # Double any \ or $.
4148 # By default was `s,x,x', remove it if useless.
4149 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4150 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4152 if test x"${MISSING+set}" != xset; then
4153 case $am_aux_dir in
4154 *\ * | *\ *)
4155 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4157 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4158 esac
4160 # Use eval to expand $SHELL
4161 if eval "$MISSING --is-lightweight"; then
4162 am_missing_run="$MISSING "
4163 else
4164 am_missing_run=
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4166 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4169 if test x"${install_sh+set}" != xset; then
4170 case $am_aux_dir in
4171 *\ * | *\ *)
4172 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4174 install_sh="\${SHELL} $am_aux_dir/install-sh"
4175 esac
4178 # Installed binaries are usually stripped using 'strip' when the user
4179 # run "make install-strip". However 'strip' might not be the right
4180 # tool to use in cross-compilation environments, therefore Automake
4181 # will honor the 'STRIP' environment variable to overrule this program.
4182 if test "$cross_compiling" != no; then
4183 if test -n "$ac_tool_prefix"; then
4184 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4185 set dummy ${ac_tool_prefix}strip; ac_word=$2
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4187 $as_echo_n "checking for $ac_word... " >&6; }
4188 if ${ac_cv_prog_STRIP+:} false; then :
4189 $as_echo_n "(cached) " >&6
4190 else
4191 if test -n "$STRIP"; then
4192 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4193 else
4194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 for as_dir in $PATH
4197 IFS=$as_save_IFS
4198 test -z "$as_dir" && as_dir=.
4199 for ac_exec_ext in '' $ac_executable_extensions; do
4200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4201 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4203 break 2
4205 done
4206 done
4207 IFS=$as_save_IFS
4211 STRIP=$ac_cv_prog_STRIP
4212 if test -n "$STRIP"; then
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4214 $as_echo "$STRIP" >&6; }
4215 else
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4217 $as_echo "no" >&6; }
4222 if test -z "$ac_cv_prog_STRIP"; then
4223 ac_ct_STRIP=$STRIP
4224 # Extract the first word of "strip", so it can be a program name with args.
4225 set dummy strip; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 if test -n "$ac_ct_STRIP"; then
4232 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4241 ac_cv_prog_ac_ct_STRIP="strip"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 break 2
4245 done
4246 done
4247 IFS=$as_save_IFS
4251 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4252 if test -n "$ac_ct_STRIP"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4254 $as_echo "$ac_ct_STRIP" >&6; }
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4260 if test "x$ac_ct_STRIP" = x; then
4261 STRIP=":"
4262 else
4263 case $cross_compiling:$ac_tool_warned in
4264 yes:)
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4266 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4267 ac_tool_warned=yes ;;
4268 esac
4269 STRIP=$ac_ct_STRIP
4271 else
4272 STRIP="$ac_cv_prog_STRIP"
4276 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4279 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4280 if test -z "$MKDIR_P"; then
4281 if ${ac_cv_path_mkdir+:} false; then :
4282 $as_echo_n "(cached) " >&6
4283 else
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_prog in mkdir gmkdir; do
4290 for ac_exec_ext in '' $ac_executable_extensions; do
4291 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4292 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4293 'mkdir (GNU coreutils) '* | \
4294 'mkdir (coreutils) '* | \
4295 'mkdir (fileutils) '4.1*)
4296 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4297 break 3;;
4298 esac
4299 done
4300 done
4301 done
4302 IFS=$as_save_IFS
4306 test -d ./--version && rmdir ./--version
4307 if test "${ac_cv_path_mkdir+set}" = set; then
4308 MKDIR_P="$ac_cv_path_mkdir -p"
4309 else
4310 # As a last resort, use the slow shell script. Don't cache a
4311 # value for MKDIR_P within a source directory, because that will
4312 # break other packages using the cache if that directory is
4313 # removed, or if the value is a relative name.
4314 MKDIR_P="$ac_install_sh -d"
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4318 $as_echo "$MKDIR_P" >&6; }
4320 for ac_prog in gawk mawk nawk awk
4322 # Extract the first word of "$ac_prog", so it can be a program name with args.
4323 set dummy $ac_prog; ac_word=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if ${ac_cv_prog_AWK+:} false; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 if test -n "$AWK"; then
4330 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4331 else
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333 for as_dir in $PATH
4335 IFS=$as_save_IFS
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4339 ac_cv_prog_AWK="$ac_prog"
4340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4341 break 2
4343 done
4344 done
4345 IFS=$as_save_IFS
4349 AWK=$ac_cv_prog_AWK
4350 if test -n "$AWK"; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4352 $as_echo "$AWK" >&6; }
4353 else
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4359 test -n "$AWK" && break
4360 done
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4363 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4364 set x ${MAKE-make}
4365 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4366 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 cat >conftest.make <<\_ACEOF
4370 SHELL = /bin/sh
4371 all:
4372 @echo '@@@%%%=$(MAKE)=@@@%%%'
4373 _ACEOF
4374 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4375 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4376 *@@@%%%=?*=@@@%%%*)
4377 eval ac_cv_prog_make_${ac_make}_set=yes;;
4379 eval ac_cv_prog_make_${ac_make}_set=no;;
4380 esac
4381 rm -f conftest.make
4383 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4385 $as_echo "yes" >&6; }
4386 SET_MAKE=
4387 else
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4390 SET_MAKE="MAKE=${MAKE-make}"
4393 rm -rf .tst 2>/dev/null
4394 mkdir .tst 2>/dev/null
4395 if test -d .tst; then
4396 am__leading_dot=.
4397 else
4398 am__leading_dot=_
4400 rmdir .tst 2>/dev/null
4402 DEPDIR="${am__leading_dot}deps"
4404 ac_config_commands="$ac_config_commands depfiles"
4407 am_make=${MAKE-make}
4408 cat > confinc << 'END'
4409 am__doit:
4410 @echo this is the am__doit target
4411 .PHONY: am__doit
4413 # If we don't find an include directive, just comment out the code.
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4415 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4416 am__include="#"
4417 am__quote=
4418 _am_result=none
4419 # First try GNU make style include.
4420 echo "include confinc" > confmf
4421 # Ignore all kinds of additional output from 'make'.
4422 case `$am_make -s -f confmf 2> /dev/null` in #(
4423 *the\ am__doit\ target*)
4424 am__include=include
4425 am__quote=
4426 _am_result=GNU
4428 esac
4429 # Now try BSD make style include.
4430 if test "$am__include" = "#"; then
4431 echo '.include "confinc"' > confmf
4432 case `$am_make -s -f confmf 2> /dev/null` in #(
4433 *the\ am__doit\ target*)
4434 am__include=.include
4435 am__quote="\""
4436 _am_result=BSD
4438 esac
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4443 $as_echo "$_am_result" >&6; }
4444 rm -f confinc confmf
4446 # Check whether --enable-dependency-tracking was given.
4447 if test "${enable_dependency_tracking+set}" = set; then :
4448 enableval=$enable_dependency_tracking;
4451 if test "x$enable_dependency_tracking" != xno; then
4452 am_depcomp="$ac_aux_dir/depcomp"
4453 AMDEPBACKSLASH='\'
4454 am__nodep='_no'
4456 if test "x$enable_dependency_tracking" != xno; then
4457 AMDEP_TRUE=
4458 AMDEP_FALSE='#'
4459 else
4460 AMDEP_TRUE='#'
4461 AMDEP_FALSE=
4465 # Check whether --enable-silent-rules was given.
4466 if test "${enable_silent_rules+set}" = set; then :
4467 enableval=$enable_silent_rules;
4470 case $enable_silent_rules in # (((
4471 yes) AM_DEFAULT_VERBOSITY=0;;
4472 no) AM_DEFAULT_VERBOSITY=1;;
4473 *) AM_DEFAULT_VERBOSITY=1;;
4474 esac
4475 am_make=${MAKE-make}
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4477 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4478 if ${am_cv_make_support_nested_variables+:} false; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 if $as_echo 'TRUE=$(BAR$(V))
4482 BAR0=false
4483 BAR1=true
4485 am__doit:
4486 @$(TRUE)
4487 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4488 am_cv_make_support_nested_variables=yes
4489 else
4490 am_cv_make_support_nested_variables=no
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4494 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4495 if test $am_cv_make_support_nested_variables = yes; then
4496 AM_V='$(V)'
4497 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4498 else
4499 AM_V=$AM_DEFAULT_VERBOSITY
4500 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4502 AM_BACKSLASH='\'
4504 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4505 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4506 # is not polluted with repeated "-I."
4507 am__isrc=' -I$(srcdir)'
4508 # test to see if srcdir already configured
4509 if test -f $srcdir/config.status; then
4510 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4514 # test whether we have cygpath
4515 if test -z "$CYGPATH_W"; then
4516 if (cygpath --version) >/dev/null 2>/dev/null; then
4517 CYGPATH_W='cygpath -w'
4518 else
4519 CYGPATH_W=echo
4524 # Define the identity of the package.
4525 PACKAGE='libgm2'
4526 VERSION='version-unused'
4529 # Some tools Automake needs.
4531 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4534 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4537 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4540 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4543 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4545 # For better backward compatibility. To be removed once Automake 1.9.x
4546 # dies out for good. For more background, see:
4547 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4548 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4549 mkdir_p='$(MKDIR_P)'
4551 # We need awk for the "check" target (and possibly the TAP driver). The
4552 # system "awk" is bad on some platforms.
4553 # Always define AMTAR for backward compatibility. Yes, it's still used
4554 # in the wild :-( We should find a proper way to deprecate it ...
4555 AMTAR='$${TAR-tar}'
4558 # We'll loop over all known methods to create a tar archive until one works.
4559 _am_tools='gnutar pax cpio none'
4561 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4567 depcc="$CC" am_compiler_list=
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4570 $as_echo_n "checking dependency style of $depcc... " >&6; }
4571 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4575 # We make a subdir and do the tests there. Otherwise we can end up
4576 # making bogus files that we don't know about and never remove. For
4577 # instance it was reported that on HP-UX the gcc test will end up
4578 # making a dummy file named 'D' -- because '-MD' means "put the output
4579 # in D".
4580 rm -rf conftest.dir
4581 mkdir conftest.dir
4582 # Copy depcomp to subdir because otherwise we won't find it if we're
4583 # using a relative directory.
4584 cp "$am_depcomp" conftest.dir
4585 cd conftest.dir
4586 # We will build objects and dependencies in a subdirectory because
4587 # it helps to detect inapplicable dependency modes. For instance
4588 # both Tru64's cc and ICC support -MD to output dependencies as a
4589 # side effect of compilation, but ICC will put the dependencies in
4590 # the current directory while Tru64 will put them in the object
4591 # directory.
4592 mkdir sub
4594 am_cv_CC_dependencies_compiler_type=none
4595 if test "$am_compiler_list" = ""; then
4596 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4598 am__universal=false
4599 case " $depcc " in #(
4600 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4601 esac
4603 for depmode in $am_compiler_list; do
4604 # Setup a source with many dependencies, because some compilers
4605 # like to wrap large dependency lists on column 80 (with \), and
4606 # we should not choose a depcomp mode which is confused by this.
4608 # We need to recreate these files for each test, as the compiler may
4609 # overwrite some of them when testing with obscure command lines.
4610 # This happens at least with the AIX C compiler.
4611 : > sub/conftest.c
4612 for i in 1 2 3 4 5 6; do
4613 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4614 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4615 # Solaris 10 /bin/sh.
4616 echo '/* dummy */' > sub/conftst$i.h
4617 done
4618 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4620 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4621 # mode. It turns out that the SunPro C++ compiler does not properly
4622 # handle '-M -o', and we need to detect this. Also, some Intel
4623 # versions had trouble with output in subdirs.
4624 am__obj=sub/conftest.${OBJEXT-o}
4625 am__minus_obj="-o $am__obj"
4626 case $depmode in
4627 gcc)
4628 # This depmode causes a compiler race in universal mode.
4629 test "$am__universal" = false || continue
4631 nosideeffect)
4632 # After this tag, mechanisms are not by side-effect, so they'll
4633 # only be used when explicitly requested.
4634 if test "x$enable_dependency_tracking" = xyes; then
4635 continue
4636 else
4637 break
4640 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4641 # This compiler won't grok '-c -o', but also, the minuso test has
4642 # not run yet. These depmodes are late enough in the game, and
4643 # so weak that their functioning should not be impacted.
4644 am__obj=conftest.${OBJEXT-o}
4645 am__minus_obj=
4647 none) break ;;
4648 esac
4649 if depmode=$depmode \
4650 source=sub/conftest.c object=$am__obj \
4651 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4652 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4653 >/dev/null 2>conftest.err &&
4654 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4655 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4656 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4657 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4658 # icc doesn't choke on unknown options, it will just issue warnings
4659 # or remarks (even with -Werror). So we grep stderr for any message
4660 # that says an option was ignored or not supported.
4661 # When given -MP, icc 7.0 and 7.1 complain thusly:
4662 # icc: Command line warning: ignoring option '-M'; no argument required
4663 # The diagnosis changed in icc 8.0:
4664 # icc: Command line remark: option '-MP' not supported
4665 if (grep 'ignoring option' conftest.err ||
4666 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4667 am_cv_CC_dependencies_compiler_type=$depmode
4668 break
4671 done
4673 cd ..
4674 rm -rf conftest.dir
4675 else
4676 am_cv_CC_dependencies_compiler_type=none
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4681 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4682 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4685 test "x$enable_dependency_tracking" != xno \
4686 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4687 am__fastdepCC_TRUE=
4688 am__fastdepCC_FALSE='#'
4689 else
4690 am__fastdepCC_TRUE='#'
4691 am__fastdepCC_FALSE=
4696 # POSIX will say in a future version that running "rm -f" with no argument
4697 # is OK; and we want to be able to make that assumption in our Makefile
4698 # recipes. So use an aggressive probe to check that the usage we want is
4699 # actually supported "in the wild" to an acceptable degree.
4700 # See automake bug#10828.
4701 # To make any issue more visible, cause the running configure to be aborted
4702 # by default if the 'rm' program in use doesn't match our expectations; the
4703 # user can still override this though.
4704 if rm -f && rm -fr && rm -rf; then : OK; else
4705 cat >&2 <<'END'
4706 Oops!
4708 Your 'rm' program seems unable to run without file operands specified
4709 on the command line, even when the '-f' option is present. This is contrary
4710 to the behaviour of most rm programs out there, and not conforming with
4711 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4713 Please tell bug-automake@gnu.org about your system, including the value
4714 of your $PATH and any error possibly output before this message. This
4715 can help us improve future automake versions.
4718 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4719 echo 'Configuration will proceed anyway, since you have set the' >&2
4720 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4721 echo >&2
4722 else
4723 cat >&2 <<'END'
4724 Aborting the configuration process, to ensure you take notice of the issue.
4726 You can download and install GNU coreutils to get an 'rm' implementation
4727 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4729 If you want to complete the configuration process using your problematic
4730 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4731 to "yes", and re-run configure.
4734 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4743 # Check whether --with-cross-host was given.
4744 if test "${with_cross_host+set}" = set; then :
4745 withval=$with_cross_host;
4749 # Checks for header files.
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4751 $as_echo_n "checking for ANSI C header files... " >&6; }
4752 if ${ac_cv_header_stdc+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4757 #include <stdlib.h>
4758 #include <stdarg.h>
4759 #include <string.h>
4760 #include <float.h>
4763 main ()
4767 return 0;
4769 _ACEOF
4770 if ac_fn_c_try_compile "$LINENO"; then :
4771 ac_cv_header_stdc=yes
4772 else
4773 ac_cv_header_stdc=no
4775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4777 if test $ac_cv_header_stdc = yes; then
4778 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4781 #include <string.h>
4783 _ACEOF
4784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4785 $EGREP "memchr" >/dev/null 2>&1; then :
4787 else
4788 ac_cv_header_stdc=no
4790 rm -f conftest*
4794 if test $ac_cv_header_stdc = yes; then
4795 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4798 #include <stdlib.h>
4800 _ACEOF
4801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4802 $EGREP "free" >/dev/null 2>&1; then :
4804 else
4805 ac_cv_header_stdc=no
4807 rm -f conftest*
4811 if test $ac_cv_header_stdc = yes; then
4812 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4813 if test "$cross_compiling" = yes; then :
4815 else
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4818 #include <ctype.h>
4819 #include <stdlib.h>
4820 #if ((' ' & 0x0FF) == 0x020)
4821 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4822 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4823 #else
4824 # define ISLOWER(c) \
4825 (('a' <= (c) && (c) <= 'i') \
4826 || ('j' <= (c) && (c) <= 'r') \
4827 || ('s' <= (c) && (c) <= 'z'))
4828 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4829 #endif
4831 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4833 main ()
4835 int i;
4836 for (i = 0; i < 256; i++)
4837 if (XOR (islower (i), ISLOWER (i))
4838 || toupper (i) != TOUPPER (i))
4839 return 2;
4840 return 0;
4842 _ACEOF
4843 if ac_fn_c_try_run "$LINENO"; then :
4845 else
4846 ac_cv_header_stdc=no
4848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4849 conftest.$ac_objext conftest.beam conftest.$ac_ext
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4855 $as_echo "$ac_cv_header_stdc" >&6; }
4856 if test $ac_cv_header_stdc = yes; then
4858 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4863 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4864 if ${ac_cv_header_sys_wait_h+:} false; then :
4865 $as_echo_n "(cached) " >&6
4866 else
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h. */
4869 #include <sys/types.h>
4870 #include <sys/wait.h>
4871 #ifndef WEXITSTATUS
4872 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4873 #endif
4874 #ifndef WIFEXITED
4875 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4876 #endif
4879 main ()
4881 int s;
4882 wait (&s);
4883 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4885 return 0;
4887 _ACEOF
4888 if ac_fn_c_try_compile "$LINENO"; then :
4889 ac_cv_header_sys_wait_h=yes
4890 else
4891 ac_cv_header_sys_wait_h=no
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4896 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4897 if test $ac_cv_header_sys_wait_h = yes; then
4899 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4903 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
4904 if test "x$ac_cv_header_math_h" = xyes; then :
4906 $as_echo "#define HAVE_MATH_H 1" >>confdefs.h
4912 for ac_header in limits.h stddef.h string.h strings.h stdlib.h \
4913 time.h \
4914 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
4915 sys/resource.h sys/param.h sys/times.h sys/stat.h \
4916 sys/socket.h \
4917 sys/wait.h sys/ioctl.h errno.h sys/errno.h \
4918 pwd.h direct.h dirent.h signal.h malloc.h langinfo.h \
4919 pthread.h stdarg.h stdio.h sys/types.h termios.h \
4920 netinet/in.h netdb.h sys/uio.h sys/stat.h wchar.h
4921 do :
4922 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4923 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4924 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4925 cat >>confdefs.h <<_ACEOF
4926 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4927 _ACEOF
4931 done
4936 case ${build_alias} in
4937 "") build_noncanonical=${build} ;;
4938 *) build_noncanonical=${build_alias} ;;
4939 esac
4941 case ${host_alias} in
4942 "") host_noncanonical=${build_noncanonical} ;;
4943 *) host_noncanonical=${host_alias} ;;
4944 esac
4948 case ${target_alias} in
4949 "") target_noncanonical=${host_noncanonical} ;;
4950 *) target_noncanonical=${target_alias} ;;
4951 esac
4956 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
4957 # have matching libraries, they should use host libraries: Makefile.tpl
4958 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
4959 # However, they still use the build modules, because the corresponding
4960 # host modules (e.g. bison) are only built for the host when bootstrap
4961 # finishes. So:
4962 # - build_subdir is where we find build modules, and never changes.
4963 # - build_libsubdir is where we find build libraries, and can be overridden.
4965 # Prefix 'build-' so this never conflicts with target_subdir.
4966 build_subdir="build-${build_noncanonical}"
4968 # Check whether --with-build-libsubdir was given.
4969 if test "${with_build_libsubdir+set}" = set; then :
4970 withval=$with_build_libsubdir; build_libsubdir="$withval"
4971 else
4972 build_libsubdir="$build_subdir"
4975 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
4976 if ( test $srcdir = . && test -d gcc ) \
4977 || test -d $srcdir/../host-${host_noncanonical}; then
4978 host_subdir="host-${host_noncanonical}"
4979 else
4980 host_subdir=.
4982 # No prefix.
4983 target_subdir=${target_noncanonical}
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
4987 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
4988 # Check whether --enable-version-specific-runtime-libs was given.
4989 if test "${enable_version_specific_runtime_libs+set}" = set; then :
4990 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4991 yes) version_specific_libs=yes ;;
4992 no) version_specific_libs=no ;;
4993 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
4994 esac
4995 else
4996 version_specific_libs=no
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
5000 $as_echo "$version_specific_libs" >&6; }
5003 # Check whether --with-slibdir was given.
5004 if test "${with_slibdir+set}" = set; then :
5005 withval=$with_slibdir; slibdir="$with_slibdir"
5006 else
5007 if test "${version_specific_libs}" = yes; then
5008 slibdir='$(libsubdir)'
5009 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
5010 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
5011 else
5012 slibdir='$(libdir)'
5018 # Command-line options.
5019 # Very limited version of AC_MAINTAINER_MODE.
5020 # Check whether --enable-maintainer-mode was given.
5021 if test "${enable_maintainer_mode+set}" = set; then :
5022 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
5023 yes) MAINT='' ;;
5024 no) MAINT='#' ;;
5025 *) as_fn_error $? "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
5026 esac
5027 maintainer_mode=${enableval}
5028 else
5029 MAINT='#'
5033 toolexecdir=no
5034 toolexeclibdir=no
5036 # Calculate toolexeclibdir
5037 # Also toolexecdir, though it's only used in toolexeclibdir
5038 case ${version_specific_libs} in
5039 yes)
5040 # Need the gcc compiler version to know where to install libraries
5041 # and header files if --enable-version-specific-runtime-libs option
5042 # is selected.
5043 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
5044 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5047 if test -n "$with_cross_host" &&
5048 test x"$with_cross_host" != x"no"; then
5049 # Install a library built with a cross compiler in tooldir, not libdir.
5050 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
5051 toolexeclibdir='$(toolexecdir)/lib'
5052 else
5053 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
5054 toolexeclibdir='$(libdir)'
5056 multi_os_directory=`$CC -print-multi-os-directory`
5057 case $multi_os_directory in
5058 .) ;; # Avoid trailing /.
5059 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5060 esac
5062 esac
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5072 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5073 # Check whether --enable-maintainer-mode was given.
5074 if test "${enable_maintainer_mode+set}" = set; then :
5075 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5076 else
5077 USE_MAINTAINER_MODE=no
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5081 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5082 if test $USE_MAINTAINER_MODE = yes; then
5083 MAINTAINER_MODE_TRUE=
5084 MAINTAINER_MODE_FALSE='#'
5085 else
5086 MAINTAINER_MODE_TRUE='#'
5087 MAINTAINER_MODE_FALSE=
5090 MAINT=$MAINTAINER_MODE_TRUE
5094 # Check the compiler.
5095 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
5096 # We must force CC to /not/ be precious variables; otherwise
5097 # the wrong, non-multilib-adjusted value will be used in multilibs.
5098 # As a side effect, we have to subst CFLAGS ourselves.
5102 ac_ext=c
5103 ac_cpp='$CPP $CPPFLAGS'
5104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5107 if test -n "$ac_tool_prefix"; then
5108 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5109 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5111 $as_echo_n "checking for $ac_word... " >&6; }
5112 if ${ac_cv_prog_CC+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114 else
5115 if test -n "$CC"; then
5116 ac_cv_prog_CC="$CC" # Let the user override the test.
5117 else
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5125 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 break 2
5129 done
5130 done
5131 IFS=$as_save_IFS
5135 CC=$ac_cv_prog_CC
5136 if test -n "$CC"; then
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5138 $as_echo "$CC" >&6; }
5139 else
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141 $as_echo "no" >&6; }
5146 if test -z "$ac_cv_prog_CC"; then
5147 ac_ct_CC=$CC
5148 # Extract the first word of "gcc", so it can be a program name with args.
5149 set dummy gcc; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 if test -n "$ac_ct_CC"; then
5156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165 ac_cv_prog_ac_ct_CC="gcc"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5169 done
5170 done
5171 IFS=$as_save_IFS
5175 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5176 if test -n "$ac_ct_CC"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5178 $as_echo "$ac_ct_CC" >&6; }
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5184 if test "x$ac_ct_CC" = x; then
5185 CC=""
5186 else
5187 case $cross_compiling:$ac_tool_warned in
5188 yes:)
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5191 ac_tool_warned=yes ;;
5192 esac
5193 CC=$ac_ct_CC
5195 else
5196 CC="$ac_cv_prog_CC"
5199 if test -z "$CC"; then
5200 if test -n "$ac_tool_prefix"; then
5201 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5202 set dummy ${ac_tool_prefix}cc; ac_word=$2
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204 $as_echo_n "checking for $ac_word... " >&6; }
5205 if ${ac_cv_prog_CC+:} false; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 if test -n "$CC"; then
5209 ac_cv_prog_CC="$CC" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5218 ac_cv_prog_CC="${ac_tool_prefix}cc"
5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5222 done
5223 done
5224 IFS=$as_save_IFS
5228 CC=$ac_cv_prog_CC
5229 if test -n "$CC"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5231 $as_echo "$CC" >&6; }
5232 else
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5240 if test -z "$CC"; then
5241 # Extract the first word of "cc", so it can be a program name with args.
5242 set dummy cc; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if ${ac_cv_prog_CC+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 if test -n "$CC"; then
5249 ac_cv_prog_CC="$CC" # Let the user override the test.
5250 else
5251 ac_prog_rejected=no
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH
5255 IFS=$as_save_IFS
5256 test -z "$as_dir" && as_dir=.
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5259 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5260 ac_prog_rejected=yes
5261 continue
5263 ac_cv_prog_CC="cc"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5267 done
5268 done
5269 IFS=$as_save_IFS
5271 if test $ac_prog_rejected = yes; then
5272 # We found a bogon in the path, so make sure we never use it.
5273 set dummy $ac_cv_prog_CC
5274 shift
5275 if test $# != 0; then
5276 # We chose a different compiler from the bogus one.
5277 # However, it has the same basename, so the bogon will be chosen
5278 # first if we set CC to just the basename; use the full file name.
5279 shift
5280 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5285 CC=$ac_cv_prog_CC
5286 if test -n "$CC"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5288 $as_echo "$CC" >&6; }
5289 else
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5296 if test -z "$CC"; then
5297 if test -n "$ac_tool_prefix"; then
5298 for ac_prog in cl.exe
5300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5301 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 $as_echo_n "checking for $ac_word... " >&6; }
5304 if ${ac_cv_prog_CC+:} false; then :
5305 $as_echo_n "(cached) " >&6
5306 else
5307 if test -n "$CC"; then
5308 ac_cv_prog_CC="$CC" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5321 done
5322 done
5323 IFS=$as_save_IFS
5327 CC=$ac_cv_prog_CC
5328 if test -n "$CC"; then
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5330 $as_echo "$CC" >&6; }
5331 else
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5333 $as_echo "no" >&6; }
5337 test -n "$CC" && break
5338 done
5340 if test -z "$CC"; then
5341 ac_ct_CC=$CC
5342 for ac_prog in cl.exe
5344 # Extract the first word of "$ac_prog", so it can be a program name with args.
5345 set dummy $ac_prog; ac_word=$2
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347 $as_echo_n "checking for $ac_word... " >&6; }
5348 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5349 $as_echo_n "(cached) " >&6
5350 else
5351 if test -n "$ac_ct_CC"; then
5352 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5353 else
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5357 IFS=$as_save_IFS
5358 test -z "$as_dir" && as_dir=.
5359 for ac_exec_ext in '' $ac_executable_extensions; do
5360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361 ac_cv_prog_ac_ct_CC="$ac_prog"
5362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5363 break 2
5365 done
5366 done
5367 IFS=$as_save_IFS
5371 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5372 if test -n "$ac_ct_CC"; then
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5374 $as_echo "$ac_ct_CC" >&6; }
5375 else
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5377 $as_echo "no" >&6; }
5381 test -n "$ac_ct_CC" && break
5382 done
5384 if test "x$ac_ct_CC" = x; then
5385 CC=""
5386 else
5387 case $cross_compiling:$ac_tool_warned in
5388 yes:)
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5391 ac_tool_warned=yes ;;
5392 esac
5393 CC=$ac_ct_CC
5400 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5402 as_fn_error $? "no acceptable C compiler found in \$PATH
5403 See \`config.log' for more details" "$LINENO" 5; }
5405 # Provide some information about the compiler.
5406 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5407 set X $ac_compile
5408 ac_compiler=$2
5409 for ac_option in --version -v -V -qversion; do
5410 { { ac_try="$ac_compiler $ac_option >&5"
5411 case "(($ac_try" in
5412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5413 *) ac_try_echo=$ac_try;;
5414 esac
5415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5416 $as_echo "$ac_try_echo"; } >&5
5417 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5418 ac_status=$?
5419 if test -s conftest.err; then
5420 sed '10a\
5421 ... rest of stderr output deleted ...
5422 10q' conftest.err >conftest.er1
5423 cat conftest.er1 >&5
5425 rm -f conftest.er1 conftest.err
5426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5427 test $ac_status = 0; }
5428 done
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5431 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5432 if ${ac_cv_c_compiler_gnu+:} false; then :
5433 $as_echo_n "(cached) " >&6
5434 else
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5439 main ()
5441 #ifndef __GNUC__
5442 choke me
5443 #endif
5446 return 0;
5448 _ACEOF
5449 if ac_fn_c_try_compile "$LINENO"; then :
5450 ac_compiler_gnu=yes
5451 else
5452 ac_compiler_gnu=no
5454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5459 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5460 if test $ac_compiler_gnu = yes; then
5461 GCC=yes
5462 else
5463 GCC=
5465 ac_test_CFLAGS=${CFLAGS+set}
5466 ac_save_CFLAGS=$CFLAGS
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5468 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5469 if ${ac_cv_prog_cc_g+:} false; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 ac_save_c_werror_flag=$ac_c_werror_flag
5473 ac_c_werror_flag=yes
5474 ac_cv_prog_cc_g=no
5475 CFLAGS="-g"
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h. */
5480 main ()
5484 return 0;
5486 _ACEOF
5487 if ac_fn_c_try_compile "$LINENO"; then :
5488 ac_cv_prog_cc_g=yes
5489 else
5490 CFLAGS=""
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5495 main ()
5499 return 0;
5501 _ACEOF
5502 if ac_fn_c_try_compile "$LINENO"; then :
5504 else
5505 ac_c_werror_flag=$ac_save_c_werror_flag
5506 CFLAGS="-g"
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5511 main ()
5515 return 0;
5517 _ACEOF
5518 if ac_fn_c_try_compile "$LINENO"; then :
5519 ac_cv_prog_cc_g=yes
5521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 ac_c_werror_flag=$ac_save_c_werror_flag
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5529 $as_echo "$ac_cv_prog_cc_g" >&6; }
5530 if test "$ac_test_CFLAGS" = set; then
5531 CFLAGS=$ac_save_CFLAGS
5532 elif test $ac_cv_prog_cc_g = yes; then
5533 if test "$GCC" = yes; then
5534 CFLAGS="-g -O2"
5535 else
5536 CFLAGS="-g"
5538 else
5539 if test "$GCC" = yes; then
5540 CFLAGS="-O2"
5541 else
5542 CFLAGS=
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5546 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5547 if ${ac_cv_prog_cc_c89+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549 else
5550 ac_cv_prog_cc_c89=no
5551 ac_save_CC=$CC
5552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553 /* end confdefs.h. */
5554 #include <stdarg.h>
5555 #include <stdio.h>
5556 struct stat;
5557 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5558 struct buf { int x; };
5559 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5560 static char *e (p, i)
5561 char **p;
5562 int i;
5564 return p[i];
5566 static char *f (char * (*g) (char **, int), char **p, ...)
5568 char *s;
5569 va_list v;
5570 va_start (v,p);
5571 s = g (p, va_arg (v,int));
5572 va_end (v);
5573 return s;
5576 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5577 function prototypes and stuff, but not '\xHH' hex character constants.
5578 These don't provoke an error unfortunately, instead are silently treated
5579 as 'x'. The following induces an error, until -std is added to get
5580 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5581 array size at least. It's necessary to write '\x00'==0 to get something
5582 that's true only with -std. */
5583 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5585 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5586 inside strings and character constants. */
5587 #define FOO(x) 'x'
5588 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5590 int test (int i, double x);
5591 struct s1 {int (*f) (int a);};
5592 struct s2 {int (*f) (double a);};
5593 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5594 int argc;
5595 char **argv;
5597 main ()
5599 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5601 return 0;
5603 _ACEOF
5604 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5605 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5607 CC="$ac_save_CC $ac_arg"
5608 if ac_fn_c_try_compile "$LINENO"; then :
5609 ac_cv_prog_cc_c89=$ac_arg
5611 rm -f core conftest.err conftest.$ac_objext
5612 test "x$ac_cv_prog_cc_c89" != "xno" && break
5613 done
5614 rm -f conftest.$ac_ext
5615 CC=$ac_save_CC
5618 # AC_CACHE_VAL
5619 case "x$ac_cv_prog_cc_c89" in
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5622 $as_echo "none needed" >&6; } ;;
5623 xno)
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5625 $as_echo "unsupported" >&6; } ;;
5627 CC="$CC $ac_cv_prog_cc_c89"
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5629 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5630 esac
5631 if test "x$ac_cv_prog_cc_c89" != xno; then :
5635 ac_ext=c
5636 ac_cpp='$CPP $CPPFLAGS'
5637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5641 ac_ext=c
5642 ac_cpp='$CPP $CPPFLAGS'
5643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5647 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5648 if ${am_cv_prog_cc_c_o+:} false; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5655 main ()
5659 return 0;
5661 _ACEOF
5662 # Make sure it works both with $CC and with simple cc.
5663 # Following AC_PROG_CC_C_O, we do the test twice because some
5664 # compilers refuse to overwrite an existing .o file with -o,
5665 # though they will create one.
5666 am_cv_prog_cc_c_o=yes
5667 for am_i in 1 2; do
5668 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5669 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5670 ac_status=$?
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } \
5673 && test -f conftest2.$ac_objext; then
5674 : OK
5675 else
5676 am_cv_prog_cc_c_o=no
5677 break
5679 done
5680 rm -f core conftest*
5681 unset am_i
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5684 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5685 if test "$am_cv_prog_cc_c_o" != yes; then
5686 # Losing compiler, so override with the script.
5687 # FIXME: It is wrong to rewrite CC.
5688 # But if we don't then we get into trouble of one sort or another.
5689 # A longer-term fix would be to have automake use am__CC in this case,
5690 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5691 CC="$am_aux_dir/compile $CC"
5693 ac_ext=c
5694 ac_cpp='$CPP $CPPFLAGS'
5695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5700 ac_ext=cpp
5701 ac_cpp='$CXXCPP $CPPFLAGS'
5702 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5703 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5704 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5705 if test -z "$CXX"; then
5706 if test -n "$CCC"; then
5707 CXX=$CCC
5708 else
5709 if test -n "$ac_tool_prefix"; then
5710 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5713 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715 $as_echo_n "checking for $ac_word... " >&6; }
5716 if ${ac_cv_prog_CXX+:} false; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 if test -n "$CXX"; then
5720 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5721 else
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5733 done
5734 done
5735 IFS=$as_save_IFS
5739 CXX=$ac_cv_prog_CXX
5740 if test -n "$CXX"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5742 $as_echo "$CXX" >&6; }
5743 else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; }
5749 test -n "$CXX" && break
5750 done
5752 if test -z "$CXX"; then
5753 ac_ct_CXX=$CXX
5754 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5756 # Extract the first word of "$ac_prog", so it can be a program name with args.
5757 set dummy $ac_prog; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 if test -n "$ac_ct_CXX"; then
5764 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5769 IFS=$as_save_IFS
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5773 ac_cv_prog_ac_ct_CXX="$ac_prog"
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 break 2
5777 done
5778 done
5779 IFS=$as_save_IFS
5783 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5784 if test -n "$ac_ct_CXX"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5786 $as_echo "$ac_ct_CXX" >&6; }
5787 else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5793 test -n "$ac_ct_CXX" && break
5794 done
5796 if test "x$ac_ct_CXX" = x; then
5797 CXX="g++"
5798 else
5799 case $cross_compiling:$ac_tool_warned in
5800 yes:)
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5803 ac_tool_warned=yes ;;
5804 esac
5805 CXX=$ac_ct_CXX
5811 # Provide some information about the compiler.
5812 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5813 set X $ac_compile
5814 ac_compiler=$2
5815 for ac_option in --version -v -V -qversion; do
5816 { { ac_try="$ac_compiler $ac_option >&5"
5817 case "(($ac_try" in
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5820 esac
5821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5822 $as_echo "$ac_try_echo"; } >&5
5823 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5824 ac_status=$?
5825 if test -s conftest.err; then
5826 sed '10a\
5827 ... rest of stderr output deleted ...
5828 10q' conftest.err >conftest.er1
5829 cat conftest.er1 >&5
5831 rm -f conftest.er1 conftest.err
5832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5833 test $ac_status = 0; }
5834 done
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5837 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5838 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5839 $as_echo_n "(cached) " >&6
5840 else
5841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5842 /* end confdefs.h. */
5845 main ()
5847 #ifndef __GNUC__
5848 choke me
5849 #endif
5852 return 0;
5854 _ACEOF
5855 if ac_fn_cxx_try_compile "$LINENO"; then :
5856 ac_compiler_gnu=yes
5857 else
5858 ac_compiler_gnu=no
5860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5861 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5865 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5866 if test $ac_compiler_gnu = yes; then
5867 GXX=yes
5868 else
5869 GXX=
5871 ac_test_CXXFLAGS=${CXXFLAGS+set}
5872 ac_save_CXXFLAGS=$CXXFLAGS
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5874 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5875 if ${ac_cv_prog_cxx_g+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5879 ac_cxx_werror_flag=yes
5880 ac_cv_prog_cxx_g=no
5881 CXXFLAGS="-g"
5882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5883 /* end confdefs.h. */
5886 main ()
5890 return 0;
5892 _ACEOF
5893 if ac_fn_cxx_try_compile "$LINENO"; then :
5894 ac_cv_prog_cxx_g=yes
5895 else
5896 CXXFLAGS=""
5897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5898 /* end confdefs.h. */
5901 main ()
5905 return 0;
5907 _ACEOF
5908 if ac_fn_cxx_try_compile "$LINENO"; then :
5910 else
5911 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5912 CXXFLAGS="-g"
5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5914 /* end confdefs.h. */
5917 main ()
5921 return 0;
5923 _ACEOF
5924 if ac_fn_cxx_try_compile "$LINENO"; then :
5925 ac_cv_prog_cxx_g=yes
5927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5932 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5935 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5936 if test "$ac_test_CXXFLAGS" = set; then
5937 CXXFLAGS=$ac_save_CXXFLAGS
5938 elif test $ac_cv_prog_cxx_g = yes; then
5939 if test "$GXX" = yes; then
5940 CXXFLAGS="-g -O2"
5941 else
5942 CXXFLAGS="-g"
5944 else
5945 if test "$GXX" = yes; then
5946 CXXFLAGS="-O2"
5947 else
5948 CXXFLAGS=
5951 ac_ext=c
5952 ac_cpp='$CPP $CPPFLAGS'
5953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5957 depcc="$CXX" am_compiler_list=
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5960 $as_echo_n "checking dependency style of $depcc... " >&6; }
5961 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5962 $as_echo_n "(cached) " >&6
5963 else
5964 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5965 # We make a subdir and do the tests there. Otherwise we can end up
5966 # making bogus files that we don't know about and never remove. For
5967 # instance it was reported that on HP-UX the gcc test will end up
5968 # making a dummy file named 'D' -- because '-MD' means "put the output
5969 # in D".
5970 rm -rf conftest.dir
5971 mkdir conftest.dir
5972 # Copy depcomp to subdir because otherwise we won't find it if we're
5973 # using a relative directory.
5974 cp "$am_depcomp" conftest.dir
5975 cd conftest.dir
5976 # We will build objects and dependencies in a subdirectory because
5977 # it helps to detect inapplicable dependency modes. For instance
5978 # both Tru64's cc and ICC support -MD to output dependencies as a
5979 # side effect of compilation, but ICC will put the dependencies in
5980 # the current directory while Tru64 will put them in the object
5981 # directory.
5982 mkdir sub
5984 am_cv_CXX_dependencies_compiler_type=none
5985 if test "$am_compiler_list" = ""; then
5986 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5988 am__universal=false
5989 case " $depcc " in #(
5990 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5991 esac
5993 for depmode in $am_compiler_list; do
5994 # Setup a source with many dependencies, because some compilers
5995 # like to wrap large dependency lists on column 80 (with \), and
5996 # we should not choose a depcomp mode which is confused by this.
5998 # We need to recreate these files for each test, as the compiler may
5999 # overwrite some of them when testing with obscure command lines.
6000 # This happens at least with the AIX C compiler.
6001 : > sub/conftest.c
6002 for i in 1 2 3 4 5 6; do
6003 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6004 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6005 # Solaris 10 /bin/sh.
6006 echo '/* dummy */' > sub/conftst$i.h
6007 done
6008 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6010 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6011 # mode. It turns out that the SunPro C++ compiler does not properly
6012 # handle '-M -o', and we need to detect this. Also, some Intel
6013 # versions had trouble with output in subdirs.
6014 am__obj=sub/conftest.${OBJEXT-o}
6015 am__minus_obj="-o $am__obj"
6016 case $depmode in
6017 gcc)
6018 # This depmode causes a compiler race in universal mode.
6019 test "$am__universal" = false || continue
6021 nosideeffect)
6022 # After this tag, mechanisms are not by side-effect, so they'll
6023 # only be used when explicitly requested.
6024 if test "x$enable_dependency_tracking" = xyes; then
6025 continue
6026 else
6027 break
6030 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6031 # This compiler won't grok '-c -o', but also, the minuso test has
6032 # not run yet. These depmodes are late enough in the game, and
6033 # so weak that their functioning should not be impacted.
6034 am__obj=conftest.${OBJEXT-o}
6035 am__minus_obj=
6037 none) break ;;
6038 esac
6039 if depmode=$depmode \
6040 source=sub/conftest.c object=$am__obj \
6041 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6042 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6043 >/dev/null 2>conftest.err &&
6044 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6045 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6046 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6047 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6048 # icc doesn't choke on unknown options, it will just issue warnings
6049 # or remarks (even with -Werror). So we grep stderr for any message
6050 # that says an option was ignored or not supported.
6051 # When given -MP, icc 7.0 and 7.1 complain thusly:
6052 # icc: Command line warning: ignoring option '-M'; no argument required
6053 # The diagnosis changed in icc 8.0:
6054 # icc: Command line remark: option '-MP' not supported
6055 if (grep 'ignoring option' conftest.err ||
6056 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6057 am_cv_CXX_dependencies_compiler_type=$depmode
6058 break
6061 done
6063 cd ..
6064 rm -rf conftest.dir
6065 else
6066 am_cv_CXX_dependencies_compiler_type=none
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6071 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6072 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6075 test "x$enable_dependency_tracking" != xno \
6076 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6077 am__fastdepCXX_TRUE=
6078 am__fastdepCXX_FALSE='#'
6079 else
6080 am__fastdepCXX_TRUE='#'
6081 am__fastdepCXX_FALSE=
6085 # By default we simply use the C compiler to build assembly code.
6087 test "${CCAS+set}" = set || CCAS=$CC
6088 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6092 depcc="$CCAS" am_compiler_list=
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6095 $as_echo_n "checking dependency style of $depcc... " >&6; }
6096 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6097 $as_echo_n "(cached) " >&6
6098 else
6099 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6100 # We make a subdir and do the tests there. Otherwise we can end up
6101 # making bogus files that we don't know about and never remove. For
6102 # instance it was reported that on HP-UX the gcc test will end up
6103 # making a dummy file named 'D' -- because '-MD' means "put the output
6104 # in D".
6105 rm -rf conftest.dir
6106 mkdir conftest.dir
6107 # Copy depcomp to subdir because otherwise we won't find it if we're
6108 # using a relative directory.
6109 cp "$am_depcomp" conftest.dir
6110 cd conftest.dir
6111 # We will build objects and dependencies in a subdirectory because
6112 # it helps to detect inapplicable dependency modes. For instance
6113 # both Tru64's cc and ICC support -MD to output dependencies as a
6114 # side effect of compilation, but ICC will put the dependencies in
6115 # the current directory while Tru64 will put them in the object
6116 # directory.
6117 mkdir sub
6119 am_cv_CCAS_dependencies_compiler_type=none
6120 if test "$am_compiler_list" = ""; then
6121 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6123 am__universal=false
6126 for depmode in $am_compiler_list; do
6127 # Setup a source with many dependencies, because some compilers
6128 # like to wrap large dependency lists on column 80 (with \), and
6129 # we should not choose a depcomp mode which is confused by this.
6131 # We need to recreate these files for each test, as the compiler may
6132 # overwrite some of them when testing with obscure command lines.
6133 # This happens at least with the AIX C compiler.
6134 : > sub/conftest.c
6135 for i in 1 2 3 4 5 6; do
6136 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6137 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6138 # Solaris 10 /bin/sh.
6139 echo '/* dummy */' > sub/conftst$i.h
6140 done
6141 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6143 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6144 # mode. It turns out that the SunPro C++ compiler does not properly
6145 # handle '-M -o', and we need to detect this. Also, some Intel
6146 # versions had trouble with output in subdirs.
6147 am__obj=sub/conftest.${OBJEXT-o}
6148 am__minus_obj="-o $am__obj"
6149 case $depmode in
6150 gcc)
6151 # This depmode causes a compiler race in universal mode.
6152 test "$am__universal" = false || continue
6154 nosideeffect)
6155 # After this tag, mechanisms are not by side-effect, so they'll
6156 # only be used when explicitly requested.
6157 if test "x$enable_dependency_tracking" = xyes; then
6158 continue
6159 else
6160 break
6163 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6164 # This compiler won't grok '-c -o', but also, the minuso test has
6165 # not run yet. These depmodes are late enough in the game, and
6166 # so weak that their functioning should not be impacted.
6167 am__obj=conftest.${OBJEXT-o}
6168 am__minus_obj=
6170 none) break ;;
6171 esac
6172 if depmode=$depmode \
6173 source=sub/conftest.c object=$am__obj \
6174 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6175 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6176 >/dev/null 2>conftest.err &&
6177 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6178 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6179 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6180 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6181 # icc doesn't choke on unknown options, it will just issue warnings
6182 # or remarks (even with -Werror). So we grep stderr for any message
6183 # that says an option was ignored or not supported.
6184 # When given -MP, icc 7.0 and 7.1 complain thusly:
6185 # icc: Command line warning: ignoring option '-M'; no argument required
6186 # The diagnosis changed in icc 8.0:
6187 # icc: Command line remark: option '-MP' not supported
6188 if (grep 'ignoring option' conftest.err ||
6189 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6190 am_cv_CCAS_dependencies_compiler_type=$depmode
6191 break
6194 done
6196 cd ..
6197 rm -rf conftest.dir
6198 else
6199 am_cv_CCAS_dependencies_compiler_type=none
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6204 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6205 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6208 test "x$enable_dependency_tracking" != xno \
6209 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6210 am__fastdepCCAS_TRUE=
6211 am__fastdepCCAS_FALSE='#'
6212 else
6213 am__fastdepCCAS_TRUE='#'
6214 am__fastdepCCAS_FALSE=
6222 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
6223 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
6224 # in both places for now and restore CFLAGS at the end of config.
6225 save_CFLAGS="$CFLAGS"
6227 # Find other programs we need.
6228 if test -n "$ac_tool_prefix"; then
6229 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6230 set dummy ${ac_tool_prefix}ar; ac_word=$2
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6232 $as_echo_n "checking for $ac_word... " >&6; }
6233 if ${ac_cv_prog_AR+:} false; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 if test -n "$AR"; then
6237 ac_cv_prog_AR="$AR" # Let the user override the test.
6238 else
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 for as_dir in $PATH
6242 IFS=$as_save_IFS
6243 test -z "$as_dir" && as_dir=.
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6246 ac_cv_prog_AR="${ac_tool_prefix}ar"
6247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6248 break 2
6250 done
6251 done
6252 IFS=$as_save_IFS
6256 AR=$ac_cv_prog_AR
6257 if test -n "$AR"; then
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6259 $as_echo "$AR" >&6; }
6260 else
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262 $as_echo "no" >&6; }
6267 if test -z "$ac_cv_prog_AR"; then
6268 ac_ct_AR=$AR
6269 # Extract the first word of "ar", so it can be a program name with args.
6270 set dummy ar; ac_word=$2
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6272 $as_echo_n "checking for $ac_word... " >&6; }
6273 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6274 $as_echo_n "(cached) " >&6
6275 else
6276 if test -n "$ac_ct_AR"; then
6277 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6278 else
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 for as_dir in $PATH
6282 IFS=$as_save_IFS
6283 test -z "$as_dir" && as_dir=.
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6286 ac_cv_prog_ac_ct_AR="ar"
6287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6288 break 2
6290 done
6291 done
6292 IFS=$as_save_IFS
6296 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6297 if test -n "$ac_ct_AR"; then
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6299 $as_echo "$ac_ct_AR" >&6; }
6300 else
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302 $as_echo "no" >&6; }
6305 if test "x$ac_ct_AR" = x; then
6306 AR=""
6307 else
6308 case $cross_compiling:$ac_tool_warned in
6309 yes:)
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6312 ac_tool_warned=yes ;;
6313 esac
6314 AR=$ac_ct_AR
6316 else
6317 AR="$ac_cv_prog_AR"
6320 if test -n "$ac_tool_prefix"; then
6321 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6322 set dummy ${ac_tool_prefix}nm; ac_word=$2
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6324 $as_echo_n "checking for $ac_word... " >&6; }
6325 if ${ac_cv_prog_NM+:} false; then :
6326 $as_echo_n "(cached) " >&6
6327 else
6328 if test -n "$NM"; then
6329 ac_cv_prog_NM="$NM" # Let the user override the test.
6330 else
6331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6332 for as_dir in $PATH
6334 IFS=$as_save_IFS
6335 test -z "$as_dir" && as_dir=.
6336 for ac_exec_ext in '' $ac_executable_extensions; do
6337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6338 ac_cv_prog_NM="${ac_tool_prefix}nm"
6339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 break 2
6342 done
6343 done
6344 IFS=$as_save_IFS
6348 NM=$ac_cv_prog_NM
6349 if test -n "$NM"; then
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
6351 $as_echo "$NM" >&6; }
6352 else
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6354 $as_echo "no" >&6; }
6359 if test -z "$ac_cv_prog_NM"; then
6360 ac_ct_NM=$NM
6361 # Extract the first word of "nm", so it can be a program name with args.
6362 set dummy nm; ac_word=$2
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 $as_echo_n "checking for $ac_word... " >&6; }
6365 if ${ac_cv_prog_ac_ct_NM+:} false; then :
6366 $as_echo_n "(cached) " >&6
6367 else
6368 if test -n "$ac_ct_NM"; then
6369 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6370 else
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6374 IFS=$as_save_IFS
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6378 ac_cv_prog_ac_ct_NM="nm"
6379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 break 2
6382 done
6383 done
6384 IFS=$as_save_IFS
6388 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6389 if test -n "$ac_ct_NM"; then
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
6391 $as_echo "$ac_ct_NM" >&6; }
6392 else
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6397 if test "x$ac_ct_NM" = x; then
6398 NM=""
6399 else
6400 case $cross_compiling:$ac_tool_warned in
6401 yes:)
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6403 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6404 ac_tool_warned=yes ;;
6405 esac
6406 NM=$ac_ct_NM
6408 else
6409 NM="$ac_cv_prog_NM"
6412 if test -n "$ac_tool_prefix"; then
6413 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6414 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if ${ac_cv_prog_RANLIB+:} false; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 if test -n "$RANLIB"; then
6421 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6430 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 break 2
6434 done
6435 done
6436 IFS=$as_save_IFS
6440 RANLIB=$ac_cv_prog_RANLIB
6441 if test -n "$RANLIB"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6443 $as_echo "$RANLIB" >&6; }
6444 else
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6451 if test -z "$ac_cv_prog_RANLIB"; then
6452 ac_ct_RANLIB=$RANLIB
6453 # Extract the first word of "ranlib", so it can be a program name with args.
6454 set dummy ranlib; ac_word=$2
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 if test -n "$ac_ct_RANLIB"; then
6461 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6462 else
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6466 IFS=$as_save_IFS
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6470 ac_cv_prog_ac_ct_RANLIB="ranlib"
6471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 break 2
6474 done
6475 done
6476 IFS=$as_save_IFS
6480 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6481 if test -n "$ac_ct_RANLIB"; then
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6483 $as_echo "$ac_ct_RANLIB" >&6; }
6484 else
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6489 if test "x$ac_ct_RANLIB" = x; then
6490 RANLIB="ranlib-not-found-in-path-error"
6491 else
6492 case $cross_compiling:$ac_tool_warned in
6493 yes:)
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6495 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6496 ac_tool_warned=yes ;;
6497 esac
6498 RANLIB=$ac_ct_RANLIB
6500 else
6501 RANLIB="$ac_cv_prog_RANLIB"
6504 # Extract the first word of "perl", so it can be a program name with args.
6505 set dummy perl; ac_word=$2
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6507 $as_echo_n "checking for $ac_word... " >&6; }
6508 if ${ac_cv_path_PERL+:} false; then :
6509 $as_echo_n "(cached) " >&6
6510 else
6511 case $PERL in
6512 [\\/]* | ?:[\\/]*)
6513 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
6516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 for as_dir in $PATH
6519 IFS=$as_save_IFS
6520 test -z "$as_dir" && as_dir=.
6521 for ac_exec_ext in '' $ac_executable_extensions; do
6522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6523 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
6524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6525 break 2
6527 done
6528 done
6529 IFS=$as_save_IFS
6531 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
6533 esac
6535 PERL=$ac_cv_path_PERL
6536 if test -n "$PERL"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
6538 $as_echo "$PERL" >&6; }
6539 else
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; }
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6546 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6547 set x ${MAKE-make}
6548 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6549 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6550 $as_echo_n "(cached) " >&6
6551 else
6552 cat >conftest.make <<\_ACEOF
6553 SHELL = /bin/sh
6554 all:
6555 @echo '@@@%%%=$(MAKE)=@@@%%%'
6556 _ACEOF
6557 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6558 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6559 *@@@%%%=?*=@@@%%%*)
6560 eval ac_cv_prog_make_${ac_make}_set=yes;;
6562 eval ac_cv_prog_make_${ac_make}_set=no;;
6563 esac
6564 rm -f conftest.make
6566 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6568 $as_echo "yes" >&6; }
6569 SET_MAKE=
6570 else
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572 $as_echo "no" >&6; }
6573 SET_MAKE="MAKE=${MAKE-make}"
6578 enable_dlopen=yes
6582 case `pwd` in
6583 *\ * | *\ *)
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6585 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6586 esac
6590 macro_version='2.2.7a'
6591 macro_revision='1.3134'
6605 ltmain="$ac_aux_dir/ltmain.sh"
6607 # Backslashify metacharacters that are still active within
6608 # double-quoted strings.
6609 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6611 # Same as above, but do not quote variable references.
6612 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6614 # Sed substitution to delay expansion of an escaped shell variable in a
6615 # double_quote_subst'ed string.
6616 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6618 # Sed substitution to delay expansion of an escaped single quote.
6619 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6621 # Sed substitution to avoid accidental globbing in evaled expressions
6622 no_glob_subst='s/\*/\\\*/g'
6624 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6625 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6626 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6629 $as_echo_n "checking how to print strings... " >&6; }
6630 # Test print first, because it will be a builtin if present.
6631 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6632 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6633 ECHO='print -r --'
6634 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6635 ECHO='printf %s\n'
6636 else
6637 # Use this function as a fallback that always works.
6638 func_fallback_echo ()
6640 eval 'cat <<_LTECHO_EOF
6642 _LTECHO_EOF'
6644 ECHO='func_fallback_echo'
6647 # func_echo_all arg...
6648 # Invoke $ECHO with all args, space-separated.
6649 func_echo_all ()
6651 $ECHO ""
6654 case "$ECHO" in
6655 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6656 $as_echo "printf" >&6; } ;;
6657 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6658 $as_echo "print -r" >&6; } ;;
6659 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6660 $as_echo "cat" >&6; } ;;
6661 esac
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6677 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6678 if ${ac_cv_path_SED+:} false; then :
6679 $as_echo_n "(cached) " >&6
6680 else
6681 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6682 for ac_i in 1 2 3 4 5 6 7; do
6683 ac_script="$ac_script$as_nl$ac_script"
6684 done
6685 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6686 { ac_script=; unset ac_script;}
6687 if test -z "$SED"; then
6688 ac_path_SED_found=false
6689 # Loop through the user's path and test for each of PROGNAME-LIST
6690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6691 for as_dir in $PATH
6693 IFS=$as_save_IFS
6694 test -z "$as_dir" && as_dir=.
6695 for ac_prog in sed gsed; do
6696 for ac_exec_ext in '' $ac_executable_extensions; do
6697 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6698 as_fn_executable_p "$ac_path_SED" || continue
6699 # Check for GNU ac_path_SED and select it if it is found.
6700 # Check for GNU $ac_path_SED
6701 case `"$ac_path_SED" --version 2>&1` in
6702 *GNU*)
6703 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6705 ac_count=0
6706 $as_echo_n 0123456789 >"conftest.in"
6707 while :
6709 cat "conftest.in" "conftest.in" >"conftest.tmp"
6710 mv "conftest.tmp" "conftest.in"
6711 cp "conftest.in" "conftest.nl"
6712 $as_echo '' >> "conftest.nl"
6713 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6714 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6715 as_fn_arith $ac_count + 1 && ac_count=$as_val
6716 if test $ac_count -gt ${ac_path_SED_max-0}; then
6717 # Best one so far, save it but keep looking for a better one
6718 ac_cv_path_SED="$ac_path_SED"
6719 ac_path_SED_max=$ac_count
6721 # 10*(2^10) chars as input seems more than enough
6722 test $ac_count -gt 10 && break
6723 done
6724 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6725 esac
6727 $ac_path_SED_found && break 3
6728 done
6729 done
6730 done
6731 IFS=$as_save_IFS
6732 if test -z "$ac_cv_path_SED"; then
6733 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6735 else
6736 ac_cv_path_SED=$SED
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6741 $as_echo "$ac_cv_path_SED" >&6; }
6742 SED="$ac_cv_path_SED"
6743 rm -f conftest.sed
6745 test -z "$SED" && SED=sed
6746 Xsed="$SED -e 1s/^X//"
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6759 $as_echo_n "checking for fgrep... " >&6; }
6760 if ${ac_cv_path_FGREP+:} false; then :
6761 $as_echo_n "(cached) " >&6
6762 else
6763 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6764 then ac_cv_path_FGREP="$GREP -F"
6765 else
6766 if test -z "$FGREP"; then
6767 ac_path_FGREP_found=false
6768 # Loop through the user's path and test for each of PROGNAME-LIST
6769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6772 IFS=$as_save_IFS
6773 test -z "$as_dir" && as_dir=.
6774 for ac_prog in fgrep; do
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6777 as_fn_executable_p "$ac_path_FGREP" || continue
6778 # Check for GNU ac_path_FGREP and select it if it is found.
6779 # Check for GNU $ac_path_FGREP
6780 case `"$ac_path_FGREP" --version 2>&1` in
6781 *GNU*)
6782 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6784 ac_count=0
6785 $as_echo_n 0123456789 >"conftest.in"
6786 while :
6788 cat "conftest.in" "conftest.in" >"conftest.tmp"
6789 mv "conftest.tmp" "conftest.in"
6790 cp "conftest.in" "conftest.nl"
6791 $as_echo 'FGREP' >> "conftest.nl"
6792 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6793 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6794 as_fn_arith $ac_count + 1 && ac_count=$as_val
6795 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6796 # Best one so far, save it but keep looking for a better one
6797 ac_cv_path_FGREP="$ac_path_FGREP"
6798 ac_path_FGREP_max=$ac_count
6800 # 10*(2^10) chars as input seems more than enough
6801 test $ac_count -gt 10 && break
6802 done
6803 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6804 esac
6806 $ac_path_FGREP_found && break 3
6807 done
6808 done
6809 done
6810 IFS=$as_save_IFS
6811 if test -z "$ac_cv_path_FGREP"; then
6812 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6814 else
6815 ac_cv_path_FGREP=$FGREP
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6821 $as_echo "$ac_cv_path_FGREP" >&6; }
6822 FGREP="$ac_cv_path_FGREP"
6825 test -z "$GREP" && GREP=grep
6845 # Check whether --with-gnu-ld was given.
6846 if test "${with_gnu_ld+set}" = set; then :
6847 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6848 else
6849 with_gnu_ld=no
6852 ac_prog=ld
6853 if test "$GCC" = yes; then
6854 # Check if gcc -print-prog-name=ld gives a path.
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6856 $as_echo_n "checking for ld used by $CC... " >&6; }
6857 case $host in
6858 *-*-mingw*)
6859 # gcc leaves a trailing carriage return which upsets mingw
6860 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6862 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6863 esac
6864 case $ac_prog in
6865 # Accept absolute paths.
6866 [\\/]* | ?:[\\/]*)
6867 re_direlt='/[^/][^/]*/\.\./'
6868 # Canonicalize the pathname of ld
6869 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6870 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6871 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6872 done
6873 test -z "$LD" && LD="$ac_prog"
6876 # If it fails, then pretend we aren't using GCC.
6877 ac_prog=ld
6880 # If it is relative, then search for the first ld in PATH.
6881 with_gnu_ld=unknown
6883 esac
6884 elif test "$with_gnu_ld" = yes; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6886 $as_echo_n "checking for GNU ld... " >&6; }
6887 else
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6889 $as_echo_n "checking for non-GNU ld... " >&6; }
6891 if ${lt_cv_path_LD+:} false; then :
6892 $as_echo_n "(cached) " >&6
6893 else
6894 if test -z "$LD"; then
6895 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6896 for ac_dir in $PATH; do
6897 IFS="$lt_save_ifs"
6898 test -z "$ac_dir" && ac_dir=.
6899 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6900 lt_cv_path_LD="$ac_dir/$ac_prog"
6901 # Check to see if the program is GNU ld. I'd rather use --version,
6902 # but apparently some variants of GNU ld only accept -v.
6903 # Break only if it was the GNU/non-GNU ld that we prefer.
6904 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6905 *GNU* | *'with BFD'*)
6906 test "$with_gnu_ld" != no && break
6909 test "$with_gnu_ld" != yes && break
6911 esac
6913 done
6914 IFS="$lt_save_ifs"
6915 else
6916 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6920 LD="$lt_cv_path_LD"
6921 if test -n "$LD"; then
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6923 $as_echo "$LD" >&6; }
6924 else
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6928 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6930 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6931 if ${lt_cv_prog_gnu_ld+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6935 case `$LD -v 2>&1 </dev/null` in
6936 *GNU* | *'with BFD'*)
6937 lt_cv_prog_gnu_ld=yes
6940 lt_cv_prog_gnu_ld=no
6942 esac
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6945 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6946 with_gnu_ld=$lt_cv_prog_gnu_ld
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6957 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6958 if ${lt_cv_path_NM+:} false; then :
6959 $as_echo_n "(cached) " >&6
6960 else
6961 if test -n "$NM"; then
6962 # Let the user override the test.
6963 lt_cv_path_NM="$NM"
6964 else
6965 lt_nm_to_check="${ac_tool_prefix}nm"
6966 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6967 lt_nm_to_check="$lt_nm_to_check nm"
6969 for lt_tmp_nm in $lt_nm_to_check; do
6970 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6971 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6972 IFS="$lt_save_ifs"
6973 test -z "$ac_dir" && ac_dir=.
6974 tmp_nm="$ac_dir/$lt_tmp_nm"
6975 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6976 # Check to see if the nm accepts a BSD-compat flag.
6977 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6978 # nm: unknown option "B" ignored
6979 # Tru64's nm complains that /dev/null is an invalid object file
6980 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6981 */dev/null* | *'Invalid file or object type'*)
6982 lt_cv_path_NM="$tmp_nm -B"
6983 break
6986 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6987 */dev/null*)
6988 lt_cv_path_NM="$tmp_nm -p"
6989 break
6992 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6993 continue # so that we can try to find one that supports BSD flags
6995 esac
6997 esac
6999 done
7000 IFS="$lt_save_ifs"
7001 done
7002 : ${lt_cv_path_NM=no}
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7006 $as_echo "$lt_cv_path_NM" >&6; }
7007 if test "$lt_cv_path_NM" != "no"; then
7008 NM="$lt_cv_path_NM"
7009 else
7010 # Didn't find any BSD compatible name lister, look for dumpbin.
7011 if test -n "$DUMPBIN"; then :
7012 # Let the user override the test.
7013 else
7014 if test -n "$ac_tool_prefix"; then
7015 for ac_prog in dumpbin "link -dump"
7017 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7018 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_prog_DUMPBIN+:} false; then :
7022 $as_echo_n "(cached) " >&6
7023 else
7024 if test -n "$DUMPBIN"; then
7025 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7026 else
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7030 IFS=$as_save_IFS
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 break 2
7038 done
7039 done
7040 IFS=$as_save_IFS
7044 DUMPBIN=$ac_cv_prog_DUMPBIN
7045 if test -n "$DUMPBIN"; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7047 $as_echo "$DUMPBIN" >&6; }
7048 else
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7054 test -n "$DUMPBIN" && break
7055 done
7057 if test -z "$DUMPBIN"; then
7058 ac_ct_DUMPBIN=$DUMPBIN
7059 for ac_prog in dumpbin "link -dump"
7061 # Extract the first word of "$ac_prog", so it can be a program name with args.
7062 set dummy $ac_prog; ac_word=$2
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064 $as_echo_n "checking for $ac_word... " >&6; }
7065 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7066 $as_echo_n "(cached) " >&6
7067 else
7068 if test -n "$ac_ct_DUMPBIN"; then
7069 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7070 else
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7078 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 break 2
7082 done
7083 done
7084 IFS=$as_save_IFS
7088 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7089 if test -n "$ac_ct_DUMPBIN"; then
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7091 $as_echo "$ac_ct_DUMPBIN" >&6; }
7092 else
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094 $as_echo "no" >&6; }
7098 test -n "$ac_ct_DUMPBIN" && break
7099 done
7101 if test "x$ac_ct_DUMPBIN" = x; then
7102 DUMPBIN=":"
7103 else
7104 case $cross_compiling:$ac_tool_warned in
7105 yes:)
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7108 ac_tool_warned=yes ;;
7109 esac
7110 DUMPBIN=$ac_ct_DUMPBIN
7114 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7115 *COFF*)
7116 DUMPBIN="$DUMPBIN -symbols"
7119 DUMPBIN=:
7121 esac
7124 if test "$DUMPBIN" != ":"; then
7125 NM="$DUMPBIN"
7128 test -z "$NM" && NM=nm
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7136 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7137 if ${lt_cv_nm_interface+:} false; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7140 lt_cv_nm_interface="BSD nm"
7141 echo "int some_variable = 0;" > conftest.$ac_ext
7142 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7143 (eval "$ac_compile" 2>conftest.err)
7144 cat conftest.err >&5
7145 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7146 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7147 cat conftest.err >&5
7148 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7149 cat conftest.out >&5
7150 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7151 lt_cv_nm_interface="MS dumpbin"
7153 rm -f conftest*
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7156 $as_echo "$lt_cv_nm_interface" >&6; }
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7159 $as_echo_n "checking whether ln -s works... " >&6; }
7160 LN_S=$as_ln_s
7161 if test "$LN_S" = "ln -s"; then
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7163 $as_echo "yes" >&6; }
7164 else
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7166 $as_echo "no, using $LN_S" >&6; }
7169 # find the maximum length of command line arguments
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7171 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7172 if ${lt_cv_sys_max_cmd_len+:} false; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7176 teststring="ABCD"
7178 case $build_os in
7179 msdosdjgpp*)
7180 # On DJGPP, this test can blow up pretty badly due to problems in libc
7181 # (any single argument exceeding 2000 bytes causes a buffer overrun
7182 # during glob expansion). Even if it were fixed, the result of this
7183 # check would be larger than it should be.
7184 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7187 gnu*)
7188 # Under GNU Hurd, this test is not required because there is
7189 # no limit to the length of command line arguments.
7190 # Libtool will interpret -1 as no limit whatsoever
7191 lt_cv_sys_max_cmd_len=-1;
7194 cygwin* | mingw* | cegcc*)
7195 # On Win9x/ME, this test blows up -- it succeeds, but takes
7196 # about 5 minutes as the teststring grows exponentially.
7197 # Worse, since 9x/ME are not pre-emptively multitasking,
7198 # you end up with a "frozen" computer, even though with patience
7199 # the test eventually succeeds (with a max line length of 256k).
7200 # Instead, let's just punt: use the minimum linelength reported by
7201 # all of the supported platforms: 8192 (on NT/2K/XP).
7202 lt_cv_sys_max_cmd_len=8192;
7205 mint*)
7206 # On MiNT this can take a long time and run out of memory.
7207 lt_cv_sys_max_cmd_len=8192;
7210 amigaos*)
7211 # On AmigaOS with pdksh, this test takes hours, literally.
7212 # So we just punt and use a minimum line length of 8192.
7213 lt_cv_sys_max_cmd_len=8192;
7216 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7217 # This has been around since 386BSD, at least. Likely further.
7218 if test -x /sbin/sysctl; then
7219 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7220 elif test -x /usr/sbin/sysctl; then
7221 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7222 else
7223 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7225 # And add a safety zone
7226 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7227 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7230 interix*)
7231 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7232 lt_cv_sys_max_cmd_len=196608
7235 osf*)
7236 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7237 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7238 # nice to cause kernel panics so lets avoid the loop below.
7239 # First set a reasonable default.
7240 lt_cv_sys_max_cmd_len=16384
7242 if test -x /sbin/sysconfig; then
7243 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7244 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7245 esac
7248 sco3.2v5*)
7249 lt_cv_sys_max_cmd_len=102400
7251 sysv5* | sco5v6* | sysv4.2uw2*)
7252 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7253 if test -n "$kargmax"; then
7254 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7255 else
7256 lt_cv_sys_max_cmd_len=32768
7260 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7261 if test -n "$lt_cv_sys_max_cmd_len"; then
7262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7264 else
7265 # Make teststring a little bigger before we do anything with it.
7266 # a 1K string should be a reasonable start.
7267 for i in 1 2 3 4 5 6 7 8 ; do
7268 teststring=$teststring$teststring
7269 done
7270 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7271 # If test is not a shell built-in, we'll probably end up computing a
7272 # maximum length that is only half of the actual maximum length, but
7273 # we can't tell.
7274 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7275 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7276 test $i != 17 # 1/2 MB should be enough
7278 i=`expr $i + 1`
7279 teststring=$teststring$teststring
7280 done
7281 # Only check the string length outside the loop.
7282 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7283 teststring=
7284 # Add a significant safety factor because C++ compilers can tack on
7285 # massive amounts of additional arguments before passing them to the
7286 # linker. It appears as though 1/2 is a usable value.
7287 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7290 esac
7294 if test -n $lt_cv_sys_max_cmd_len ; then
7295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7296 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7297 else
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7299 $as_echo "none" >&6; }
7301 max_cmd_len=$lt_cv_sys_max_cmd_len
7308 : ${CP="cp -f"}
7309 : ${MV="mv -f"}
7310 : ${RM="rm -f"}
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7313 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7314 # Try some XSI features
7315 xsi_shell=no
7316 ( _lt_dummy="a/b/c"
7317 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7318 = c,a/b,, \
7319 && eval 'test $(( 1 + 1 )) -eq 2 \
7320 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7321 && xsi_shell=yes
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7323 $as_echo "$xsi_shell" >&6; }
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7327 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7328 lt_shell_append=no
7329 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7330 >/dev/null 2>&1 \
7331 && lt_shell_append=yes
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7333 $as_echo "$lt_shell_append" >&6; }
7336 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7337 lt_unset=unset
7338 else
7339 lt_unset=false
7346 # test EBCDIC or ASCII
7347 case `echo X|tr X '\101'` in
7348 A) # ASCII based system
7349 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7350 lt_SP2NL='tr \040 \012'
7351 lt_NL2SP='tr \015\012 \040\040'
7353 *) # EBCDIC based system
7354 lt_SP2NL='tr \100 \n'
7355 lt_NL2SP='tr \r\n \100\100'
7357 esac
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7368 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7369 if ${lt_cv_ld_reload_flag+:} false; then :
7370 $as_echo_n "(cached) " >&6
7371 else
7372 lt_cv_ld_reload_flag='-r'
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7375 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7376 reload_flag=$lt_cv_ld_reload_flag
7377 case $reload_flag in
7378 "" | " "*) ;;
7379 *) reload_flag=" $reload_flag" ;;
7380 esac
7381 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7382 case $host_os in
7383 darwin*)
7384 if test "$GCC" = yes; then
7385 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7386 else
7387 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7390 esac
7400 if test -n "$ac_tool_prefix"; then
7401 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7402 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7404 $as_echo_n "checking for $ac_word... " >&6; }
7405 if ${ac_cv_prog_OBJDUMP+:} false; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 if test -n "$OBJDUMP"; then
7409 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7410 else
7411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7412 for as_dir in $PATH
7414 IFS=$as_save_IFS
7415 test -z "$as_dir" && as_dir=.
7416 for ac_exec_ext in '' $ac_executable_extensions; do
7417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7418 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7420 break 2
7422 done
7423 done
7424 IFS=$as_save_IFS
7428 OBJDUMP=$ac_cv_prog_OBJDUMP
7429 if test -n "$OBJDUMP"; then
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7431 $as_echo "$OBJDUMP" >&6; }
7432 else
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }
7439 if test -z "$ac_cv_prog_OBJDUMP"; then
7440 ac_ct_OBJDUMP=$OBJDUMP
7441 # Extract the first word of "objdump", so it can be a program name with args.
7442 set dummy objdump; ac_word=$2
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7444 $as_echo_n "checking for $ac_word... " >&6; }
7445 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7446 $as_echo_n "(cached) " >&6
7447 else
7448 if test -n "$ac_ct_OBJDUMP"; then
7449 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7450 else
7451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7452 for as_dir in $PATH
7454 IFS=$as_save_IFS
7455 test -z "$as_dir" && as_dir=.
7456 for ac_exec_ext in '' $ac_executable_extensions; do
7457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7458 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7460 break 2
7462 done
7463 done
7464 IFS=$as_save_IFS
7468 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7469 if test -n "$ac_ct_OBJDUMP"; then
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7471 $as_echo "$ac_ct_OBJDUMP" >&6; }
7472 else
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7474 $as_echo "no" >&6; }
7477 if test "x$ac_ct_OBJDUMP" = x; then
7478 OBJDUMP="false"
7479 else
7480 case $cross_compiling:$ac_tool_warned in
7481 yes:)
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7484 ac_tool_warned=yes ;;
7485 esac
7486 OBJDUMP=$ac_ct_OBJDUMP
7488 else
7489 OBJDUMP="$ac_cv_prog_OBJDUMP"
7492 test -z "$OBJDUMP" && OBJDUMP=objdump
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7503 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7504 if ${lt_cv_deplibs_check_method+:} false; then :
7505 $as_echo_n "(cached) " >&6
7506 else
7507 lt_cv_file_magic_cmd='$MAGIC_CMD'
7508 lt_cv_file_magic_test_file=
7509 lt_cv_deplibs_check_method='unknown'
7510 # Need to set the preceding variable on all platforms that support
7511 # interlibrary dependencies.
7512 # 'none' -- dependencies not supported.
7513 # `unknown' -- same as none, but documents that we really don't know.
7514 # 'pass_all' -- all dependencies passed with no checks.
7515 # 'test_compile' -- check by making test program.
7516 # 'file_magic [[regex]]' -- check by looking for files in library path
7517 # which responds to the $file_magic_cmd with a given extended regex.
7518 # If you have `file' or equivalent on your system and you're not sure
7519 # whether `pass_all' will *always* work, you probably want this one.
7521 case $host_os in
7522 aix[4-9]*)
7523 lt_cv_deplibs_check_method=pass_all
7526 beos*)
7527 lt_cv_deplibs_check_method=pass_all
7530 bsdi[45]*)
7531 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7532 lt_cv_file_magic_cmd='/usr/bin/file -L'
7533 lt_cv_file_magic_test_file=/shlib/libc.so
7536 cygwin*)
7537 # func_win32_libid is a shell function defined in ltmain.sh
7538 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7539 lt_cv_file_magic_cmd='func_win32_libid'
7542 mingw* | pw32*)
7543 # Base MSYS/MinGW do not provide the 'file' command needed by
7544 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7545 # unless we find 'file', for example because we are cross-compiling.
7546 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7547 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7548 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7549 lt_cv_file_magic_cmd='func_win32_libid'
7550 else
7551 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7552 lt_cv_file_magic_cmd='$OBJDUMP -f'
7556 cegcc*)
7557 # use the weaker test based on 'objdump'. See mingw*.
7558 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7559 lt_cv_file_magic_cmd='$OBJDUMP -f'
7562 darwin* | rhapsody*)
7563 lt_cv_deplibs_check_method=pass_all
7566 freebsd* | dragonfly*)
7567 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7568 case $host_cpu in
7569 i*86 )
7570 # Not sure whether the presence of OpenBSD here was a mistake.
7571 # Let's accept both of them until this is cleared up.
7572 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7573 lt_cv_file_magic_cmd=/usr/bin/file
7574 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7576 esac
7577 else
7578 lt_cv_deplibs_check_method=pass_all
7582 gnu*)
7583 lt_cv_deplibs_check_method=pass_all
7586 haiku*)
7587 lt_cv_deplibs_check_method=pass_all
7590 hpux10.20* | hpux11*)
7591 lt_cv_file_magic_cmd=/usr/bin/file
7592 case $host_cpu in
7593 ia64*)
7594 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7595 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7597 hppa*64*)
7598 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]'
7599 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7602 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7603 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7605 esac
7608 interix[3-9]*)
7609 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7610 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7613 irix5* | irix6* | nonstopux*)
7614 case $LD in
7615 *-32|*"-32 ") libmagic=32-bit;;
7616 *-n32|*"-n32 ") libmagic=N32;;
7617 *-64|*"-64 ") libmagic=64-bit;;
7618 *) libmagic=never-match;;
7619 esac
7620 lt_cv_deplibs_check_method=pass_all
7623 # This must be Linux ELF.
7624 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7625 lt_cv_deplibs_check_method=pass_all
7628 netbsd*)
7629 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7630 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7631 else
7632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7636 newos6*)
7637 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7638 lt_cv_file_magic_cmd=/usr/bin/file
7639 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7642 *nto* | *qnx*)
7643 lt_cv_deplibs_check_method=pass_all
7646 openbsd*)
7647 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7648 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7649 else
7650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7654 osf3* | osf4* | osf5*)
7655 lt_cv_deplibs_check_method=pass_all
7658 rdos*)
7659 lt_cv_deplibs_check_method=pass_all
7662 solaris*)
7663 lt_cv_deplibs_check_method=pass_all
7666 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7667 lt_cv_deplibs_check_method=pass_all
7670 sysv4 | sysv4.3*)
7671 case $host_vendor in
7672 motorola)
7673 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]'
7674 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7676 ncr)
7677 lt_cv_deplibs_check_method=pass_all
7679 sequent)
7680 lt_cv_file_magic_cmd='/bin/file'
7681 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7683 sni)
7684 lt_cv_file_magic_cmd='/bin/file'
7685 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7686 lt_cv_file_magic_test_file=/lib/libc.so
7688 siemens)
7689 lt_cv_deplibs_check_method=pass_all
7692 lt_cv_deplibs_check_method=pass_all
7694 esac
7697 tpf*)
7698 lt_cv_deplibs_check_method=pass_all
7700 vxworks*)
7701 # Assume VxWorks cross toolchains are built on Linux, possibly
7702 # as canadian for Windows hosts.
7703 lt_cv_deplibs_check_method=pass_all
7705 esac
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7709 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7710 file_magic_cmd=$lt_cv_file_magic_cmd
7711 deplibs_check_method=$lt_cv_deplibs_check_method
7712 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7725 if test -n "$ac_tool_prefix"; then
7726 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7727 set dummy ${ac_tool_prefix}ar; ac_word=$2
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7729 $as_echo_n "checking for $ac_word... " >&6; }
7730 if ${ac_cv_prog_AR+:} false; then :
7731 $as_echo_n "(cached) " >&6
7732 else
7733 if test -n "$AR"; then
7734 ac_cv_prog_AR="$AR" # Let the user override the test.
7735 else
7736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7737 for as_dir in $PATH
7739 IFS=$as_save_IFS
7740 test -z "$as_dir" && as_dir=.
7741 for ac_exec_ext in '' $ac_executable_extensions; do
7742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7743 ac_cv_prog_AR="${ac_tool_prefix}ar"
7744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7745 break 2
7747 done
7748 done
7749 IFS=$as_save_IFS
7753 AR=$ac_cv_prog_AR
7754 if test -n "$AR"; then
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7756 $as_echo "$AR" >&6; }
7757 else
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7764 if test -z "$ac_cv_prog_AR"; then
7765 ac_ct_AR=$AR
7766 # Extract the first word of "ar", so it can be a program name with args.
7767 set dummy ar; ac_word=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7771 $as_echo_n "(cached) " >&6
7772 else
7773 if test -n "$ac_ct_AR"; then
7774 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7775 else
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 for as_dir in $PATH
7779 IFS=$as_save_IFS
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783 ac_cv_prog_ac_ct_AR="ar"
7784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7785 break 2
7787 done
7788 done
7789 IFS=$as_save_IFS
7793 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7794 if test -n "$ac_ct_AR"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7796 $as_echo "$ac_ct_AR" >&6; }
7797 else
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7802 if test "x$ac_ct_AR" = x; then
7803 AR="false"
7804 else
7805 case $cross_compiling:$ac_tool_warned in
7806 yes:)
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7809 ac_tool_warned=yes ;;
7810 esac
7811 AR=$ac_ct_AR
7813 else
7814 AR="$ac_cv_prog_AR"
7817 test -z "$AR" && AR=ar
7818 test -z "$AR_FLAGS" && AR_FLAGS=cru
7830 if test -n "$ac_tool_prefix"; then
7831 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7832 set dummy ${ac_tool_prefix}strip; ac_word=$2
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 $as_echo_n "checking for $ac_word... " >&6; }
7835 if ${ac_cv_prog_STRIP+:} false; then :
7836 $as_echo_n "(cached) " >&6
7837 else
7838 if test -n "$STRIP"; then
7839 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7840 else
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7842 for as_dir in $PATH
7844 IFS=$as_save_IFS
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7848 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 break 2
7852 done
7853 done
7854 IFS=$as_save_IFS
7858 STRIP=$ac_cv_prog_STRIP
7859 if test -n "$STRIP"; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7861 $as_echo "$STRIP" >&6; }
7862 else
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7869 if test -z "$ac_cv_prog_STRIP"; then
7870 ac_ct_STRIP=$STRIP
7871 # Extract the first word of "strip", so it can be a program name with args.
7872 set dummy strip; ac_word=$2
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7874 $as_echo_n "checking for $ac_word... " >&6; }
7875 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7876 $as_echo_n "(cached) " >&6
7877 else
7878 if test -n "$ac_ct_STRIP"; then
7879 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7880 else
7881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7882 for as_dir in $PATH
7884 IFS=$as_save_IFS
7885 test -z "$as_dir" && as_dir=.
7886 for ac_exec_ext in '' $ac_executable_extensions; do
7887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7888 ac_cv_prog_ac_ct_STRIP="strip"
7889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7890 break 2
7892 done
7893 done
7894 IFS=$as_save_IFS
7898 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7899 if test -n "$ac_ct_STRIP"; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7901 $as_echo "$ac_ct_STRIP" >&6; }
7902 else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904 $as_echo "no" >&6; }
7907 if test "x$ac_ct_STRIP" = x; then
7908 STRIP=":"
7909 else
7910 case $cross_compiling:$ac_tool_warned in
7911 yes:)
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7914 ac_tool_warned=yes ;;
7915 esac
7916 STRIP=$ac_ct_STRIP
7918 else
7919 STRIP="$ac_cv_prog_STRIP"
7922 test -z "$STRIP" && STRIP=:
7929 if test -n "$ac_tool_prefix"; then
7930 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7931 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 $as_echo_n "checking for $ac_word... " >&6; }
7934 if ${ac_cv_prog_RANLIB+:} false; then :
7935 $as_echo_n "(cached) " >&6
7936 else
7937 if test -n "$RANLIB"; then
7938 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7939 else
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 for as_dir in $PATH
7943 IFS=$as_save_IFS
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7947 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 break 2
7951 done
7952 done
7953 IFS=$as_save_IFS
7957 RANLIB=$ac_cv_prog_RANLIB
7958 if test -n "$RANLIB"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7960 $as_echo "$RANLIB" >&6; }
7961 else
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963 $as_echo "no" >&6; }
7968 if test -z "$ac_cv_prog_RANLIB"; then
7969 ac_ct_RANLIB=$RANLIB
7970 # Extract the first word of "ranlib", so it can be a program name with args.
7971 set dummy ranlib; ac_word=$2
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7973 $as_echo_n "checking for $ac_word... " >&6; }
7974 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7975 $as_echo_n "(cached) " >&6
7976 else
7977 if test -n "$ac_ct_RANLIB"; then
7978 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7979 else
7980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7983 IFS=$as_save_IFS
7984 test -z "$as_dir" && as_dir=.
7985 for ac_exec_ext in '' $ac_executable_extensions; do
7986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7987 ac_cv_prog_ac_ct_RANLIB="ranlib"
7988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 break 2
7991 done
7992 done
7993 IFS=$as_save_IFS
7997 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7998 if test -n "$ac_ct_RANLIB"; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8000 $as_echo "$ac_ct_RANLIB" >&6; }
8001 else
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8006 if test "x$ac_ct_RANLIB" = x; then
8007 RANLIB=":"
8008 else
8009 case $cross_compiling:$ac_tool_warned in
8010 yes:)
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8013 ac_tool_warned=yes ;;
8014 esac
8015 RANLIB=$ac_ct_RANLIB
8017 else
8018 RANLIB="$ac_cv_prog_RANLIB"
8021 test -z "$RANLIB" && RANLIB=:
8028 # Determine commands to create old-style static archives.
8029 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8030 old_postinstall_cmds='chmod 644 $oldlib'
8031 old_postuninstall_cmds=
8033 if test -n "$RANLIB"; then
8034 case $host_os in
8035 openbsd*)
8036 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8039 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8041 esac
8042 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8045 case $host_os in
8046 darwin*)
8047 lock_old_archive_extraction=yes ;;
8049 lock_old_archive_extraction=no ;;
8050 esac
8090 # If no C compiler was specified, use CC.
8091 LTCC=${LTCC-"$CC"}
8093 # If no C compiler flags were specified, use CFLAGS.
8094 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8096 # Allow CC to be a program name with arguments.
8097 compiler=$CC
8100 # Check for command to grab the raw symbol name followed by C symbol from nm.
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8102 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8103 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8104 $as_echo_n "(cached) " >&6
8105 else
8107 # These are sane defaults that work on at least a few old systems.
8108 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8110 # Character class describing NM global symbol codes.
8111 symcode='[BCDEGRST]'
8113 # Regexp to match symbols that can be accessed directly from C.
8114 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8116 # Define system-specific variables.
8117 case $host_os in
8118 aix*)
8119 symcode='[BCDT]'
8121 cygwin* | mingw* | pw32* | cegcc*)
8122 symcode='[ABCDGISTW]'
8124 hpux*)
8125 if test "$host_cpu" = ia64; then
8126 symcode='[ABCDEGRST]'
8129 irix* | nonstopux*)
8130 symcode='[BCDEGRST]'
8132 osf*)
8133 symcode='[BCDEGQRST]'
8135 solaris*)
8136 symcode='[BDRT]'
8138 sco3.2v5*)
8139 symcode='[DT]'
8141 sysv4.2uw2*)
8142 symcode='[DT]'
8144 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8145 symcode='[ABDT]'
8147 sysv4)
8148 symcode='[DFNSTU]'
8150 esac
8152 # If we're using GNU nm, then use its standard symbol codes.
8153 case `$NM -V 2>&1` in
8154 *GNU* | *'with BFD'*)
8155 symcode='[ABCDGIRSTW]' ;;
8156 esac
8158 # Transform an extracted symbol line into a proper C declaration.
8159 # Some systems (esp. on ia64) link data and code symbols differently,
8160 # so use this general approach.
8161 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8163 # Transform an extracted symbol line into symbol name and symbol address
8164 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8165 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'"
8167 # Handle CRLF in mingw tool chain
8168 opt_cr=
8169 case $build_os in
8170 mingw*)
8171 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8173 esac
8175 # Try without a prefix underscore, then with it.
8176 for ac_symprfx in "" "_"; do
8178 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8179 symxfrm="\\1 $ac_symprfx\\2 \\2"
8181 # Write the raw and C identifiers.
8182 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8183 # Fake it for dumpbin and say T for any non-static function
8184 # and D for any global variable.
8185 # Also find C++ and __fastcall symbols from MSVC++,
8186 # which start with @ or ?.
8187 lt_cv_sys_global_symbol_pipe="$AWK '"\
8188 " {last_section=section; section=\$ 3};"\
8189 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8190 " \$ 0!~/External *\|/{next};"\
8191 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8192 " {if(hide[section]) next};"\
8193 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8194 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8195 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8196 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8197 " ' prfx=^$ac_symprfx"
8198 else
8199 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8202 # Check to see that the pipe works correctly.
8203 pipe_works=no
8205 rm -f conftest*
8206 cat > conftest.$ac_ext <<_LT_EOF
8207 #ifdef __cplusplus
8208 extern "C" {
8209 #endif
8210 char nm_test_var;
8211 void nm_test_func(void);
8212 void nm_test_func(void){}
8213 #ifdef __cplusplus
8215 #endif
8216 int main(){nm_test_var='a';nm_test_func();return(0);}
8217 _LT_EOF
8219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8220 (eval $ac_compile) 2>&5
8221 ac_status=$?
8222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8223 test $ac_status = 0; }; then
8224 # Now try to grab the symbols.
8225 nlist=conftest.nm
8226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8227 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8228 ac_status=$?
8229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8230 test $ac_status = 0; } && test -s "$nlist"; then
8231 # Try sorting and uniquifying the output.
8232 if sort "$nlist" | uniq > "$nlist"T; then
8233 mv -f "$nlist"T "$nlist"
8234 else
8235 rm -f "$nlist"T
8238 # Make sure that we snagged all the symbols we need.
8239 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8240 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8241 cat <<_LT_EOF > conftest.$ac_ext
8242 #ifdef __cplusplus
8243 extern "C" {
8244 #endif
8246 _LT_EOF
8247 # Now generate the symbol file.
8248 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8250 cat <<_LT_EOF >> conftest.$ac_ext
8252 /* The mapping between symbol names and symbols. */
8253 const struct {
8254 const char *name;
8255 void *address;
8257 lt__PROGRAM__LTX_preloaded_symbols[] =
8259 { "@PROGRAM@", (void *) 0 },
8260 _LT_EOF
8261 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8262 cat <<\_LT_EOF >> conftest.$ac_ext
8263 {0, (void *) 0}
8266 /* This works around a problem in FreeBSD linker */
8267 #ifdef FREEBSD_WORKAROUND
8268 static const void *lt_preloaded_setup() {
8269 return lt__PROGRAM__LTX_preloaded_symbols;
8271 #endif
8273 #ifdef __cplusplus
8275 #endif
8276 _LT_EOF
8277 # Now try linking the two files.
8278 mv conftest.$ac_objext conftstm.$ac_objext
8279 lt_save_LIBS="$LIBS"
8280 lt_save_CFLAGS="$CFLAGS"
8281 LIBS="conftstm.$ac_objext"
8282 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8284 (eval $ac_link) 2>&5
8285 ac_status=$?
8286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8287 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8288 pipe_works=yes
8290 LIBS="$lt_save_LIBS"
8291 CFLAGS="$lt_save_CFLAGS"
8292 else
8293 echo "cannot find nm_test_func in $nlist" >&5
8295 else
8296 echo "cannot find nm_test_var in $nlist" >&5
8298 else
8299 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8301 else
8302 echo "$progname: failed program was:" >&5
8303 cat conftest.$ac_ext >&5
8305 rm -rf conftest* conftst*
8307 # Do not use the global_symbol_pipe unless it works.
8308 if test "$pipe_works" = yes; then
8309 break
8310 else
8311 lt_cv_sys_global_symbol_pipe=
8313 done
8317 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8318 lt_cv_sys_global_symbol_to_cdecl=
8320 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8322 $as_echo "failed" >&6; }
8323 else
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8325 $as_echo "ok" >&6; }
8349 # Check whether --enable-libtool-lock was given.
8350 if test "${enable_libtool_lock+set}" = set; then :
8351 enableval=$enable_libtool_lock;
8354 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8356 # Some flags need to be propagated to the compiler or linker for good
8357 # libtool support.
8358 case $host in
8359 ia64-*-hpux*)
8360 # Find out which ABI we are using.
8361 echo 'int i;' > conftest.$ac_ext
8362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8363 (eval $ac_compile) 2>&5
8364 ac_status=$?
8365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8366 test $ac_status = 0; }; then
8367 case `/usr/bin/file conftest.$ac_objext` in
8368 *ELF-32*)
8369 HPUX_IA64_MODE="32"
8371 *ELF-64*)
8372 HPUX_IA64_MODE="64"
8374 esac
8376 rm -rf conftest*
8378 *-*-irix6*)
8379 # Find out which ABI we are using.
8380 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8382 (eval $ac_compile) 2>&5
8383 ac_status=$?
8384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8385 test $ac_status = 0; }; then
8386 if test "$lt_cv_prog_gnu_ld" = yes; then
8387 case `/usr/bin/file conftest.$ac_objext` in
8388 *32-bit*)
8389 LD="${LD-ld} -melf32bsmip"
8391 *N32*)
8392 LD="${LD-ld} -melf32bmipn32"
8394 *64-bit*)
8395 LD="${LD-ld} -melf64bmip"
8397 esac
8398 else
8399 case `/usr/bin/file conftest.$ac_objext` in
8400 *32-bit*)
8401 LD="${LD-ld} -32"
8403 *N32*)
8404 LD="${LD-ld} -n32"
8406 *64-bit*)
8407 LD="${LD-ld} -64"
8409 esac
8412 rm -rf conftest*
8415 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8416 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8417 # Find out which ABI we are using.
8418 echo 'int i;' > conftest.$ac_ext
8419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8420 (eval $ac_compile) 2>&5
8421 ac_status=$?
8422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8423 test $ac_status = 0; }; then
8424 case `/usr/bin/file conftest.o` in
8425 *32-bit*)
8426 case $host in
8427 x86_64-*kfreebsd*-gnu)
8428 LD="${LD-ld} -m elf_i386_fbsd"
8430 x86_64-*linux*)
8431 case `/usr/bin/file conftest.o` in
8432 *x86-64*)
8433 LD="${LD-ld} -m elf32_x86_64"
8436 LD="${LD-ld} -m elf_i386"
8438 esac
8440 powerpc64le-*linux*)
8441 LD="${LD-ld} -m elf32lppclinux"
8443 powerpc64-*linux*)
8444 LD="${LD-ld} -m elf32ppclinux"
8446 s390x-*linux*)
8447 LD="${LD-ld} -m elf_s390"
8449 sparc64-*linux*)
8450 LD="${LD-ld} -m elf32_sparc"
8452 esac
8454 *64-bit*)
8455 case $host in
8456 x86_64-*kfreebsd*-gnu)
8457 LD="${LD-ld} -m elf_x86_64_fbsd"
8459 x86_64-*linux*)
8460 LD="${LD-ld} -m elf_x86_64"
8462 powerpcle-*linux*)
8463 LD="${LD-ld} -m elf64lppc"
8465 powerpc-*linux*)
8466 LD="${LD-ld} -m elf64ppc"
8468 s390*-*linux*|s390*-*tpf*)
8469 LD="${LD-ld} -m elf64_s390"
8471 sparc*-*linux*)
8472 LD="${LD-ld} -m elf64_sparc"
8474 esac
8476 esac
8478 rm -rf conftest*
8481 *-*-sco3.2v5*)
8482 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8483 SAVE_CFLAGS="$CFLAGS"
8484 CFLAGS="$CFLAGS -belf"
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8486 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8487 if ${lt_cv_cc_needs_belf+:} false; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8490 ac_ext=c
8491 ac_cpp='$CPP $CPPFLAGS'
8492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8496 if test x$gcc_no_link = xyes; then
8497 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8503 main ()
8507 return 0;
8509 _ACEOF
8510 if ac_fn_c_try_link "$LINENO"; then :
8511 lt_cv_cc_needs_belf=yes
8512 else
8513 lt_cv_cc_needs_belf=no
8515 rm -f core conftest.err conftest.$ac_objext \
8516 conftest$ac_exeext conftest.$ac_ext
8517 ac_ext=c
8518 ac_cpp='$CPP $CPPFLAGS'
8519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8525 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8526 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8527 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8528 CFLAGS="$SAVE_CFLAGS"
8531 sparc*-*solaris*)
8532 # Find out which ABI we are using.
8533 echo 'int i;' > conftest.$ac_ext
8534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8535 (eval $ac_compile) 2>&5
8536 ac_status=$?
8537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8538 test $ac_status = 0; }; then
8539 case `/usr/bin/file conftest.o` in
8540 *64-bit*)
8541 case $lt_cv_prog_gnu_ld in
8542 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8544 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8545 LD="${LD-ld} -64"
8548 esac
8550 esac
8552 rm -rf conftest*
8554 esac
8556 need_locks="$enable_libtool_lock"
8559 case $host_os in
8560 rhapsody* | darwin*)
8561 if test -n "$ac_tool_prefix"; then
8562 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8563 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8565 $as_echo_n "checking for $ac_word... " >&6; }
8566 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8567 $as_echo_n "(cached) " >&6
8568 else
8569 if test -n "$DSYMUTIL"; then
8570 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8571 else
8572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573 for as_dir in $PATH
8575 IFS=$as_save_IFS
8576 test -z "$as_dir" && as_dir=.
8577 for ac_exec_ext in '' $ac_executable_extensions; do
8578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8579 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8581 break 2
8583 done
8584 done
8585 IFS=$as_save_IFS
8589 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8590 if test -n "$DSYMUTIL"; then
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8592 $as_echo "$DSYMUTIL" >&6; }
8593 else
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8595 $as_echo "no" >&6; }
8600 if test -z "$ac_cv_prog_DSYMUTIL"; then
8601 ac_ct_DSYMUTIL=$DSYMUTIL
8602 # Extract the first word of "dsymutil", so it can be a program name with args.
8603 set dummy dsymutil; ac_word=$2
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8605 $as_echo_n "checking for $ac_word... " >&6; }
8606 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8607 $as_echo_n "(cached) " >&6
8608 else
8609 if test -n "$ac_ct_DSYMUTIL"; then
8610 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8611 else
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613 for as_dir in $PATH
8615 IFS=$as_save_IFS
8616 test -z "$as_dir" && as_dir=.
8617 for ac_exec_ext in '' $ac_executable_extensions; do
8618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8619 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8621 break 2
8623 done
8624 done
8625 IFS=$as_save_IFS
8629 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8630 if test -n "$ac_ct_DSYMUTIL"; then
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8632 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8633 else
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8635 $as_echo "no" >&6; }
8638 if test "x$ac_ct_DSYMUTIL" = x; then
8639 DSYMUTIL=":"
8640 else
8641 case $cross_compiling:$ac_tool_warned in
8642 yes:)
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8645 ac_tool_warned=yes ;;
8646 esac
8647 DSYMUTIL=$ac_ct_DSYMUTIL
8649 else
8650 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8653 if test -n "$ac_tool_prefix"; then
8654 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8655 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8657 $as_echo_n "checking for $ac_word... " >&6; }
8658 if ${ac_cv_prog_NMEDIT+:} false; then :
8659 $as_echo_n "(cached) " >&6
8660 else
8661 if test -n "$NMEDIT"; then
8662 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8663 else
8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665 for as_dir in $PATH
8667 IFS=$as_save_IFS
8668 test -z "$as_dir" && as_dir=.
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8671 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8673 break 2
8675 done
8676 done
8677 IFS=$as_save_IFS
8681 NMEDIT=$ac_cv_prog_NMEDIT
8682 if test -n "$NMEDIT"; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8684 $as_echo "$NMEDIT" >&6; }
8685 else
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687 $as_echo "no" >&6; }
8692 if test -z "$ac_cv_prog_NMEDIT"; then
8693 ac_ct_NMEDIT=$NMEDIT
8694 # Extract the first word of "nmedit", so it can be a program name with args.
8695 set dummy nmedit; ac_word=$2
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697 $as_echo_n "checking for $ac_word... " >&6; }
8698 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 if test -n "$ac_ct_NMEDIT"; then
8702 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8703 else
8704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8705 for as_dir in $PATH
8707 IFS=$as_save_IFS
8708 test -z "$as_dir" && as_dir=.
8709 for ac_exec_ext in '' $ac_executable_extensions; do
8710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8711 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8713 break 2
8715 done
8716 done
8717 IFS=$as_save_IFS
8721 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8722 if test -n "$ac_ct_NMEDIT"; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8724 $as_echo "$ac_ct_NMEDIT" >&6; }
8725 else
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 $as_echo "no" >&6; }
8730 if test "x$ac_ct_NMEDIT" = x; then
8731 NMEDIT=":"
8732 else
8733 case $cross_compiling:$ac_tool_warned in
8734 yes:)
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8736 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8737 ac_tool_warned=yes ;;
8738 esac
8739 NMEDIT=$ac_ct_NMEDIT
8741 else
8742 NMEDIT="$ac_cv_prog_NMEDIT"
8745 if test -n "$ac_tool_prefix"; then
8746 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8747 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8749 $as_echo_n "checking for $ac_word... " >&6; }
8750 if ${ac_cv_prog_LIPO+:} false; then :
8751 $as_echo_n "(cached) " >&6
8752 else
8753 if test -n "$LIPO"; then
8754 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8755 else
8756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8757 for as_dir in $PATH
8759 IFS=$as_save_IFS
8760 test -z "$as_dir" && as_dir=.
8761 for ac_exec_ext in '' $ac_executable_extensions; do
8762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8763 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8765 break 2
8767 done
8768 done
8769 IFS=$as_save_IFS
8773 LIPO=$ac_cv_prog_LIPO
8774 if test -n "$LIPO"; then
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8776 $as_echo "$LIPO" >&6; }
8777 else
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8779 $as_echo "no" >&6; }
8784 if test -z "$ac_cv_prog_LIPO"; then
8785 ac_ct_LIPO=$LIPO
8786 # Extract the first word of "lipo", so it can be a program name with args.
8787 set dummy lipo; ac_word=$2
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8789 $as_echo_n "checking for $ac_word... " >&6; }
8790 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8791 $as_echo_n "(cached) " >&6
8792 else
8793 if test -n "$ac_ct_LIPO"; then
8794 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8795 else
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 for as_dir in $PATH
8799 IFS=$as_save_IFS
8800 test -z "$as_dir" && as_dir=.
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8803 ac_cv_prog_ac_ct_LIPO="lipo"
8804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8805 break 2
8807 done
8808 done
8809 IFS=$as_save_IFS
8813 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8814 if test -n "$ac_ct_LIPO"; then
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8816 $as_echo "$ac_ct_LIPO" >&6; }
8817 else
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8819 $as_echo "no" >&6; }
8822 if test "x$ac_ct_LIPO" = x; then
8823 LIPO=":"
8824 else
8825 case $cross_compiling:$ac_tool_warned in
8826 yes:)
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8829 ac_tool_warned=yes ;;
8830 esac
8831 LIPO=$ac_ct_LIPO
8833 else
8834 LIPO="$ac_cv_prog_LIPO"
8837 if test -n "$ac_tool_prefix"; then
8838 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8839 set dummy ${ac_tool_prefix}otool; ac_word=$2
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841 $as_echo_n "checking for $ac_word... " >&6; }
8842 if ${ac_cv_prog_OTOOL+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 if test -n "$OTOOL"; then
8846 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8847 else
8848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8849 for as_dir in $PATH
8851 IFS=$as_save_IFS
8852 test -z "$as_dir" && as_dir=.
8853 for ac_exec_ext in '' $ac_executable_extensions; do
8854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8855 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8857 break 2
8859 done
8860 done
8861 IFS=$as_save_IFS
8865 OTOOL=$ac_cv_prog_OTOOL
8866 if test -n "$OTOOL"; then
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8868 $as_echo "$OTOOL" >&6; }
8869 else
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8871 $as_echo "no" >&6; }
8876 if test -z "$ac_cv_prog_OTOOL"; then
8877 ac_ct_OTOOL=$OTOOL
8878 # Extract the first word of "otool", so it can be a program name with args.
8879 set dummy otool; ac_word=$2
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8881 $as_echo_n "checking for $ac_word... " >&6; }
8882 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8883 $as_echo_n "(cached) " >&6
8884 else
8885 if test -n "$ac_ct_OTOOL"; then
8886 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8887 else
8888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8889 for as_dir in $PATH
8891 IFS=$as_save_IFS
8892 test -z "$as_dir" && as_dir=.
8893 for ac_exec_ext in '' $ac_executable_extensions; do
8894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8895 ac_cv_prog_ac_ct_OTOOL="otool"
8896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8897 break 2
8899 done
8900 done
8901 IFS=$as_save_IFS
8905 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8906 if test -n "$ac_ct_OTOOL"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8908 $as_echo "$ac_ct_OTOOL" >&6; }
8909 else
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911 $as_echo "no" >&6; }
8914 if test "x$ac_ct_OTOOL" = x; then
8915 OTOOL=":"
8916 else
8917 case $cross_compiling:$ac_tool_warned in
8918 yes:)
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8921 ac_tool_warned=yes ;;
8922 esac
8923 OTOOL=$ac_ct_OTOOL
8925 else
8926 OTOOL="$ac_cv_prog_OTOOL"
8929 if test -n "$ac_tool_prefix"; then
8930 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8931 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8933 $as_echo_n "checking for $ac_word... " >&6; }
8934 if ${ac_cv_prog_OTOOL64+:} false; then :
8935 $as_echo_n "(cached) " >&6
8936 else
8937 if test -n "$OTOOL64"; then
8938 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8939 else
8940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8941 for as_dir in $PATH
8943 IFS=$as_save_IFS
8944 test -z "$as_dir" && as_dir=.
8945 for ac_exec_ext in '' $ac_executable_extensions; do
8946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8947 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8949 break 2
8951 done
8952 done
8953 IFS=$as_save_IFS
8957 OTOOL64=$ac_cv_prog_OTOOL64
8958 if test -n "$OTOOL64"; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8960 $as_echo "$OTOOL64" >&6; }
8961 else
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8963 $as_echo "no" >&6; }
8968 if test -z "$ac_cv_prog_OTOOL64"; then
8969 ac_ct_OTOOL64=$OTOOL64
8970 # Extract the first word of "otool64", so it can be a program name with args.
8971 set dummy otool64; ac_word=$2
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8973 $as_echo_n "checking for $ac_word... " >&6; }
8974 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8975 $as_echo_n "(cached) " >&6
8976 else
8977 if test -n "$ac_ct_OTOOL64"; then
8978 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8979 else
8980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981 for as_dir in $PATH
8983 IFS=$as_save_IFS
8984 test -z "$as_dir" && as_dir=.
8985 for ac_exec_ext in '' $ac_executable_extensions; do
8986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8987 ac_cv_prog_ac_ct_OTOOL64="otool64"
8988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8989 break 2
8991 done
8992 done
8993 IFS=$as_save_IFS
8997 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8998 if test -n "$ac_ct_OTOOL64"; then
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9000 $as_echo "$ac_ct_OTOOL64" >&6; }
9001 else
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003 $as_echo "no" >&6; }
9006 if test "x$ac_ct_OTOOL64" = x; then
9007 OTOOL64=":"
9008 else
9009 case $cross_compiling:$ac_tool_warned in
9010 yes:)
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9013 ac_tool_warned=yes ;;
9014 esac
9015 OTOOL64=$ac_ct_OTOOL64
9017 else
9018 OTOOL64="$ac_cv_prog_OTOOL64"
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9048 $as_echo_n "checking for -single_module linker flag... " >&6; }
9049 if ${lt_cv_apple_cc_single_mod+:} false; then :
9050 $as_echo_n "(cached) " >&6
9051 else
9052 lt_cv_apple_cc_single_mod=no
9053 if test -z "${LT_MULTI_MODULE}"; then
9054 # By default we will add the -single_module flag. You can override
9055 # by either setting the environment variable LT_MULTI_MODULE
9056 # non-empty at configure time, or by adding -multi_module to the
9057 # link flags.
9058 rm -rf libconftest.dylib*
9059 echo "int foo(void){return 1;}" > conftest.c
9060 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9061 -dynamiclib -Wl,-single_module conftest.c" >&5
9062 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9063 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9064 _lt_result=$?
9065 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9066 lt_cv_apple_cc_single_mod=yes
9067 else
9068 cat conftest.err >&5
9070 rm -rf libconftest.dylib*
9071 rm -f conftest.*
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9075 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9077 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9078 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9079 $as_echo_n "(cached) " >&6
9080 else
9081 lt_cv_ld_exported_symbols_list=no
9082 save_LDFLAGS=$LDFLAGS
9083 echo "_main" > conftest.sym
9084 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9085 if test x$gcc_no_link = xyes; then
9086 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9089 /* end confdefs.h. */
9092 main ()
9096 return 0;
9098 _ACEOF
9099 if ac_fn_c_try_link "$LINENO"; then :
9100 lt_cv_ld_exported_symbols_list=yes
9101 else
9102 lt_cv_ld_exported_symbols_list=no
9104 rm -f core conftest.err conftest.$ac_objext \
9105 conftest$ac_exeext conftest.$ac_ext
9106 LDFLAGS="$save_LDFLAGS"
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9110 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9112 $as_echo_n "checking for -force_load linker flag... " >&6; }
9113 if ${lt_cv_ld_force_load+:} false; then :
9114 $as_echo_n "(cached) " >&6
9115 else
9116 lt_cv_ld_force_load=no
9117 cat > conftest.c << _LT_EOF
9118 int forced_loaded() { return 2;}
9119 _LT_EOF
9120 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9121 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9122 echo "$AR cru libconftest.a conftest.o" >&5
9123 $AR cru libconftest.a conftest.o 2>&5
9124 cat > conftest.c << _LT_EOF
9125 int main() { return 0;}
9126 _LT_EOF
9127 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9128 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9129 _lt_result=$?
9130 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9131 lt_cv_ld_force_load=yes
9132 else
9133 cat conftest.err >&5
9135 rm -f conftest.err libconftest.a conftest conftest.c
9136 rm -rf conftest.dSYM
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9140 $as_echo "$lt_cv_ld_force_load" >&6; }
9141 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
9142 # build without first building modern cctools / linker.
9143 case $host_cpu-$host_os in
9144 *-rhapsody* | *-darwin1.[012])
9145 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9146 *-darwin1.*)
9147 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9148 *-darwin*)
9149 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
9150 # deployment target is forced to an earlier version.
9151 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
9152 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
9154 10.[012][,.]*)
9155 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9159 esac
9161 esac
9162 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9163 _lt_dar_single_mod='$single_module'
9165 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9166 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9167 else
9168 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9170 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9171 _lt_dsymutil='~$DSYMUTIL $lib || :'
9172 else
9173 _lt_dsymutil=
9176 esac
9178 for ac_header in dlfcn.h
9179 do :
9180 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9182 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9183 cat >>confdefs.h <<_ACEOF
9184 #define HAVE_DLFCN_H 1
9185 _ACEOF
9189 done
9196 # Set options
9201 enable_win32_dll=no
9204 # Check whether --enable-shared was given.
9205 if test "${enable_shared+set}" = set; then :
9206 enableval=$enable_shared; p=${PACKAGE-default}
9207 case $enableval in
9208 yes) enable_shared=yes ;;
9209 no) enable_shared=no ;;
9211 enable_shared=no
9212 # Look at the argument we got. We use all the common list separators.
9213 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9214 for pkg in $enableval; do
9215 IFS="$lt_save_ifs"
9216 if test "X$pkg" = "X$p"; then
9217 enable_shared=yes
9219 done
9220 IFS="$lt_save_ifs"
9222 esac
9223 else
9224 enable_shared=yes
9235 # Check whether --enable-static was given.
9236 if test "${enable_static+set}" = set; then :
9237 enableval=$enable_static; p=${PACKAGE-default}
9238 case $enableval in
9239 yes) enable_static=yes ;;
9240 no) enable_static=no ;;
9242 enable_static=no
9243 # Look at the argument we got. We use all the common list separators.
9244 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9245 for pkg in $enableval; do
9246 IFS="$lt_save_ifs"
9247 if test "X$pkg" = "X$p"; then
9248 enable_static=yes
9250 done
9251 IFS="$lt_save_ifs"
9253 esac
9254 else
9255 enable_static=yes
9267 # Check whether --with-pic was given.
9268 if test "${with_pic+set}" = set; then :
9269 withval=$with_pic; pic_mode="$withval"
9270 else
9271 pic_mode=default
9275 test -z "$pic_mode" && pic_mode=default
9283 # Check whether --enable-fast-install was given.
9284 if test "${enable_fast_install+set}" = set; then :
9285 enableval=$enable_fast_install; p=${PACKAGE-default}
9286 case $enableval in
9287 yes) enable_fast_install=yes ;;
9288 no) enable_fast_install=no ;;
9290 enable_fast_install=no
9291 # Look at the argument we got. We use all the common list separators.
9292 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9293 for pkg in $enableval; do
9294 IFS="$lt_save_ifs"
9295 if test "X$pkg" = "X$p"; then
9296 enable_fast_install=yes
9298 done
9299 IFS="$lt_save_ifs"
9301 esac
9302 else
9303 enable_fast_install=yes
9316 # This can be used to rebuild libtool when needed
9317 LIBTOOL_DEPS="$ltmain"
9319 # Always use our own libtool.
9320 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9347 test -z "$LN_S" && LN_S="ln -s"
9362 if test -n "${ZSH_VERSION+set}" ; then
9363 setopt NO_GLOB_SUBST
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9367 $as_echo_n "checking for objdir... " >&6; }
9368 if ${lt_cv_objdir+:} false; then :
9369 $as_echo_n "(cached) " >&6
9370 else
9371 rm -f .libs 2>/dev/null
9372 mkdir .libs 2>/dev/null
9373 if test -d .libs; then
9374 lt_cv_objdir=.libs
9375 else
9376 # MS-DOS does not allow filenames that begin with a dot.
9377 lt_cv_objdir=_libs
9379 rmdir .libs 2>/dev/null
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9382 $as_echo "$lt_cv_objdir" >&6; }
9383 objdir=$lt_cv_objdir
9389 cat >>confdefs.h <<_ACEOF
9390 #define LT_OBJDIR "$lt_cv_objdir/"
9391 _ACEOF
9396 case $host_os in
9397 aix3*)
9398 # AIX sometimes has problems with the GCC collect2 program. For some
9399 # reason, if we set the COLLECT_NAMES environment variable, the problems
9400 # vanish in a puff of smoke.
9401 if test "X${COLLECT_NAMES+set}" != Xset; then
9402 COLLECT_NAMES=
9403 export COLLECT_NAMES
9406 esac
9408 # Global variables:
9409 ofile=libtool
9410 can_build_shared=yes
9412 # All known linkers require a `.a' archive for static linking (except MSVC,
9413 # which needs '.lib').
9414 libext=a
9416 with_gnu_ld="$lt_cv_prog_gnu_ld"
9418 old_CC="$CC"
9419 old_CFLAGS="$CFLAGS"
9421 # Set sane defaults for various variables
9422 test -z "$CC" && CC=cc
9423 test -z "$LTCC" && LTCC=$CC
9424 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9425 test -z "$LD" && LD=ld
9426 test -z "$ac_objext" && ac_objext=o
9428 for cc_temp in $compiler""; do
9429 case $cc_temp in
9430 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9431 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9432 \-*) ;;
9433 *) break;;
9434 esac
9435 done
9436 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9439 # Only perform the check for file, if the check method requires it
9440 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9441 case $deplibs_check_method in
9442 file_magic*)
9443 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9445 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9446 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9447 $as_echo_n "(cached) " >&6
9448 else
9449 case $MAGIC_CMD in
9450 [\\/*] | ?:[\\/]*)
9451 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9454 lt_save_MAGIC_CMD="$MAGIC_CMD"
9455 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9456 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9457 for ac_dir in $ac_dummy; do
9458 IFS="$lt_save_ifs"
9459 test -z "$ac_dir" && ac_dir=.
9460 if test -f $ac_dir/${ac_tool_prefix}file; then
9461 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9462 if test -n "$file_magic_test_file"; then
9463 case $deplibs_check_method in
9464 "file_magic "*)
9465 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9466 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9467 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9468 $EGREP "$file_magic_regex" > /dev/null; then
9470 else
9471 cat <<_LT_EOF 1>&2
9473 *** Warning: the command libtool uses to detect shared libraries,
9474 *** $file_magic_cmd, produces output that libtool cannot recognize.
9475 *** The result is that libtool may fail to recognize shared libraries
9476 *** as such. This will affect the creation of libtool libraries that
9477 *** depend on shared libraries, but programs linked with such libtool
9478 *** libraries will work regardless of this problem. Nevertheless, you
9479 *** may want to report the problem to your system manager and/or to
9480 *** bug-libtool@gnu.org
9482 _LT_EOF
9483 fi ;;
9484 esac
9486 break
9488 done
9489 IFS="$lt_save_ifs"
9490 MAGIC_CMD="$lt_save_MAGIC_CMD"
9492 esac
9495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9496 if test -n "$MAGIC_CMD"; then
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9498 $as_echo "$MAGIC_CMD" >&6; }
9499 else
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9501 $as_echo "no" >&6; }
9508 if test -z "$lt_cv_path_MAGIC_CMD"; then
9509 if test -n "$ac_tool_prefix"; then
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9511 $as_echo_n "checking for file... " >&6; }
9512 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9513 $as_echo_n "(cached) " >&6
9514 else
9515 case $MAGIC_CMD in
9516 [\\/*] | ?:[\\/]*)
9517 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9520 lt_save_MAGIC_CMD="$MAGIC_CMD"
9521 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9522 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9523 for ac_dir in $ac_dummy; do
9524 IFS="$lt_save_ifs"
9525 test -z "$ac_dir" && ac_dir=.
9526 if test -f $ac_dir/file; then
9527 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9528 if test -n "$file_magic_test_file"; then
9529 case $deplibs_check_method in
9530 "file_magic "*)
9531 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9532 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9533 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9534 $EGREP "$file_magic_regex" > /dev/null; then
9536 else
9537 cat <<_LT_EOF 1>&2
9539 *** Warning: the command libtool uses to detect shared libraries,
9540 *** $file_magic_cmd, produces output that libtool cannot recognize.
9541 *** The result is that libtool may fail to recognize shared libraries
9542 *** as such. This will affect the creation of libtool libraries that
9543 *** depend on shared libraries, but programs linked with such libtool
9544 *** libraries will work regardless of this problem. Nevertheless, you
9545 *** may want to report the problem to your system manager and/or to
9546 *** bug-libtool@gnu.org
9548 _LT_EOF
9549 fi ;;
9550 esac
9552 break
9554 done
9555 IFS="$lt_save_ifs"
9556 MAGIC_CMD="$lt_save_MAGIC_CMD"
9558 esac
9561 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9562 if test -n "$MAGIC_CMD"; then
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9564 $as_echo "$MAGIC_CMD" >&6; }
9565 else
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567 $as_echo "no" >&6; }
9571 else
9572 MAGIC_CMD=:
9578 esac
9580 # Use C for the default configuration in the libtool script
9582 lt_save_CC="$CC"
9583 ac_ext=c
9584 ac_cpp='$CPP $CPPFLAGS'
9585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9590 # Source file extension for C test sources.
9591 ac_ext=c
9593 # Object file extension for compiled C test sources.
9594 objext=o
9595 objext=$objext
9597 # Code to be used in simple compile tests
9598 lt_simple_compile_test_code="int some_variable = 0;"
9600 # Code to be used in simple link tests
9601 lt_simple_link_test_code='int main(){return(0);}'
9609 # If no C compiler was specified, use CC.
9610 LTCC=${LTCC-"$CC"}
9612 # If no C compiler flags were specified, use CFLAGS.
9613 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9615 # Allow CC to be a program name with arguments.
9616 compiler=$CC
9618 # Save the default compiler, since it gets overwritten when the other
9619 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9620 compiler_DEFAULT=$CC
9622 # save warnings/boilerplate of simple test code
9623 ac_outfile=conftest.$ac_objext
9624 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9625 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9626 _lt_compiler_boilerplate=`cat conftest.err`
9627 $RM conftest*
9629 ac_outfile=conftest.$ac_objext
9630 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9631 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9632 _lt_linker_boilerplate=`cat conftest.err`
9633 $RM -r conftest*
9636 ## CAVEAT EMPTOR:
9637 ## There is no encapsulation within the following macros, do not change
9638 ## the running order or otherwise move them around unless you know exactly
9639 ## what you are doing...
9640 if test -n "$compiler"; then
9642 lt_prog_compiler_no_builtin_flag=
9644 if test "$GCC" = yes; then
9645 case $cc_basename in
9646 nvcc*)
9647 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9649 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9650 esac
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9653 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9654 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9655 $as_echo_n "(cached) " >&6
9656 else
9657 lt_cv_prog_compiler_rtti_exceptions=no
9658 ac_outfile=conftest.$ac_objext
9659 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9660 lt_compiler_flag="-fno-rtti -fno-exceptions"
9661 # Insert the option either (1) after the last *FLAGS variable, or
9662 # (2) before a word containing "conftest.", or (3) at the end.
9663 # Note that $ac_compile itself does not contain backslashes and begins
9664 # with a dollar sign (not a hyphen), so the echo should work correctly.
9665 # The option is referenced via a variable to avoid confusing sed.
9666 lt_compile=`echo "$ac_compile" | $SED \
9667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9669 -e 's:$: $lt_compiler_flag:'`
9670 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9671 (eval "$lt_compile" 2>conftest.err)
9672 ac_status=$?
9673 cat conftest.err >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 if (exit $ac_status) && test -s "$ac_outfile"; then
9676 # The compiler can only warn and ignore the option if not recognized
9677 # So say no if there are warnings other than the usual output.
9678 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9680 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9681 lt_cv_prog_compiler_rtti_exceptions=yes
9684 $RM conftest*
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9688 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9690 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9691 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9692 else
9703 lt_prog_compiler_wl=
9704 lt_prog_compiler_pic=
9705 lt_prog_compiler_static=
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9708 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9710 if test "$GCC" = yes; then
9711 lt_prog_compiler_wl='-Wl,'
9712 lt_prog_compiler_static='-static'
9714 case $host_os in
9715 aix*)
9716 # All AIX code is PIC.
9717 if test "$host_cpu" = ia64; then
9718 # AIX 5 now supports IA64 processor
9719 lt_prog_compiler_static='-Bstatic'
9721 lt_prog_compiler_pic='-fPIC'
9724 amigaos*)
9725 case $host_cpu in
9726 powerpc)
9727 # see comment about AmigaOS4 .so support
9728 lt_prog_compiler_pic='-fPIC'
9730 m68k)
9731 # FIXME: we need at least 68020 code to build shared libraries, but
9732 # adding the `-m68020' flag to GCC prevents building anything better,
9733 # like `-m68040'.
9734 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9736 esac
9739 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9740 # PIC is the default for these OSes.
9743 mingw* | cygwin* | pw32* | os2* | cegcc*)
9744 # This hack is so that the source file can tell whether it is being
9745 # built for inclusion in a dll (and should export symbols for example).
9746 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9747 # (--disable-auto-import) libraries
9748 lt_prog_compiler_pic='-DDLL_EXPORT'
9751 darwin* | rhapsody*)
9752 # PIC is the default on this platform
9753 # Common symbols not allowed in MH_DYLIB files
9754 lt_prog_compiler_pic='-fno-common'
9757 haiku*)
9758 # PIC is the default for Haiku.
9759 # The "-static" flag exists, but is broken.
9760 lt_prog_compiler_static=
9763 hpux*)
9764 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9765 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9766 # sets the default TLS model and affects inlining.
9767 case $host_cpu in
9768 hppa*64*)
9769 # +Z the default
9772 lt_prog_compiler_pic='-fPIC'
9774 esac
9777 interix[3-9]*)
9778 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9779 # Instead, we relocate shared libraries at runtime.
9782 msdosdjgpp*)
9783 # Just because we use GCC doesn't mean we suddenly get shared libraries
9784 # on systems that don't support them.
9785 lt_prog_compiler_can_build_shared=no
9786 enable_shared=no
9789 *nto* | *qnx*)
9790 # QNX uses GNU C++, but need to define -shared option too, otherwise
9791 # it will coredump.
9792 lt_prog_compiler_pic='-fPIC -shared'
9795 sysv4*MP*)
9796 if test -d /usr/nec; then
9797 lt_prog_compiler_pic=-Kconform_pic
9802 lt_prog_compiler_pic='-fPIC'
9804 esac
9806 case $cc_basename in
9807 nvcc*) # Cuda Compiler Driver 2.2
9808 lt_prog_compiler_wl='-Xlinker '
9809 lt_prog_compiler_pic='-Xcompiler -fPIC'
9811 esac
9812 else
9813 # PORTME Check for flag to pass linker flags through the system compiler.
9814 case $host_os in
9815 aix*)
9816 lt_prog_compiler_wl='-Wl,'
9817 if test "$host_cpu" = ia64; then
9818 # AIX 5 now supports IA64 processor
9819 lt_prog_compiler_static='-Bstatic'
9820 else
9821 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9825 mingw* | cygwin* | pw32* | os2* | cegcc*)
9826 # This hack is so that the source file can tell whether it is being
9827 # built for inclusion in a dll (and should export symbols for example).
9828 lt_prog_compiler_pic='-DDLL_EXPORT'
9831 hpux9* | hpux10* | hpux11*)
9832 lt_prog_compiler_wl='-Wl,'
9833 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9834 # not for PA HP-UX.
9835 case $host_cpu in
9836 hppa*64*|ia64*)
9837 # +Z the default
9840 lt_prog_compiler_pic='+Z'
9842 esac
9843 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9844 lt_prog_compiler_static='${wl}-a ${wl}archive'
9847 irix5* | irix6* | nonstopux*)
9848 lt_prog_compiler_wl='-Wl,'
9849 # PIC (with -KPIC) is the default.
9850 lt_prog_compiler_static='-non_shared'
9853 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9854 case $cc_basename in
9855 # old Intel for x86_64 which still supported -KPIC.
9856 ecc*)
9857 lt_prog_compiler_wl='-Wl,'
9858 lt_prog_compiler_pic='-KPIC'
9859 lt_prog_compiler_static='-static'
9861 # icc used to be incompatible with GCC.
9862 # ICC 10 doesn't accept -KPIC any more.
9863 icc* | ifort*)
9864 lt_prog_compiler_wl='-Wl,'
9865 lt_prog_compiler_pic='-fPIC'
9866 lt_prog_compiler_static='-static'
9868 # Lahey Fortran 8.1.
9869 lf95*)
9870 lt_prog_compiler_wl='-Wl,'
9871 lt_prog_compiler_pic='--shared'
9872 lt_prog_compiler_static='--static'
9874 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9875 # Portland Group compilers (*not* the Pentium gcc compiler,
9876 # which looks to be a dead project)
9877 lt_prog_compiler_wl='-Wl,'
9878 lt_prog_compiler_pic='-fpic'
9879 lt_prog_compiler_static='-Bstatic'
9881 ccc*)
9882 lt_prog_compiler_wl='-Wl,'
9883 # All Alpha code is PIC.
9884 lt_prog_compiler_static='-non_shared'
9886 xl* | bgxl* | bgf* | mpixl*)
9887 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9888 lt_prog_compiler_wl='-Wl,'
9889 lt_prog_compiler_pic='-qpic'
9890 lt_prog_compiler_static='-qstaticlink'
9893 case `$CC -V 2>&1 | sed 5q` in
9894 *Sun\ F* | *Sun*Fortran*)
9895 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9896 lt_prog_compiler_pic='-KPIC'
9897 lt_prog_compiler_static='-Bstatic'
9898 lt_prog_compiler_wl=''
9900 *Sun\ C*)
9901 # Sun C 5.9
9902 lt_prog_compiler_pic='-KPIC'
9903 lt_prog_compiler_static='-Bstatic'
9904 lt_prog_compiler_wl='-Wl,'
9906 esac
9908 esac
9911 newsos6)
9912 lt_prog_compiler_pic='-KPIC'
9913 lt_prog_compiler_static='-Bstatic'
9916 *nto* | *qnx*)
9917 # QNX uses GNU C++, but need to define -shared option too, otherwise
9918 # it will coredump.
9919 lt_prog_compiler_pic='-fPIC -shared'
9922 osf3* | osf4* | osf5*)
9923 lt_prog_compiler_wl='-Wl,'
9924 # All OSF/1 code is PIC.
9925 lt_prog_compiler_static='-non_shared'
9928 rdos*)
9929 lt_prog_compiler_static='-non_shared'
9932 solaris*)
9933 lt_prog_compiler_pic='-KPIC'
9934 lt_prog_compiler_static='-Bstatic'
9935 case $cc_basename in
9936 f77* | f90* | f95*)
9937 lt_prog_compiler_wl='-Qoption ld ';;
9939 lt_prog_compiler_wl='-Wl,';;
9940 esac
9943 sunos4*)
9944 lt_prog_compiler_wl='-Qoption ld '
9945 lt_prog_compiler_pic='-PIC'
9946 lt_prog_compiler_static='-Bstatic'
9949 sysv4 | sysv4.2uw2* | sysv4.3*)
9950 lt_prog_compiler_wl='-Wl,'
9951 lt_prog_compiler_pic='-KPIC'
9952 lt_prog_compiler_static='-Bstatic'
9955 sysv4*MP*)
9956 if test -d /usr/nec ;then
9957 lt_prog_compiler_pic='-Kconform_pic'
9958 lt_prog_compiler_static='-Bstatic'
9962 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9963 lt_prog_compiler_wl='-Wl,'
9964 lt_prog_compiler_pic='-KPIC'
9965 lt_prog_compiler_static='-Bstatic'
9968 unicos*)
9969 lt_prog_compiler_wl='-Wl,'
9970 lt_prog_compiler_can_build_shared=no
9973 uts4*)
9974 lt_prog_compiler_pic='-pic'
9975 lt_prog_compiler_static='-Bstatic'
9979 lt_prog_compiler_can_build_shared=no
9981 esac
9984 case $host_os in
9985 # For platforms which do not support PIC, -DPIC is meaningless:
9986 *djgpp*)
9987 lt_prog_compiler_pic=
9990 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9992 esac
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9994 $as_echo "$lt_prog_compiler_pic" >&6; }
10002 # Check to make sure the PIC flag actually works.
10004 if test -n "$lt_prog_compiler_pic"; then
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10006 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10007 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10008 $as_echo_n "(cached) " >&6
10009 else
10010 lt_cv_prog_compiler_pic_works=no
10011 ac_outfile=conftest.$ac_objext
10012 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10013 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10014 # Insert the option either (1) after the last *FLAGS variable, or
10015 # (2) before a word containing "conftest.", or (3) at the end.
10016 # Note that $ac_compile itself does not contain backslashes and begins
10017 # with a dollar sign (not a hyphen), so the echo should work correctly.
10018 # The option is referenced via a variable to avoid confusing sed.
10019 lt_compile=`echo "$ac_compile" | $SED \
10020 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10021 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10022 -e 's:$: $lt_compiler_flag:'`
10023 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10024 (eval "$lt_compile" 2>conftest.err)
10025 ac_status=$?
10026 cat conftest.err >&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 if (exit $ac_status) && test -s "$ac_outfile"; then
10029 # The compiler can only warn and ignore the option if not recognized
10030 # So say no if there are warnings other than the usual output.
10031 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10033 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10034 lt_cv_prog_compiler_pic_works=yes
10037 $RM conftest*
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10041 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10043 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10044 case $lt_prog_compiler_pic in
10045 "" | " "*) ;;
10046 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10047 esac
10048 else
10049 lt_prog_compiler_pic=
10050 lt_prog_compiler_can_build_shared=no
10061 # Check to make sure the static flag actually works.
10063 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10065 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10066 if ${lt_cv_prog_compiler_static_works+:} false; then :
10067 $as_echo_n "(cached) " >&6
10068 else
10069 lt_cv_prog_compiler_static_works=no
10070 save_LDFLAGS="$LDFLAGS"
10071 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10072 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10073 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10074 # The linker can only warn and ignore the option if not recognized
10075 # So say no if there are warnings
10076 if test -s conftest.err; then
10077 # Append any errors to the config.log.
10078 cat conftest.err 1>&5
10079 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10081 if diff conftest.exp conftest.er2 >/dev/null; then
10082 lt_cv_prog_compiler_static_works=yes
10084 else
10085 lt_cv_prog_compiler_static_works=yes
10088 $RM -r conftest*
10089 LDFLAGS="$save_LDFLAGS"
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10093 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10095 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10097 else
10098 lt_prog_compiler_static=
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10108 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10109 if ${lt_cv_prog_compiler_c_o+:} false; then :
10110 $as_echo_n "(cached) " >&6
10111 else
10112 lt_cv_prog_compiler_c_o=no
10113 $RM -r conftest 2>/dev/null
10114 mkdir conftest
10115 cd conftest
10116 mkdir out
10117 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10119 lt_compiler_flag="-o out/conftest2.$ac_objext"
10120 # Insert the option either (1) after the last *FLAGS variable, or
10121 # (2) before a word containing "conftest.", or (3) at the end.
10122 # Note that $ac_compile itself does not contain backslashes and begins
10123 # with a dollar sign (not a hyphen), so the echo should work correctly.
10124 lt_compile=`echo "$ac_compile" | $SED \
10125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10127 -e 's:$: $lt_compiler_flag:'`
10128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10129 (eval "$lt_compile" 2>out/conftest.err)
10130 ac_status=$?
10131 cat out/conftest.err >&5
10132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10133 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10134 then
10135 # The compiler can only warn and ignore the option if not recognized
10136 # So say no if there are warnings
10137 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10138 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10139 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10140 lt_cv_prog_compiler_c_o=yes
10143 chmod u+w . 2>&5
10144 $RM conftest*
10145 # SGI C++ compiler will create directory out/ii_files/ for
10146 # template instantiation
10147 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10148 $RM out/* && rmdir out
10149 cd ..
10150 $RM -r conftest
10151 $RM conftest*
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10155 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10163 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10164 if ${lt_cv_prog_compiler_c_o+:} false; then :
10165 $as_echo_n "(cached) " >&6
10166 else
10167 lt_cv_prog_compiler_c_o=no
10168 $RM -r conftest 2>/dev/null
10169 mkdir conftest
10170 cd conftest
10171 mkdir out
10172 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10174 lt_compiler_flag="-o out/conftest2.$ac_objext"
10175 # Insert the option either (1) after the last *FLAGS variable, or
10176 # (2) before a word containing "conftest.", or (3) at the end.
10177 # Note that $ac_compile itself does not contain backslashes and begins
10178 # with a dollar sign (not a hyphen), so the echo should work correctly.
10179 lt_compile=`echo "$ac_compile" | $SED \
10180 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10181 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10182 -e 's:$: $lt_compiler_flag:'`
10183 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10184 (eval "$lt_compile" 2>out/conftest.err)
10185 ac_status=$?
10186 cat out/conftest.err >&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10189 then
10190 # The compiler can only warn and ignore the option if not recognized
10191 # So say no if there are warnings
10192 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10193 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10194 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10195 lt_cv_prog_compiler_c_o=yes
10198 chmod u+w . 2>&5
10199 $RM conftest*
10200 # SGI C++ compiler will create directory out/ii_files/ for
10201 # template instantiation
10202 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10203 $RM out/* && rmdir out
10204 cd ..
10205 $RM -r conftest
10206 $RM conftest*
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10210 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10215 hard_links="nottested"
10216 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10217 # do not overwrite the value of need_locks provided by the user
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10219 $as_echo_n "checking if we can lock with hard links... " >&6; }
10220 hard_links=yes
10221 $RM conftest*
10222 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10223 touch conftest.a
10224 ln conftest.a conftest.b 2>&5 || hard_links=no
10225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10227 $as_echo "$hard_links" >&6; }
10228 if test "$hard_links" = no; then
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10230 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10231 need_locks=warn
10233 else
10234 need_locks=no
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10243 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10245 runpath_var=
10246 allow_undefined_flag=
10247 always_export_symbols=no
10248 archive_cmds=
10249 archive_expsym_cmds=
10250 compiler_needs_object=no
10251 enable_shared_with_static_runtimes=no
10252 export_dynamic_flag_spec=
10253 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10254 hardcode_automatic=no
10255 hardcode_direct=no
10256 hardcode_direct_absolute=no
10257 hardcode_libdir_flag_spec=
10258 hardcode_libdir_flag_spec_ld=
10259 hardcode_libdir_separator=
10260 hardcode_minus_L=no
10261 hardcode_shlibpath_var=unsupported
10262 inherit_rpath=no
10263 link_all_deplibs=unknown
10264 module_cmds=
10265 module_expsym_cmds=
10266 old_archive_from_new_cmds=
10267 old_archive_from_expsyms_cmds=
10268 thread_safe_flag_spec=
10269 whole_archive_flag_spec=
10270 # include_expsyms should be a list of space-separated symbols to be *always*
10271 # included in the symbol list
10272 include_expsyms=
10273 # exclude_expsyms can be an extended regexp of symbols to exclude
10274 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10275 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10276 # as well as any symbol that contains `d'.
10277 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10278 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10279 # platforms (ab)use it in PIC code, but their linkers get confused if
10280 # the symbol is explicitly referenced. Since portable code cannot
10281 # rely on this symbol name, it's probably fine to never include it in
10282 # preloaded symbol tables.
10283 # Exclude shared library initialization/finalization symbols.
10284 extract_expsyms_cmds=
10286 case $host_os in
10287 cygwin* | mingw* | pw32* | cegcc*)
10288 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10289 # When not using gcc, we currently assume that we are using
10290 # Microsoft Visual C++.
10291 if test "$GCC" != yes; then
10292 with_gnu_ld=no
10295 interix*)
10296 # we just hope/assume this is gcc and not c89 (= MSVC++)
10297 with_gnu_ld=yes
10299 openbsd*)
10300 with_gnu_ld=no
10302 esac
10304 ld_shlibs=yes
10306 # On some targets, GNU ld is compatible enough with the native linker
10307 # that we're better off using the native interface for both.
10308 lt_use_gnu_ld_interface=no
10309 if test "$with_gnu_ld" = yes; then
10310 case $host_os in
10311 aix*)
10312 # The AIX port of GNU ld has always aspired to compatibility
10313 # with the native linker. However, as the warning in the GNU ld
10314 # block says, versions before 2.19.5* couldn't really create working
10315 # shared libraries, regardless of the interface used.
10316 case `$LD -v 2>&1` in
10317 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10318 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10319 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10321 lt_use_gnu_ld_interface=yes
10323 esac
10326 lt_use_gnu_ld_interface=yes
10328 esac
10331 if test "$lt_use_gnu_ld_interface" = yes; then
10332 # If archive_cmds runs LD, not CC, wlarc should be empty
10333 wlarc='${wl}'
10335 # Set some defaults for GNU ld with shared library support. These
10336 # are reset later if shared libraries are not supported. Putting them
10337 # here allows them to be overridden if necessary.
10338 runpath_var=LD_RUN_PATH
10339 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10340 export_dynamic_flag_spec='${wl}--export-dynamic'
10341 # ancient GNU ld didn't support --whole-archive et. al.
10342 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10343 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10344 else
10345 whole_archive_flag_spec=
10347 supports_anon_versioning=no
10348 case `$LD -v 2>&1` in
10349 *GNU\ gold*) supports_anon_versioning=yes ;;
10350 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10351 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10352 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10353 *\ 2.11.*) ;; # other 2.11 versions
10354 *) supports_anon_versioning=yes ;;
10355 esac
10357 # See if GNU ld supports shared libraries.
10358 case $host_os in
10359 aix[3-9]*)
10360 # On AIX/PPC, the GNU linker is very broken
10361 if test "$host_cpu" != ia64; then
10362 ld_shlibs=no
10363 cat <<_LT_EOF 1>&2
10365 *** Warning: the GNU linker, at least up to release 2.19, is reported
10366 *** to be unable to reliably create shared libraries on AIX.
10367 *** Therefore, libtool is disabling shared libraries support. If you
10368 *** really care for shared libraries, you may want to install binutils
10369 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10370 *** You will then need to restart the configuration process.
10372 _LT_EOF
10376 amigaos*)
10377 case $host_cpu in
10378 powerpc)
10379 # see comment about AmigaOS4 .so support
10380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10381 archive_expsym_cmds=''
10383 m68k)
10384 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)'
10385 hardcode_libdir_flag_spec='-L$libdir'
10386 hardcode_minus_L=yes
10388 esac
10391 beos*)
10392 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10393 allow_undefined_flag=unsupported
10394 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10395 # support --undefined. This deserves some investigation. FIXME
10396 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10397 else
10398 ld_shlibs=no
10402 cygwin* | mingw* | pw32* | cegcc*)
10403 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10404 # as there is no search path for DLLs.
10405 hardcode_libdir_flag_spec='-L$libdir'
10406 export_dynamic_flag_spec='${wl}--export-all-symbols'
10407 allow_undefined_flag=unsupported
10408 always_export_symbols=no
10409 enable_shared_with_static_runtimes=yes
10410 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10412 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10413 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10414 # If the export-symbols file already is a .def file (1st line
10415 # is EXPORTS), use it as is; otherwise, prepend...
10416 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10417 cp $export_symbols $output_objdir/$soname.def;
10418 else
10419 echo EXPORTS > $output_objdir/$soname.def;
10420 cat $export_symbols >> $output_objdir/$soname.def;
10422 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10423 else
10424 ld_shlibs=no
10428 haiku*)
10429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10430 link_all_deplibs=yes
10433 interix[3-9]*)
10434 hardcode_direct=no
10435 hardcode_shlibpath_var=no
10436 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10437 export_dynamic_flag_spec='${wl}-E'
10438 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10439 # Instead, shared libraries are loaded at an image base (0x10000000 by
10440 # default) and relocated if they conflict, which is a slow very memory
10441 # consuming and fragmenting process. To avoid this, we pick a random,
10442 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10443 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10444 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10445 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'
10448 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10449 tmp_diet=no
10450 if test "$host_os" = linux-dietlibc; then
10451 case $cc_basename in
10452 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10453 esac
10455 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10456 && test "$tmp_diet" = no
10457 then
10458 tmp_addflag=' $pic_flag'
10459 tmp_sharedflag='-shared'
10460 case $cc_basename,$host_cpu in
10461 pgcc*) # Portland Group C compiler
10462 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'
10463 tmp_addflag=' $pic_flag'
10465 pgf77* | pgf90* | pgf95* | pgfortran*)
10466 # Portland Group f77 and f90 compilers
10467 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'
10468 tmp_addflag=' $pic_flag -Mnomain' ;;
10469 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10470 tmp_addflag=' -i_dynamic' ;;
10471 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10472 tmp_addflag=' -i_dynamic -nofor_main' ;;
10473 ifc* | ifort*) # Intel Fortran compiler
10474 tmp_addflag=' -nofor_main' ;;
10475 lf95*) # Lahey Fortran 8.1
10476 whole_archive_flag_spec=
10477 tmp_sharedflag='--shared' ;;
10478 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10479 tmp_sharedflag='-qmkshrobj'
10480 tmp_addflag= ;;
10481 nvcc*) # Cuda Compiler Driver 2.2
10482 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'
10483 compiler_needs_object=yes
10485 esac
10486 case `$CC -V 2>&1 | sed 5q` in
10487 *Sun\ C*) # Sun C 5.9
10488 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'
10489 compiler_needs_object=yes
10490 tmp_sharedflag='-G' ;;
10491 *Sun\ F*) # Sun Fortran 8.3
10492 tmp_sharedflag='-G' ;;
10493 esac
10494 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10496 if test "x$supports_anon_versioning" = xyes; then
10497 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10498 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10499 echo "local: *; };" >> $output_objdir/$libname.ver~
10500 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10503 case $cc_basename in
10504 xlf* | bgf* | bgxlf* | mpixlf*)
10505 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10506 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10507 hardcode_libdir_flag_spec=
10508 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10509 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10510 if test "x$supports_anon_versioning" = xyes; then
10511 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10512 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10513 echo "local: *; };" >> $output_objdir/$libname.ver~
10514 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10517 esac
10518 else
10519 ld_shlibs=no
10523 netbsd*)
10524 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10525 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10526 wlarc=
10527 else
10528 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10529 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10533 solaris*)
10534 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10535 ld_shlibs=no
10536 cat <<_LT_EOF 1>&2
10538 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10539 *** create shared libraries on Solaris systems. Therefore, libtool
10540 *** is disabling shared libraries support. We urge you to upgrade GNU
10541 *** binutils to release 2.9.1 or newer. Another option is to modify
10542 *** your PATH or compiler configuration so that the native linker is
10543 *** used, and then restart.
10545 _LT_EOF
10546 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10547 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10548 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10549 else
10550 ld_shlibs=no
10554 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10555 case `$LD -v 2>&1` in
10556 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10557 ld_shlibs=no
10558 cat <<_LT_EOF 1>&2
10560 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10561 *** reliably create shared libraries on SCO systems. Therefore, libtool
10562 *** is disabling shared libraries support. We urge you to upgrade GNU
10563 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10564 *** your PATH or compiler configuration so that the native linker is
10565 *** used, and then restart.
10567 _LT_EOF
10570 # For security reasons, it is highly recommended that you always
10571 # use absolute paths for naming shared libraries, and exclude the
10572 # DT_RUNPATH tag from executables and libraries. But doing so
10573 # requires that you compile everything twice, which is a pain.
10574 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10575 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10577 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10578 else
10579 ld_shlibs=no
10582 esac
10585 sunos4*)
10586 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10587 wlarc=
10588 hardcode_direct=yes
10589 hardcode_shlibpath_var=no
10593 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10594 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10595 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10596 else
10597 ld_shlibs=no
10600 esac
10602 if test "$ld_shlibs" = no; then
10603 runpath_var=
10604 hardcode_libdir_flag_spec=
10605 export_dynamic_flag_spec=
10606 whole_archive_flag_spec=
10608 else
10609 # PORTME fill in a description of your system's linker (not GNU ld)
10610 case $host_os in
10611 aix3*)
10612 allow_undefined_flag=unsupported
10613 always_export_symbols=yes
10614 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'
10615 # Note: this linker hardcodes the directories in LIBPATH if there
10616 # are no directories specified by -L.
10617 hardcode_minus_L=yes
10618 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10619 # Neither direct hardcoding nor static linking is supported with a
10620 # broken collect2.
10621 hardcode_direct=unsupported
10625 aix[4-9]*)
10626 if test "$host_cpu" = ia64; then
10627 # On IA64, the linker does run time linking by default, so we don't
10628 # have to do anything special.
10629 aix_use_runtimelinking=no
10630 exp_sym_flag='-Bexport'
10631 no_entry_flag=""
10632 else
10633 # If we're using GNU nm, then we don't want the "-C" option.
10634 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10635 # Also, AIX nm treats weak defined symbols like other global
10636 # defined symbols, whereas GNU nm marks them as "W".
10637 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10638 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'
10639 else
10640 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'
10642 aix_use_runtimelinking=no
10644 # Test if we are trying to use run time linking or normal
10645 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10646 # need to do runtime linking.
10647 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10648 for ld_flag in $LDFLAGS; do
10649 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10650 aix_use_runtimelinking=yes
10651 break
10653 done
10655 esac
10657 exp_sym_flag='-bexport'
10658 no_entry_flag='-bnoentry'
10661 # When large executables or shared objects are built, AIX ld can
10662 # have problems creating the table of contents. If linking a library
10663 # or program results in "error TOC overflow" add -mminimal-toc to
10664 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10665 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10667 archive_cmds=''
10668 hardcode_direct=yes
10669 hardcode_direct_absolute=yes
10670 hardcode_libdir_separator=':'
10671 link_all_deplibs=yes
10672 file_list_spec='${wl}-f,'
10674 if test "$GCC" = yes; then
10675 case $host_os in aix4.[012]|aix4.[012].*)
10676 # We only want to do this on AIX 4.2 and lower, the check
10677 # below for broken collect2 doesn't work under 4.3+
10678 collect2name=`${CC} -print-prog-name=collect2`
10679 if test -f "$collect2name" &&
10680 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10681 then
10682 # We have reworked collect2
10684 else
10685 # We have old collect2
10686 hardcode_direct=unsupported
10687 # It fails to find uninstalled libraries when the uninstalled
10688 # path is not listed in the libpath. Setting hardcode_minus_L
10689 # to unsupported forces relinking
10690 hardcode_minus_L=yes
10691 hardcode_libdir_flag_spec='-L$libdir'
10692 hardcode_libdir_separator=
10695 esac
10696 shared_flag='-shared'
10697 if test "$aix_use_runtimelinking" = yes; then
10698 shared_flag="$shared_flag "'${wl}-G'
10700 else
10701 # not using gcc
10702 if test "$host_cpu" = ia64; then
10703 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10704 # chokes on -Wl,-G. The following line is correct:
10705 shared_flag='-G'
10706 else
10707 if test "$aix_use_runtimelinking" = yes; then
10708 shared_flag='${wl}-G'
10709 else
10710 shared_flag='${wl}-bM:SRE'
10715 export_dynamic_flag_spec='${wl}-bexpall'
10716 # It seems that -bexpall does not export symbols beginning with
10717 # underscore (_), so it is better to generate a list of symbols to export.
10718 always_export_symbols=yes
10719 if test "$aix_use_runtimelinking" = yes; then
10720 # Warning - without using the other runtime loading flags (-brtl),
10721 # -berok will link without error, but may produce a broken library.
10722 allow_undefined_flag='-berok'
10723 # Determine the default libpath from the value encoded in an
10724 # empty executable.
10725 if test x$gcc_no_link = xyes; then
10726 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10729 /* end confdefs.h. */
10732 main ()
10736 return 0;
10738 _ACEOF
10739 if ac_fn_c_try_link "$LINENO"; then :
10741 lt_aix_libpath_sed='
10742 /Import File Strings/,/^$/ {
10743 /^0/ {
10744 s/^0 *\(.*\)$/\1/
10748 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10749 # Check for a 64-bit object if we didn't find anything.
10750 if test -z "$aix_libpath"; then
10751 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10754 rm -f core conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10756 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10758 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10759 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"
10760 else
10761 if test "$host_cpu" = ia64; then
10762 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10763 allow_undefined_flag="-z nodefs"
10764 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"
10765 else
10766 # Determine the default libpath from the value encoded in an
10767 # empty executable.
10768 if test x$gcc_no_link = xyes; then
10769 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h. */
10775 main ()
10779 return 0;
10781 _ACEOF
10782 if ac_fn_c_try_link "$LINENO"; then :
10784 lt_aix_libpath_sed='
10785 /Import File Strings/,/^$/ {
10786 /^0/ {
10787 s/^0 *\(.*\)$/\1/
10791 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10792 # Check for a 64-bit object if we didn't find anything.
10793 if test -z "$aix_libpath"; then
10794 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10797 rm -f core conftest.err conftest.$ac_objext \
10798 conftest$ac_exeext conftest.$ac_ext
10799 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10801 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10802 # Warning - without using the other run time loading flags,
10803 # -berok will link without error, but may produce a broken library.
10804 no_undefined_flag=' ${wl}-bernotok'
10805 allow_undefined_flag=' ${wl}-berok'
10806 if test "$with_gnu_ld" = yes; then
10807 # We only use this code for GNU lds that support --whole-archive.
10808 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10809 else
10810 # Exported symbols can be pulled into shared objects from archives
10811 whole_archive_flag_spec='$convenience'
10813 archive_cmds_need_lc=yes
10814 # This is similar to how AIX traditionally builds its shared libraries.
10815 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'
10820 amigaos*)
10821 case $host_cpu in
10822 powerpc)
10823 # see comment about AmigaOS4 .so support
10824 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10825 archive_expsym_cmds=''
10827 m68k)
10828 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)'
10829 hardcode_libdir_flag_spec='-L$libdir'
10830 hardcode_minus_L=yes
10832 esac
10835 bsdi[45]*)
10836 export_dynamic_flag_spec=-rdynamic
10839 cygwin* | mingw* | pw32* | cegcc*)
10840 # When not using gcc, we currently assume that we are using
10841 # Microsoft Visual C++.
10842 # hardcode_libdir_flag_spec is actually meaningless, as there is
10843 # no search path for DLLs.
10844 hardcode_libdir_flag_spec=' '
10845 allow_undefined_flag=unsupported
10846 # Tell ltmain to make .lib files, not .a files.
10847 libext=lib
10848 # Tell ltmain to make .dll files, not .so files.
10849 shrext_cmds=".dll"
10850 # FIXME: Setting linknames here is a bad hack.
10851 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10852 # The linker will automatically build a .lib file if we build a DLL.
10853 old_archive_from_new_cmds='true'
10854 # FIXME: Should let the user specify the lib program.
10855 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10856 fix_srcfile_path='`cygpath -w "$srcfile"`'
10857 enable_shared_with_static_runtimes=yes
10860 darwin* | rhapsody*)
10863 archive_cmds_need_lc=no
10864 hardcode_direct=no
10865 hardcode_automatic=yes
10866 hardcode_shlibpath_var=unsupported
10867 if test "$lt_cv_ld_force_load" = "yes"; then
10868 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\"`'
10869 else
10870 whole_archive_flag_spec=''
10872 link_all_deplibs=yes
10873 allow_undefined_flag="$_lt_dar_allow_undefined"
10874 case $cc_basename in
10875 ifort*) _lt_dar_can_shared=yes ;;
10876 *) _lt_dar_can_shared=$GCC ;;
10877 esac
10878 if test "$_lt_dar_can_shared" = "yes"; then
10879 output_verbose_link_cmd=func_echo_all
10880 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10881 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10882 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}"
10883 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}"
10885 else
10886 ld_shlibs=no
10891 dgux*)
10892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10893 hardcode_libdir_flag_spec='-L$libdir'
10894 hardcode_shlibpath_var=no
10897 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10898 # support. Future versions do this automatically, but an explicit c++rt0.o
10899 # does not break anything, and helps significantly (at the cost of a little
10900 # extra space).
10901 freebsd2.2*)
10902 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10903 hardcode_libdir_flag_spec='-R$libdir'
10904 hardcode_direct=yes
10905 hardcode_shlibpath_var=no
10908 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10909 freebsd2.*)
10910 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10911 hardcode_direct=yes
10912 hardcode_minus_L=yes
10913 hardcode_shlibpath_var=no
10916 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10917 freebsd* | dragonfly*)
10918 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10919 hardcode_libdir_flag_spec='-R$libdir'
10920 hardcode_direct=yes
10921 hardcode_shlibpath_var=no
10924 hpux9*)
10925 if test "$GCC" = yes; then
10926 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'
10927 else
10928 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'
10930 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10931 hardcode_libdir_separator=:
10932 hardcode_direct=yes
10934 # hardcode_minus_L: Not really in the search PATH,
10935 # but as the default location of the library.
10936 hardcode_minus_L=yes
10937 export_dynamic_flag_spec='${wl}-E'
10940 hpux10*)
10941 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10942 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10943 else
10944 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10946 if test "$with_gnu_ld" = no; then
10947 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10948 hardcode_libdir_flag_spec_ld='+b $libdir'
10949 hardcode_libdir_separator=:
10950 hardcode_direct=yes
10951 hardcode_direct_absolute=yes
10952 export_dynamic_flag_spec='${wl}-E'
10953 # hardcode_minus_L: Not really in the search PATH,
10954 # but as the default location of the library.
10955 hardcode_minus_L=yes
10959 hpux11*)
10960 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10961 case $host_cpu in
10962 hppa*64*)
10963 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10965 ia64*)
10966 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10969 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10971 esac
10972 else
10973 case $host_cpu in
10974 hppa*64*)
10975 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10977 ia64*)
10978 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10982 # Older versions of the 11.00 compiler do not understand -b yet
10983 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10985 $as_echo_n "checking if $CC understands -b... " >&6; }
10986 if ${lt_cv_prog_compiler__b+:} false; then :
10987 $as_echo_n "(cached) " >&6
10988 else
10989 lt_cv_prog_compiler__b=no
10990 save_LDFLAGS="$LDFLAGS"
10991 LDFLAGS="$LDFLAGS -b"
10992 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10993 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10994 # The linker can only warn and ignore the option if not recognized
10995 # So say no if there are warnings
10996 if test -s conftest.err; then
10997 # Append any errors to the config.log.
10998 cat conftest.err 1>&5
10999 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11000 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11001 if diff conftest.exp conftest.er2 >/dev/null; then
11002 lt_cv_prog_compiler__b=yes
11004 else
11005 lt_cv_prog_compiler__b=yes
11008 $RM -r conftest*
11009 LDFLAGS="$save_LDFLAGS"
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11013 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11015 if test x"$lt_cv_prog_compiler__b" = xyes; then
11016 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11017 else
11018 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11022 esac
11024 if test "$with_gnu_ld" = no; then
11025 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11026 hardcode_libdir_separator=:
11028 case $host_cpu in
11029 hppa*64*|ia64*)
11030 hardcode_direct=no
11031 hardcode_shlibpath_var=no
11034 hardcode_direct=yes
11035 hardcode_direct_absolute=yes
11036 export_dynamic_flag_spec='${wl}-E'
11038 # hardcode_minus_L: Not really in the search PATH,
11039 # but as the default location of the library.
11040 hardcode_minus_L=yes
11042 esac
11046 irix5* | irix6* | nonstopux*)
11047 if test "$GCC" = yes; then
11048 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'
11049 # Try to use the -exported_symbol ld option, if it does not
11050 # work, assume that -exports_file does not work either and
11051 # implicitly export all symbols.
11052 save_LDFLAGS="$LDFLAGS"
11053 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11054 if test x$gcc_no_link = xyes; then
11055 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11058 /* end confdefs.h. */
11059 int foo(void) {}
11060 _ACEOF
11061 if ac_fn_c_try_link "$LINENO"; then :
11062 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'
11065 rm -f core conftest.err conftest.$ac_objext \
11066 conftest$ac_exeext conftest.$ac_ext
11067 LDFLAGS="$save_LDFLAGS"
11068 else
11069 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'
11070 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'
11072 archive_cmds_need_lc='no'
11073 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11074 hardcode_libdir_separator=:
11075 inherit_rpath=yes
11076 link_all_deplibs=yes
11079 netbsd*)
11080 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11081 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11082 else
11083 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11085 hardcode_libdir_flag_spec='-R$libdir'
11086 hardcode_direct=yes
11087 hardcode_shlibpath_var=no
11090 newsos6)
11091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11092 hardcode_direct=yes
11093 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11094 hardcode_libdir_separator=:
11095 hardcode_shlibpath_var=no
11098 *nto* | *qnx*)
11101 openbsd*)
11102 if test -f /usr/libexec/ld.so; then
11103 hardcode_direct=yes
11104 hardcode_shlibpath_var=no
11105 hardcode_direct_absolute=yes
11106 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11107 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11108 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11109 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11110 export_dynamic_flag_spec='${wl}-E'
11111 else
11112 case $host_os in
11113 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11114 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11115 hardcode_libdir_flag_spec='-R$libdir'
11118 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11119 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11121 esac
11123 else
11124 ld_shlibs=no
11128 os2*)
11129 hardcode_libdir_flag_spec='-L$libdir'
11130 hardcode_minus_L=yes
11131 allow_undefined_flag=unsupported
11132 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'
11133 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11136 osf3*)
11137 if test "$GCC" = yes; then
11138 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11139 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'
11140 else
11141 allow_undefined_flag=' -expect_unresolved \*'
11142 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'
11144 archive_cmds_need_lc='no'
11145 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11146 hardcode_libdir_separator=:
11149 osf4* | osf5*) # as osf3* with the addition of -msym flag
11150 if test "$GCC" = yes; then
11151 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11152 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'
11153 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11154 else
11155 allow_undefined_flag=' -expect_unresolved \*'
11156 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'
11157 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~
11158 $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'
11160 # Both c and cxx compiler support -rpath directly
11161 hardcode_libdir_flag_spec='-rpath $libdir'
11163 archive_cmds_need_lc='no'
11164 hardcode_libdir_separator=:
11167 solaris*)
11168 no_undefined_flag=' -z defs'
11169 if test "$GCC" = yes; then
11170 wlarc='${wl}'
11171 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11172 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11173 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11174 else
11175 case `$CC -V 2>&1` in
11176 *"Compilers 5.0"*)
11177 wlarc=''
11178 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11179 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11180 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11183 wlarc='${wl}'
11184 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11185 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11186 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11188 esac
11190 hardcode_libdir_flag_spec='-R$libdir'
11191 hardcode_shlibpath_var=no
11192 case $host_os in
11193 solaris2.[0-5] | solaris2.[0-5].*) ;;
11195 # The compiler driver will combine and reorder linker options,
11196 # but understands `-z linker_flag'. GCC discards it without `$wl',
11197 # but is careful enough not to reorder.
11198 # Supported since Solaris 2.6 (maybe 2.5.1?)
11199 if test "$GCC" = yes; then
11200 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11201 else
11202 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11205 esac
11206 link_all_deplibs=yes
11209 sunos4*)
11210 if test "x$host_vendor" = xsequent; then
11211 # Use $CC to link under sequent, because it throws in some extra .o
11212 # files that make .init and .fini sections work.
11213 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11214 else
11215 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11217 hardcode_libdir_flag_spec='-L$libdir'
11218 hardcode_direct=yes
11219 hardcode_minus_L=yes
11220 hardcode_shlibpath_var=no
11223 sysv4)
11224 case $host_vendor in
11225 sni)
11226 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11227 hardcode_direct=yes # is this really true???
11229 siemens)
11230 ## LD is ld it makes a PLAMLIB
11231 ## CC just makes a GrossModule.
11232 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11233 reload_cmds='$CC -r -o $output$reload_objs'
11234 hardcode_direct=no
11236 motorola)
11237 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11238 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11240 esac
11241 runpath_var='LD_RUN_PATH'
11242 hardcode_shlibpath_var=no
11245 sysv4.3*)
11246 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11247 hardcode_shlibpath_var=no
11248 export_dynamic_flag_spec='-Bexport'
11251 sysv4*MP*)
11252 if test -d /usr/nec; then
11253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11254 hardcode_shlibpath_var=no
11255 runpath_var=LD_RUN_PATH
11256 hardcode_runpath_var=yes
11257 ld_shlibs=yes
11261 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11262 no_undefined_flag='${wl}-z,text'
11263 archive_cmds_need_lc=no
11264 hardcode_shlibpath_var=no
11265 runpath_var='LD_RUN_PATH'
11267 if test "$GCC" = yes; then
11268 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11269 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11270 else
11271 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11272 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11276 sysv5* | sco3.2v5* | sco5v6*)
11277 # Note: We can NOT use -z defs as we might desire, because we do not
11278 # link with -lc, and that would cause any symbols used from libc to
11279 # always be unresolved, which means just about no library would
11280 # ever link correctly. If we're not using GNU ld we use -z text
11281 # though, which does catch some bad symbols but isn't as heavy-handed
11282 # as -z defs.
11283 no_undefined_flag='${wl}-z,text'
11284 allow_undefined_flag='${wl}-z,nodefs'
11285 archive_cmds_need_lc=no
11286 hardcode_shlibpath_var=no
11287 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11288 hardcode_libdir_separator=':'
11289 link_all_deplibs=yes
11290 export_dynamic_flag_spec='${wl}-Bexport'
11291 runpath_var='LD_RUN_PATH'
11293 if test "$GCC" = yes; then
11294 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11295 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11296 else
11297 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11298 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11302 uts4*)
11303 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11304 hardcode_libdir_flag_spec='-L$libdir'
11305 hardcode_shlibpath_var=no
11309 ld_shlibs=no
11311 esac
11313 if test x$host_vendor = xsni; then
11314 case $host in
11315 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11316 export_dynamic_flag_spec='${wl}-Blargedynsym'
11318 esac
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11323 $as_echo "$ld_shlibs" >&6; }
11324 test "$ld_shlibs" = no && can_build_shared=no
11326 with_gnu_ld=$with_gnu_ld
11343 # Do we need to explicitly link libc?
11345 case "x$archive_cmds_need_lc" in
11346 x|xyes)
11347 # Assume -lc should be added
11348 archive_cmds_need_lc=yes
11350 if test "$enable_shared" = yes && test "$GCC" = yes; then
11351 case $archive_cmds in
11352 *'~'*)
11353 # FIXME: we may have to deal with multi-command sequences.
11355 '$CC '*)
11356 # Test whether the compiler implicitly links with -lc since on some
11357 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11358 # to ld, don't add -lc before -lgcc.
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11360 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11361 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11362 $as_echo_n "(cached) " >&6
11363 else
11364 $RM conftest*
11365 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11367 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11368 (eval $ac_compile) 2>&5
11369 ac_status=$?
11370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11371 test $ac_status = 0; } 2>conftest.err; then
11372 soname=conftest
11373 lib=conftest
11374 libobjs=conftest.$ac_objext
11375 deplibs=
11376 wl=$lt_prog_compiler_wl
11377 pic_flag=$lt_prog_compiler_pic
11378 compiler_flags=-v
11379 linker_flags=-v
11380 verstring=
11381 output_objdir=.
11382 libname=conftest
11383 lt_save_allow_undefined_flag=$allow_undefined_flag
11384 allow_undefined_flag=
11385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11386 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11387 ac_status=$?
11388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11389 test $ac_status = 0; }
11390 then
11391 lt_cv_archive_cmds_need_lc=no
11392 else
11393 lt_cv_archive_cmds_need_lc=yes
11395 allow_undefined_flag=$lt_save_allow_undefined_flag
11396 else
11397 cat conftest.err 1>&5
11399 $RM conftest*
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11403 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11404 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11406 esac
11409 esac
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11568 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11570 if test "$GCC" = yes; then
11571 case $host_os in
11572 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11573 *) lt_awk_arg="/^libraries:/" ;;
11574 esac
11575 case $host_os in
11576 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11577 *) lt_sed_strip_eq="s,=/,/,g" ;;
11578 esac
11579 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11580 case $lt_search_path_spec in
11581 *\;*)
11582 # if the path contains ";" then we assume it to be the separator
11583 # otherwise default to the standard path separator (i.e. ":") - it is
11584 # assumed that no part of a normal pathname contains ";" but that should
11585 # okay in the real world where ";" in dirpaths is itself problematic.
11586 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11589 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11591 esac
11592 # Ok, now we have the path, separated by spaces, we can step through it
11593 # and add multilib dir if necessary.
11594 lt_tmp_lt_search_path_spec=
11595 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11596 for lt_sys_path in $lt_search_path_spec; do
11597 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11598 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11599 else
11600 test -d "$lt_sys_path" && \
11601 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11603 done
11604 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11605 BEGIN {RS=" "; FS="/|\n";} {
11606 lt_foo="";
11607 lt_count=0;
11608 for (lt_i = NF; lt_i > 0; lt_i--) {
11609 if ($lt_i != "" && $lt_i != ".") {
11610 if ($lt_i == "..") {
11611 lt_count++;
11612 } else {
11613 if (lt_count == 0) {
11614 lt_foo="/" $lt_i lt_foo;
11615 } else {
11616 lt_count--;
11621 if (lt_foo != "") { lt_freq[lt_foo]++; }
11622 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11624 # AWK program above erroneously prepends '/' to C:/dos/paths
11625 # for these hosts.
11626 case $host_os in
11627 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11628 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11629 esac
11630 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11631 else
11632 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11634 library_names_spec=
11635 libname_spec='lib$name'
11636 soname_spec=
11637 shrext_cmds=".so"
11638 postinstall_cmds=
11639 postuninstall_cmds=
11640 finish_cmds=
11641 finish_eval=
11642 shlibpath_var=
11643 shlibpath_overrides_runpath=unknown
11644 version_type=none
11645 dynamic_linker="$host_os ld.so"
11646 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11647 need_lib_prefix=unknown
11648 hardcode_into_libs=no
11650 # when you set need_version to no, make sure it does not cause -set_version
11651 # flags to be left without arguments
11652 need_version=unknown
11654 case $host_os in
11655 aix3*)
11656 version_type=linux
11657 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11658 shlibpath_var=LIBPATH
11660 # AIX 3 has no versioning support, so we append a major version to the name.
11661 soname_spec='${libname}${release}${shared_ext}$major'
11664 aix[4-9]*)
11665 version_type=linux
11666 need_lib_prefix=no
11667 need_version=no
11668 hardcode_into_libs=yes
11669 if test "$host_cpu" = ia64; then
11670 # AIX 5 supports IA64
11671 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11672 shlibpath_var=LD_LIBRARY_PATH
11673 else
11674 # With GCC up to 2.95.x, collect2 would create an import file
11675 # for dependence libraries. The import file would start with
11676 # the line `#! .'. This would cause the generated library to
11677 # depend on `.', always an invalid library. This was fixed in
11678 # development snapshots of GCC prior to 3.0.
11679 case $host_os in
11680 aix4 | aix4.[01] | aix4.[01].*)
11681 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11682 echo ' yes '
11683 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11685 else
11686 can_build_shared=no
11689 esac
11690 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11691 # soname into executable. Probably we can add versioning support to
11692 # collect2, so additional links can be useful in future.
11693 if test "$aix_use_runtimelinking" = yes; then
11694 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11695 # instead of lib<name>.a to let people know that these are not
11696 # typical AIX shared libraries.
11697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11698 else
11699 # We preserve .a as extension for shared libraries through AIX4.2
11700 # and later when we are not doing run time linking.
11701 library_names_spec='${libname}${release}.a $libname.a'
11702 soname_spec='${libname}${release}${shared_ext}$major'
11704 shlibpath_var=LIBPATH
11708 amigaos*)
11709 case $host_cpu in
11710 powerpc)
11711 # Since July 2007 AmigaOS4 officially supports .so libraries.
11712 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11715 m68k)
11716 library_names_spec='$libname.ixlibrary $libname.a'
11717 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11718 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'
11720 esac
11723 beos*)
11724 library_names_spec='${libname}${shared_ext}'
11725 dynamic_linker="$host_os ld.so"
11726 shlibpath_var=LIBRARY_PATH
11729 bsdi[45]*)
11730 version_type=linux
11731 need_version=no
11732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11733 soname_spec='${libname}${release}${shared_ext}$major'
11734 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11735 shlibpath_var=LD_LIBRARY_PATH
11736 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11737 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11738 # the default ld.so.conf also contains /usr/contrib/lib and
11739 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11740 # libtool to hard-code these into programs
11743 cygwin* | mingw* | pw32* | cegcc*)
11744 version_type=windows
11745 shrext_cmds=".dll"
11746 need_version=no
11747 need_lib_prefix=no
11749 case $GCC,$host_os in
11750 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11751 library_names_spec='$libname.dll.a'
11752 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11753 postinstall_cmds='base_file=`basename \${file}`~
11754 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11755 dldir=$destdir/`dirname \$dlpath`~
11756 test -d \$dldir || mkdir -p \$dldir~
11757 $install_prog $dir/$dlname \$dldir/$dlname~
11758 chmod a+x \$dldir/$dlname~
11759 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11760 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11762 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11763 dlpath=$dir/\$dldll~
11764 $RM \$dlpath'
11765 shlibpath_overrides_runpath=yes
11767 case $host_os in
11768 cygwin*)
11769 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11770 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11772 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11774 mingw* | cegcc*)
11775 # MinGW DLLs use traditional 'lib' prefix
11776 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11778 pw32*)
11779 # pw32 DLLs use 'pw' prefix rather than 'lib'
11780 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11782 esac
11786 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11788 esac
11789 dynamic_linker='Win32 ld.exe'
11790 # FIXME: first we should search . and the directory the executable is in
11791 shlibpath_var=PATH
11794 darwin* | rhapsody*)
11795 dynamic_linker="$host_os dyld"
11796 version_type=darwin
11797 need_lib_prefix=no
11798 need_version=no
11799 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11800 soname_spec='${libname}${release}${major}$shared_ext'
11801 shlibpath_overrides_runpath=yes
11802 shlibpath_var=DYLD_LIBRARY_PATH
11803 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11805 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11806 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11809 dgux*)
11810 version_type=linux
11811 need_lib_prefix=no
11812 need_version=no
11813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11814 soname_spec='${libname}${release}${shared_ext}$major'
11815 shlibpath_var=LD_LIBRARY_PATH
11818 freebsd* | dragonfly*)
11819 # DragonFly does not have aout. When/if they implement a new
11820 # versioning mechanism, adjust this.
11821 if test -x /usr/bin/objformat; then
11822 objformat=`/usr/bin/objformat`
11823 else
11824 case $host_os in
11825 freebsd[23].*) objformat=aout ;;
11826 *) objformat=elf ;;
11827 esac
11829 version_type=freebsd-$objformat
11830 case $version_type in
11831 freebsd-elf*)
11832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11833 need_version=no
11834 need_lib_prefix=no
11836 freebsd-*)
11837 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11838 need_version=yes
11840 esac
11841 shlibpath_var=LD_LIBRARY_PATH
11842 case $host_os in
11843 freebsd2.*)
11844 shlibpath_overrides_runpath=yes
11846 freebsd3.[01]* | freebsdelf3.[01]*)
11847 shlibpath_overrides_runpath=yes
11848 hardcode_into_libs=yes
11850 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11851 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11852 shlibpath_overrides_runpath=no
11853 hardcode_into_libs=yes
11855 *) # from 4.6 on, and DragonFly
11856 shlibpath_overrides_runpath=yes
11857 hardcode_into_libs=yes
11859 esac
11862 haiku*)
11863 version_type=linux
11864 need_lib_prefix=no
11865 need_version=no
11866 dynamic_linker="$host_os runtime_loader"
11867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11868 soname_spec='${libname}${release}${shared_ext}$major'
11869 shlibpath_var=LIBRARY_PATH
11870 shlibpath_overrides_runpath=yes
11871 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11872 hardcode_into_libs=yes
11875 hpux9* | hpux10* | hpux11*)
11876 # Give a soname corresponding to the major version so that dld.sl refuses to
11877 # link against other versions.
11878 version_type=sunos
11879 need_lib_prefix=no
11880 need_version=no
11881 case $host_cpu in
11882 ia64*)
11883 shrext_cmds='.so'
11884 hardcode_into_libs=yes
11885 dynamic_linker="$host_os dld.so"
11886 shlibpath_var=LD_LIBRARY_PATH
11887 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11889 soname_spec='${libname}${release}${shared_ext}$major'
11890 if test "X$HPUX_IA64_MODE" = X32; then
11891 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11892 else
11893 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11895 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11897 hppa*64*)
11898 shrext_cmds='.sl'
11899 hardcode_into_libs=yes
11900 dynamic_linker="$host_os dld.sl"
11901 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11902 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11904 soname_spec='${libname}${release}${shared_ext}$major'
11905 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11906 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11909 shrext_cmds='.sl'
11910 dynamic_linker="$host_os dld.sl"
11911 shlibpath_var=SHLIB_PATH
11912 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11914 soname_spec='${libname}${release}${shared_ext}$major'
11916 esac
11917 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11918 postinstall_cmds='chmod 555 $lib'
11919 # or fails outright, so override atomically:
11920 install_override_mode=555
11923 interix[3-9]*)
11924 version_type=linux
11925 need_lib_prefix=no
11926 need_version=no
11927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11928 soname_spec='${libname}${release}${shared_ext}$major'
11929 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11930 shlibpath_var=LD_LIBRARY_PATH
11931 shlibpath_overrides_runpath=no
11932 hardcode_into_libs=yes
11935 irix5* | irix6* | nonstopux*)
11936 case $host_os in
11937 nonstopux*) version_type=nonstopux ;;
11939 if test "$lt_cv_prog_gnu_ld" = yes; then
11940 version_type=linux
11941 else
11942 version_type=irix
11943 fi ;;
11944 esac
11945 need_lib_prefix=no
11946 need_version=no
11947 soname_spec='${libname}${release}${shared_ext}$major'
11948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11949 case $host_os in
11950 irix5* | nonstopux*)
11951 libsuff= shlibsuff=
11954 case $LD in # libtool.m4 will add one of these switches to LD
11955 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11956 libsuff= shlibsuff= libmagic=32-bit;;
11957 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11958 libsuff=32 shlibsuff=N32 libmagic=N32;;
11959 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11960 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11961 *) libsuff= shlibsuff= libmagic=never-match;;
11962 esac
11964 esac
11965 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11966 shlibpath_overrides_runpath=no
11967 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11968 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11969 hardcode_into_libs=yes
11972 # No shared lib support for Linux oldld, aout, or coff.
11973 linux*oldld* | linux*aout* | linux*coff*)
11974 dynamic_linker=no
11977 # This must be Linux ELF.
11979 # uclinux* changes (here and below) have been submitted to the libtool
11980 # project, but have not yet been accepted: they are GCC-local changes
11981 # for the time being. (See
11982 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11983 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11984 version_type=linux
11985 need_lib_prefix=no
11986 need_version=no
11987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11988 soname_spec='${libname}${release}${shared_ext}$major'
11989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11990 shlibpath_var=LD_LIBRARY_PATH
11991 shlibpath_overrides_runpath=no
11993 # Some binutils ld are patched to set DT_RUNPATH
11994 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11995 $as_echo_n "(cached) " >&6
11996 else
11997 lt_cv_shlibpath_overrides_runpath=no
11998 save_LDFLAGS=$LDFLAGS
11999 save_libdir=$libdir
12000 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12001 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12002 if test x$gcc_no_link = xyes; then
12003 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12006 /* end confdefs.h. */
12009 main ()
12013 return 0;
12015 _ACEOF
12016 if ac_fn_c_try_link "$LINENO"; then :
12017 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12018 lt_cv_shlibpath_overrides_runpath=yes
12021 rm -f core conftest.err conftest.$ac_objext \
12022 conftest$ac_exeext conftest.$ac_ext
12023 LDFLAGS=$save_LDFLAGS
12024 libdir=$save_libdir
12028 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12030 # This implies no fast_install, which is unacceptable.
12031 # Some rework will be needed to allow for fast_install
12032 # before this can be enabled.
12033 hardcode_into_libs=yes
12035 # Append ld.so.conf contents to the search path
12036 if test -f /etc/ld.so.conf; then
12037 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' ' '`
12038 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12041 # We used to test for /lib/ld.so.1 and disable shared libraries on
12042 # powerpc, because MkLinux only supported shared libraries with the
12043 # GNU dynamic linker. Since this was broken with cross compilers,
12044 # most powerpc-linux boxes support dynamic linking these days and
12045 # people can always --disable-shared, the test was removed, and we
12046 # assume the GNU/Linux dynamic linker is in use.
12047 dynamic_linker='GNU/Linux ld.so'
12050 netbsd*)
12051 version_type=sunos
12052 need_lib_prefix=no
12053 need_version=no
12054 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12057 dynamic_linker='NetBSD (a.out) ld.so'
12058 else
12059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12060 soname_spec='${libname}${release}${shared_ext}$major'
12061 dynamic_linker='NetBSD ld.elf_so'
12063 shlibpath_var=LD_LIBRARY_PATH
12064 shlibpath_overrides_runpath=yes
12065 hardcode_into_libs=yes
12068 newsos6)
12069 version_type=linux
12070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12071 shlibpath_var=LD_LIBRARY_PATH
12072 shlibpath_overrides_runpath=yes
12075 *nto* | *qnx*)
12076 version_type=qnx
12077 need_lib_prefix=no
12078 need_version=no
12079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12080 soname_spec='${libname}${release}${shared_ext}$major'
12081 shlibpath_var=LD_LIBRARY_PATH
12082 shlibpath_overrides_runpath=no
12083 hardcode_into_libs=yes
12084 dynamic_linker='ldqnx.so'
12087 openbsd*)
12088 version_type=sunos
12089 sys_lib_dlsearch_path_spec="/usr/lib"
12090 need_lib_prefix=no
12091 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12092 case $host_os in
12093 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12094 *) need_version=no ;;
12095 esac
12096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12097 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12098 shlibpath_var=LD_LIBRARY_PATH
12099 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12100 case $host_os in
12101 openbsd2.[89] | openbsd2.[89].*)
12102 shlibpath_overrides_runpath=no
12105 shlibpath_overrides_runpath=yes
12107 esac
12108 else
12109 shlibpath_overrides_runpath=yes
12113 os2*)
12114 libname_spec='$name'
12115 shrext_cmds=".dll"
12116 need_lib_prefix=no
12117 library_names_spec='$libname${shared_ext} $libname.a'
12118 dynamic_linker='OS/2 ld.exe'
12119 shlibpath_var=LIBPATH
12122 osf3* | osf4* | osf5*)
12123 version_type=osf
12124 need_lib_prefix=no
12125 need_version=no
12126 soname_spec='${libname}${release}${shared_ext}$major'
12127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12128 shlibpath_var=LD_LIBRARY_PATH
12129 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12130 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12133 rdos*)
12134 dynamic_linker=no
12137 solaris*)
12138 version_type=linux
12139 need_lib_prefix=no
12140 need_version=no
12141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12142 soname_spec='${libname}${release}${shared_ext}$major'
12143 shlibpath_var=LD_LIBRARY_PATH
12144 shlibpath_overrides_runpath=yes
12145 hardcode_into_libs=yes
12146 # ldd complains unless libraries are executable
12147 postinstall_cmds='chmod +x $lib'
12150 sunos4*)
12151 version_type=sunos
12152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12153 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12154 shlibpath_var=LD_LIBRARY_PATH
12155 shlibpath_overrides_runpath=yes
12156 if test "$with_gnu_ld" = yes; then
12157 need_lib_prefix=no
12159 need_version=yes
12162 sysv4 | sysv4.3*)
12163 version_type=linux
12164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12165 soname_spec='${libname}${release}${shared_ext}$major'
12166 shlibpath_var=LD_LIBRARY_PATH
12167 case $host_vendor in
12168 sni)
12169 shlibpath_overrides_runpath=no
12170 need_lib_prefix=no
12171 runpath_var=LD_RUN_PATH
12173 siemens)
12174 need_lib_prefix=no
12176 motorola)
12177 need_lib_prefix=no
12178 need_version=no
12179 shlibpath_overrides_runpath=no
12180 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12182 esac
12185 sysv4*MP*)
12186 if test -d /usr/nec ;then
12187 version_type=linux
12188 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12189 soname_spec='$libname${shared_ext}.$major'
12190 shlibpath_var=LD_LIBRARY_PATH
12194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12195 version_type=freebsd-elf
12196 need_lib_prefix=no
12197 need_version=no
12198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12199 soname_spec='${libname}${release}${shared_ext}$major'
12200 shlibpath_var=LD_LIBRARY_PATH
12201 shlibpath_overrides_runpath=yes
12202 hardcode_into_libs=yes
12203 if test "$with_gnu_ld" = yes; then
12204 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12205 else
12206 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12207 case $host_os in
12208 sco3.2v5*)
12209 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12211 esac
12213 sys_lib_dlsearch_path_spec='/usr/lib'
12216 tpf*)
12217 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12218 version_type=linux
12219 need_lib_prefix=no
12220 need_version=no
12221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12222 shlibpath_var=LD_LIBRARY_PATH
12223 shlibpath_overrides_runpath=no
12224 hardcode_into_libs=yes
12227 uts4*)
12228 version_type=linux
12229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12230 soname_spec='${libname}${release}${shared_ext}$major'
12231 shlibpath_var=LD_LIBRARY_PATH
12234 # Shared libraries for VwWorks, >= 7 only at this stage
12235 # and (fpic) still incompatible with "large" code models
12236 # in a few configurations. Only for RTP mode in any case,
12237 # and upon explicit request at configure time.
12238 vxworks7*)
12239 dynamic_linker=no
12240 case ${with_multisubdir}-${enable_shared} in
12241 *large*)
12243 *mrtp*-yes)
12244 version_type=linux
12245 need_lib_prefix=no
12246 need_version=no
12247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12248 soname_spec='${libname}${release}${shared_ext}$major'
12249 dynamic_linker="$host_os module_loader"
12251 esac
12254 dynamic_linker=no
12256 esac
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12258 $as_echo "$dynamic_linker" >&6; }
12259 test "$dynamic_linker" = no && can_build_shared=no
12261 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12262 if test "$GCC" = yes; then
12263 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12266 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12267 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12269 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12270 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12365 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12366 hardcode_action=
12367 if test -n "$hardcode_libdir_flag_spec" ||
12368 test -n "$runpath_var" ||
12369 test "X$hardcode_automatic" = "Xyes" ; then
12371 # We can hardcode non-existent directories.
12372 if test "$hardcode_direct" != no &&
12373 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12374 # have to relink, otherwise we might link with an installed library
12375 # when we should be linking with a yet-to-be-installed one
12376 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12377 test "$hardcode_minus_L" != no; then
12378 # Linking always hardcodes the temporary library directory.
12379 hardcode_action=relink
12380 else
12381 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12382 hardcode_action=immediate
12384 else
12385 # We cannot hardcode anything, or else we can only hardcode existing
12386 # directories.
12387 hardcode_action=unsupported
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12390 $as_echo "$hardcode_action" >&6; }
12392 if test "$hardcode_action" = relink ||
12393 test "$inherit_rpath" = yes; then
12394 # Fast installation is not supported
12395 enable_fast_install=no
12396 elif test "$shlibpath_overrides_runpath" = yes ||
12397 test "$enable_shared" = no; then
12398 # Fast installation is not necessary
12399 enable_fast_install=needless
12407 if test "x$enable_dlopen" != xyes; then
12408 enable_dlopen=unknown
12409 enable_dlopen_self=unknown
12410 enable_dlopen_self_static=unknown
12411 else
12412 lt_cv_dlopen=no
12413 lt_cv_dlopen_libs=
12415 case $host_os in
12416 beos*)
12417 lt_cv_dlopen="load_add_on"
12418 lt_cv_dlopen_libs=
12419 lt_cv_dlopen_self=yes
12422 mingw* | pw32* | cegcc*)
12423 lt_cv_dlopen="LoadLibrary"
12424 lt_cv_dlopen_libs=
12427 cygwin*)
12428 lt_cv_dlopen="dlopen"
12429 lt_cv_dlopen_libs=
12432 darwin*)
12433 # if libdl is installed we need to link against it
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12435 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12436 if ${ac_cv_lib_dl_dlopen+:} false; then :
12437 $as_echo_n "(cached) " >&6
12438 else
12439 ac_check_lib_save_LIBS=$LIBS
12440 LIBS="-ldl $LIBS"
12441 if test x$gcc_no_link = xyes; then
12442 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445 /* end confdefs.h. */
12447 /* Override any GCC internal prototype to avoid an error.
12448 Use char because int might match the return type of a GCC
12449 builtin and then its argument prototype would still apply. */
12450 #ifdef __cplusplus
12451 extern "C"
12452 #endif
12453 char dlopen ();
12455 main ()
12457 return dlopen ();
12459 return 0;
12461 _ACEOF
12462 if ac_fn_c_try_link "$LINENO"; then :
12463 ac_cv_lib_dl_dlopen=yes
12464 else
12465 ac_cv_lib_dl_dlopen=no
12467 rm -f core conftest.err conftest.$ac_objext \
12468 conftest$ac_exeext conftest.$ac_ext
12469 LIBS=$ac_check_lib_save_LIBS
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12472 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12473 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12474 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12475 else
12477 lt_cv_dlopen="dyld"
12478 lt_cv_dlopen_libs=
12479 lt_cv_dlopen_self=yes
12486 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12487 if test "x$ac_cv_func_shl_load" = xyes; then :
12488 lt_cv_dlopen="shl_load"
12489 else
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12491 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12492 if ${ac_cv_lib_dld_shl_load+:} false; then :
12493 $as_echo_n "(cached) " >&6
12494 else
12495 ac_check_lib_save_LIBS=$LIBS
12496 LIBS="-ldld $LIBS"
12497 if test x$gcc_no_link = xyes; then
12498 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12501 /* end confdefs.h. */
12503 /* Override any GCC internal prototype to avoid an error.
12504 Use char because int might match the return type of a GCC
12505 builtin and then its argument prototype would still apply. */
12506 #ifdef __cplusplus
12507 extern "C"
12508 #endif
12509 char shl_load ();
12511 main ()
12513 return shl_load ();
12515 return 0;
12517 _ACEOF
12518 if ac_fn_c_try_link "$LINENO"; then :
12519 ac_cv_lib_dld_shl_load=yes
12520 else
12521 ac_cv_lib_dld_shl_load=no
12523 rm -f core conftest.err conftest.$ac_objext \
12524 conftest$ac_exeext conftest.$ac_ext
12525 LIBS=$ac_check_lib_save_LIBS
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12528 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12529 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12530 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12531 else
12532 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12533 if test "x$ac_cv_func_dlopen" = xyes; then :
12534 lt_cv_dlopen="dlopen"
12535 else
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12537 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12538 if ${ac_cv_lib_dl_dlopen+:} false; then :
12539 $as_echo_n "(cached) " >&6
12540 else
12541 ac_check_lib_save_LIBS=$LIBS
12542 LIBS="-ldl $LIBS"
12543 if test x$gcc_no_link = xyes; then
12544 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12547 /* end confdefs.h. */
12549 /* Override any GCC internal prototype to avoid an error.
12550 Use char because int might match the return type of a GCC
12551 builtin and then its argument prototype would still apply. */
12552 #ifdef __cplusplus
12553 extern "C"
12554 #endif
12555 char dlopen ();
12557 main ()
12559 return dlopen ();
12561 return 0;
12563 _ACEOF
12564 if ac_fn_c_try_link "$LINENO"; then :
12565 ac_cv_lib_dl_dlopen=yes
12566 else
12567 ac_cv_lib_dl_dlopen=no
12569 rm -f core conftest.err conftest.$ac_objext \
12570 conftest$ac_exeext conftest.$ac_ext
12571 LIBS=$ac_check_lib_save_LIBS
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12574 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12575 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12576 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12577 else
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12579 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12580 if ${ac_cv_lib_svld_dlopen+:} false; then :
12581 $as_echo_n "(cached) " >&6
12582 else
12583 ac_check_lib_save_LIBS=$LIBS
12584 LIBS="-lsvld $LIBS"
12585 if test x$gcc_no_link = xyes; then
12586 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12589 /* end confdefs.h. */
12591 /* Override any GCC internal prototype to avoid an error.
12592 Use char because int might match the return type of a GCC
12593 builtin and then its argument prototype would still apply. */
12594 #ifdef __cplusplus
12595 extern "C"
12596 #endif
12597 char dlopen ();
12599 main ()
12601 return dlopen ();
12603 return 0;
12605 _ACEOF
12606 if ac_fn_c_try_link "$LINENO"; then :
12607 ac_cv_lib_svld_dlopen=yes
12608 else
12609 ac_cv_lib_svld_dlopen=no
12611 rm -f core conftest.err conftest.$ac_objext \
12612 conftest$ac_exeext conftest.$ac_ext
12613 LIBS=$ac_check_lib_save_LIBS
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12616 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12617 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12618 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12619 else
12620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12621 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12622 if ${ac_cv_lib_dld_dld_link+:} false; then :
12623 $as_echo_n "(cached) " >&6
12624 else
12625 ac_check_lib_save_LIBS=$LIBS
12626 LIBS="-ldld $LIBS"
12627 if test x$gcc_no_link = xyes; then
12628 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12631 /* end confdefs.h. */
12633 /* Override any GCC internal prototype to avoid an error.
12634 Use char because int might match the return type of a GCC
12635 builtin and then its argument prototype would still apply. */
12636 #ifdef __cplusplus
12637 extern "C"
12638 #endif
12639 char dld_link ();
12641 main ()
12643 return dld_link ();
12645 return 0;
12647 _ACEOF
12648 if ac_fn_c_try_link "$LINENO"; then :
12649 ac_cv_lib_dld_dld_link=yes
12650 else
12651 ac_cv_lib_dld_dld_link=no
12653 rm -f core conftest.err conftest.$ac_objext \
12654 conftest$ac_exeext conftest.$ac_ext
12655 LIBS=$ac_check_lib_save_LIBS
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12658 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12659 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12660 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12679 esac
12681 if test "x$lt_cv_dlopen" != xno; then
12682 enable_dlopen=yes
12683 else
12684 enable_dlopen=no
12687 case $lt_cv_dlopen in
12688 dlopen)
12689 save_CPPFLAGS="$CPPFLAGS"
12690 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12692 save_LDFLAGS="$LDFLAGS"
12693 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12695 save_LIBS="$LIBS"
12696 LIBS="$lt_cv_dlopen_libs $LIBS"
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12699 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12700 if ${lt_cv_dlopen_self+:} false; then :
12701 $as_echo_n "(cached) " >&6
12702 else
12703 if test "$cross_compiling" = yes; then :
12704 lt_cv_dlopen_self=cross
12705 else
12706 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12707 lt_status=$lt_dlunknown
12708 cat > conftest.$ac_ext <<_LT_EOF
12709 #line 12709 "configure"
12710 #include "confdefs.h"
12712 #if HAVE_DLFCN_H
12713 #include <dlfcn.h>
12714 #endif
12716 #include <stdio.h>
12718 #ifdef RTLD_GLOBAL
12719 # define LT_DLGLOBAL RTLD_GLOBAL
12720 #else
12721 # ifdef DL_GLOBAL
12722 # define LT_DLGLOBAL DL_GLOBAL
12723 # else
12724 # define LT_DLGLOBAL 0
12725 # endif
12726 #endif
12728 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12729 find out it does not work in some platform. */
12730 #ifndef LT_DLLAZY_OR_NOW
12731 # ifdef RTLD_LAZY
12732 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12733 # else
12734 # ifdef DL_LAZY
12735 # define LT_DLLAZY_OR_NOW DL_LAZY
12736 # else
12737 # ifdef RTLD_NOW
12738 # define LT_DLLAZY_OR_NOW RTLD_NOW
12739 # else
12740 # ifdef DL_NOW
12741 # define LT_DLLAZY_OR_NOW DL_NOW
12742 # else
12743 # define LT_DLLAZY_OR_NOW 0
12744 # endif
12745 # endif
12746 # endif
12747 # endif
12748 #endif
12750 /* When -fvisbility=hidden is used, assume the code has been annotated
12751 correspondingly for the symbols needed. */
12752 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12753 void fnord () __attribute__((visibility("default")));
12754 #endif
12756 void fnord () { int i=42; }
12757 int main ()
12759 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12760 int status = $lt_dlunknown;
12762 if (self)
12764 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12765 else
12767 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12768 else puts (dlerror ());
12770 /* dlclose (self); */
12772 else
12773 puts (dlerror ());
12775 return status;
12777 _LT_EOF
12778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12779 (eval $ac_link) 2>&5
12780 ac_status=$?
12781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12782 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12783 (./conftest; exit; ) >&5 2>/dev/null
12784 lt_status=$?
12785 case x$lt_status in
12786 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12787 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12788 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12789 esac
12790 else :
12791 # compilation failed
12792 lt_cv_dlopen_self=no
12795 rm -fr conftest*
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12800 $as_echo "$lt_cv_dlopen_self" >&6; }
12802 if test "x$lt_cv_dlopen_self" = xyes; then
12803 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12805 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12806 if ${lt_cv_dlopen_self_static+:} false; then :
12807 $as_echo_n "(cached) " >&6
12808 else
12809 if test "$cross_compiling" = yes; then :
12810 lt_cv_dlopen_self_static=cross
12811 else
12812 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12813 lt_status=$lt_dlunknown
12814 cat > conftest.$ac_ext <<_LT_EOF
12815 #line 12815 "configure"
12816 #include "confdefs.h"
12818 #if HAVE_DLFCN_H
12819 #include <dlfcn.h>
12820 #endif
12822 #include <stdio.h>
12824 #ifdef RTLD_GLOBAL
12825 # define LT_DLGLOBAL RTLD_GLOBAL
12826 #else
12827 # ifdef DL_GLOBAL
12828 # define LT_DLGLOBAL DL_GLOBAL
12829 # else
12830 # define LT_DLGLOBAL 0
12831 # endif
12832 #endif
12834 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12835 find out it does not work in some platform. */
12836 #ifndef LT_DLLAZY_OR_NOW
12837 # ifdef RTLD_LAZY
12838 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12839 # else
12840 # ifdef DL_LAZY
12841 # define LT_DLLAZY_OR_NOW DL_LAZY
12842 # else
12843 # ifdef RTLD_NOW
12844 # define LT_DLLAZY_OR_NOW RTLD_NOW
12845 # else
12846 # ifdef DL_NOW
12847 # define LT_DLLAZY_OR_NOW DL_NOW
12848 # else
12849 # define LT_DLLAZY_OR_NOW 0
12850 # endif
12851 # endif
12852 # endif
12853 # endif
12854 #endif
12856 /* When -fvisbility=hidden is used, assume the code has been annotated
12857 correspondingly for the symbols needed. */
12858 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12859 void fnord () __attribute__((visibility("default")));
12860 #endif
12862 void fnord () { int i=42; }
12863 int main ()
12865 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12866 int status = $lt_dlunknown;
12868 if (self)
12870 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12871 else
12873 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12874 else puts (dlerror ());
12876 /* dlclose (self); */
12878 else
12879 puts (dlerror ());
12881 return status;
12883 _LT_EOF
12884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12885 (eval $ac_link) 2>&5
12886 ac_status=$?
12887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12888 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12889 (./conftest; exit; ) >&5 2>/dev/null
12890 lt_status=$?
12891 case x$lt_status in
12892 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12893 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12894 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12895 esac
12896 else :
12897 # compilation failed
12898 lt_cv_dlopen_self_static=no
12901 rm -fr conftest*
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12906 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12909 CPPFLAGS="$save_CPPFLAGS"
12910 LDFLAGS="$save_LDFLAGS"
12911 LIBS="$save_LIBS"
12913 esac
12915 case $lt_cv_dlopen_self in
12916 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12917 *) enable_dlopen_self=unknown ;;
12918 esac
12920 case $lt_cv_dlopen_self_static in
12921 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12922 *) enable_dlopen_self_static=unknown ;;
12923 esac
12942 striplib=
12943 old_striplib=
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12945 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12946 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12947 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12948 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12950 $as_echo "yes" >&6; }
12951 else
12952 # FIXME - insert some real tests, host_os isn't really good enough
12953 case $host_os in
12954 darwin*)
12955 if test -n "$STRIP" ; then
12956 striplib="$STRIP -x"
12957 old_striplib="$STRIP -S"
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12959 $as_echo "yes" >&6; }
12960 else
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12962 $as_echo "no" >&6; }
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967 $as_echo "no" >&6; }
12969 esac
12983 # Report which library types will actually be built
12984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12985 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12987 $as_echo "$can_build_shared" >&6; }
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12990 $as_echo_n "checking whether to build shared libraries... " >&6; }
12991 test "$can_build_shared" = "no" && enable_shared=no
12993 # On AIX, shared libraries and static libraries use the same namespace, and
12994 # are all built from PIC.
12995 case $host_os in
12996 aix3*)
12997 test "$enable_shared" = yes && enable_static=no
12998 if test -n "$RANLIB"; then
12999 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13000 postinstall_cmds='$RANLIB $lib'
13004 aix[4-9]*)
13005 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13006 test "$enable_shared" = yes && enable_static=no
13009 esac
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13011 $as_echo "$enable_shared" >&6; }
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13014 $as_echo_n "checking whether to build static libraries... " >&6; }
13015 # Make sure either enable_shared or enable_static is yes.
13016 test "$enable_shared" = yes || enable_static=yes
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13018 $as_echo "$enable_static" >&6; }
13024 ac_ext=c
13025 ac_cpp='$CPP $CPPFLAGS'
13026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13030 CC="$lt_save_CC"
13032 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13033 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13034 (test "X$CXX" != "Xg++"))) ; then
13035 ac_ext=cpp
13036 ac_cpp='$CXXCPP $CPPFLAGS'
13037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13041 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13042 if test -z "$CXXCPP"; then
13043 if ${ac_cv_prog_CXXCPP+:} false; then :
13044 $as_echo_n "(cached) " >&6
13045 else
13046 # Double quotes because CXXCPP needs to be expanded
13047 for CXXCPP in "$CXX -E" "/lib/cpp"
13049 ac_preproc_ok=false
13050 for ac_cxx_preproc_warn_flag in '' yes
13052 # Use a header file that comes with gcc, so configuring glibc
13053 # with a fresh cross-compiler works.
13054 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13055 # <limits.h> exists even on freestanding compilers.
13056 # On the NeXT, cc -E runs the code through the compiler's parser,
13057 # not just through cpp. "Syntax error" is here to catch this case.
13058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13059 /* end confdefs.h. */
13060 #ifdef __STDC__
13061 # include <limits.h>
13062 #else
13063 # include <assert.h>
13064 #endif
13065 Syntax error
13066 _ACEOF
13067 if ac_fn_cxx_try_cpp "$LINENO"; then :
13069 else
13070 # Broken: fails on valid input.
13071 continue
13073 rm -f conftest.err conftest.i conftest.$ac_ext
13075 # OK, works on sane cases. Now check whether nonexistent headers
13076 # can be detected and how.
13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13079 #include <ac_nonexistent.h>
13080 _ACEOF
13081 if ac_fn_cxx_try_cpp "$LINENO"; then :
13082 # Broken: success on invalid input.
13083 continue
13084 else
13085 # Passes both tests.
13086 ac_preproc_ok=:
13087 break
13089 rm -f conftest.err conftest.i conftest.$ac_ext
13091 done
13092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13093 rm -f conftest.i conftest.err conftest.$ac_ext
13094 if $ac_preproc_ok; then :
13095 break
13098 done
13099 ac_cv_prog_CXXCPP=$CXXCPP
13102 CXXCPP=$ac_cv_prog_CXXCPP
13103 else
13104 ac_cv_prog_CXXCPP=$CXXCPP
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13107 $as_echo "$CXXCPP" >&6; }
13108 ac_preproc_ok=false
13109 for ac_cxx_preproc_warn_flag in '' yes
13111 # Use a header file that comes with gcc, so configuring glibc
13112 # with a fresh cross-compiler works.
13113 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13114 # <limits.h> exists even on freestanding compilers.
13115 # On the NeXT, cc -E runs the code through the compiler's parser,
13116 # not just through cpp. "Syntax error" is here to catch this case.
13117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13118 /* end confdefs.h. */
13119 #ifdef __STDC__
13120 # include <limits.h>
13121 #else
13122 # include <assert.h>
13123 #endif
13124 Syntax error
13125 _ACEOF
13126 if ac_fn_cxx_try_cpp "$LINENO"; then :
13128 else
13129 # Broken: fails on valid input.
13130 continue
13132 rm -f conftest.err conftest.i conftest.$ac_ext
13134 # OK, works on sane cases. Now check whether nonexistent headers
13135 # can be detected and how.
13136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h. */
13138 #include <ac_nonexistent.h>
13139 _ACEOF
13140 if ac_fn_cxx_try_cpp "$LINENO"; then :
13141 # Broken: success on invalid input.
13142 continue
13143 else
13144 # Passes both tests.
13145 ac_preproc_ok=:
13146 break
13148 rm -f conftest.err conftest.i conftest.$ac_ext
13150 done
13151 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13152 rm -f conftest.i conftest.err conftest.$ac_ext
13153 if $ac_preproc_ok; then :
13155 else
13156 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13157 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13158 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13159 See \`config.log' for more details" "$LINENO" 5; }
13162 ac_ext=c
13163 ac_cpp='$CPP $CPPFLAGS'
13164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13168 else
13169 _lt_caught_CXX_error=yes
13172 ac_ext=cpp
13173 ac_cpp='$CXXCPP $CPPFLAGS'
13174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13178 archive_cmds_need_lc_CXX=no
13179 allow_undefined_flag_CXX=
13180 always_export_symbols_CXX=no
13181 archive_expsym_cmds_CXX=
13182 compiler_needs_object_CXX=no
13183 export_dynamic_flag_spec_CXX=
13184 hardcode_direct_CXX=no
13185 hardcode_direct_absolute_CXX=no
13186 hardcode_libdir_flag_spec_CXX=
13187 hardcode_libdir_flag_spec_ld_CXX=
13188 hardcode_libdir_separator_CXX=
13189 hardcode_minus_L_CXX=no
13190 hardcode_shlibpath_var_CXX=unsupported
13191 hardcode_automatic_CXX=no
13192 inherit_rpath_CXX=no
13193 module_cmds_CXX=
13194 module_expsym_cmds_CXX=
13195 link_all_deplibs_CXX=unknown
13196 old_archive_cmds_CXX=$old_archive_cmds
13197 reload_flag_CXX=$reload_flag
13198 reload_cmds_CXX=$reload_cmds
13199 no_undefined_flag_CXX=
13200 whole_archive_flag_spec_CXX=
13201 enable_shared_with_static_runtimes_CXX=no
13203 # Source file extension for C++ test sources.
13204 ac_ext=cpp
13206 # Object file extension for compiled C++ test sources.
13207 objext=o
13208 objext_CXX=$objext
13210 # No sense in running all these tests if we already determined that
13211 # the CXX compiler isn't working. Some variables (like enable_shared)
13212 # are currently assumed to apply to all compilers on this platform,
13213 # and will be corrupted by setting them based on a non-working compiler.
13214 if test "$_lt_caught_CXX_error" != yes; then
13215 # Code to be used in simple compile tests
13216 lt_simple_compile_test_code="int some_variable = 0;"
13218 # Code to be used in simple link tests
13219 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13221 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13228 # If no C compiler was specified, use CC.
13229 LTCC=${LTCC-"$CC"}
13231 # If no C compiler flags were specified, use CFLAGS.
13232 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13234 # Allow CC to be a program name with arguments.
13235 compiler=$CC
13238 # save warnings/boilerplate of simple test code
13239 ac_outfile=conftest.$ac_objext
13240 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13241 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13242 _lt_compiler_boilerplate=`cat conftest.err`
13243 $RM conftest*
13245 ac_outfile=conftest.$ac_objext
13246 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13247 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13248 _lt_linker_boilerplate=`cat conftest.err`
13249 $RM -r conftest*
13252 # Allow CC to be a program name with arguments.
13253 lt_save_CC=$CC
13254 lt_save_LD=$LD
13255 lt_save_GCC=$GCC
13256 GCC=$GXX
13257 lt_save_with_gnu_ld=$with_gnu_ld
13258 lt_save_path_LD=$lt_cv_path_LD
13259 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13260 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13261 else
13262 $as_unset lt_cv_prog_gnu_ld
13264 if test -n "${lt_cv_path_LDCXX+set}"; then
13265 lt_cv_path_LD=$lt_cv_path_LDCXX
13266 else
13267 $as_unset lt_cv_path_LD
13269 test -z "${LDCXX+set}" || LD=$LDCXX
13270 CC=${CXX-"c++"}
13271 compiler=$CC
13272 compiler_CXX=$CC
13273 for cc_temp in $compiler""; do
13274 case $cc_temp in
13275 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13276 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13277 \-*) ;;
13278 *) break;;
13279 esac
13280 done
13281 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13284 if test -n "$compiler"; then
13285 # We don't want -fno-exception when compiling C++ code, so set the
13286 # no_builtin_flag separately
13287 if test "$GXX" = yes; then
13288 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13289 else
13290 lt_prog_compiler_no_builtin_flag_CXX=
13293 if test "$GXX" = yes; then
13294 # Set up default GNU C++ configuration
13298 # Check whether --with-gnu-ld was given.
13299 if test "${with_gnu_ld+set}" = set; then :
13300 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13301 else
13302 with_gnu_ld=no
13305 ac_prog=ld
13306 if test "$GCC" = yes; then
13307 # Check if gcc -print-prog-name=ld gives a path.
13308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13309 $as_echo_n "checking for ld used by $CC... " >&6; }
13310 case $host in
13311 *-*-mingw*)
13312 # gcc leaves a trailing carriage return which upsets mingw
13313 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13315 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13316 esac
13317 case $ac_prog in
13318 # Accept absolute paths.
13319 [\\/]* | ?:[\\/]*)
13320 re_direlt='/[^/][^/]*/\.\./'
13321 # Canonicalize the pathname of ld
13322 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13323 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13324 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13325 done
13326 test -z "$LD" && LD="$ac_prog"
13329 # If it fails, then pretend we aren't using GCC.
13330 ac_prog=ld
13333 # If it is relative, then search for the first ld in PATH.
13334 with_gnu_ld=unknown
13336 esac
13337 elif test "$with_gnu_ld" = yes; then
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13339 $as_echo_n "checking for GNU ld... " >&6; }
13340 else
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13342 $as_echo_n "checking for non-GNU ld... " >&6; }
13344 if ${lt_cv_path_LD+:} false; then :
13345 $as_echo_n "(cached) " >&6
13346 else
13347 if test -z "$LD"; then
13348 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13349 for ac_dir in $PATH; do
13350 IFS="$lt_save_ifs"
13351 test -z "$ac_dir" && ac_dir=.
13352 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13353 lt_cv_path_LD="$ac_dir/$ac_prog"
13354 # Check to see if the program is GNU ld. I'd rather use --version,
13355 # but apparently some variants of GNU ld only accept -v.
13356 # Break only if it was the GNU/non-GNU ld that we prefer.
13357 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13358 *GNU* | *'with BFD'*)
13359 test "$with_gnu_ld" != no && break
13362 test "$with_gnu_ld" != yes && break
13364 esac
13366 done
13367 IFS="$lt_save_ifs"
13368 else
13369 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13373 LD="$lt_cv_path_LD"
13374 if test -n "$LD"; then
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13376 $as_echo "$LD" >&6; }
13377 else
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13379 $as_echo "no" >&6; }
13381 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13383 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13384 if ${lt_cv_prog_gnu_ld+:} false; then :
13385 $as_echo_n "(cached) " >&6
13386 else
13387 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13388 case `$LD -v 2>&1 </dev/null` in
13389 *GNU* | *'with BFD'*)
13390 lt_cv_prog_gnu_ld=yes
13393 lt_cv_prog_gnu_ld=no
13395 esac
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13398 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13399 with_gnu_ld=$lt_cv_prog_gnu_ld
13407 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13408 # archiving commands below assume that GNU ld is being used.
13409 if test "$with_gnu_ld" = yes; then
13410 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13411 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'
13413 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13414 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13416 # If archive_cmds runs LD, not CC, wlarc should be empty
13417 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13418 # investigate it a little bit more. (MM)
13419 wlarc='${wl}'
13421 # ancient GNU ld didn't support --whole-archive et. al.
13422 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13423 $GREP 'no-whole-archive' > /dev/null; then
13424 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13425 else
13426 whole_archive_flag_spec_CXX=
13428 else
13429 with_gnu_ld=no
13430 wlarc=
13432 # A generic and very simple default shared library creation
13433 # command for GNU C++ for the case where it uses the native
13434 # linker, instead of GNU ld. If possible, this setting should
13435 # overridden to take advantage of the native linker features on
13436 # the platform it is being used on.
13437 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13440 # Commands to make compiler produce verbose output that lists
13441 # what "hidden" libraries, object files and flags are used when
13442 # linking a shared library.
13443 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13445 else
13446 GXX=no
13447 with_gnu_ld=no
13448 wlarc=
13451 # PORTME: fill in a description of your system's C++ link characteristics
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13453 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13454 ld_shlibs_CXX=yes
13455 case $host_os in
13456 aix3*)
13457 # FIXME: insert proper C++ library support
13458 ld_shlibs_CXX=no
13460 aix[4-9]*)
13461 if test "$host_cpu" = ia64; then
13462 # On IA64, the linker does run time linking by default, so we don't
13463 # have to do anything special.
13464 aix_use_runtimelinking=no
13465 exp_sym_flag='-Bexport'
13466 no_entry_flag=""
13467 else
13468 aix_use_runtimelinking=no
13470 # Test if we are trying to use run time linking or normal
13471 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13472 # need to do runtime linking.
13473 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13474 for ld_flag in $LDFLAGS; do
13475 case $ld_flag in
13476 *-brtl*)
13477 aix_use_runtimelinking=yes
13478 break
13480 esac
13481 done
13483 esac
13485 exp_sym_flag='-bexport'
13486 no_entry_flag='-bnoentry'
13489 # When large executables or shared objects are built, AIX ld can
13490 # have problems creating the table of contents. If linking a library
13491 # or program results in "error TOC overflow" add -mminimal-toc to
13492 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13493 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13495 archive_cmds_CXX=''
13496 hardcode_direct_CXX=yes
13497 hardcode_direct_absolute_CXX=yes
13498 hardcode_libdir_separator_CXX=':'
13499 link_all_deplibs_CXX=yes
13500 file_list_spec_CXX='${wl}-f,'
13502 if test "$GXX" = yes; then
13503 case $host_os in aix4.[012]|aix4.[012].*)
13504 # We only want to do this on AIX 4.2 and lower, the check
13505 # below for broken collect2 doesn't work under 4.3+
13506 collect2name=`${CC} -print-prog-name=collect2`
13507 if test -f "$collect2name" &&
13508 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13509 then
13510 # We have reworked collect2
13512 else
13513 # We have old collect2
13514 hardcode_direct_CXX=unsupported
13515 # It fails to find uninstalled libraries when the uninstalled
13516 # path is not listed in the libpath. Setting hardcode_minus_L
13517 # to unsupported forces relinking
13518 hardcode_minus_L_CXX=yes
13519 hardcode_libdir_flag_spec_CXX='-L$libdir'
13520 hardcode_libdir_separator_CXX=
13522 esac
13523 shared_flag='-shared'
13524 if test "$aix_use_runtimelinking" = yes; then
13525 shared_flag="$shared_flag "'${wl}-G'
13527 else
13528 # not using gcc
13529 if test "$host_cpu" = ia64; then
13530 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13531 # chokes on -Wl,-G. The following line is correct:
13532 shared_flag='-G'
13533 else
13534 if test "$aix_use_runtimelinking" = yes; then
13535 shared_flag='${wl}-G'
13536 else
13537 shared_flag='${wl}-bM:SRE'
13542 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13543 # It seems that -bexpall does not export symbols beginning with
13544 # underscore (_), so it is better to generate a list of symbols to
13545 # export.
13546 always_export_symbols_CXX=yes
13547 if test "$aix_use_runtimelinking" = yes; then
13548 # Warning - without using the other runtime loading flags (-brtl),
13549 # -berok will link without error, but may produce a broken library.
13550 allow_undefined_flag_CXX='-berok'
13551 # Determine the default libpath from the value encoded in an empty
13552 # executable.
13553 if test x$gcc_no_link = xyes; then
13554 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13557 /* end confdefs.h. */
13560 main ()
13564 return 0;
13566 _ACEOF
13567 if ac_fn_cxx_try_link "$LINENO"; then :
13569 lt_aix_libpath_sed='
13570 /Import File Strings/,/^$/ {
13571 /^0/ {
13572 s/^0 *\(.*\)$/\1/
13576 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13577 # Check for a 64-bit object if we didn't find anything.
13578 if test -z "$aix_libpath"; then
13579 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13582 rm -f core conftest.err conftest.$ac_objext \
13583 conftest$ac_exeext conftest.$ac_ext
13584 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13586 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13588 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"
13589 else
13590 if test "$host_cpu" = ia64; then
13591 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13592 allow_undefined_flag_CXX="-z nodefs"
13593 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"
13594 else
13595 # Determine the default libpath from the value encoded in an
13596 # empty executable.
13597 if test x$gcc_no_link = xyes; then
13598 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13601 /* end confdefs.h. */
13604 main ()
13608 return 0;
13610 _ACEOF
13611 if ac_fn_cxx_try_link "$LINENO"; then :
13613 lt_aix_libpath_sed='
13614 /Import File Strings/,/^$/ {
13615 /^0/ {
13616 s/^0 *\(.*\)$/\1/
13620 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13621 # Check for a 64-bit object if we didn't find anything.
13622 if test -z "$aix_libpath"; then
13623 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13626 rm -f core conftest.err conftest.$ac_objext \
13627 conftest$ac_exeext conftest.$ac_ext
13628 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13630 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13631 # Warning - without using the other run time loading flags,
13632 # -berok will link without error, but may produce a broken library.
13633 no_undefined_flag_CXX=' ${wl}-bernotok'
13634 allow_undefined_flag_CXX=' ${wl}-berok'
13635 if test "$with_gnu_ld" = yes; then
13636 # We only use this code for GNU lds that support --whole-archive.
13637 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13638 else
13639 # Exported symbols can be pulled into shared objects from archives
13640 whole_archive_flag_spec_CXX='$convenience'
13642 archive_cmds_need_lc_CXX=yes
13643 # This is similar to how AIX traditionally builds its shared
13644 # libraries.
13645 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'
13650 beos*)
13651 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13652 allow_undefined_flag_CXX=unsupported
13653 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13654 # support --undefined. This deserves some investigation. FIXME
13655 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13656 else
13657 ld_shlibs_CXX=no
13661 chorus*)
13662 case $cc_basename in
13664 # FIXME: insert proper C++ library support
13665 ld_shlibs_CXX=no
13667 esac
13670 cygwin* | mingw* | pw32* | cegcc*)
13671 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13672 # as there is no search path for DLLs.
13673 hardcode_libdir_flag_spec_CXX='-L$libdir'
13674 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13675 allow_undefined_flag_CXX=unsupported
13676 always_export_symbols_CXX=no
13677 enable_shared_with_static_runtimes_CXX=yes
13679 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13680 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'
13681 # If the export-symbols file already is a .def file (1st line
13682 # is EXPORTS), use it as is; otherwise, prepend...
13683 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13684 cp $export_symbols $output_objdir/$soname.def;
13685 else
13686 echo EXPORTS > $output_objdir/$soname.def;
13687 cat $export_symbols >> $output_objdir/$soname.def;
13689 $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'
13690 else
13691 ld_shlibs_CXX=no
13694 darwin* | rhapsody*)
13697 archive_cmds_need_lc_CXX=no
13698 hardcode_direct_CXX=no
13699 hardcode_automatic_CXX=yes
13700 hardcode_shlibpath_var_CXX=unsupported
13701 if test "$lt_cv_ld_force_load" = "yes"; then
13702 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\"`'
13703 else
13704 whole_archive_flag_spec_CXX=''
13706 link_all_deplibs_CXX=yes
13707 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13708 case $cc_basename in
13709 ifort*) _lt_dar_can_shared=yes ;;
13710 *) _lt_dar_can_shared=$GCC ;;
13711 esac
13712 if test "$_lt_dar_can_shared" = "yes"; then
13713 output_verbose_link_cmd=func_echo_all
13714 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}"
13715 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13716 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}"
13717 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}"
13718 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13719 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}"
13720 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}"
13723 else
13724 ld_shlibs_CXX=no
13729 dgux*)
13730 case $cc_basename in
13731 ec++*)
13732 # FIXME: insert proper C++ library support
13733 ld_shlibs_CXX=no
13735 ghcx*)
13736 # Green Hills C++ Compiler
13737 # FIXME: insert proper C++ library support
13738 ld_shlibs_CXX=no
13741 # FIXME: insert proper C++ library support
13742 ld_shlibs_CXX=no
13744 esac
13747 freebsd2.*)
13748 # C++ shared libraries reported to be fairly broken before
13749 # switch to ELF
13750 ld_shlibs_CXX=no
13753 freebsd-elf*)
13754 archive_cmds_need_lc_CXX=no
13757 freebsd* | dragonfly*)
13758 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13759 # conventions
13760 ld_shlibs_CXX=yes
13763 gnu*)
13766 haiku*)
13767 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13768 link_all_deplibs_CXX=yes
13771 hpux9*)
13772 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13773 hardcode_libdir_separator_CXX=:
13774 export_dynamic_flag_spec_CXX='${wl}-E'
13775 hardcode_direct_CXX=yes
13776 hardcode_minus_L_CXX=yes # Not in the search PATH,
13777 # but as the default
13778 # location of the library.
13780 case $cc_basename in
13781 CC*)
13782 # FIXME: insert proper C++ library support
13783 ld_shlibs_CXX=no
13785 aCC*)
13786 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'
13787 # Commands to make compiler produce verbose output that lists
13788 # what "hidden" libraries, object files and flags are used when
13789 # linking a shared library.
13791 # There doesn't appear to be a way to prevent this compiler from
13792 # explicitly linking system object files so we need to strip them
13793 # from the output so that they don't get included in the library
13794 # dependencies.
13795 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"'
13798 if test "$GXX" = yes; then
13799 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'
13800 else
13801 # FIXME: insert proper C++ library support
13802 ld_shlibs_CXX=no
13805 esac
13808 hpux10*|hpux11*)
13809 if test $with_gnu_ld = no; then
13810 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13811 hardcode_libdir_separator_CXX=:
13813 case $host_cpu in
13814 hppa*64*|ia64*)
13817 export_dynamic_flag_spec_CXX='${wl}-E'
13819 esac
13821 case $host_cpu in
13822 hppa*64*|ia64*)
13823 hardcode_direct_CXX=no
13824 hardcode_shlibpath_var_CXX=no
13827 hardcode_direct_CXX=yes
13828 hardcode_direct_absolute_CXX=yes
13829 hardcode_minus_L_CXX=yes # Not in the search PATH,
13830 # but as the default
13831 # location of the library.
13833 esac
13835 case $cc_basename in
13836 CC*)
13837 # FIXME: insert proper C++ library support
13838 ld_shlibs_CXX=no
13840 aCC*)
13841 case $host_cpu in
13842 hppa*64*)
13843 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13845 ia64*)
13846 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13849 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13851 esac
13852 # Commands to make compiler produce verbose output that lists
13853 # what "hidden" libraries, object files and flags are used when
13854 # linking a shared library.
13856 # There doesn't appear to be a way to prevent this compiler from
13857 # explicitly linking system object files so we need to strip them
13858 # from the output so that they don't get included in the library
13859 # dependencies.
13860 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"'
13863 if test "$GXX" = yes; then
13864 if test $with_gnu_ld = no; then
13865 case $host_cpu in
13866 hppa*64*)
13867 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13869 ia64*)
13870 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13873 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'
13875 esac
13877 else
13878 # FIXME: insert proper C++ library support
13879 ld_shlibs_CXX=no
13882 esac
13885 interix[3-9]*)
13886 hardcode_direct_CXX=no
13887 hardcode_shlibpath_var_CXX=no
13888 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13889 export_dynamic_flag_spec_CXX='${wl}-E'
13890 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13891 # Instead, shared libraries are loaded at an image base (0x10000000 by
13892 # default) and relocated if they conflict, which is a slow very memory
13893 # consuming and fragmenting process. To avoid this, we pick a random,
13894 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13895 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13896 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'
13897 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'
13899 irix5* | irix6*)
13900 case $cc_basename in
13901 CC*)
13902 # SGI C++
13903 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'
13905 # Archives containing C++ object files must be created using
13906 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13907 # necessary to make sure instantiated templates are included
13908 # in the archive.
13909 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13912 if test "$GXX" = yes; then
13913 if test "$with_gnu_ld" = no; then
13914 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'
13915 else
13916 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'
13919 link_all_deplibs_CXX=yes
13921 esac
13922 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13923 hardcode_libdir_separator_CXX=:
13924 inherit_rpath_CXX=yes
13927 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13928 case $cc_basename in
13929 KCC*)
13930 # Kuck and Associates, Inc. (KAI) C++ Compiler
13932 # KCC will only create a shared library if the output file
13933 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13934 # to its proper name (with version) after linking.
13935 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'
13936 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'
13937 # Commands to make compiler produce verbose output that lists
13938 # what "hidden" libraries, object files and flags are used when
13939 # linking a shared library.
13941 # There doesn't appear to be a way to prevent this compiler from
13942 # explicitly linking system object files so we need to strip them
13943 # from the output so that they don't get included in the library
13944 # dependencies.
13945 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"'
13947 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13948 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13950 # Archives containing C++ object files must be created using
13951 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13952 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13954 icpc* | ecpc* )
13955 # Intel C++
13956 with_gnu_ld=yes
13957 # version 8.0 and above of icpc choke on multiply defined symbols
13958 # if we add $predep_objects and $postdep_objects, however 7.1 and
13959 # earlier do not add the objects themselves.
13960 case `$CC -V 2>&1` in
13961 *"Version 7."*)
13962 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13963 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'
13965 *) # Version 8.0 or newer
13966 tmp_idyn=
13967 case $host_cpu in
13968 ia64*) tmp_idyn=' -i_dynamic';;
13969 esac
13970 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13971 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'
13973 esac
13974 archive_cmds_need_lc_CXX=no
13975 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13976 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13977 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13979 pgCC* | pgcpp*)
13980 # Portland Group C++ compiler
13981 case `$CC -V` in
13982 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13983 prelink_cmds_CXX='tpldir=Template.dir~
13984 rm -rf $tpldir~
13985 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13986 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13987 old_archive_cmds_CXX='tpldir=Template.dir~
13988 rm -rf $tpldir~
13989 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13990 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13991 $RANLIB $oldlib'
13992 archive_cmds_CXX='tpldir=Template.dir~
13993 rm -rf $tpldir~
13994 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13995 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13996 archive_expsym_cmds_CXX='tpldir=Template.dir~
13997 rm -rf $tpldir~
13998 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13999 $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'
14001 *) # Version 6 and above use weak symbols
14002 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14003 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'
14005 esac
14007 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14008 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14009 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'
14011 cxx*)
14012 # Compaq C++
14013 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14014 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'
14016 runpath_var=LD_RUN_PATH
14017 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14018 hardcode_libdir_separator_CXX=:
14020 # Commands to make compiler produce verbose output that lists
14021 # what "hidden" libraries, object files and flags are used when
14022 # linking a shared library.
14024 # There doesn't appear to be a way to prevent this compiler from
14025 # explicitly linking system object files so we need to strip them
14026 # from the output so that they don't get included in the library
14027 # dependencies.
14028 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'
14030 xl* | mpixl* | bgxl*)
14031 # IBM XL 8.0 on PPC, with GNU ld
14032 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14033 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14034 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14035 if test "x$supports_anon_versioning" = xyes; then
14036 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14037 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14038 echo "local: *; };" >> $output_objdir/$libname.ver~
14039 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14043 case `$CC -V 2>&1 | sed 5q` in
14044 *Sun\ C*)
14045 # Sun C++ 5.9
14046 no_undefined_flag_CXX=' -zdefs'
14047 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14048 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'
14049 hardcode_libdir_flag_spec_CXX='-R$libdir'
14050 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'
14051 compiler_needs_object_CXX=yes
14053 # Not sure whether something based on
14054 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14055 # would be better.
14056 output_verbose_link_cmd='func_echo_all'
14058 # Archives containing C++ object files must be created using
14059 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14060 # necessary to make sure instantiated templates are included
14061 # in the archive.
14062 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14064 esac
14066 esac
14069 lynxos*)
14070 # FIXME: insert proper C++ library support
14071 ld_shlibs_CXX=no
14074 m88k*)
14075 # FIXME: insert proper C++ library support
14076 ld_shlibs_CXX=no
14079 mvs*)
14080 case $cc_basename in
14081 cxx*)
14082 # FIXME: insert proper C++ library support
14083 ld_shlibs_CXX=no
14086 # FIXME: insert proper C++ library support
14087 ld_shlibs_CXX=no
14089 esac
14092 netbsd*)
14093 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14094 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14095 wlarc=
14096 hardcode_libdir_flag_spec_CXX='-R$libdir'
14097 hardcode_direct_CXX=yes
14098 hardcode_shlibpath_var_CXX=no
14100 # Workaround some broken pre-1.5 toolchains
14101 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14104 *nto* | *qnx*)
14105 ld_shlibs_CXX=yes
14108 openbsd2*)
14109 # C++ shared libraries are fairly broken
14110 ld_shlibs_CXX=no
14113 openbsd*)
14114 if test -f /usr/libexec/ld.so; then
14115 hardcode_direct_CXX=yes
14116 hardcode_shlibpath_var_CXX=no
14117 hardcode_direct_absolute_CXX=yes
14118 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14119 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14120 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14121 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14122 export_dynamic_flag_spec_CXX='${wl}-E'
14123 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14125 output_verbose_link_cmd=func_echo_all
14126 else
14127 ld_shlibs_CXX=no
14131 osf3* | osf4* | osf5*)
14132 case $cc_basename in
14133 KCC*)
14134 # Kuck and Associates, Inc. (KAI) C++ Compiler
14136 # KCC will only create a shared library if the output file
14137 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14138 # to its proper name (with version) after linking.
14139 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'
14141 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14142 hardcode_libdir_separator_CXX=:
14144 # Archives containing C++ object files must be created using
14145 # the KAI C++ compiler.
14146 case $host in
14147 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14148 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14149 esac
14151 RCC*)
14152 # Rational C++ 2.4.1
14153 # FIXME: insert proper C++ library support
14154 ld_shlibs_CXX=no
14156 cxx*)
14157 case $host in
14158 osf3*)
14159 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14160 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'
14161 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14164 allow_undefined_flag_CXX=' -expect_unresolved \*'
14165 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'
14166 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14167 echo "-hidden">> $lib.exp~
14168 $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~
14169 $RM $lib.exp'
14170 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14172 esac
14174 hardcode_libdir_separator_CXX=:
14176 # Commands to make compiler produce verbose output that lists
14177 # what "hidden" libraries, object files and flags are used when
14178 # linking a shared library.
14180 # There doesn't appear to be a way to prevent this compiler from
14181 # explicitly linking system object files so we need to strip them
14182 # from the output so that they don't get included in the library
14183 # dependencies.
14184 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"'
14187 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14188 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14189 case $host in
14190 osf3*)
14191 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'
14194 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'
14196 esac
14198 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14199 hardcode_libdir_separator_CXX=:
14201 # Commands to make compiler produce verbose output that lists
14202 # what "hidden" libraries, object files and flags are used when
14203 # linking a shared library.
14204 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14206 else
14207 # FIXME: insert proper C++ library support
14208 ld_shlibs_CXX=no
14211 esac
14214 psos*)
14215 # FIXME: insert proper C++ library support
14216 ld_shlibs_CXX=no
14219 sunos4*)
14220 case $cc_basename in
14221 CC*)
14222 # Sun C++ 4.x
14223 # FIXME: insert proper C++ library support
14224 ld_shlibs_CXX=no
14226 lcc*)
14227 # Lucid
14228 # FIXME: insert proper C++ library support
14229 ld_shlibs_CXX=no
14232 # FIXME: insert proper C++ library support
14233 ld_shlibs_CXX=no
14235 esac
14238 solaris*)
14239 case $cc_basename in
14240 CC*)
14241 # Sun C++ 4.2, 5.x and Centerline C++
14242 archive_cmds_need_lc_CXX=yes
14243 no_undefined_flag_CXX=' -zdefs'
14244 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14245 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14246 $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'
14248 hardcode_libdir_flag_spec_CXX='-R$libdir'
14249 hardcode_shlibpath_var_CXX=no
14250 case $host_os in
14251 solaris2.[0-5] | solaris2.[0-5].*) ;;
14253 # The compiler driver will combine and reorder linker options,
14254 # but understands `-z linker_flag'.
14255 # Supported since Solaris 2.6 (maybe 2.5.1?)
14256 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14258 esac
14259 link_all_deplibs_CXX=yes
14261 output_verbose_link_cmd='func_echo_all'
14263 # Archives containing C++ object files must be created using
14264 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14265 # necessary to make sure instantiated templates are included
14266 # in the archive.
14267 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14269 gcx*)
14270 # Green Hills C++ Compiler
14271 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14273 # The C++ compiler must be used to create the archive.
14274 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14277 # GNU C++ compiler with Solaris linker
14278 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14279 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14280 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14281 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14282 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14283 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14285 # Commands to make compiler produce verbose output that lists
14286 # what "hidden" libraries, object files and flags are used when
14287 # linking a shared library.
14288 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14289 else
14290 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14291 # platform.
14292 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14293 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14294 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14296 # Commands to make compiler produce verbose output that lists
14297 # what "hidden" libraries, object files and flags are used when
14298 # linking a shared library.
14299 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14302 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14303 case $host_os in
14304 solaris2.[0-5] | solaris2.[0-5].*) ;;
14306 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14308 esac
14311 esac
14314 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14315 no_undefined_flag_CXX='${wl}-z,text'
14316 archive_cmds_need_lc_CXX=no
14317 hardcode_shlibpath_var_CXX=no
14318 runpath_var='LD_RUN_PATH'
14320 case $cc_basename in
14321 CC*)
14322 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14323 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14326 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14327 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14329 esac
14332 sysv5* | sco3.2v5* | sco5v6*)
14333 # Note: We can NOT use -z defs as we might desire, because we do not
14334 # link with -lc, and that would cause any symbols used from libc to
14335 # always be unresolved, which means just about no library would
14336 # ever link correctly. If we're not using GNU ld we use -z text
14337 # though, which does catch some bad symbols but isn't as heavy-handed
14338 # as -z defs.
14339 no_undefined_flag_CXX='${wl}-z,text'
14340 allow_undefined_flag_CXX='${wl}-z,nodefs'
14341 archive_cmds_need_lc_CXX=no
14342 hardcode_shlibpath_var_CXX=no
14343 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14344 hardcode_libdir_separator_CXX=':'
14345 link_all_deplibs_CXX=yes
14346 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14347 runpath_var='LD_RUN_PATH'
14349 case $cc_basename in
14350 CC*)
14351 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14352 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14353 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14354 '"$old_archive_cmds_CXX"
14355 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14356 '"$reload_cmds_CXX"
14359 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14360 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14362 esac
14365 tandem*)
14366 case $cc_basename in
14367 NCC*)
14368 # NonStop-UX NCC 3.20
14369 # FIXME: insert proper C++ library support
14370 ld_shlibs_CXX=no
14373 # FIXME: insert proper C++ library support
14374 ld_shlibs_CXX=no
14376 esac
14379 vxworks*)
14380 # For VxWorks ports, we assume the use of a GNU linker with
14381 # standard elf conventions.
14382 ld_shlibs_CXX=yes
14386 # FIXME: insert proper C++ library support
14387 ld_shlibs_CXX=no
14389 esac
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14392 $as_echo "$ld_shlibs_CXX" >&6; }
14393 test "$ld_shlibs_CXX" = no && can_build_shared=no
14395 GCC_CXX="$GXX"
14396 LD_CXX="$LD"
14398 ## CAVEAT EMPTOR:
14399 ## There is no encapsulation within the following macros, do not change
14400 ## the running order or otherwise move them around unless you know exactly
14401 ## what you are doing...
14402 # Dependencies to place before and after the object being linked:
14403 predep_objects_CXX=
14404 postdep_objects_CXX=
14405 predeps_CXX=
14406 postdeps_CXX=
14407 compiler_lib_search_path_CXX=
14409 cat > conftest.$ac_ext <<_LT_EOF
14410 class Foo
14412 public:
14413 Foo (void) { a = 0; }
14414 private:
14415 int a;
14417 _LT_EOF
14419 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14420 (eval $ac_compile) 2>&5
14421 ac_status=$?
14422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14423 test $ac_status = 0; }; then
14424 # Parse the compiler output and extract the necessary
14425 # objects, libraries and library flags.
14427 # Sentinel used to keep track of whether or not we are before
14428 # the conftest object file.
14429 pre_test_object_deps_done=no
14431 for p in `eval "$output_verbose_link_cmd"`; do
14432 case $p in
14434 -L* | -R* | -l*)
14435 # Some compilers place space between "-{L,R}" and the path.
14436 # Remove the space.
14437 if test $p = "-L" ||
14438 test $p = "-R"; then
14439 prev=$p
14440 continue
14441 else
14442 prev=
14445 if test "$pre_test_object_deps_done" = no; then
14446 case $p in
14447 -L* | -R*)
14448 # Internal compiler library paths should come after those
14449 # provided the user. The postdeps already come after the
14450 # user supplied libs so there is no need to process them.
14451 if test -z "$compiler_lib_search_path_CXX"; then
14452 compiler_lib_search_path_CXX="${prev}${p}"
14453 else
14454 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14457 # The "-l" case would never come before the object being
14458 # linked, so don't bother handling this case.
14459 esac
14460 else
14461 if test -z "$postdeps_CXX"; then
14462 postdeps_CXX="${prev}${p}"
14463 else
14464 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14469 *.$objext)
14470 # This assumes that the test object file only shows up
14471 # once in the compiler output.
14472 if test "$p" = "conftest.$objext"; then
14473 pre_test_object_deps_done=yes
14474 continue
14477 if test "$pre_test_object_deps_done" = no; then
14478 if test -z "$predep_objects_CXX"; then
14479 predep_objects_CXX="$p"
14480 else
14481 predep_objects_CXX="$predep_objects_CXX $p"
14483 else
14484 if test -z "$postdep_objects_CXX"; then
14485 postdep_objects_CXX="$p"
14486 else
14487 postdep_objects_CXX="$postdep_objects_CXX $p"
14492 *) ;; # Ignore the rest.
14494 esac
14495 done
14497 # Clean up.
14498 rm -f a.out a.exe
14499 else
14500 echo "libtool.m4: error: problem compiling CXX test program"
14503 $RM -f confest.$objext
14505 # PORTME: override above test on systems where it is broken
14506 case $host_os in
14507 interix[3-9]*)
14508 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14509 # hack all around it, let's just trust "g++" to DTRT.
14510 predep_objects_CXX=
14511 postdep_objects_CXX=
14512 postdeps_CXX=
14515 linux*)
14516 case `$CC -V 2>&1 | sed 5q` in
14517 *Sun\ C*)
14518 # Sun C++ 5.9
14520 # The more standards-conforming stlport4 library is
14521 # incompatible with the Cstd library. Avoid specifying
14522 # it if it's in CXXFLAGS. Ignore libCrun as
14523 # -library=stlport4 depends on it.
14524 case " $CXX $CXXFLAGS " in
14525 *" -library=stlport4 "*)
14526 solaris_use_stlport4=yes
14528 esac
14530 if test "$solaris_use_stlport4" != yes; then
14531 postdeps_CXX='-library=Cstd -library=Crun'
14534 esac
14537 solaris*)
14538 case $cc_basename in
14539 CC*)
14540 # The more standards-conforming stlport4 library is
14541 # incompatible with the Cstd library. Avoid specifying
14542 # it if it's in CXXFLAGS. Ignore libCrun as
14543 # -library=stlport4 depends on it.
14544 case " $CXX $CXXFLAGS " in
14545 *" -library=stlport4 "*)
14546 solaris_use_stlport4=yes
14548 esac
14550 # Adding this requires a known-good setup of shared libraries for
14551 # Sun compiler versions before 5.6, else PIC objects from an old
14552 # archive will be linked into the output, leading to subtle bugs.
14553 if test "$solaris_use_stlport4" != yes; then
14554 postdeps_CXX='-library=Cstd -library=Crun'
14557 esac
14559 esac
14562 case " $postdeps_CXX " in
14563 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14564 esac
14565 compiler_lib_search_dirs_CXX=
14566 if test -n "${compiler_lib_search_path_CXX}"; then
14567 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14600 lt_prog_compiler_wl_CXX=
14601 lt_prog_compiler_pic_CXX=
14602 lt_prog_compiler_static_CXX=
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14605 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14607 # C++ specific cases for pic, static, wl, etc.
14608 if test "$GXX" = yes; then
14609 lt_prog_compiler_wl_CXX='-Wl,'
14610 lt_prog_compiler_static_CXX='-static'
14612 case $host_os in
14613 aix*)
14614 # All AIX code is PIC.
14615 if test "$host_cpu" = ia64; then
14616 # AIX 5 now supports IA64 processor
14617 lt_prog_compiler_static_CXX='-Bstatic'
14619 lt_prog_compiler_pic_CXX='-fPIC'
14622 amigaos*)
14623 case $host_cpu in
14624 powerpc)
14625 # see comment about AmigaOS4 .so support
14626 lt_prog_compiler_pic_CXX='-fPIC'
14628 m68k)
14629 # FIXME: we need at least 68020 code to build shared libraries, but
14630 # adding the `-m68020' flag to GCC prevents building anything better,
14631 # like `-m68040'.
14632 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14634 esac
14637 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14638 # PIC is the default for these OSes.
14640 mingw* | cygwin* | os2* | pw32* | cegcc*)
14641 # This hack is so that the source file can tell whether it is being
14642 # built for inclusion in a dll (and should export symbols for example).
14643 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14644 # (--disable-auto-import) libraries
14645 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14647 darwin* | rhapsody*)
14648 # PIC is the default on this platform
14649 # Common symbols not allowed in MH_DYLIB files
14650 lt_prog_compiler_pic_CXX='-fno-common'
14652 *djgpp*)
14653 # DJGPP does not support shared libraries at all
14654 lt_prog_compiler_pic_CXX=
14656 haiku*)
14657 # PIC is the default for Haiku.
14658 # The "-static" flag exists, but is broken.
14659 lt_prog_compiler_static_CXX=
14661 interix[3-9]*)
14662 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14663 # Instead, we relocate shared libraries at runtime.
14665 sysv4*MP*)
14666 if test -d /usr/nec; then
14667 lt_prog_compiler_pic_CXX=-Kconform_pic
14670 hpux*)
14671 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14672 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14673 # sets the default TLS model and affects inlining.
14674 case $host_cpu in
14675 hppa*64*)
14678 lt_prog_compiler_pic_CXX='-fPIC'
14680 esac
14682 *qnx* | *nto*)
14683 # QNX uses GNU C++, but need to define -shared option too, otherwise
14684 # it will coredump.
14685 lt_prog_compiler_pic_CXX='-fPIC -shared'
14688 lt_prog_compiler_pic_CXX='-fPIC'
14690 esac
14691 else
14692 case $host_os in
14693 aix[4-9]*)
14694 # All AIX code is PIC.
14695 if test "$host_cpu" = ia64; then
14696 # AIX 5 now supports IA64 processor
14697 lt_prog_compiler_static_CXX='-Bstatic'
14698 else
14699 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14702 chorus*)
14703 case $cc_basename in
14704 cxch68*)
14705 # Green Hills C++ Compiler
14706 # _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"
14708 esac
14710 dgux*)
14711 case $cc_basename in
14712 ec++*)
14713 lt_prog_compiler_pic_CXX='-KPIC'
14715 ghcx*)
14716 # Green Hills C++ Compiler
14717 lt_prog_compiler_pic_CXX='-pic'
14721 esac
14723 freebsd* | dragonfly*)
14724 # FreeBSD uses GNU C++
14726 hpux9* | hpux10* | hpux11*)
14727 case $cc_basename in
14728 CC*)
14729 lt_prog_compiler_wl_CXX='-Wl,'
14730 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14731 if test "$host_cpu" != ia64; then
14732 lt_prog_compiler_pic_CXX='+Z'
14735 aCC*)
14736 lt_prog_compiler_wl_CXX='-Wl,'
14737 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14738 case $host_cpu in
14739 hppa*64*|ia64*)
14740 # +Z the default
14743 lt_prog_compiler_pic_CXX='+Z'
14745 esac
14749 esac
14751 interix*)
14752 # This is c89, which is MS Visual C++ (no shared libs)
14753 # Anyone wants to do a port?
14755 irix5* | irix6* | nonstopux*)
14756 case $cc_basename in
14757 CC*)
14758 lt_prog_compiler_wl_CXX='-Wl,'
14759 lt_prog_compiler_static_CXX='-non_shared'
14760 # CC pic flag -KPIC is the default.
14764 esac
14766 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14767 case $cc_basename in
14768 KCC*)
14769 # KAI C++ Compiler
14770 lt_prog_compiler_wl_CXX='--backend -Wl,'
14771 lt_prog_compiler_pic_CXX='-fPIC'
14773 ecpc* )
14774 # old Intel C++ for x86_64 which still supported -KPIC.
14775 lt_prog_compiler_wl_CXX='-Wl,'
14776 lt_prog_compiler_pic_CXX='-KPIC'
14777 lt_prog_compiler_static_CXX='-static'
14779 icpc* )
14780 # Intel C++, used to be incompatible with GCC.
14781 # ICC 10 doesn't accept -KPIC any more.
14782 lt_prog_compiler_wl_CXX='-Wl,'
14783 lt_prog_compiler_pic_CXX='-fPIC'
14784 lt_prog_compiler_static_CXX='-static'
14786 pgCC* | pgcpp*)
14787 # Portland Group C++ compiler
14788 lt_prog_compiler_wl_CXX='-Wl,'
14789 lt_prog_compiler_pic_CXX='-fpic'
14790 lt_prog_compiler_static_CXX='-Bstatic'
14792 cxx*)
14793 # Compaq C++
14794 # Make sure the PIC flag is empty. It appears that all Alpha
14795 # Linux and Compaq Tru64 Unix objects are PIC.
14796 lt_prog_compiler_pic_CXX=
14797 lt_prog_compiler_static_CXX='-non_shared'
14799 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14800 # IBM XL 8.0, 9.0 on PPC and BlueGene
14801 lt_prog_compiler_wl_CXX='-Wl,'
14802 lt_prog_compiler_pic_CXX='-qpic'
14803 lt_prog_compiler_static_CXX='-qstaticlink'
14806 case `$CC -V 2>&1 | sed 5q` in
14807 *Sun\ C*)
14808 # Sun C++ 5.9
14809 lt_prog_compiler_pic_CXX='-KPIC'
14810 lt_prog_compiler_static_CXX='-Bstatic'
14811 lt_prog_compiler_wl_CXX='-Qoption ld '
14813 esac
14815 esac
14817 lynxos*)
14819 m88k*)
14821 mvs*)
14822 case $cc_basename in
14823 cxx*)
14824 lt_prog_compiler_pic_CXX='-W c,exportall'
14828 esac
14830 netbsd*)
14832 *qnx* | *nto*)
14833 # QNX uses GNU C++, but need to define -shared option too, otherwise
14834 # it will coredump.
14835 lt_prog_compiler_pic_CXX='-fPIC -shared'
14837 osf3* | osf4* | osf5*)
14838 case $cc_basename in
14839 KCC*)
14840 lt_prog_compiler_wl_CXX='--backend -Wl,'
14842 RCC*)
14843 # Rational C++ 2.4.1
14844 lt_prog_compiler_pic_CXX='-pic'
14846 cxx*)
14847 # Digital/Compaq C++
14848 lt_prog_compiler_wl_CXX='-Wl,'
14849 # Make sure the PIC flag is empty. It appears that all Alpha
14850 # Linux and Compaq Tru64 Unix objects are PIC.
14851 lt_prog_compiler_pic_CXX=
14852 lt_prog_compiler_static_CXX='-non_shared'
14856 esac
14858 psos*)
14860 solaris*)
14861 case $cc_basename in
14862 CC*)
14863 # Sun C++ 4.2, 5.x and Centerline C++
14864 lt_prog_compiler_pic_CXX='-KPIC'
14865 lt_prog_compiler_static_CXX='-Bstatic'
14866 lt_prog_compiler_wl_CXX='-Qoption ld '
14868 gcx*)
14869 # Green Hills C++ Compiler
14870 lt_prog_compiler_pic_CXX='-PIC'
14874 esac
14876 sunos4*)
14877 case $cc_basename in
14878 CC*)
14879 # Sun C++ 4.x
14880 lt_prog_compiler_pic_CXX='-pic'
14881 lt_prog_compiler_static_CXX='-Bstatic'
14883 lcc*)
14884 # Lucid
14885 lt_prog_compiler_pic_CXX='-pic'
14889 esac
14891 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14892 case $cc_basename in
14893 CC*)
14894 lt_prog_compiler_wl_CXX='-Wl,'
14895 lt_prog_compiler_pic_CXX='-KPIC'
14896 lt_prog_compiler_static_CXX='-Bstatic'
14898 esac
14900 tandem*)
14901 case $cc_basename in
14902 NCC*)
14903 # NonStop-UX NCC 3.20
14904 lt_prog_compiler_pic_CXX='-KPIC'
14908 esac
14910 vxworks*)
14913 lt_prog_compiler_can_build_shared_CXX=no
14915 esac
14918 case $host_os in
14919 # For platforms which do not support PIC, -DPIC is meaningless:
14920 *djgpp*)
14921 lt_prog_compiler_pic_CXX=
14924 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14926 esac
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14928 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14933 # Check to make sure the PIC flag actually works.
14935 if test -n "$lt_prog_compiler_pic_CXX"; then
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14937 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14938 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14939 $as_echo_n "(cached) " >&6
14940 else
14941 lt_cv_prog_compiler_pic_works_CXX=no
14942 ac_outfile=conftest.$ac_objext
14943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14944 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14945 # Insert the option either (1) after the last *FLAGS variable, or
14946 # (2) before a word containing "conftest.", or (3) at the end.
14947 # Note that $ac_compile itself does not contain backslashes and begins
14948 # with a dollar sign (not a hyphen), so the echo should work correctly.
14949 # The option is referenced via a variable to avoid confusing sed.
14950 lt_compile=`echo "$ac_compile" | $SED \
14951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14953 -e 's:$: $lt_compiler_flag:'`
14954 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14955 (eval "$lt_compile" 2>conftest.err)
14956 ac_status=$?
14957 cat conftest.err >&5
14958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14959 if (exit $ac_status) && test -s "$ac_outfile"; then
14960 # The compiler can only warn and ignore the option if not recognized
14961 # So say no if there are warnings other than the usual output.
14962 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14963 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14964 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14965 lt_cv_prog_compiler_pic_works_CXX=yes
14968 $RM conftest*
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14972 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14974 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14975 case $lt_prog_compiler_pic_CXX in
14976 "" | " "*) ;;
14977 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14978 esac
14979 else
14980 lt_prog_compiler_pic_CXX=
14981 lt_prog_compiler_can_build_shared_CXX=no
14989 # Check to make sure the static flag actually works.
14991 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14993 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14994 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14995 $as_echo_n "(cached) " >&6
14996 else
14997 lt_cv_prog_compiler_static_works_CXX=no
14998 save_LDFLAGS="$LDFLAGS"
14999 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15000 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15001 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15002 # The linker can only warn and ignore the option if not recognized
15003 # So say no if there are warnings
15004 if test -s conftest.err; then
15005 # Append any errors to the config.log.
15006 cat conftest.err 1>&5
15007 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15008 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15009 if diff conftest.exp conftest.er2 >/dev/null; then
15010 lt_cv_prog_compiler_static_works_CXX=yes
15012 else
15013 lt_cv_prog_compiler_static_works_CXX=yes
15016 $RM -r conftest*
15017 LDFLAGS="$save_LDFLAGS"
15020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15021 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15023 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15025 else
15026 lt_prog_compiler_static_CXX=
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15033 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15034 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15035 $as_echo_n "(cached) " >&6
15036 else
15037 lt_cv_prog_compiler_c_o_CXX=no
15038 $RM -r conftest 2>/dev/null
15039 mkdir conftest
15040 cd conftest
15041 mkdir out
15042 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15044 lt_compiler_flag="-o out/conftest2.$ac_objext"
15045 # Insert the option either (1) after the last *FLAGS variable, or
15046 # (2) before a word containing "conftest.", or (3) at the end.
15047 # Note that $ac_compile itself does not contain backslashes and begins
15048 # with a dollar sign (not a hyphen), so the echo should work correctly.
15049 lt_compile=`echo "$ac_compile" | $SED \
15050 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15052 -e 's:$: $lt_compiler_flag:'`
15053 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15054 (eval "$lt_compile" 2>out/conftest.err)
15055 ac_status=$?
15056 cat out/conftest.err >&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15059 then
15060 # The compiler can only warn and ignore the option if not recognized
15061 # So say no if there are warnings
15062 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15063 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15064 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15065 lt_cv_prog_compiler_c_o_CXX=yes
15068 chmod u+w . 2>&5
15069 $RM conftest*
15070 # SGI C++ compiler will create directory out/ii_files/ for
15071 # template instantiation
15072 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15073 $RM out/* && rmdir out
15074 cd ..
15075 $RM -r conftest
15076 $RM conftest*
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15080 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15085 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15086 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15087 $as_echo_n "(cached) " >&6
15088 else
15089 lt_cv_prog_compiler_c_o_CXX=no
15090 $RM -r conftest 2>/dev/null
15091 mkdir conftest
15092 cd conftest
15093 mkdir out
15094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15096 lt_compiler_flag="-o out/conftest2.$ac_objext"
15097 # Insert the option either (1) after the last *FLAGS variable, or
15098 # (2) before a word containing "conftest.", or (3) at the end.
15099 # Note that $ac_compile itself does not contain backslashes and begins
15100 # with a dollar sign (not a hyphen), so the echo should work correctly.
15101 lt_compile=`echo "$ac_compile" | $SED \
15102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15104 -e 's:$: $lt_compiler_flag:'`
15105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15106 (eval "$lt_compile" 2>out/conftest.err)
15107 ac_status=$?
15108 cat out/conftest.err >&5
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15111 then
15112 # The compiler can only warn and ignore the option if not recognized
15113 # So say no if there are warnings
15114 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15115 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15116 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15117 lt_cv_prog_compiler_c_o_CXX=yes
15120 chmod u+w . 2>&5
15121 $RM conftest*
15122 # SGI C++ compiler will create directory out/ii_files/ for
15123 # template instantiation
15124 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15125 $RM out/* && rmdir out
15126 cd ..
15127 $RM -r conftest
15128 $RM conftest*
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15132 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15137 hard_links="nottested"
15138 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15139 # do not overwrite the value of need_locks provided by the user
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15141 $as_echo_n "checking if we can lock with hard links... " >&6; }
15142 hard_links=yes
15143 $RM conftest*
15144 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15145 touch conftest.a
15146 ln conftest.a conftest.b 2>&5 || hard_links=no
15147 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15149 $as_echo "$hard_links" >&6; }
15150 if test "$hard_links" = no; then
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15152 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15153 need_locks=warn
15155 else
15156 need_locks=no
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15162 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15164 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15165 case $host_os in
15166 aix[4-9]*)
15167 # If we're using GNU nm, then we don't want the "-C" option.
15168 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15169 # Also, AIX nm treats weak defined symbols like other global defined
15170 # symbols, whereas GNU nm marks them as "W".
15171 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15172 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'
15173 else
15174 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'
15177 pw32*)
15178 export_symbols_cmds_CXX="$ltdll_cmds"
15180 cygwin* | mingw* | cegcc*)
15181 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'
15184 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15186 esac
15187 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15190 $as_echo "$ld_shlibs_CXX" >&6; }
15191 test "$ld_shlibs_CXX" = no && can_build_shared=no
15193 with_gnu_ld_CXX=$with_gnu_ld
15201 # Do we need to explicitly link libc?
15203 case "x$archive_cmds_need_lc_CXX" in
15204 x|xyes)
15205 # Assume -lc should be added
15206 archive_cmds_need_lc_CXX=yes
15208 if test "$enable_shared" = yes && test "$GCC" = yes; then
15209 case $archive_cmds_CXX in
15210 *'~'*)
15211 # FIXME: we may have to deal with multi-command sequences.
15213 '$CC '*)
15214 # Test whether the compiler implicitly links with -lc since on some
15215 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15216 # to ld, don't add -lc before -lgcc.
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15218 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15219 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15220 $as_echo_n "(cached) " >&6
15221 else
15222 $RM conftest*
15223 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15226 (eval $ac_compile) 2>&5
15227 ac_status=$?
15228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15229 test $ac_status = 0; } 2>conftest.err; then
15230 soname=conftest
15231 lib=conftest
15232 libobjs=conftest.$ac_objext
15233 deplibs=
15234 wl=$lt_prog_compiler_wl_CXX
15235 pic_flag=$lt_prog_compiler_pic_CXX
15236 compiler_flags=-v
15237 linker_flags=-v
15238 verstring=
15239 output_objdir=.
15240 libname=conftest
15241 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15242 allow_undefined_flag_CXX=
15243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15244 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15245 ac_status=$?
15246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15247 test $ac_status = 0; }
15248 then
15249 lt_cv_archive_cmds_need_lc_CXX=no
15250 else
15251 lt_cv_archive_cmds_need_lc_CXX=yes
15253 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15254 else
15255 cat conftest.err 1>&5
15257 $RM conftest*
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15261 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15262 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15264 esac
15267 esac
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15333 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15335 library_names_spec=
15336 libname_spec='lib$name'
15337 soname_spec=
15338 shrext_cmds=".so"
15339 postinstall_cmds=
15340 postuninstall_cmds=
15341 finish_cmds=
15342 finish_eval=
15343 shlibpath_var=
15344 shlibpath_overrides_runpath=unknown
15345 version_type=none
15346 dynamic_linker="$host_os ld.so"
15347 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15348 need_lib_prefix=unknown
15349 hardcode_into_libs=no
15351 # when you set need_version to no, make sure it does not cause -set_version
15352 # flags to be left without arguments
15353 need_version=unknown
15355 case $host_os in
15356 aix3*)
15357 version_type=linux
15358 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15359 shlibpath_var=LIBPATH
15361 # AIX 3 has no versioning support, so we append a major version to the name.
15362 soname_spec='${libname}${release}${shared_ext}$major'
15365 aix[4-9]*)
15366 version_type=linux
15367 need_lib_prefix=no
15368 need_version=no
15369 hardcode_into_libs=yes
15370 if test "$host_cpu" = ia64; then
15371 # AIX 5 supports IA64
15372 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15373 shlibpath_var=LD_LIBRARY_PATH
15374 else
15375 # With GCC up to 2.95.x, collect2 would create an import file
15376 # for dependence libraries. The import file would start with
15377 # the line `#! .'. This would cause the generated library to
15378 # depend on `.', always an invalid library. This was fixed in
15379 # development snapshots of GCC prior to 3.0.
15380 case $host_os in
15381 aix4 | aix4.[01] | aix4.[01].*)
15382 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15383 echo ' yes '
15384 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15386 else
15387 can_build_shared=no
15390 esac
15391 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15392 # soname into executable. Probably we can add versioning support to
15393 # collect2, so additional links can be useful in future.
15394 if test "$aix_use_runtimelinking" = yes; then
15395 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15396 # instead of lib<name>.a to let people know that these are not
15397 # typical AIX shared libraries.
15398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15399 else
15400 # We preserve .a as extension for shared libraries through AIX4.2
15401 # and later when we are not doing run time linking.
15402 library_names_spec='${libname}${release}.a $libname.a'
15403 soname_spec='${libname}${release}${shared_ext}$major'
15405 shlibpath_var=LIBPATH
15409 amigaos*)
15410 case $host_cpu in
15411 powerpc)
15412 # Since July 2007 AmigaOS4 officially supports .so libraries.
15413 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416 m68k)
15417 library_names_spec='$libname.ixlibrary $libname.a'
15418 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15419 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'
15421 esac
15424 beos*)
15425 library_names_spec='${libname}${shared_ext}'
15426 dynamic_linker="$host_os ld.so"
15427 shlibpath_var=LIBRARY_PATH
15430 bsdi[45]*)
15431 version_type=linux
15432 need_version=no
15433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15434 soname_spec='${libname}${release}${shared_ext}$major'
15435 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15436 shlibpath_var=LD_LIBRARY_PATH
15437 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15438 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15439 # the default ld.so.conf also contains /usr/contrib/lib and
15440 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15441 # libtool to hard-code these into programs
15444 cygwin* | mingw* | pw32* | cegcc*)
15445 version_type=windows
15446 shrext_cmds=".dll"
15447 need_version=no
15448 need_lib_prefix=no
15450 case $GCC,$host_os in
15451 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15452 library_names_spec='$libname.dll.a'
15453 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15454 postinstall_cmds='base_file=`basename \${file}`~
15455 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15456 dldir=$destdir/`dirname \$dlpath`~
15457 test -d \$dldir || mkdir -p \$dldir~
15458 $install_prog $dir/$dlname \$dldir/$dlname~
15459 chmod a+x \$dldir/$dlname~
15460 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15461 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15463 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15464 dlpath=$dir/\$dldll~
15465 $RM \$dlpath'
15466 shlibpath_overrides_runpath=yes
15468 case $host_os in
15469 cygwin*)
15470 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15471 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15474 mingw* | cegcc*)
15475 # MinGW DLLs use traditional 'lib' prefix
15476 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15478 pw32*)
15479 # pw32 DLLs use 'pw' prefix rather than 'lib'
15480 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15482 esac
15486 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15488 esac
15489 dynamic_linker='Win32 ld.exe'
15490 # FIXME: first we should search . and the directory the executable is in
15491 shlibpath_var=PATH
15494 darwin* | rhapsody*)
15495 dynamic_linker="$host_os dyld"
15496 version_type=darwin
15497 need_lib_prefix=no
15498 need_version=no
15499 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15500 soname_spec='${libname}${release}${major}$shared_ext'
15501 shlibpath_overrides_runpath=yes
15502 shlibpath_var=DYLD_LIBRARY_PATH
15503 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15505 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15508 dgux*)
15509 version_type=linux
15510 need_lib_prefix=no
15511 need_version=no
15512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15513 soname_spec='${libname}${release}${shared_ext}$major'
15514 shlibpath_var=LD_LIBRARY_PATH
15517 freebsd* | dragonfly*)
15518 # DragonFly does not have aout. When/if they implement a new
15519 # versioning mechanism, adjust this.
15520 if test -x /usr/bin/objformat; then
15521 objformat=`/usr/bin/objformat`
15522 else
15523 case $host_os in
15524 freebsd[23].*) objformat=aout ;;
15525 *) objformat=elf ;;
15526 esac
15528 version_type=freebsd-$objformat
15529 case $version_type in
15530 freebsd-elf*)
15531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15532 need_version=no
15533 need_lib_prefix=no
15535 freebsd-*)
15536 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15537 need_version=yes
15539 esac
15540 shlibpath_var=LD_LIBRARY_PATH
15541 case $host_os in
15542 freebsd2.*)
15543 shlibpath_overrides_runpath=yes
15545 freebsd3.[01]* | freebsdelf3.[01]*)
15546 shlibpath_overrides_runpath=yes
15547 hardcode_into_libs=yes
15549 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15550 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15551 shlibpath_overrides_runpath=no
15552 hardcode_into_libs=yes
15554 *) # from 4.6 on, and DragonFly
15555 shlibpath_overrides_runpath=yes
15556 hardcode_into_libs=yes
15558 esac
15561 haiku*)
15562 version_type=linux
15563 need_lib_prefix=no
15564 need_version=no
15565 dynamic_linker="$host_os runtime_loader"
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15567 soname_spec='${libname}${release}${shared_ext}$major'
15568 shlibpath_var=LIBRARY_PATH
15569 shlibpath_overrides_runpath=yes
15570 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15571 hardcode_into_libs=yes
15574 hpux9* | hpux10* | hpux11*)
15575 # Give a soname corresponding to the major version so that dld.sl refuses to
15576 # link against other versions.
15577 version_type=sunos
15578 need_lib_prefix=no
15579 need_version=no
15580 case $host_cpu in
15581 ia64*)
15582 shrext_cmds='.so'
15583 hardcode_into_libs=yes
15584 dynamic_linker="$host_os dld.so"
15585 shlibpath_var=LD_LIBRARY_PATH
15586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15588 soname_spec='${libname}${release}${shared_ext}$major'
15589 if test "X$HPUX_IA64_MODE" = X32; then
15590 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15591 else
15592 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15594 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15596 hppa*64*)
15597 shrext_cmds='.sl'
15598 hardcode_into_libs=yes
15599 dynamic_linker="$host_os dld.sl"
15600 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15601 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15603 soname_spec='${libname}${release}${shared_ext}$major'
15604 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15608 shrext_cmds='.sl'
15609 dynamic_linker="$host_os dld.sl"
15610 shlibpath_var=SHLIB_PATH
15611 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15613 soname_spec='${libname}${release}${shared_ext}$major'
15615 esac
15616 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15617 postinstall_cmds='chmod 555 $lib'
15618 # or fails outright, so override atomically:
15619 install_override_mode=555
15622 interix[3-9]*)
15623 version_type=linux
15624 need_lib_prefix=no
15625 need_version=no
15626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15627 soname_spec='${libname}${release}${shared_ext}$major'
15628 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15629 shlibpath_var=LD_LIBRARY_PATH
15630 shlibpath_overrides_runpath=no
15631 hardcode_into_libs=yes
15634 irix5* | irix6* | nonstopux*)
15635 case $host_os in
15636 nonstopux*) version_type=nonstopux ;;
15638 if test "$lt_cv_prog_gnu_ld" = yes; then
15639 version_type=linux
15640 else
15641 version_type=irix
15642 fi ;;
15643 esac
15644 need_lib_prefix=no
15645 need_version=no
15646 soname_spec='${libname}${release}${shared_ext}$major'
15647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15648 case $host_os in
15649 irix5* | nonstopux*)
15650 libsuff= shlibsuff=
15653 case $LD in # libtool.m4 will add one of these switches to LD
15654 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15655 libsuff= shlibsuff= libmagic=32-bit;;
15656 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15657 libsuff=32 shlibsuff=N32 libmagic=N32;;
15658 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15659 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15660 *) libsuff= shlibsuff= libmagic=never-match;;
15661 esac
15663 esac
15664 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15665 shlibpath_overrides_runpath=no
15666 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15667 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15668 hardcode_into_libs=yes
15671 # No shared lib support for Linux oldld, aout, or coff.
15672 linux*oldld* | linux*aout* | linux*coff*)
15673 dynamic_linker=no
15676 # This must be Linux ELF.
15678 # uclinux* changes (here and below) have been submitted to the libtool
15679 # project, but have not yet been accepted: they are GCC-local changes
15680 # for the time being. (See
15681 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15682 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15683 version_type=linux
15684 need_lib_prefix=no
15685 need_version=no
15686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15687 soname_spec='${libname}${release}${shared_ext}$major'
15688 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15689 shlibpath_var=LD_LIBRARY_PATH
15690 shlibpath_overrides_runpath=no
15692 # Some binutils ld are patched to set DT_RUNPATH
15693 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15694 $as_echo_n "(cached) " >&6
15695 else
15696 lt_cv_shlibpath_overrides_runpath=no
15697 save_LDFLAGS=$LDFLAGS
15698 save_libdir=$libdir
15699 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15700 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15701 if test x$gcc_no_link = xyes; then
15702 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15705 /* end confdefs.h. */
15708 main ()
15712 return 0;
15714 _ACEOF
15715 if ac_fn_cxx_try_link "$LINENO"; then :
15716 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15717 lt_cv_shlibpath_overrides_runpath=yes
15720 rm -f core conftest.err conftest.$ac_objext \
15721 conftest$ac_exeext conftest.$ac_ext
15722 LDFLAGS=$save_LDFLAGS
15723 libdir=$save_libdir
15727 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15729 # This implies no fast_install, which is unacceptable.
15730 # Some rework will be needed to allow for fast_install
15731 # before this can be enabled.
15732 hardcode_into_libs=yes
15734 # Append ld.so.conf contents to the search path
15735 if test -f /etc/ld.so.conf; then
15736 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' ' '`
15737 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15740 # We used to test for /lib/ld.so.1 and disable shared libraries on
15741 # powerpc, because MkLinux only supported shared libraries with the
15742 # GNU dynamic linker. Since this was broken with cross compilers,
15743 # most powerpc-linux boxes support dynamic linking these days and
15744 # people can always --disable-shared, the test was removed, and we
15745 # assume the GNU/Linux dynamic linker is in use.
15746 dynamic_linker='GNU/Linux ld.so'
15749 netbsd*)
15750 version_type=sunos
15751 need_lib_prefix=no
15752 need_version=no
15753 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15755 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15756 dynamic_linker='NetBSD (a.out) ld.so'
15757 else
15758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15759 soname_spec='${libname}${release}${shared_ext}$major'
15760 dynamic_linker='NetBSD ld.elf_so'
15762 shlibpath_var=LD_LIBRARY_PATH
15763 shlibpath_overrides_runpath=yes
15764 hardcode_into_libs=yes
15767 newsos6)
15768 version_type=linux
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15770 shlibpath_var=LD_LIBRARY_PATH
15771 shlibpath_overrides_runpath=yes
15774 *nto* | *qnx*)
15775 version_type=qnx
15776 need_lib_prefix=no
15777 need_version=no
15778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15779 soname_spec='${libname}${release}${shared_ext}$major'
15780 shlibpath_var=LD_LIBRARY_PATH
15781 shlibpath_overrides_runpath=no
15782 hardcode_into_libs=yes
15783 dynamic_linker='ldqnx.so'
15786 openbsd*)
15787 version_type=sunos
15788 sys_lib_dlsearch_path_spec="/usr/lib"
15789 need_lib_prefix=no
15790 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15791 case $host_os in
15792 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15793 *) need_version=no ;;
15794 esac
15795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15796 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15797 shlibpath_var=LD_LIBRARY_PATH
15798 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15799 case $host_os in
15800 openbsd2.[89] | openbsd2.[89].*)
15801 shlibpath_overrides_runpath=no
15804 shlibpath_overrides_runpath=yes
15806 esac
15807 else
15808 shlibpath_overrides_runpath=yes
15812 os2*)
15813 libname_spec='$name'
15814 shrext_cmds=".dll"
15815 need_lib_prefix=no
15816 library_names_spec='$libname${shared_ext} $libname.a'
15817 dynamic_linker='OS/2 ld.exe'
15818 shlibpath_var=LIBPATH
15821 osf3* | osf4* | osf5*)
15822 version_type=osf
15823 need_lib_prefix=no
15824 need_version=no
15825 soname_spec='${libname}${release}${shared_ext}$major'
15826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15827 shlibpath_var=LD_LIBRARY_PATH
15828 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15829 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15832 rdos*)
15833 dynamic_linker=no
15836 solaris*)
15837 version_type=linux
15838 need_lib_prefix=no
15839 need_version=no
15840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15841 soname_spec='${libname}${release}${shared_ext}$major'
15842 shlibpath_var=LD_LIBRARY_PATH
15843 shlibpath_overrides_runpath=yes
15844 hardcode_into_libs=yes
15845 # ldd complains unless libraries are executable
15846 postinstall_cmds='chmod +x $lib'
15849 sunos4*)
15850 version_type=sunos
15851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15852 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15853 shlibpath_var=LD_LIBRARY_PATH
15854 shlibpath_overrides_runpath=yes
15855 if test "$with_gnu_ld" = yes; then
15856 need_lib_prefix=no
15858 need_version=yes
15861 sysv4 | sysv4.3*)
15862 version_type=linux
15863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15864 soname_spec='${libname}${release}${shared_ext}$major'
15865 shlibpath_var=LD_LIBRARY_PATH
15866 case $host_vendor in
15867 sni)
15868 shlibpath_overrides_runpath=no
15869 need_lib_prefix=no
15870 runpath_var=LD_RUN_PATH
15872 siemens)
15873 need_lib_prefix=no
15875 motorola)
15876 need_lib_prefix=no
15877 need_version=no
15878 shlibpath_overrides_runpath=no
15879 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15881 esac
15884 sysv4*MP*)
15885 if test -d /usr/nec ;then
15886 version_type=linux
15887 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15888 soname_spec='$libname${shared_ext}.$major'
15889 shlibpath_var=LD_LIBRARY_PATH
15893 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15894 version_type=freebsd-elf
15895 need_lib_prefix=no
15896 need_version=no
15897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15898 soname_spec='${libname}${release}${shared_ext}$major'
15899 shlibpath_var=LD_LIBRARY_PATH
15900 shlibpath_overrides_runpath=yes
15901 hardcode_into_libs=yes
15902 if test "$with_gnu_ld" = yes; then
15903 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15904 else
15905 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15906 case $host_os in
15907 sco3.2v5*)
15908 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15910 esac
15912 sys_lib_dlsearch_path_spec='/usr/lib'
15915 tpf*)
15916 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15917 version_type=linux
15918 need_lib_prefix=no
15919 need_version=no
15920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15921 shlibpath_var=LD_LIBRARY_PATH
15922 shlibpath_overrides_runpath=no
15923 hardcode_into_libs=yes
15926 uts4*)
15927 version_type=linux
15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15929 soname_spec='${libname}${release}${shared_ext}$major'
15930 shlibpath_var=LD_LIBRARY_PATH
15933 # Shared libraries for VwWorks, >= 7 only at this stage
15934 # and (fpic) still incompatible with "large" code models
15935 # in a few configurations. Only for RTP mode in any case,
15936 # and upon explicit request at configure time.
15937 vxworks7*)
15938 dynamic_linker=no
15939 case ${with_multisubdir}-${enable_shared} in
15940 *large*)
15942 *mrtp*-yes)
15943 version_type=linux
15944 need_lib_prefix=no
15945 need_version=no
15946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15947 soname_spec='${libname}${release}${shared_ext}$major'
15948 dynamic_linker="$host_os module_loader"
15950 esac
15953 dynamic_linker=no
15955 esac
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15957 $as_echo "$dynamic_linker" >&6; }
15958 test "$dynamic_linker" = no && can_build_shared=no
15960 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15961 if test "$GCC" = yes; then
15962 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15965 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15966 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15968 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15969 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16010 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16011 hardcode_action_CXX=
16012 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16013 test -n "$runpath_var_CXX" ||
16014 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16016 # We can hardcode non-existent directories.
16017 if test "$hardcode_direct_CXX" != no &&
16018 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16019 # have to relink, otherwise we might link with an installed library
16020 # when we should be linking with a yet-to-be-installed one
16021 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16022 test "$hardcode_minus_L_CXX" != no; then
16023 # Linking always hardcodes the temporary library directory.
16024 hardcode_action_CXX=relink
16025 else
16026 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16027 hardcode_action_CXX=immediate
16029 else
16030 # We cannot hardcode anything, or else we can only hardcode existing
16031 # directories.
16032 hardcode_action_CXX=unsupported
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16035 $as_echo "$hardcode_action_CXX" >&6; }
16037 if test "$hardcode_action_CXX" = relink ||
16038 test "$inherit_rpath_CXX" = yes; then
16039 # Fast installation is not supported
16040 enable_fast_install=no
16041 elif test "$shlibpath_overrides_runpath" = yes ||
16042 test "$enable_shared" = no; then
16043 # Fast installation is not necessary
16044 enable_fast_install=needless
16053 fi # test -n "$compiler"
16055 CC=$lt_save_CC
16056 LDCXX=$LD
16057 LD=$lt_save_LD
16058 GCC=$lt_save_GCC
16059 with_gnu_ld=$lt_save_with_gnu_ld
16060 lt_cv_path_LDCXX=$lt_cv_path_LD
16061 lt_cv_path_LD=$lt_save_path_LD
16062 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16063 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16064 fi # test "$_lt_caught_CXX_error" != yes
16066 ac_ext=c
16067 ac_cpp='$CPP $CPPFLAGS'
16068 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16069 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16070 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16084 ac_config_commands="$ac_config_commands libtool"
16089 # Only expand once:
16095 if test "${multilib}" = "yes"; then
16096 multilib_arg="--enable-multilib"
16097 else
16098 multilib_arg=
16101 ac_fn_c_check_type "$LINENO" "struct timezone" "ac_cv_type_struct_timezone" "$ac_includes_default"
16102 if test "x$ac_cv_type_struct_timezone" = xyes; then :
16104 cat >>confdefs.h <<_ACEOF
16105 #define HAVE_STRUCT_TIMEZONE 1
16106 _ACEOF
16110 ac_fn_c_check_type "$LINENO" "struct stat" "ac_cv_type_struct_stat" "$ac_includes_default"
16111 if test "x$ac_cv_type_struct_stat" = xyes; then :
16113 cat >>confdefs.h <<_ACEOF
16114 #define HAVE_STRUCT_STAT 1
16115 _ACEOF
16119 ac_fn_c_check_type "$LINENO" "struct timeval" "ac_cv_type_struct_timeval" "$ac_includes_default"
16120 if test "x$ac_cv_type_struct_timeval" = xyes; then :
16122 cat >>confdefs.h <<_ACEOF
16123 #define HAVE_STRUCT_TIMEVAL 1
16124 _ACEOF
16130 ac_ext=c
16131 ac_cpp='$CPP $CPPFLAGS'
16132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16136 # Check the compiler.
16137 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
16138 # We must force CC to /not/ be precious variables; otherwise
16139 # the wrong, non-multilib-adjusted value will be used in multilibs.
16140 # As a side effect, we have to subst CFLAGS ourselves.
16144 ac_ext=c
16145 ac_cpp='$CPP $CPPFLAGS'
16146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16149 if test -n "$ac_tool_prefix"; then
16150 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16151 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16153 $as_echo_n "checking for $ac_word... " >&6; }
16154 if ${ac_cv_prog_CC+:} false; then :
16155 $as_echo_n "(cached) " >&6
16156 else
16157 if test -n "$CC"; then
16158 ac_cv_prog_CC="$CC" # Let the user override the test.
16159 else
16160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16161 for as_dir in $PATH
16163 IFS=$as_save_IFS
16164 test -z "$as_dir" && as_dir=.
16165 for ac_exec_ext in '' $ac_executable_extensions; do
16166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16167 ac_cv_prog_CC="${ac_tool_prefix}gcc"
16168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16169 break 2
16171 done
16172 done
16173 IFS=$as_save_IFS
16177 CC=$ac_cv_prog_CC
16178 if test -n "$CC"; then
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16180 $as_echo "$CC" >&6; }
16181 else
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16183 $as_echo "no" >&6; }
16188 if test -z "$ac_cv_prog_CC"; then
16189 ac_ct_CC=$CC
16190 # Extract the first word of "gcc", so it can be a program name with args.
16191 set dummy gcc; ac_word=$2
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16193 $as_echo_n "checking for $ac_word... " >&6; }
16194 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16195 $as_echo_n "(cached) " >&6
16196 else
16197 if test -n "$ac_ct_CC"; then
16198 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16199 else
16200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16201 for as_dir in $PATH
16203 IFS=$as_save_IFS
16204 test -z "$as_dir" && as_dir=.
16205 for ac_exec_ext in '' $ac_executable_extensions; do
16206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16207 ac_cv_prog_ac_ct_CC="gcc"
16208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16209 break 2
16211 done
16212 done
16213 IFS=$as_save_IFS
16217 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16218 if test -n "$ac_ct_CC"; then
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16220 $as_echo "$ac_ct_CC" >&6; }
16221 else
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16223 $as_echo "no" >&6; }
16226 if test "x$ac_ct_CC" = x; then
16227 CC=""
16228 else
16229 case $cross_compiling:$ac_tool_warned in
16230 yes:)
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16232 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16233 ac_tool_warned=yes ;;
16234 esac
16235 CC=$ac_ct_CC
16237 else
16238 CC="$ac_cv_prog_CC"
16241 if test -z "$CC"; then
16242 if test -n "$ac_tool_prefix"; then
16243 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16244 set dummy ${ac_tool_prefix}cc; ac_word=$2
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16246 $as_echo_n "checking for $ac_word... " >&6; }
16247 if ${ac_cv_prog_CC+:} false; then :
16248 $as_echo_n "(cached) " >&6
16249 else
16250 if test -n "$CC"; then
16251 ac_cv_prog_CC="$CC" # Let the user override the test.
16252 else
16253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16254 for as_dir in $PATH
16256 IFS=$as_save_IFS
16257 test -z "$as_dir" && as_dir=.
16258 for ac_exec_ext in '' $ac_executable_extensions; do
16259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16260 ac_cv_prog_CC="${ac_tool_prefix}cc"
16261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16262 break 2
16264 done
16265 done
16266 IFS=$as_save_IFS
16270 CC=$ac_cv_prog_CC
16271 if test -n "$CC"; then
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16273 $as_echo "$CC" >&6; }
16274 else
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16276 $as_echo "no" >&6; }
16282 if test -z "$CC"; then
16283 # Extract the first word of "cc", so it can be a program name with args.
16284 set dummy cc; ac_word=$2
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16286 $as_echo_n "checking for $ac_word... " >&6; }
16287 if ${ac_cv_prog_CC+:} false; then :
16288 $as_echo_n "(cached) " >&6
16289 else
16290 if test -n "$CC"; then
16291 ac_cv_prog_CC="$CC" # Let the user override the test.
16292 else
16293 ac_prog_rejected=no
16294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16295 for as_dir in $PATH
16297 IFS=$as_save_IFS
16298 test -z "$as_dir" && as_dir=.
16299 for ac_exec_ext in '' $ac_executable_extensions; do
16300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16301 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16302 ac_prog_rejected=yes
16303 continue
16305 ac_cv_prog_CC="cc"
16306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16307 break 2
16309 done
16310 done
16311 IFS=$as_save_IFS
16313 if test $ac_prog_rejected = yes; then
16314 # We found a bogon in the path, so make sure we never use it.
16315 set dummy $ac_cv_prog_CC
16316 shift
16317 if test $# != 0; then
16318 # We chose a different compiler from the bogus one.
16319 # However, it has the same basename, so the bogon will be chosen
16320 # first if we set CC to just the basename; use the full file name.
16321 shift
16322 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16327 CC=$ac_cv_prog_CC
16328 if test -n "$CC"; then
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16330 $as_echo "$CC" >&6; }
16331 else
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16333 $as_echo "no" >&6; }
16338 if test -z "$CC"; then
16339 if test -n "$ac_tool_prefix"; then
16340 for ac_prog in cl.exe
16342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16345 $as_echo_n "checking for $ac_word... " >&6; }
16346 if ${ac_cv_prog_CC+:} false; then :
16347 $as_echo_n "(cached) " >&6
16348 else
16349 if test -n "$CC"; then
16350 ac_cv_prog_CC="$CC" # Let the user override the test.
16351 else
16352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16353 for as_dir in $PATH
16355 IFS=$as_save_IFS
16356 test -z "$as_dir" && as_dir=.
16357 for ac_exec_ext in '' $ac_executable_extensions; do
16358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16361 break 2
16363 done
16364 done
16365 IFS=$as_save_IFS
16369 CC=$ac_cv_prog_CC
16370 if test -n "$CC"; then
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16372 $as_echo "$CC" >&6; }
16373 else
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16375 $as_echo "no" >&6; }
16379 test -n "$CC" && break
16380 done
16382 if test -z "$CC"; then
16383 ac_ct_CC=$CC
16384 for ac_prog in cl.exe
16386 # Extract the first word of "$ac_prog", so it can be a program name with args.
16387 set dummy $ac_prog; ac_word=$2
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16389 $as_echo_n "checking for $ac_word... " >&6; }
16390 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16391 $as_echo_n "(cached) " >&6
16392 else
16393 if test -n "$ac_ct_CC"; then
16394 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16395 else
16396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16397 for as_dir in $PATH
16399 IFS=$as_save_IFS
16400 test -z "$as_dir" && as_dir=.
16401 for ac_exec_ext in '' $ac_executable_extensions; do
16402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16403 ac_cv_prog_ac_ct_CC="$ac_prog"
16404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16405 break 2
16407 done
16408 done
16409 IFS=$as_save_IFS
16413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16414 if test -n "$ac_ct_CC"; then
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16416 $as_echo "$ac_ct_CC" >&6; }
16417 else
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16419 $as_echo "no" >&6; }
16423 test -n "$ac_ct_CC" && break
16424 done
16426 if test "x$ac_ct_CC" = x; then
16427 CC=""
16428 else
16429 case $cross_compiling:$ac_tool_warned in
16430 yes:)
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16432 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16433 ac_tool_warned=yes ;;
16434 esac
16435 CC=$ac_ct_CC
16442 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16443 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16444 as_fn_error $? "no acceptable C compiler found in \$PATH
16445 See \`config.log' for more details" "$LINENO" 5; }
16447 # Provide some information about the compiler.
16448 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
16449 set X $ac_compile
16450 ac_compiler=$2
16451 for ac_option in --version -v -V -qversion; do
16452 { { ac_try="$ac_compiler $ac_option >&5"
16453 case "(($ac_try" in
16454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16455 *) ac_try_echo=$ac_try;;
16456 esac
16457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16458 $as_echo "$ac_try_echo"; } >&5
16459 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16460 ac_status=$?
16461 if test -s conftest.err; then
16462 sed '10a\
16463 ... rest of stderr output deleted ...
16464 10q' conftest.err >conftest.er1
16465 cat conftest.er1 >&5
16467 rm -f conftest.er1 conftest.err
16468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16469 test $ac_status = 0; }
16470 done
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
16473 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
16474 if ${ac_cv_c_compiler_gnu+:} false; then :
16475 $as_echo_n "(cached) " >&6
16476 else
16477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16478 /* end confdefs.h. */
16481 main ()
16483 #ifndef __GNUC__
16484 choke me
16485 #endif
16488 return 0;
16490 _ACEOF
16491 if ac_fn_c_try_compile "$LINENO"; then :
16492 ac_compiler_gnu=yes
16493 else
16494 ac_compiler_gnu=no
16496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16497 ac_cv_c_compiler_gnu=$ac_compiler_gnu
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
16501 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
16502 if test $ac_compiler_gnu = yes; then
16503 GCC=yes
16504 else
16505 GCC=
16507 ac_test_CFLAGS=${CFLAGS+set}
16508 ac_save_CFLAGS=$CFLAGS
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
16510 $as_echo_n "checking whether $CC accepts -g... " >&6; }
16511 if ${ac_cv_prog_cc_g+:} false; then :
16512 $as_echo_n "(cached) " >&6
16513 else
16514 ac_save_c_werror_flag=$ac_c_werror_flag
16515 ac_c_werror_flag=yes
16516 ac_cv_prog_cc_g=no
16517 CFLAGS="-g"
16518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16519 /* end confdefs.h. */
16522 main ()
16526 return 0;
16528 _ACEOF
16529 if ac_fn_c_try_compile "$LINENO"; then :
16530 ac_cv_prog_cc_g=yes
16531 else
16532 CFLAGS=""
16533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16534 /* end confdefs.h. */
16537 main ()
16541 return 0;
16543 _ACEOF
16544 if ac_fn_c_try_compile "$LINENO"; then :
16546 else
16547 ac_c_werror_flag=$ac_save_c_werror_flag
16548 CFLAGS="-g"
16549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550 /* end confdefs.h. */
16553 main ()
16557 return 0;
16559 _ACEOF
16560 if ac_fn_c_try_compile "$LINENO"; then :
16561 ac_cv_prog_cc_g=yes
16563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16568 ac_c_werror_flag=$ac_save_c_werror_flag
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
16571 $as_echo "$ac_cv_prog_cc_g" >&6; }
16572 if test "$ac_test_CFLAGS" = set; then
16573 CFLAGS=$ac_save_CFLAGS
16574 elif test $ac_cv_prog_cc_g = yes; then
16575 if test "$GCC" = yes; then
16576 CFLAGS="-g -O2"
16577 else
16578 CFLAGS="-g"
16580 else
16581 if test "$GCC" = yes; then
16582 CFLAGS="-O2"
16583 else
16584 CFLAGS=
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16588 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16589 if ${ac_cv_prog_cc_c89+:} false; then :
16590 $as_echo_n "(cached) " >&6
16591 else
16592 ac_cv_prog_cc_c89=no
16593 ac_save_CC=$CC
16594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16595 /* end confdefs.h. */
16596 #include <stdarg.h>
16597 #include <stdio.h>
16598 struct stat;
16599 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
16600 struct buf { int x; };
16601 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16602 static char *e (p, i)
16603 char **p;
16604 int i;
16606 return p[i];
16608 static char *f (char * (*g) (char **, int), char **p, ...)
16610 char *s;
16611 va_list v;
16612 va_start (v,p);
16613 s = g (p, va_arg (v,int));
16614 va_end (v);
16615 return s;
16618 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
16619 function prototypes and stuff, but not '\xHH' hex character constants.
16620 These don't provoke an error unfortunately, instead are silently treated
16621 as 'x'. The following induces an error, until -std is added to get
16622 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
16623 array size at least. It's necessary to write '\x00'==0 to get something
16624 that's true only with -std. */
16625 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16627 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16628 inside strings and character constants. */
16629 #define FOO(x) 'x'
16630 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16632 int test (int i, double x);
16633 struct s1 {int (*f) (int a);};
16634 struct s2 {int (*f) (double a);};
16635 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16636 int argc;
16637 char **argv;
16639 main ()
16641 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
16643 return 0;
16645 _ACEOF
16646 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16647 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16649 CC="$ac_save_CC $ac_arg"
16650 if ac_fn_c_try_compile "$LINENO"; then :
16651 ac_cv_prog_cc_c89=$ac_arg
16653 rm -f core conftest.err conftest.$ac_objext
16654 test "x$ac_cv_prog_cc_c89" != "xno" && break
16655 done
16656 rm -f conftest.$ac_ext
16657 CC=$ac_save_CC
16660 # AC_CACHE_VAL
16661 case "x$ac_cv_prog_cc_c89" in
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16664 $as_echo "none needed" >&6; } ;;
16665 xno)
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16667 $as_echo "unsupported" >&6; } ;;
16669 CC="$CC $ac_cv_prog_cc_c89"
16670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16671 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16672 esac
16673 if test "x$ac_cv_prog_cc_c89" != xno; then :
16677 ac_ext=c
16678 ac_cpp='$CPP $CPPFLAGS'
16679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16683 ac_ext=c
16684 ac_cpp='$CPP $CPPFLAGS'
16685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
16689 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
16690 if ${am_cv_prog_cc_c_o+:} false; then :
16691 $as_echo_n "(cached) " >&6
16692 else
16693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16694 /* end confdefs.h. */
16697 main ()
16701 return 0;
16703 _ACEOF
16704 # Make sure it works both with $CC and with simple cc.
16705 # Following AC_PROG_CC_C_O, we do the test twice because some
16706 # compilers refuse to overwrite an existing .o file with -o,
16707 # though they will create one.
16708 am_cv_prog_cc_c_o=yes
16709 for am_i in 1 2; do
16710 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
16711 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
16712 ac_status=$?
16713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16714 (exit $ac_status); } \
16715 && test -f conftest2.$ac_objext; then
16716 : OK
16717 else
16718 am_cv_prog_cc_c_o=no
16719 break
16721 done
16722 rm -f core conftest*
16723 unset am_i
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
16726 $as_echo "$am_cv_prog_cc_c_o" >&6; }
16727 if test "$am_cv_prog_cc_c_o" != yes; then
16728 # Losing compiler, so override with the script.
16729 # FIXME: It is wrong to rewrite CC.
16730 # But if we don't then we get into trouble of one sort or another.
16731 # A longer-term fix would be to have automake use am__CC in this case,
16732 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16733 CC="$am_aux_dir/compile $CC"
16735 ac_ext=c
16736 ac_cpp='$CPP $CPPFLAGS'
16737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for access" >&5
16752 $as_echo_n "checking m2 front end checking c library for access... " >&6; }
16753 if test x$gcc_no_link != xyes; then
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for access in -lc" >&5
16755 $as_echo_n "checking for access in -lc... " >&6; }
16756 if ${ac_cv_lib_c_access+:} false; then :
16757 $as_echo_n "(cached) " >&6
16758 else
16759 ac_check_lib_save_LIBS=$LIBS
16760 LIBS="-lc $LIBS"
16761 if test x$gcc_no_link = xyes; then
16762 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16765 /* end confdefs.h. */
16767 /* Override any GCC internal prototype to avoid an error.
16768 Use char because int might match the return type of a GCC
16769 builtin and then its argument prototype would still apply. */
16770 #ifdef __cplusplus
16771 extern "C"
16772 #endif
16773 char access ();
16775 main ()
16777 return access ();
16779 return 0;
16781 _ACEOF
16782 if ac_fn_c_try_link "$LINENO"; then :
16783 ac_cv_lib_c_access=yes
16784 else
16785 ac_cv_lib_c_access=no
16787 rm -f core conftest.err conftest.$ac_objext \
16788 conftest$ac_exeext conftest.$ac_ext
16789 LIBS=$ac_check_lib_save_LIBS
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_access" >&5
16792 $as_echo "$ac_cv_lib_c_access" >&6; }
16793 if test "x$ac_cv_lib_c_access" = xyes; then :
16795 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
16797 else
16799 $as_echo "#undef HAVE_ACCESS" >>confdefs.h
16803 else
16804 if test "x$ac_cv_lib_c_access" = xyes; then
16806 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
16808 elif test "x$ac_cv_func_access" = xyes; then
16810 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
16812 else
16814 $as_echo "#undef HAVE_ACCESS" >>confdefs.h
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for brk" >&5
16821 $as_echo_n "checking m2 front end checking c library for brk... " >&6; }
16822 if test x$gcc_no_link != xyes; then
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for brk in -lc" >&5
16824 $as_echo_n "checking for brk in -lc... " >&6; }
16825 if ${ac_cv_lib_c_brk+:} false; then :
16826 $as_echo_n "(cached) " >&6
16827 else
16828 ac_check_lib_save_LIBS=$LIBS
16829 LIBS="-lc $LIBS"
16830 if test x$gcc_no_link = xyes; then
16831 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16834 /* end confdefs.h. */
16836 /* Override any GCC internal prototype to avoid an error.
16837 Use char because int might match the return type of a GCC
16838 builtin and then its argument prototype would still apply. */
16839 #ifdef __cplusplus
16840 extern "C"
16841 #endif
16842 char brk ();
16844 main ()
16846 return brk ();
16848 return 0;
16850 _ACEOF
16851 if ac_fn_c_try_link "$LINENO"; then :
16852 ac_cv_lib_c_brk=yes
16853 else
16854 ac_cv_lib_c_brk=no
16856 rm -f core conftest.err conftest.$ac_objext \
16857 conftest$ac_exeext conftest.$ac_ext
16858 LIBS=$ac_check_lib_save_LIBS
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_brk" >&5
16861 $as_echo "$ac_cv_lib_c_brk" >&6; }
16862 if test "x$ac_cv_lib_c_brk" = xyes; then :
16864 $as_echo "#define HAVE_BRK 1" >>confdefs.h
16866 else
16868 $as_echo "#undef HAVE_BRK" >>confdefs.h
16872 else
16873 if test "x$ac_cv_lib_c_brk" = xyes; then
16875 $as_echo "#define HAVE_BRK 1" >>confdefs.h
16877 elif test "x$ac_cv_func_brk" = xyes; then
16879 $as_echo "#define HAVE_BRK 1" >>confdefs.h
16881 else
16883 $as_echo "#undef HAVE_BRK" >>confdefs.h
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for cfmakeraw" >&5
16890 $as_echo_n "checking m2 front end checking c library for cfmakeraw... " >&6; }
16891 if test x$gcc_no_link != xyes; then
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfmakeraw in -lc" >&5
16893 $as_echo_n "checking for cfmakeraw in -lc... " >&6; }
16894 if ${ac_cv_lib_c_cfmakeraw+:} false; then :
16895 $as_echo_n "(cached) " >&6
16896 else
16897 ac_check_lib_save_LIBS=$LIBS
16898 LIBS="-lc $LIBS"
16899 if test x$gcc_no_link = xyes; then
16900 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16903 /* end confdefs.h. */
16905 /* Override any GCC internal prototype to avoid an error.
16906 Use char because int might match the return type of a GCC
16907 builtin and then its argument prototype would still apply. */
16908 #ifdef __cplusplus
16909 extern "C"
16910 #endif
16911 char cfmakeraw ();
16913 main ()
16915 return cfmakeraw ();
16917 return 0;
16919 _ACEOF
16920 if ac_fn_c_try_link "$LINENO"; then :
16921 ac_cv_lib_c_cfmakeraw=yes
16922 else
16923 ac_cv_lib_c_cfmakeraw=no
16925 rm -f core conftest.err conftest.$ac_objext \
16926 conftest$ac_exeext conftest.$ac_ext
16927 LIBS=$ac_check_lib_save_LIBS
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_cfmakeraw" >&5
16930 $as_echo "$ac_cv_lib_c_cfmakeraw" >&6; }
16931 if test "x$ac_cv_lib_c_cfmakeraw" = xyes; then :
16933 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
16935 else
16937 $as_echo "#undef HAVE_CFMAKERAW" >>confdefs.h
16941 else
16942 if test "x$ac_cv_lib_c_cfmakeraw" = xyes; then
16944 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
16946 elif test "x$ac_cv_func_cfmakeraw" = xyes; then
16948 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
16950 else
16952 $as_echo "#undef HAVE_CFMAKERAW" >>confdefs.h
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for close" >&5
16959 $as_echo_n "checking m2 front end checking c library for close... " >&6; }
16960 if test x$gcc_no_link != xyes; then
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for close in -lc" >&5
16962 $as_echo_n "checking for close in -lc... " >&6; }
16963 if ${ac_cv_lib_c_close+:} false; then :
16964 $as_echo_n "(cached) " >&6
16965 else
16966 ac_check_lib_save_LIBS=$LIBS
16967 LIBS="-lc $LIBS"
16968 if test x$gcc_no_link = xyes; then
16969 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972 /* end confdefs.h. */
16974 /* Override any GCC internal prototype to avoid an error.
16975 Use char because int might match the return type of a GCC
16976 builtin and then its argument prototype would still apply. */
16977 #ifdef __cplusplus
16978 extern "C"
16979 #endif
16980 char close ();
16982 main ()
16984 return close ();
16986 return 0;
16988 _ACEOF
16989 if ac_fn_c_try_link "$LINENO"; then :
16990 ac_cv_lib_c_close=yes
16991 else
16992 ac_cv_lib_c_close=no
16994 rm -f core conftest.err conftest.$ac_objext \
16995 conftest$ac_exeext conftest.$ac_ext
16996 LIBS=$ac_check_lib_save_LIBS
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_close" >&5
16999 $as_echo "$ac_cv_lib_c_close" >&6; }
17000 if test "x$ac_cv_lib_c_close" = xyes; then :
17002 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
17004 else
17006 $as_echo "#undef HAVE_CLOSE" >>confdefs.h
17010 else
17011 if test "x$ac_cv_lib_c_close" = xyes; then
17013 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
17015 elif test "x$ac_cv_func_close" = xyes; then
17017 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
17019 else
17021 $as_echo "#undef HAVE_CLOSE" >>confdefs.h
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for ctime" >&5
17028 $as_echo_n "checking m2 front end checking c library for ctime... " >&6; }
17029 if test x$gcc_no_link != xyes; then
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctime in -lc" >&5
17031 $as_echo_n "checking for ctime in -lc... " >&6; }
17032 if ${ac_cv_lib_c_ctime+:} false; then :
17033 $as_echo_n "(cached) " >&6
17034 else
17035 ac_check_lib_save_LIBS=$LIBS
17036 LIBS="-lc $LIBS"
17037 if test x$gcc_no_link = xyes; then
17038 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17041 /* end confdefs.h. */
17043 /* Override any GCC internal prototype to avoid an error.
17044 Use char because int might match the return type of a GCC
17045 builtin and then its argument prototype would still apply. */
17046 #ifdef __cplusplus
17047 extern "C"
17048 #endif
17049 char ctime ();
17051 main ()
17053 return ctime ();
17055 return 0;
17057 _ACEOF
17058 if ac_fn_c_try_link "$LINENO"; then :
17059 ac_cv_lib_c_ctime=yes
17060 else
17061 ac_cv_lib_c_ctime=no
17063 rm -f core conftest.err conftest.$ac_objext \
17064 conftest$ac_exeext conftest.$ac_ext
17065 LIBS=$ac_check_lib_save_LIBS
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ctime" >&5
17068 $as_echo "$ac_cv_lib_c_ctime" >&6; }
17069 if test "x$ac_cv_lib_c_ctime" = xyes; then :
17071 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
17073 else
17075 $as_echo "#undef HAVE_CTIME" >>confdefs.h
17079 else
17080 if test "x$ac_cv_lib_c_ctime" = xyes; then
17082 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
17084 elif test "x$ac_cv_func_ctime" = xyes; then
17086 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
17088 else
17090 $as_echo "#undef HAVE_CTIME" >>confdefs.h
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for creat" >&5
17097 $as_echo_n "checking m2 front end checking c library for creat... " >&6; }
17098 if test x$gcc_no_link != xyes; then
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for creat in -lc" >&5
17100 $as_echo_n "checking for creat in -lc... " >&6; }
17101 if ${ac_cv_lib_c_creat+:} false; then :
17102 $as_echo_n "(cached) " >&6
17103 else
17104 ac_check_lib_save_LIBS=$LIBS
17105 LIBS="-lc $LIBS"
17106 if test x$gcc_no_link = xyes; then
17107 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17110 /* end confdefs.h. */
17112 /* Override any GCC internal prototype to avoid an error.
17113 Use char because int might match the return type of a GCC
17114 builtin and then its argument prototype would still apply. */
17115 #ifdef __cplusplus
17116 extern "C"
17117 #endif
17118 char creat ();
17120 main ()
17122 return creat ();
17124 return 0;
17126 _ACEOF
17127 if ac_fn_c_try_link "$LINENO"; then :
17128 ac_cv_lib_c_creat=yes
17129 else
17130 ac_cv_lib_c_creat=no
17132 rm -f core conftest.err conftest.$ac_objext \
17133 conftest$ac_exeext conftest.$ac_ext
17134 LIBS=$ac_check_lib_save_LIBS
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_creat" >&5
17137 $as_echo "$ac_cv_lib_c_creat" >&6; }
17138 if test "x$ac_cv_lib_c_creat" = xyes; then :
17140 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
17142 else
17144 $as_echo "#undef HAVE_CREAT" >>confdefs.h
17148 else
17149 if test "x$ac_cv_lib_c_creat" = xyes; then
17151 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
17153 elif test "x$ac_cv_func_creat" = xyes; then
17155 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
17157 else
17159 $as_echo "#undef HAVE_CREAT" >>confdefs.h
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for dup" >&5
17166 $as_echo_n "checking m2 front end checking c library for dup... " >&6; }
17167 if test x$gcc_no_link != xyes; then
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup in -lc" >&5
17169 $as_echo_n "checking for dup in -lc... " >&6; }
17170 if ${ac_cv_lib_c_dup+:} false; then :
17171 $as_echo_n "(cached) " >&6
17172 else
17173 ac_check_lib_save_LIBS=$LIBS
17174 LIBS="-lc $LIBS"
17175 if test x$gcc_no_link = xyes; then
17176 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17179 /* end confdefs.h. */
17181 /* Override any GCC internal prototype to avoid an error.
17182 Use char because int might match the return type of a GCC
17183 builtin and then its argument prototype would still apply. */
17184 #ifdef __cplusplus
17185 extern "C"
17186 #endif
17187 char dup ();
17189 main ()
17191 return dup ();
17193 return 0;
17195 _ACEOF
17196 if ac_fn_c_try_link "$LINENO"; then :
17197 ac_cv_lib_c_dup=yes
17198 else
17199 ac_cv_lib_c_dup=no
17201 rm -f core conftest.err conftest.$ac_objext \
17202 conftest$ac_exeext conftest.$ac_ext
17203 LIBS=$ac_check_lib_save_LIBS
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dup" >&5
17206 $as_echo "$ac_cv_lib_c_dup" >&6; }
17207 if test "x$ac_cv_lib_c_dup" = xyes; then :
17209 $as_echo "#define HAVE_DUP 1" >>confdefs.h
17211 else
17213 $as_echo "#undef HAVE_DUP" >>confdefs.h
17217 else
17218 if test "x$ac_cv_lib_c_dup" = xyes; then
17220 $as_echo "#define HAVE_DUP 1" >>confdefs.h
17222 elif test "x$ac_cv_func_dup" = xyes; then
17224 $as_echo "#define HAVE_DUP 1" >>confdefs.h
17226 else
17228 $as_echo "#undef HAVE_DUP" >>confdefs.h
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for execve" >&5
17235 $as_echo_n "checking m2 front end checking c library for execve... " >&6; }
17236 if test x$gcc_no_link != xyes; then
17237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execve in -lc" >&5
17238 $as_echo_n "checking for execve in -lc... " >&6; }
17239 if ${ac_cv_lib_c_execve+:} false; then :
17240 $as_echo_n "(cached) " >&6
17241 else
17242 ac_check_lib_save_LIBS=$LIBS
17243 LIBS="-lc $LIBS"
17244 if test x$gcc_no_link = xyes; then
17245 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17248 /* end confdefs.h. */
17250 /* Override any GCC internal prototype to avoid an error.
17251 Use char because int might match the return type of a GCC
17252 builtin and then its argument prototype would still apply. */
17253 #ifdef __cplusplus
17254 extern "C"
17255 #endif
17256 char execve ();
17258 main ()
17260 return execve ();
17262 return 0;
17264 _ACEOF
17265 if ac_fn_c_try_link "$LINENO"; then :
17266 ac_cv_lib_c_execve=yes
17267 else
17268 ac_cv_lib_c_execve=no
17270 rm -f core conftest.err conftest.$ac_objext \
17271 conftest$ac_exeext conftest.$ac_ext
17272 LIBS=$ac_check_lib_save_LIBS
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_execve" >&5
17275 $as_echo "$ac_cv_lib_c_execve" >&6; }
17276 if test "x$ac_cv_lib_c_execve" = xyes; then :
17278 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
17280 else
17282 $as_echo "#undef HAVE_EXECVE" >>confdefs.h
17286 else
17287 if test "x$ac_cv_lib_c_execve" = xyes; then
17289 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
17291 elif test "x$ac_cv_func_execve" = xyes; then
17293 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
17295 else
17297 $as_echo "#undef HAVE_EXECVE" >>confdefs.h
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for exit" >&5
17304 $as_echo_n "checking m2 front end checking c library for exit... " >&6; }
17305 if test x$gcc_no_link != xyes; then
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lc" >&5
17307 $as_echo_n "checking for exit in -lc... " >&6; }
17308 if ${ac_cv_lib_c_exit+:} false; then :
17309 $as_echo_n "(cached) " >&6
17310 else
17311 ac_check_lib_save_LIBS=$LIBS
17312 LIBS="-lc $LIBS"
17313 if test x$gcc_no_link = xyes; then
17314 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17317 /* end confdefs.h. */
17319 /* Override any GCC internal prototype to avoid an error.
17320 Use char because int might match the return type of a GCC
17321 builtin and then its argument prototype would still apply. */
17322 #ifdef __cplusplus
17323 extern "C"
17324 #endif
17325 char exit ();
17327 main ()
17329 return exit ();
17331 return 0;
17333 _ACEOF
17334 if ac_fn_c_try_link "$LINENO"; then :
17335 ac_cv_lib_c_exit=yes
17336 else
17337 ac_cv_lib_c_exit=no
17339 rm -f core conftest.err conftest.$ac_objext \
17340 conftest$ac_exeext conftest.$ac_ext
17341 LIBS=$ac_check_lib_save_LIBS
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_exit" >&5
17344 $as_echo "$ac_cv_lib_c_exit" >&6; }
17345 if test "x$ac_cv_lib_c_exit" = xyes; then :
17347 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
17349 else
17351 $as_echo "#undef HAVE_EXIT" >>confdefs.h
17355 else
17356 if test "x$ac_cv_lib_c_exit" = xyes; then
17358 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
17360 elif test "x$ac_cv_func_exit" = xyes; then
17362 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
17364 else
17366 $as_echo "#undef HAVE_EXIT" >>confdefs.h
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for fcntl" >&5
17373 $as_echo_n "checking m2 front end checking c library for fcntl... " >&6; }
17374 if test x$gcc_no_link != xyes; then
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl in -lc" >&5
17376 $as_echo_n "checking for fcntl in -lc... " >&6; }
17377 if ${ac_cv_lib_c_fcntl+:} false; then :
17378 $as_echo_n "(cached) " >&6
17379 else
17380 ac_check_lib_save_LIBS=$LIBS
17381 LIBS="-lc $LIBS"
17382 if test x$gcc_no_link = xyes; then
17383 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17386 /* end confdefs.h. */
17388 /* Override any GCC internal prototype to avoid an error.
17389 Use char because int might match the return type of a GCC
17390 builtin and then its argument prototype would still apply. */
17391 #ifdef __cplusplus
17392 extern "C"
17393 #endif
17394 char fcntl ();
17396 main ()
17398 return fcntl ();
17400 return 0;
17402 _ACEOF
17403 if ac_fn_c_try_link "$LINENO"; then :
17404 ac_cv_lib_c_fcntl=yes
17405 else
17406 ac_cv_lib_c_fcntl=no
17408 rm -f core conftest.err conftest.$ac_objext \
17409 conftest$ac_exeext conftest.$ac_ext
17410 LIBS=$ac_check_lib_save_LIBS
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fcntl" >&5
17413 $as_echo "$ac_cv_lib_c_fcntl" >&6; }
17414 if test "x$ac_cv_lib_c_fcntl" = xyes; then :
17416 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
17418 else
17420 $as_echo "#undef HAVE_FCNTL" >>confdefs.h
17424 else
17425 if test "x$ac_cv_lib_c_fcntl" = xyes; then
17427 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
17429 elif test "x$ac_cv_func_fcntl" = xyes; then
17431 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
17433 else
17435 $as_echo "#undef HAVE_FCNTL" >>confdefs.h
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for fstat" >&5
17442 $as_echo_n "checking m2 front end checking c library for fstat... " >&6; }
17443 if test x$gcc_no_link != xyes; then
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fstat in -lc" >&5
17445 $as_echo_n "checking for fstat in -lc... " >&6; }
17446 if ${ac_cv_lib_c_fstat+:} false; then :
17447 $as_echo_n "(cached) " >&6
17448 else
17449 ac_check_lib_save_LIBS=$LIBS
17450 LIBS="-lc $LIBS"
17451 if test x$gcc_no_link = xyes; then
17452 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17455 /* end confdefs.h. */
17457 /* Override any GCC internal prototype to avoid an error.
17458 Use char because int might match the return type of a GCC
17459 builtin and then its argument prototype would still apply. */
17460 #ifdef __cplusplus
17461 extern "C"
17462 #endif
17463 char fstat ();
17465 main ()
17467 return fstat ();
17469 return 0;
17471 _ACEOF
17472 if ac_fn_c_try_link "$LINENO"; then :
17473 ac_cv_lib_c_fstat=yes
17474 else
17475 ac_cv_lib_c_fstat=no
17477 rm -f core conftest.err conftest.$ac_objext \
17478 conftest$ac_exeext conftest.$ac_ext
17479 LIBS=$ac_check_lib_save_LIBS
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fstat" >&5
17482 $as_echo "$ac_cv_lib_c_fstat" >&6; }
17483 if test "x$ac_cv_lib_c_fstat" = xyes; then :
17485 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
17487 else
17489 $as_echo "#undef HAVE_FSTAT" >>confdefs.h
17493 else
17494 if test "x$ac_cv_lib_c_fstat" = xyes; then
17496 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
17498 elif test "x$ac_cv_func_fstat" = xyes; then
17500 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
17502 else
17504 $as_echo "#undef HAVE_FSTAT" >>confdefs.h
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getdents" >&5
17511 $as_echo_n "checking m2 front end checking c library for getdents... " >&6; }
17512 if test x$gcc_no_link != xyes; then
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getdents in -lc" >&5
17514 $as_echo_n "checking for getdents in -lc... " >&6; }
17515 if ${ac_cv_lib_c_getdents+:} false; then :
17516 $as_echo_n "(cached) " >&6
17517 else
17518 ac_check_lib_save_LIBS=$LIBS
17519 LIBS="-lc $LIBS"
17520 if test x$gcc_no_link = xyes; then
17521 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17524 /* end confdefs.h. */
17526 /* Override any GCC internal prototype to avoid an error.
17527 Use char because int might match the return type of a GCC
17528 builtin and then its argument prototype would still apply. */
17529 #ifdef __cplusplus
17530 extern "C"
17531 #endif
17532 char getdents ();
17534 main ()
17536 return getdents ();
17538 return 0;
17540 _ACEOF
17541 if ac_fn_c_try_link "$LINENO"; then :
17542 ac_cv_lib_c_getdents=yes
17543 else
17544 ac_cv_lib_c_getdents=no
17546 rm -f core conftest.err conftest.$ac_objext \
17547 conftest$ac_exeext conftest.$ac_ext
17548 LIBS=$ac_check_lib_save_LIBS
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getdents" >&5
17551 $as_echo "$ac_cv_lib_c_getdents" >&6; }
17552 if test "x$ac_cv_lib_c_getdents" = xyes; then :
17554 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
17556 else
17558 $as_echo "#undef HAVE_GETDENTS" >>confdefs.h
17562 else
17563 if test "x$ac_cv_lib_c_getdents" = xyes; then
17565 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
17567 elif test "x$ac_cv_func_getdents" = xyes; then
17569 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
17571 else
17573 $as_echo "#undef HAVE_GETDENTS" >>confdefs.h
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getgid" >&5
17580 $as_echo_n "checking m2 front end checking c library for getgid... " >&6; }
17581 if test x$gcc_no_link != xyes; then
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgid in -lc" >&5
17583 $as_echo_n "checking for getgid in -lc... " >&6; }
17584 if ${ac_cv_lib_c_getgid+:} false; then :
17585 $as_echo_n "(cached) " >&6
17586 else
17587 ac_check_lib_save_LIBS=$LIBS
17588 LIBS="-lc $LIBS"
17589 if test x$gcc_no_link = xyes; then
17590 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17593 /* end confdefs.h. */
17595 /* Override any GCC internal prototype to avoid an error.
17596 Use char because int might match the return type of a GCC
17597 builtin and then its argument prototype would still apply. */
17598 #ifdef __cplusplus
17599 extern "C"
17600 #endif
17601 char getgid ();
17603 main ()
17605 return getgid ();
17607 return 0;
17609 _ACEOF
17610 if ac_fn_c_try_link "$LINENO"; then :
17611 ac_cv_lib_c_getgid=yes
17612 else
17613 ac_cv_lib_c_getgid=no
17615 rm -f core conftest.err conftest.$ac_objext \
17616 conftest$ac_exeext conftest.$ac_ext
17617 LIBS=$ac_check_lib_save_LIBS
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getgid" >&5
17620 $as_echo "$ac_cv_lib_c_getgid" >&6; }
17621 if test "x$ac_cv_lib_c_getgid" = xyes; then :
17623 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
17625 else
17627 $as_echo "#undef HAVE_GETGID" >>confdefs.h
17631 else
17632 if test "x$ac_cv_lib_c_getgid" = xyes; then
17634 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
17636 elif test "x$ac_cv_func_getgid" = xyes; then
17638 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
17640 else
17642 $as_echo "#undef HAVE_GETGID" >>confdefs.h
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getpid" >&5
17649 $as_echo_n "checking m2 front end checking c library for getpid... " >&6; }
17650 if test x$gcc_no_link != xyes; then
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpid in -lc" >&5
17652 $as_echo_n "checking for getpid in -lc... " >&6; }
17653 if ${ac_cv_lib_c_getpid+:} false; then :
17654 $as_echo_n "(cached) " >&6
17655 else
17656 ac_check_lib_save_LIBS=$LIBS
17657 LIBS="-lc $LIBS"
17658 if test x$gcc_no_link = xyes; then
17659 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17662 /* end confdefs.h. */
17664 /* Override any GCC internal prototype to avoid an error.
17665 Use char because int might match the return type of a GCC
17666 builtin and then its argument prototype would still apply. */
17667 #ifdef __cplusplus
17668 extern "C"
17669 #endif
17670 char getpid ();
17672 main ()
17674 return getpid ();
17676 return 0;
17678 _ACEOF
17679 if ac_fn_c_try_link "$LINENO"; then :
17680 ac_cv_lib_c_getpid=yes
17681 else
17682 ac_cv_lib_c_getpid=no
17684 rm -f core conftest.err conftest.$ac_objext \
17685 conftest$ac_exeext conftest.$ac_ext
17686 LIBS=$ac_check_lib_save_LIBS
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpid" >&5
17689 $as_echo "$ac_cv_lib_c_getpid" >&6; }
17690 if test "x$ac_cv_lib_c_getpid" = xyes; then :
17692 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
17694 else
17696 $as_echo "#undef HAVE_GETPID" >>confdefs.h
17700 else
17701 if test "x$ac_cv_lib_c_getpid" = xyes; then
17703 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
17705 elif test "x$ac_cv_func_getpid" = xyes; then
17707 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
17709 else
17711 $as_echo "#undef HAVE_GETPID" >>confdefs.h
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for gettimeofday" >&5
17718 $as_echo_n "checking m2 front end checking c library for gettimeofday... " >&6; }
17719 if test x$gcc_no_link != xyes; then
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lc" >&5
17721 $as_echo_n "checking for gettimeofday in -lc... " >&6; }
17722 if ${ac_cv_lib_c_gettimeofday+:} false; then :
17723 $as_echo_n "(cached) " >&6
17724 else
17725 ac_check_lib_save_LIBS=$LIBS
17726 LIBS="-lc $LIBS"
17727 if test x$gcc_no_link = xyes; then
17728 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17731 /* end confdefs.h. */
17733 /* Override any GCC internal prototype to avoid an error.
17734 Use char because int might match the return type of a GCC
17735 builtin and then its argument prototype would still apply. */
17736 #ifdef __cplusplus
17737 extern "C"
17738 #endif
17739 char gettimeofday ();
17741 main ()
17743 return gettimeofday ();
17745 return 0;
17747 _ACEOF
17748 if ac_fn_c_try_link "$LINENO"; then :
17749 ac_cv_lib_c_gettimeofday=yes
17750 else
17751 ac_cv_lib_c_gettimeofday=no
17753 rm -f core conftest.err conftest.$ac_objext \
17754 conftest$ac_exeext conftest.$ac_ext
17755 LIBS=$ac_check_lib_save_LIBS
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gettimeofday" >&5
17758 $as_echo "$ac_cv_lib_c_gettimeofday" >&6; }
17759 if test "x$ac_cv_lib_c_gettimeofday" = xyes; then :
17761 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
17763 else
17765 $as_echo "#undef HAVE_GETTIMEOFD" >>confdefs.h
17769 else
17770 if test "x$ac_cv_lib_c_gettimeofday" = xyes; then
17772 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
17774 elif test "x$ac_cv_func_gettimeofday" = xyes; then
17776 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
17778 else
17780 $as_echo "#undef HAVE_GETTIMEOFD" >>confdefs.h
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getuid" >&5
17787 $as_echo_n "checking m2 front end checking c library for getuid... " >&6; }
17788 if test x$gcc_no_link != xyes; then
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getuid in -lc" >&5
17790 $as_echo_n "checking for getuid in -lc... " >&6; }
17791 if ${ac_cv_lib_c_getuid+:} false; then :
17792 $as_echo_n "(cached) " >&6
17793 else
17794 ac_check_lib_save_LIBS=$LIBS
17795 LIBS="-lc $LIBS"
17796 if test x$gcc_no_link = xyes; then
17797 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17800 /* end confdefs.h. */
17802 /* Override any GCC internal prototype to avoid an error.
17803 Use char because int might match the return type of a GCC
17804 builtin and then its argument prototype would still apply. */
17805 #ifdef __cplusplus
17806 extern "C"
17807 #endif
17808 char getuid ();
17810 main ()
17812 return getuid ();
17814 return 0;
17816 _ACEOF
17817 if ac_fn_c_try_link "$LINENO"; then :
17818 ac_cv_lib_c_getuid=yes
17819 else
17820 ac_cv_lib_c_getuid=no
17822 rm -f core conftest.err conftest.$ac_objext \
17823 conftest$ac_exeext conftest.$ac_ext
17824 LIBS=$ac_check_lib_save_LIBS
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getuid" >&5
17827 $as_echo "$ac_cv_lib_c_getuid" >&6; }
17828 if test "x$ac_cv_lib_c_getuid" = xyes; then :
17830 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
17832 else
17834 $as_echo "#undef HAVE_GETUID" >>confdefs.h
17838 else
17839 if test "x$ac_cv_lib_c_getuid" = xyes; then
17841 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
17843 elif test "x$ac_cv_func_getuid" = xyes; then
17845 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
17847 else
17849 $as_echo "#undef HAVE_GETUID" >>confdefs.h
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for ioctl" >&5
17856 $as_echo_n "checking m2 front end checking c library for ioctl... " >&6; }
17857 if test x$gcc_no_link != xyes; then
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl in -lc" >&5
17859 $as_echo_n "checking for ioctl in -lc... " >&6; }
17860 if ${ac_cv_lib_c_ioctl+:} false; then :
17861 $as_echo_n "(cached) " >&6
17862 else
17863 ac_check_lib_save_LIBS=$LIBS
17864 LIBS="-lc $LIBS"
17865 if test x$gcc_no_link = xyes; then
17866 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17869 /* end confdefs.h. */
17871 /* Override any GCC internal prototype to avoid an error.
17872 Use char because int might match the return type of a GCC
17873 builtin and then its argument prototype would still apply. */
17874 #ifdef __cplusplus
17875 extern "C"
17876 #endif
17877 char ioctl ();
17879 main ()
17881 return ioctl ();
17883 return 0;
17885 _ACEOF
17886 if ac_fn_c_try_link "$LINENO"; then :
17887 ac_cv_lib_c_ioctl=yes
17888 else
17889 ac_cv_lib_c_ioctl=no
17891 rm -f core conftest.err conftest.$ac_objext \
17892 conftest$ac_exeext conftest.$ac_ext
17893 LIBS=$ac_check_lib_save_LIBS
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ioctl" >&5
17896 $as_echo "$ac_cv_lib_c_ioctl" >&6; }
17897 if test "x$ac_cv_lib_c_ioctl" = xyes; then :
17899 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
17901 else
17903 $as_echo "#undef HAVE_IOCTL" >>confdefs.h
17907 else
17908 if test "x$ac_cv_lib_c_ioctl" = xyes; then
17910 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
17912 elif test "x$ac_cv_func_ioctl" = xyes; then
17914 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
17916 else
17918 $as_echo "#undef HAVE_IOCTL" >>confdefs.h
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for kill" >&5
17925 $as_echo_n "checking m2 front end checking c library for kill... " >&6; }
17926 if test x$gcc_no_link != xyes; then
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kill in -lc" >&5
17928 $as_echo_n "checking for kill in -lc... " >&6; }
17929 if ${ac_cv_lib_c_kill+:} false; then :
17930 $as_echo_n "(cached) " >&6
17931 else
17932 ac_check_lib_save_LIBS=$LIBS
17933 LIBS="-lc $LIBS"
17934 if test x$gcc_no_link = xyes; then
17935 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17938 /* end confdefs.h. */
17940 /* Override any GCC internal prototype to avoid an error.
17941 Use char because int might match the return type of a GCC
17942 builtin and then its argument prototype would still apply. */
17943 #ifdef __cplusplus
17944 extern "C"
17945 #endif
17946 char kill ();
17948 main ()
17950 return kill ();
17952 return 0;
17954 _ACEOF
17955 if ac_fn_c_try_link "$LINENO"; then :
17956 ac_cv_lib_c_kill=yes
17957 else
17958 ac_cv_lib_c_kill=no
17960 rm -f core conftest.err conftest.$ac_objext \
17961 conftest$ac_exeext conftest.$ac_ext
17962 LIBS=$ac_check_lib_save_LIBS
17964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_kill" >&5
17965 $as_echo "$ac_cv_lib_c_kill" >&6; }
17966 if test "x$ac_cv_lib_c_kill" = xyes; then :
17968 $as_echo "#define HAVE_KILL 1" >>confdefs.h
17970 else
17972 $as_echo "#undef HAVE_KILL" >>confdefs.h
17976 else
17977 if test "x$ac_cv_lib_c_kill" = xyes; then
17979 $as_echo "#define HAVE_KILL 1" >>confdefs.h
17981 elif test "x$ac_cv_func_kill" = xyes; then
17983 $as_echo "#define HAVE_KILL 1" >>confdefs.h
17985 else
17987 $as_echo "#undef HAVE_KILL" >>confdefs.h
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for link" >&5
17994 $as_echo_n "checking m2 front end checking c library for link... " >&6; }
17995 if test x$gcc_no_link != xyes; then
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link in -lc" >&5
17997 $as_echo_n "checking for link in -lc... " >&6; }
17998 if ${ac_cv_lib_c_link+:} false; then :
17999 $as_echo_n "(cached) " >&6
18000 else
18001 ac_check_lib_save_LIBS=$LIBS
18002 LIBS="-lc $LIBS"
18003 if test x$gcc_no_link = xyes; then
18004 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18007 /* end confdefs.h. */
18009 /* Override any GCC internal prototype to avoid an error.
18010 Use char because int might match the return type of a GCC
18011 builtin and then its argument prototype would still apply. */
18012 #ifdef __cplusplus
18013 extern "C"
18014 #endif
18015 char link ();
18017 main ()
18019 return link ();
18021 return 0;
18023 _ACEOF
18024 if ac_fn_c_try_link "$LINENO"; then :
18025 ac_cv_lib_c_link=yes
18026 else
18027 ac_cv_lib_c_link=no
18029 rm -f core conftest.err conftest.$ac_objext \
18030 conftest$ac_exeext conftest.$ac_ext
18031 LIBS=$ac_check_lib_save_LIBS
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_link" >&5
18034 $as_echo "$ac_cv_lib_c_link" >&6; }
18035 if test "x$ac_cv_lib_c_link" = xyes; then :
18037 $as_echo "#define HAVE_LINK 1" >>confdefs.h
18039 else
18041 $as_echo "#undef HAVE_LINK" >>confdefs.h
18045 else
18046 if test "x$ac_cv_lib_c_link" = xyes; then
18048 $as_echo "#define HAVE_LINK 1" >>confdefs.h
18050 elif test "x$ac_cv_func_link" = xyes; then
18052 $as_echo "#define HAVE_LINK 1" >>confdefs.h
18054 else
18056 $as_echo "#undef HAVE_LINK" >>confdefs.h
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for lseek" >&5
18063 $as_echo_n "checking m2 front end checking c library for lseek... " >&6; }
18064 if test x$gcc_no_link != xyes; then
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lseek in -lc" >&5
18066 $as_echo_n "checking for lseek in -lc... " >&6; }
18067 if ${ac_cv_lib_c_lseek+:} false; then :
18068 $as_echo_n "(cached) " >&6
18069 else
18070 ac_check_lib_save_LIBS=$LIBS
18071 LIBS="-lc $LIBS"
18072 if test x$gcc_no_link = xyes; then
18073 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18076 /* end confdefs.h. */
18078 /* Override any GCC internal prototype to avoid an error.
18079 Use char because int might match the return type of a GCC
18080 builtin and then its argument prototype would still apply. */
18081 #ifdef __cplusplus
18082 extern "C"
18083 #endif
18084 char lseek ();
18086 main ()
18088 return lseek ();
18090 return 0;
18092 _ACEOF
18093 if ac_fn_c_try_link "$LINENO"; then :
18094 ac_cv_lib_c_lseek=yes
18095 else
18096 ac_cv_lib_c_lseek=no
18098 rm -f core conftest.err conftest.$ac_objext \
18099 conftest$ac_exeext conftest.$ac_ext
18100 LIBS=$ac_check_lib_save_LIBS
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_lseek" >&5
18103 $as_echo "$ac_cv_lib_c_lseek" >&6; }
18104 if test "x$ac_cv_lib_c_lseek" = xyes; then :
18106 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
18108 else
18110 $as_echo "#undef HAVE_LSEEK" >>confdefs.h
18114 else
18115 if test "x$ac_cv_lib_c_lseek" = xyes; then
18117 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
18119 elif test "x$ac_cv_func_lseek" = xyes; then
18121 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
18123 else
18125 $as_echo "#undef HAVE_LSEEK" >>confdefs.h
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for open" >&5
18132 $as_echo_n "checking m2 front end checking c library for open... " >&6; }
18133 if test x$gcc_no_link != xyes; then
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for open in -lc" >&5
18135 $as_echo_n "checking for open in -lc... " >&6; }
18136 if ${ac_cv_lib_c_open+:} false; then :
18137 $as_echo_n "(cached) " >&6
18138 else
18139 ac_check_lib_save_LIBS=$LIBS
18140 LIBS="-lc $LIBS"
18141 if test x$gcc_no_link = xyes; then
18142 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18145 /* end confdefs.h. */
18147 /* Override any GCC internal prototype to avoid an error.
18148 Use char because int might match the return type of a GCC
18149 builtin and then its argument prototype would still apply. */
18150 #ifdef __cplusplus
18151 extern "C"
18152 #endif
18153 char open ();
18155 main ()
18157 return open ();
18159 return 0;
18161 _ACEOF
18162 if ac_fn_c_try_link "$LINENO"; then :
18163 ac_cv_lib_c_open=yes
18164 else
18165 ac_cv_lib_c_open=no
18167 rm -f core conftest.err conftest.$ac_objext \
18168 conftest$ac_exeext conftest.$ac_ext
18169 LIBS=$ac_check_lib_save_LIBS
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_open" >&5
18172 $as_echo "$ac_cv_lib_c_open" >&6; }
18173 if test "x$ac_cv_lib_c_open" = xyes; then :
18175 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
18177 else
18179 $as_echo "#undef HAVE_OPEN" >>confdefs.h
18183 else
18184 if test "x$ac_cv_lib_c_open" = xyes; then
18186 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
18188 elif test "x$ac_cv_func_open" = xyes; then
18190 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
18192 else
18194 $as_echo "#undef HAVE_OPEN" >>confdefs.h
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for pause" >&5
18201 $as_echo_n "checking m2 front end checking c library for pause... " >&6; }
18202 if test x$gcc_no_link != xyes; then
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pause in -lc" >&5
18204 $as_echo_n "checking for pause in -lc... " >&6; }
18205 if ${ac_cv_lib_c_pause+:} false; then :
18206 $as_echo_n "(cached) " >&6
18207 else
18208 ac_check_lib_save_LIBS=$LIBS
18209 LIBS="-lc $LIBS"
18210 if test x$gcc_no_link = xyes; then
18211 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18214 /* end confdefs.h. */
18216 /* Override any GCC internal prototype to avoid an error.
18217 Use char because int might match the return type of a GCC
18218 builtin and then its argument prototype would still apply. */
18219 #ifdef __cplusplus
18220 extern "C"
18221 #endif
18222 char pause ();
18224 main ()
18226 return pause ();
18228 return 0;
18230 _ACEOF
18231 if ac_fn_c_try_link "$LINENO"; then :
18232 ac_cv_lib_c_pause=yes
18233 else
18234 ac_cv_lib_c_pause=no
18236 rm -f core conftest.err conftest.$ac_objext \
18237 conftest$ac_exeext conftest.$ac_ext
18238 LIBS=$ac_check_lib_save_LIBS
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pause" >&5
18241 $as_echo "$ac_cv_lib_c_pause" >&6; }
18242 if test "x$ac_cv_lib_c_pause" = xyes; then :
18244 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
18246 else
18248 $as_echo "#undef HAVE_PAUSE" >>confdefs.h
18252 else
18253 if test "x$ac_cv_lib_c_pause" = xyes; then
18255 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
18257 elif test "x$ac_cv_func_pause" = xyes; then
18259 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
18261 else
18263 $as_echo "#undef HAVE_PAUSE" >>confdefs.h
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for pipe" >&5
18270 $as_echo_n "checking m2 front end checking c library for pipe... " >&6; }
18271 if test x$gcc_no_link != xyes; then
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pipe in -lc" >&5
18273 $as_echo_n "checking for pipe in -lc... " >&6; }
18274 if ${ac_cv_lib_c_pipe+:} false; then :
18275 $as_echo_n "(cached) " >&6
18276 else
18277 ac_check_lib_save_LIBS=$LIBS
18278 LIBS="-lc $LIBS"
18279 if test x$gcc_no_link = xyes; then
18280 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18283 /* end confdefs.h. */
18285 /* Override any GCC internal prototype to avoid an error.
18286 Use char because int might match the return type of a GCC
18287 builtin and then its argument prototype would still apply. */
18288 #ifdef __cplusplus
18289 extern "C"
18290 #endif
18291 char pipe ();
18293 main ()
18295 return pipe ();
18297 return 0;
18299 _ACEOF
18300 if ac_fn_c_try_link "$LINENO"; then :
18301 ac_cv_lib_c_pipe=yes
18302 else
18303 ac_cv_lib_c_pipe=no
18305 rm -f core conftest.err conftest.$ac_objext \
18306 conftest$ac_exeext conftest.$ac_ext
18307 LIBS=$ac_check_lib_save_LIBS
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pipe" >&5
18310 $as_echo "$ac_cv_lib_c_pipe" >&6; }
18311 if test "x$ac_cv_lib_c_pipe" = xyes; then :
18313 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
18315 else
18317 $as_echo "#undef HAVE_PIPE" >>confdefs.h
18321 else
18322 if test "x$ac_cv_lib_c_pipe" = xyes; then
18324 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
18326 elif test "x$ac_cv_func_pipe" = xyes; then
18328 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
18330 else
18332 $as_echo "#undef HAVE_PIPE" >>confdefs.h
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for rand" >&5
18339 $as_echo_n "checking m2 front end checking c library for rand... " >&6; }
18340 if test x$gcc_no_link != xyes; then
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rand in -lc" >&5
18342 $as_echo_n "checking for rand in -lc... " >&6; }
18343 if ${ac_cv_lib_c_rand+:} false; then :
18344 $as_echo_n "(cached) " >&6
18345 else
18346 ac_check_lib_save_LIBS=$LIBS
18347 LIBS="-lc $LIBS"
18348 if test x$gcc_no_link = xyes; then
18349 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18352 /* end confdefs.h. */
18354 /* Override any GCC internal prototype to avoid an error.
18355 Use char because int might match the return type of a GCC
18356 builtin and then its argument prototype would still apply. */
18357 #ifdef __cplusplus
18358 extern "C"
18359 #endif
18360 char rand ();
18362 main ()
18364 return rand ();
18366 return 0;
18368 _ACEOF
18369 if ac_fn_c_try_link "$LINENO"; then :
18370 ac_cv_lib_c_rand=yes
18371 else
18372 ac_cv_lib_c_rand=no
18374 rm -f core conftest.err conftest.$ac_objext \
18375 conftest$ac_exeext conftest.$ac_ext
18376 LIBS=$ac_check_lib_save_LIBS
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_rand" >&5
18379 $as_echo "$ac_cv_lib_c_rand" >&6; }
18380 if test "x$ac_cv_lib_c_rand" = xyes; then :
18382 $as_echo "#define HAVE_RAND 1" >>confdefs.h
18384 else
18386 $as_echo "#undef HAVE_RAND" >>confdefs.h
18390 else
18391 if test "x$ac_cv_lib_c_rand" = xyes; then
18393 $as_echo "#define HAVE_RAND 1" >>confdefs.h
18395 elif test "x$ac_cv_func_rand" = xyes; then
18397 $as_echo "#define HAVE_RAND 1" >>confdefs.h
18399 else
18401 $as_echo "#undef HAVE_RAND" >>confdefs.h
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for read" >&5
18408 $as_echo_n "checking m2 front end checking c library for read... " >&6; }
18409 if test x$gcc_no_link != xyes; then
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for read in -lc" >&5
18411 $as_echo_n "checking for read in -lc... " >&6; }
18412 if ${ac_cv_lib_c_read+:} false; then :
18413 $as_echo_n "(cached) " >&6
18414 else
18415 ac_check_lib_save_LIBS=$LIBS
18416 LIBS="-lc $LIBS"
18417 if test x$gcc_no_link = xyes; then
18418 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18421 /* end confdefs.h. */
18423 /* Override any GCC internal prototype to avoid an error.
18424 Use char because int might match the return type of a GCC
18425 builtin and then its argument prototype would still apply. */
18426 #ifdef __cplusplus
18427 extern "C"
18428 #endif
18429 char read ();
18431 main ()
18433 return read ();
18435 return 0;
18437 _ACEOF
18438 if ac_fn_c_try_link "$LINENO"; then :
18439 ac_cv_lib_c_read=yes
18440 else
18441 ac_cv_lib_c_read=no
18443 rm -f core conftest.err conftest.$ac_objext \
18444 conftest$ac_exeext conftest.$ac_ext
18445 LIBS=$ac_check_lib_save_LIBS
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_read" >&5
18448 $as_echo "$ac_cv_lib_c_read" >&6; }
18449 if test "x$ac_cv_lib_c_read" = xyes; then :
18451 $as_echo "#define HAVE_READ 1" >>confdefs.h
18453 else
18455 $as_echo "#undef HAVE_READ" >>confdefs.h
18459 else
18460 if test "x$ac_cv_lib_c_read" = xyes; then
18462 $as_echo "#define HAVE_READ 1" >>confdefs.h
18464 elif test "x$ac_cv_func_read" = xyes; then
18466 $as_echo "#define HAVE_READ 1" >>confdefs.h
18468 else
18470 $as_echo "#undef HAVE_READ" >>confdefs.h
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for select" >&5
18477 $as_echo_n "checking m2 front end checking c library for select... " >&6; }
18478 if test x$gcc_no_link != xyes; then
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select in -lc" >&5
18480 $as_echo_n "checking for select in -lc... " >&6; }
18481 if ${ac_cv_lib_c_select+:} false; then :
18482 $as_echo_n "(cached) " >&6
18483 else
18484 ac_check_lib_save_LIBS=$LIBS
18485 LIBS="-lc $LIBS"
18486 if test x$gcc_no_link = xyes; then
18487 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18490 /* end confdefs.h. */
18492 /* Override any GCC internal prototype to avoid an error.
18493 Use char because int might match the return type of a GCC
18494 builtin and then its argument prototype would still apply. */
18495 #ifdef __cplusplus
18496 extern "C"
18497 #endif
18498 char select ();
18500 main ()
18502 return select ();
18504 return 0;
18506 _ACEOF
18507 if ac_fn_c_try_link "$LINENO"; then :
18508 ac_cv_lib_c_select=yes
18509 else
18510 ac_cv_lib_c_select=no
18512 rm -f core conftest.err conftest.$ac_objext \
18513 conftest$ac_exeext conftest.$ac_ext
18514 LIBS=$ac_check_lib_save_LIBS
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_select" >&5
18517 $as_echo "$ac_cv_lib_c_select" >&6; }
18518 if test "x$ac_cv_lib_c_select" = xyes; then :
18520 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
18522 else
18524 $as_echo "#undef HAVE_SELECT" >>confdefs.h
18528 else
18529 if test "x$ac_cv_lib_c_select" = xyes; then
18531 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
18533 elif test "x$ac_cv_func_select" = xyes; then
18535 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
18537 else
18539 $as_echo "#undef HAVE_SELECT" >>confdefs.h
18545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setitimer" >&5
18546 $as_echo_n "checking m2 front end checking c library for setitimer... " >&6; }
18547 if test x$gcc_no_link != xyes; then
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setitimer in -lc" >&5
18549 $as_echo_n "checking for setitimer in -lc... " >&6; }
18550 if ${ac_cv_lib_c_setitimer+:} false; then :
18551 $as_echo_n "(cached) " >&6
18552 else
18553 ac_check_lib_save_LIBS=$LIBS
18554 LIBS="-lc $LIBS"
18555 if test x$gcc_no_link = xyes; then
18556 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18559 /* end confdefs.h. */
18561 /* Override any GCC internal prototype to avoid an error.
18562 Use char because int might match the return type of a GCC
18563 builtin and then its argument prototype would still apply. */
18564 #ifdef __cplusplus
18565 extern "C"
18566 #endif
18567 char setitimer ();
18569 main ()
18571 return setitimer ();
18573 return 0;
18575 _ACEOF
18576 if ac_fn_c_try_link "$LINENO"; then :
18577 ac_cv_lib_c_setitimer=yes
18578 else
18579 ac_cv_lib_c_setitimer=no
18581 rm -f core conftest.err conftest.$ac_objext \
18582 conftest$ac_exeext conftest.$ac_ext
18583 LIBS=$ac_check_lib_save_LIBS
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setitimer" >&5
18586 $as_echo "$ac_cv_lib_c_setitimer" >&6; }
18587 if test "x$ac_cv_lib_c_setitimer" = xyes; then :
18589 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
18591 else
18593 $as_echo "#undef HAVE_SETITIMER" >>confdefs.h
18597 else
18598 if test "x$ac_cv_lib_c_setitimer" = xyes; then
18600 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
18602 elif test "x$ac_cv_func_setitimer" = xyes; then
18604 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
18606 else
18608 $as_echo "#undef HAVE_SETITIMER" >>confdefs.h
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setgid" >&5
18615 $as_echo_n "checking m2 front end checking c library for setgid... " >&6; }
18616 if test x$gcc_no_link != xyes; then
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgid in -lc" >&5
18618 $as_echo_n "checking for setgid in -lc... " >&6; }
18619 if ${ac_cv_lib_c_setgid+:} false; then :
18620 $as_echo_n "(cached) " >&6
18621 else
18622 ac_check_lib_save_LIBS=$LIBS
18623 LIBS="-lc $LIBS"
18624 if test x$gcc_no_link = xyes; then
18625 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18628 /* end confdefs.h. */
18630 /* Override any GCC internal prototype to avoid an error.
18631 Use char because int might match the return type of a GCC
18632 builtin and then its argument prototype would still apply. */
18633 #ifdef __cplusplus
18634 extern "C"
18635 #endif
18636 char setgid ();
18638 main ()
18640 return setgid ();
18642 return 0;
18644 _ACEOF
18645 if ac_fn_c_try_link "$LINENO"; then :
18646 ac_cv_lib_c_setgid=yes
18647 else
18648 ac_cv_lib_c_setgid=no
18650 rm -f core conftest.err conftest.$ac_objext \
18651 conftest$ac_exeext conftest.$ac_ext
18652 LIBS=$ac_check_lib_save_LIBS
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setgid" >&5
18655 $as_echo "$ac_cv_lib_c_setgid" >&6; }
18656 if test "x$ac_cv_lib_c_setgid" = xyes; then :
18658 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
18660 else
18662 $as_echo "#undef HAVE_SETGID" >>confdefs.h
18666 else
18667 if test "x$ac_cv_lib_c_setgid" = xyes; then
18669 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
18671 elif test "x$ac_cv_func_setgid" = xyes; then
18673 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
18675 else
18677 $as_echo "#undef HAVE_SETGID" >>confdefs.h
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setuid" >&5
18684 $as_echo_n "checking m2 front end checking c library for setuid... " >&6; }
18685 if test x$gcc_no_link != xyes; then
18686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setuid in -lc" >&5
18687 $as_echo_n "checking for setuid in -lc... " >&6; }
18688 if ${ac_cv_lib_c_setuid+:} false; then :
18689 $as_echo_n "(cached) " >&6
18690 else
18691 ac_check_lib_save_LIBS=$LIBS
18692 LIBS="-lc $LIBS"
18693 if test x$gcc_no_link = xyes; then
18694 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18697 /* end confdefs.h. */
18699 /* Override any GCC internal prototype to avoid an error.
18700 Use char because int might match the return type of a GCC
18701 builtin and then its argument prototype would still apply. */
18702 #ifdef __cplusplus
18703 extern "C"
18704 #endif
18705 char setuid ();
18707 main ()
18709 return setuid ();
18711 return 0;
18713 _ACEOF
18714 if ac_fn_c_try_link "$LINENO"; then :
18715 ac_cv_lib_c_setuid=yes
18716 else
18717 ac_cv_lib_c_setuid=no
18719 rm -f core conftest.err conftest.$ac_objext \
18720 conftest$ac_exeext conftest.$ac_ext
18721 LIBS=$ac_check_lib_save_LIBS
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setuid" >&5
18724 $as_echo "$ac_cv_lib_c_setuid" >&6; }
18725 if test "x$ac_cv_lib_c_setuid" = xyes; then :
18727 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
18729 else
18731 $as_echo "#undef HAVE_SETUID" >>confdefs.h
18735 else
18736 if test "x$ac_cv_lib_c_setuid" = xyes; then
18738 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
18740 elif test "x$ac_cv_func_setuid" = xyes; then
18742 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
18744 else
18746 $as_echo "#undef HAVE_SETUID" >>confdefs.h
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for stat" >&5
18753 $as_echo_n "checking m2 front end checking c library for stat... " >&6; }
18754 if test x$gcc_no_link != xyes; then
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stat in -lc" >&5
18756 $as_echo_n "checking for stat in -lc... " >&6; }
18757 if ${ac_cv_lib_c_stat+:} false; then :
18758 $as_echo_n "(cached) " >&6
18759 else
18760 ac_check_lib_save_LIBS=$LIBS
18761 LIBS="-lc $LIBS"
18762 if test x$gcc_no_link = xyes; then
18763 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18766 /* end confdefs.h. */
18768 /* Override any GCC internal prototype to avoid an error.
18769 Use char because int might match the return type of a GCC
18770 builtin and then its argument prototype would still apply. */
18771 #ifdef __cplusplus
18772 extern "C"
18773 #endif
18774 char stat ();
18776 main ()
18778 return stat ();
18780 return 0;
18782 _ACEOF
18783 if ac_fn_c_try_link "$LINENO"; then :
18784 ac_cv_lib_c_stat=yes
18785 else
18786 ac_cv_lib_c_stat=no
18788 rm -f core conftest.err conftest.$ac_objext \
18789 conftest$ac_exeext conftest.$ac_ext
18790 LIBS=$ac_check_lib_save_LIBS
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_stat" >&5
18793 $as_echo "$ac_cv_lib_c_stat" >&6; }
18794 if test "x$ac_cv_lib_c_stat" = xyes; then :
18796 $as_echo "#define HAVE_STAT 1" >>confdefs.h
18798 else
18800 $as_echo "#undef HAVE_STAT" >>confdefs.h
18804 else
18805 if test "x$ac_cv_lib_c_stat" = xyes; then
18807 $as_echo "#define HAVE_STAT 1" >>confdefs.h
18809 elif test "x$ac_cv_func_stat" = xyes; then
18811 $as_echo "#define HAVE_STAT 1" >>confdefs.h
18813 else
18815 $as_echo "#undef HAVE_STAT" >>confdefs.h
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strsignal" >&5
18822 $as_echo_n "checking m2 front end checking c library for strsignal... " >&6; }
18823 if test x$gcc_no_link != xyes; then
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strsignal in -lc" >&5
18825 $as_echo_n "checking for strsignal in -lc... " >&6; }
18826 if ${ac_cv_lib_c_strsignal+:} false; then :
18827 $as_echo_n "(cached) " >&6
18828 else
18829 ac_check_lib_save_LIBS=$LIBS
18830 LIBS="-lc $LIBS"
18831 if test x$gcc_no_link = xyes; then
18832 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18835 /* end confdefs.h. */
18837 /* Override any GCC internal prototype to avoid an error.
18838 Use char because int might match the return type of a GCC
18839 builtin and then its argument prototype would still apply. */
18840 #ifdef __cplusplus
18841 extern "C"
18842 #endif
18843 char strsignal ();
18845 main ()
18847 return strsignal ();
18849 return 0;
18851 _ACEOF
18852 if ac_fn_c_try_link "$LINENO"; then :
18853 ac_cv_lib_c_strsignal=yes
18854 else
18855 ac_cv_lib_c_strsignal=no
18857 rm -f core conftest.err conftest.$ac_objext \
18858 conftest$ac_exeext conftest.$ac_ext
18859 LIBS=$ac_check_lib_save_LIBS
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strsignal" >&5
18862 $as_echo "$ac_cv_lib_c_strsignal" >&6; }
18863 if test "x$ac_cv_lib_c_strsignal" = xyes; then :
18865 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
18867 else
18869 $as_echo "#undef HAVE_STRSIGNAL" >>confdefs.h
18873 else
18874 if test "x$ac_cv_lib_c_strsignal" = xyes; then
18876 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
18878 elif test "x$ac_cv_func_strsignal" = xyes; then
18880 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
18882 else
18884 $as_echo "#undef HAVE_STRSIGNAL" >>confdefs.h
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strtod" >&5
18891 $as_echo_n "checking m2 front end checking c library for strtod... " >&6; }
18892 if test x$gcc_no_link != xyes; then
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lc" >&5
18894 $as_echo_n "checking for strtod in -lc... " >&6; }
18895 if ${ac_cv_lib_c_strtod+:} false; then :
18896 $as_echo_n "(cached) " >&6
18897 else
18898 ac_check_lib_save_LIBS=$LIBS
18899 LIBS="-lc $LIBS"
18900 if test x$gcc_no_link = xyes; then
18901 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18904 /* end confdefs.h. */
18906 /* Override any GCC internal prototype to avoid an error.
18907 Use char because int might match the return type of a GCC
18908 builtin and then its argument prototype would still apply. */
18909 #ifdef __cplusplus
18910 extern "C"
18911 #endif
18912 char strtod ();
18914 main ()
18916 return strtod ();
18918 return 0;
18920 _ACEOF
18921 if ac_fn_c_try_link "$LINENO"; then :
18922 ac_cv_lib_c_strtod=yes
18923 else
18924 ac_cv_lib_c_strtod=no
18926 rm -f core conftest.err conftest.$ac_objext \
18927 conftest$ac_exeext conftest.$ac_ext
18928 LIBS=$ac_check_lib_save_LIBS
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtod" >&5
18931 $as_echo "$ac_cv_lib_c_strtod" >&6; }
18932 if test "x$ac_cv_lib_c_strtod" = xyes; then :
18934 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
18936 else
18938 $as_echo "#undef HAVE_STRTOD" >>confdefs.h
18942 else
18943 if test "x$ac_cv_lib_c_strtod" = xyes; then
18945 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
18947 elif test "x$ac_cv_func_strtod" = xyes; then
18949 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
18951 else
18953 $as_echo "#undef HAVE_STRTOD" >>confdefs.h
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strtold" >&5
18960 $as_echo_n "checking m2 front end checking c library for strtold... " >&6; }
18961 if test x$gcc_no_link != xyes; then
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold in -lc" >&5
18963 $as_echo_n "checking for strtold in -lc... " >&6; }
18964 if ${ac_cv_lib_c_strtold+:} false; then :
18965 $as_echo_n "(cached) " >&6
18966 else
18967 ac_check_lib_save_LIBS=$LIBS
18968 LIBS="-lc $LIBS"
18969 if test x$gcc_no_link = xyes; then
18970 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18973 /* end confdefs.h. */
18975 /* Override any GCC internal prototype to avoid an error.
18976 Use char because int might match the return type of a GCC
18977 builtin and then its argument prototype would still apply. */
18978 #ifdef __cplusplus
18979 extern "C"
18980 #endif
18981 char strtold ();
18983 main ()
18985 return strtold ();
18987 return 0;
18989 _ACEOF
18990 if ac_fn_c_try_link "$LINENO"; then :
18991 ac_cv_lib_c_strtold=yes
18992 else
18993 ac_cv_lib_c_strtold=no
18995 rm -f core conftest.err conftest.$ac_objext \
18996 conftest$ac_exeext conftest.$ac_ext
18997 LIBS=$ac_check_lib_save_LIBS
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtold" >&5
19000 $as_echo "$ac_cv_lib_c_strtold" >&6; }
19001 if test "x$ac_cv_lib_c_strtold" = xyes; then :
19003 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
19005 else
19007 $as_echo "#undef HAVE_STRTOLD" >>confdefs.h
19011 else
19012 if test "x$ac_cv_lib_c_strtold" = xyes; then
19014 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
19016 elif test "x$ac_cv_func_strtold" = xyes; then
19018 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
19020 else
19022 $as_echo "#undef HAVE_STRTOLD" >>confdefs.h
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for times" >&5
19029 $as_echo_n "checking m2 front end checking c library for times... " >&6; }
19030 if test x$gcc_no_link != xyes; then
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for times in -lc" >&5
19032 $as_echo_n "checking for times in -lc... " >&6; }
19033 if ${ac_cv_lib_c_times+:} false; then :
19034 $as_echo_n "(cached) " >&6
19035 else
19036 ac_check_lib_save_LIBS=$LIBS
19037 LIBS="-lc $LIBS"
19038 if test x$gcc_no_link = xyes; then
19039 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19042 /* end confdefs.h. */
19044 /* Override any GCC internal prototype to avoid an error.
19045 Use char because int might match the return type of a GCC
19046 builtin and then its argument prototype would still apply. */
19047 #ifdef __cplusplus
19048 extern "C"
19049 #endif
19050 char times ();
19052 main ()
19054 return times ();
19056 return 0;
19058 _ACEOF
19059 if ac_fn_c_try_link "$LINENO"; then :
19060 ac_cv_lib_c_times=yes
19061 else
19062 ac_cv_lib_c_times=no
19064 rm -f core conftest.err conftest.$ac_objext \
19065 conftest$ac_exeext conftest.$ac_ext
19066 LIBS=$ac_check_lib_save_LIBS
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_times" >&5
19069 $as_echo "$ac_cv_lib_c_times" >&6; }
19070 if test "x$ac_cv_lib_c_times" = xyes; then :
19072 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
19074 else
19076 $as_echo "#undef HAVE_TIMES" >>confdefs.h
19080 else
19081 if test "x$ac_cv_lib_c_times" = xyes; then
19083 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
19085 elif test "x$ac_cv_func_times" = xyes; then
19087 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
19089 else
19091 $as_echo "#undef HAVE_TIMES" >>confdefs.h
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for unlink" >&5
19098 $as_echo_n "checking m2 front end checking c library for unlink... " >&6; }
19099 if test x$gcc_no_link != xyes; then
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unlink in -lc" >&5
19101 $as_echo_n "checking for unlink in -lc... " >&6; }
19102 if ${ac_cv_lib_c_unlink+:} false; then :
19103 $as_echo_n "(cached) " >&6
19104 else
19105 ac_check_lib_save_LIBS=$LIBS
19106 LIBS="-lc $LIBS"
19107 if test x$gcc_no_link = xyes; then
19108 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19111 /* end confdefs.h. */
19113 /* Override any GCC internal prototype to avoid an error.
19114 Use char because int might match the return type of a GCC
19115 builtin and then its argument prototype would still apply. */
19116 #ifdef __cplusplus
19117 extern "C"
19118 #endif
19119 char unlink ();
19121 main ()
19123 return unlink ();
19125 return 0;
19127 _ACEOF
19128 if ac_fn_c_try_link "$LINENO"; then :
19129 ac_cv_lib_c_unlink=yes
19130 else
19131 ac_cv_lib_c_unlink=no
19133 rm -f core conftest.err conftest.$ac_objext \
19134 conftest$ac_exeext conftest.$ac_ext
19135 LIBS=$ac_check_lib_save_LIBS
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_unlink" >&5
19138 $as_echo "$ac_cv_lib_c_unlink" >&6; }
19139 if test "x$ac_cv_lib_c_unlink" = xyes; then :
19141 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
19143 else
19145 $as_echo "#undef HAVE_UNLINK" >>confdefs.h
19149 else
19150 if test "x$ac_cv_lib_c_unlink" = xyes; then
19152 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
19154 elif test "x$ac_cv_func_unlink" = xyes; then
19156 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
19158 else
19160 $as_echo "#undef HAVE_UNLINK" >>confdefs.h
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for wait" >&5
19167 $as_echo_n "checking m2 front end checking c library for wait... " >&6; }
19168 if test x$gcc_no_link != xyes; then
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait in -lc" >&5
19170 $as_echo_n "checking for wait in -lc... " >&6; }
19171 if ${ac_cv_lib_c_wait+:} false; then :
19172 $as_echo_n "(cached) " >&6
19173 else
19174 ac_check_lib_save_LIBS=$LIBS
19175 LIBS="-lc $LIBS"
19176 if test x$gcc_no_link = xyes; then
19177 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19180 /* end confdefs.h. */
19182 /* Override any GCC internal prototype to avoid an error.
19183 Use char because int might match the return type of a GCC
19184 builtin and then its argument prototype would still apply. */
19185 #ifdef __cplusplus
19186 extern "C"
19187 #endif
19188 char wait ();
19190 main ()
19192 return wait ();
19194 return 0;
19196 _ACEOF
19197 if ac_fn_c_try_link "$LINENO"; then :
19198 ac_cv_lib_c_wait=yes
19199 else
19200 ac_cv_lib_c_wait=no
19202 rm -f core conftest.err conftest.$ac_objext \
19203 conftest$ac_exeext conftest.$ac_ext
19204 LIBS=$ac_check_lib_save_LIBS
19206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_wait" >&5
19207 $as_echo "$ac_cv_lib_c_wait" >&6; }
19208 if test "x$ac_cv_lib_c_wait" = xyes; then :
19210 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
19212 else
19214 $as_echo "#undef HAVE_WAIT" >>confdefs.h
19218 else
19219 if test "x$ac_cv_lib_c_wait" = xyes; then
19221 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
19223 elif test "x$ac_cv_func_wait" = xyes; then
19225 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
19227 else
19229 $as_echo "#undef HAVE_WAIT" >>confdefs.h
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for write" >&5
19236 $as_echo_n "checking m2 front end checking c library for write... " >&6; }
19237 if test x$gcc_no_link != xyes; then
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for write in -lc" >&5
19239 $as_echo_n "checking for write in -lc... " >&6; }
19240 if ${ac_cv_lib_c_write+:} false; then :
19241 $as_echo_n "(cached) " >&6
19242 else
19243 ac_check_lib_save_LIBS=$LIBS
19244 LIBS="-lc $LIBS"
19245 if test x$gcc_no_link = xyes; then
19246 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19249 /* end confdefs.h. */
19251 /* Override any GCC internal prototype to avoid an error.
19252 Use char because int might match the return type of a GCC
19253 builtin and then its argument prototype would still apply. */
19254 #ifdef __cplusplus
19255 extern "C"
19256 #endif
19257 char write ();
19259 main ()
19261 return write ();
19263 return 0;
19265 _ACEOF
19266 if ac_fn_c_try_link "$LINENO"; then :
19267 ac_cv_lib_c_write=yes
19268 else
19269 ac_cv_lib_c_write=no
19271 rm -f core conftest.err conftest.$ac_objext \
19272 conftest$ac_exeext conftest.$ac_ext
19273 LIBS=$ac_check_lib_save_LIBS
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_write" >&5
19276 $as_echo "$ac_cv_lib_c_write" >&6; }
19277 if test "x$ac_cv_lib_c_write" = xyes; then :
19279 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
19281 else
19283 $as_echo "#undef HAVE_WRITE" >>confdefs.h
19287 else
19288 if test "x$ac_cv_lib_c_write" = xyes; then
19290 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
19292 elif test "x$ac_cv_func_write" = xyes; then
19294 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
19296 else
19298 $as_echo "#undef HAVE_WRITE" >>confdefs.h
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbit" >&5
19306 $as_echo_n "checking m2 front end checking m library for signbit... " >&6; }
19307 if test x$gcc_no_link != xyes; then
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit in -lm" >&5
19309 $as_echo_n "checking for signbit in -lm... " >&6; }
19310 if ${ac_cv_lib_m_signbit+:} false; then :
19311 $as_echo_n "(cached) " >&6
19312 else
19313 ac_check_lib_save_LIBS=$LIBS
19314 LIBS="-lm $LIBS"
19315 if test x$gcc_no_link = xyes; then
19316 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19319 /* end confdefs.h. */
19321 /* Override any GCC internal prototype to avoid an error.
19322 Use char because int might match the return type of a GCC
19323 builtin and then its argument prototype would still apply. */
19324 #ifdef __cplusplus
19325 extern "C"
19326 #endif
19327 char signbit ();
19329 main ()
19331 return signbit ();
19333 return 0;
19335 _ACEOF
19336 if ac_fn_c_try_link "$LINENO"; then :
19337 ac_cv_lib_m_signbit=yes
19338 else
19339 ac_cv_lib_m_signbit=no
19341 rm -f core conftest.err conftest.$ac_objext \
19342 conftest$ac_exeext conftest.$ac_ext
19343 LIBS=$ac_check_lib_save_LIBS
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbit" >&5
19346 $as_echo "$ac_cv_lib_m_signbit" >&6; }
19347 if test "x$ac_cv_lib_m_signbit" = xyes; then :
19349 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
19351 else
19353 $as_echo "#undef HAVE_SIGNBIT" >>confdefs.h
19357 else
19358 if test "x$ac_cv_lib_m_signbit" = xyes; then
19360 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
19362 elif test "x$ac_cv_func_signbit" = xyes; then
19364 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
19366 else
19368 $as_echo "#undef HAVE_SIGNBIT" >>confdefs.h
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbitf" >&5
19375 $as_echo_n "checking m2 front end checking m library for signbitf... " >&6; }
19376 if test x$gcc_no_link != xyes; then
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitf in -lm" >&5
19378 $as_echo_n "checking for signbitf in -lm... " >&6; }
19379 if ${ac_cv_lib_m_signbitf+:} false; then :
19380 $as_echo_n "(cached) " >&6
19381 else
19382 ac_check_lib_save_LIBS=$LIBS
19383 LIBS="-lm $LIBS"
19384 if test x$gcc_no_link = xyes; then
19385 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19388 /* end confdefs.h. */
19390 /* Override any GCC internal prototype to avoid an error.
19391 Use char because int might match the return type of a GCC
19392 builtin and then its argument prototype would still apply. */
19393 #ifdef __cplusplus
19394 extern "C"
19395 #endif
19396 char signbitf ();
19398 main ()
19400 return signbitf ();
19402 return 0;
19404 _ACEOF
19405 if ac_fn_c_try_link "$LINENO"; then :
19406 ac_cv_lib_m_signbitf=yes
19407 else
19408 ac_cv_lib_m_signbitf=no
19410 rm -f core conftest.err conftest.$ac_objext \
19411 conftest$ac_exeext conftest.$ac_ext
19412 LIBS=$ac_check_lib_save_LIBS
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitf" >&5
19415 $as_echo "$ac_cv_lib_m_signbitf" >&6; }
19416 if test "x$ac_cv_lib_m_signbitf" = xyes; then :
19418 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
19420 else
19422 $as_echo "#undef HAVE_SIGNBITF" >>confdefs.h
19426 else
19427 if test "x$ac_cv_lib_m_signbitf" = xyes; then
19429 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
19431 elif test "x$ac_cv_func_signbitf" = xyes; then
19433 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
19435 else
19437 $as_echo "#undef HAVE_SIGNBITF" >>confdefs.h
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbitl" >&5
19444 $as_echo_n "checking m2 front end checking m library for signbitl... " >&6; }
19445 if test x$gcc_no_link != xyes; then
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitl in -lm" >&5
19447 $as_echo_n "checking for signbitl in -lm... " >&6; }
19448 if ${ac_cv_lib_m_signbitl+:} false; then :
19449 $as_echo_n "(cached) " >&6
19450 else
19451 ac_check_lib_save_LIBS=$LIBS
19452 LIBS="-lm $LIBS"
19453 if test x$gcc_no_link = xyes; then
19454 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457 /* end confdefs.h. */
19459 /* Override any GCC internal prototype to avoid an error.
19460 Use char because int might match the return type of a GCC
19461 builtin and then its argument prototype would still apply. */
19462 #ifdef __cplusplus
19463 extern "C"
19464 #endif
19465 char signbitl ();
19467 main ()
19469 return signbitl ();
19471 return 0;
19473 _ACEOF
19474 if ac_fn_c_try_link "$LINENO"; then :
19475 ac_cv_lib_m_signbitl=yes
19476 else
19477 ac_cv_lib_m_signbitl=no
19479 rm -f core conftest.err conftest.$ac_objext \
19480 conftest$ac_exeext conftest.$ac_ext
19481 LIBS=$ac_check_lib_save_LIBS
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitl" >&5
19484 $as_echo "$ac_cv_lib_m_signbitl" >&6; }
19485 if test "x$ac_cv_lib_m_signbitl" = xyes; then :
19487 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
19489 else
19491 $as_echo "#undef HAVE_SIGNBITL" >>confdefs.h
19495 else
19496 if test "x$ac_cv_lib_m_signbitl" = xyes; then
19498 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
19500 elif test "x$ac_cv_func_signbitl" = xyes; then
19502 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
19504 else
19506 $as_echo "#undef HAVE_SIGNBITL" >>confdefs.h
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: libgm2 has finished checking target libc and libm contents." >&5
19513 $as_echo "$as_me: libgm2 has finished checking target libc and libm contents." >&6;}
19515 # We test the host here and later on check the target.
19517 # All known M2_HOST_OS values. This is the union of all host operating systems
19518 # supported by gm2.
19520 M2_SUPPORTED_HOST_OS="aix freebsd hurd linux netbsd openbsd solaris windows darwin"
19522 M2_HOST_OS=unknown
19524 case ${host} in
19525 *-*-darwin*) M2_HOST_OS=darwin ;;
19526 *-*-freebsd*) M2_HOST_OS=freebsd ;;
19527 *-*-linux*) M2_HOST_OS=linux ;;
19528 *-*-netbsd*) M2_HOST_OS=netbsd ;;
19529 *-*-openbsd*) M2_HOST_OS=openbsd ;;
19530 *-*-solaris2*) M2_HOST_OS=solaris ;;
19531 *-*-aix*) M2_HOST_OS=aix ;;
19532 *-*-gnu*) M2_HOST_OS=hurd ;;
19533 esac
19535 M2_TARGET_OS=unknown
19537 case ${target} in
19538 *-*-darwin*) M2_TARGET_OS=darwin ;;
19539 *-*-freebsd*) M2_TARGET_OS=freebsd ;;
19540 *-*-linux*) M2_TARGET_OS=linux ;;
19541 *-*-netbsd*) M2_TARGET_OS=netbsd ;;
19542 *-*-openbsd*) M2_TARGET_OS=openbsd ;;
19543 *-*-solaris2*) M2_TARGET_OS=solaris ;;
19544 *-*-aix*) M2_TARGET_OS=aix ;;
19545 *-*-gnu*) M2_TARGET_OS=hurd ;;
19546 esac
19548 # M2_HOST_OS=unknown
19549 if test x${M2_HOST_OS} = xunknown; then
19550 { $as_echo "$as_me:${as_lineno-$LINENO}: unsupported host, will build a minimal m2 library" >&5
19551 $as_echo "$as_me: unsupported host, will build a minimal m2 library" >&6;}
19552 BUILD_PIMLIB=false
19553 BUILD_ISOLIB=false
19554 BUILD_CORLIB=false
19555 BUILD_LOGLIB=false
19556 else
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 library will be built on ${M2_HOST_OS}" >&5
19558 $as_echo "$as_me: m2 library will be built on ${M2_HOST_OS}" >&6;}
19559 BUILD_PIMLIB=true
19560 BUILD_ISOLIB=true
19561 BUILD_CORLIB=true
19562 BUILD_LOGLIB=true
19565 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
19568 # Propagate GM2_FOR_TARGET into Makefiles
19569 GM2_FOR_TARGET=${GM2_FOR_TARGET:-gcc}
19572 # Now we check the target as long as it is a supported host.
19573 # For some embedded targets we choose minimal runtime system which is
19574 # just enough to satisfy the linker targetting raw metal.
19575 if test x${M2_HOST_OS} != xunknown; then
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 library building for target ${target}" >&5
19577 $as_echo "$as_me: m2 library building for target ${target}" >&6;}
19578 case "$target" in
19580 avr25*-*-* | avr31*-*-* | avr35*-*-* | avr4*-*-* | avr5*-*-* | avr51*-*-* | avr6*-*-*)
19581 BUILD_PIMLIB=false
19582 BUILD_ISOLIB=false
19583 BUILD_CORLIB=false
19584 BUILD_LOGLIB=false
19587 avrxmega2*-*-* | avrxmega4*-*-* | avrxmega5*-*-* | avrxmega6*-*-* | avrxmega7*-*-*)
19588 BUILD_PIMLIB=false
19589 BUILD_ISOLIB=false
19590 BUILD_CORLIB=false
19591 BUILD_LOGLIB=false
19594 avr3-*-*)
19595 BUILD_PIMLIB=true
19596 BUILD_ISOLIB=true
19597 BUILD_CORLIB=true
19598 BUILD_LOGLIB=true
19600 esp32-*-*)
19601 BUILD_PIMLIB=false
19602 BUILD_ISOLIB=false
19603 BUILD_CORLIB=false
19604 BUILD_LOGLIB=false
19607 esac
19610 # GM2_MSG_RESULT issue a query message from the first parameter and a boolean result
19611 # in the second parameter is printed as a "yes" or "no".
19615 if test x${M2_HOST_OS} = xunknown; then
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 front end will only build minimal Modula-2 runtime library on this host" >&5
19617 $as_echo "$as_me: m2 front end will only build minimal Modula-2 runtime library on this host" >&6;}
19618 else
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build PIM libraries:" >&5
19621 $as_echo_n "checking m2 front end will build PIM libraries:... " >&6; }
19622 if test x${BUILD_PIMLIB} = xtrue; then
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19624 $as_echo "yes" >&6; }
19625 else
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19627 $as_echo "no" >&6; }
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build ISO libraries:" >&5
19632 $as_echo_n "checking m2 front end will build ISO libraries:... " >&6; }
19633 if test x${BUILD_ISOLIB} = xtrue; then
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19635 $as_echo "yes" >&6; }
19636 else
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19638 $as_echo "no" >&6; }
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build coroutine libraries:" >&5
19643 $as_echo_n "checking m2 front end will build coroutine libraries:... " >&6; }
19644 if test x${BUILD_CORLIB} = xtrue; then
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19646 $as_echo "yes" >&6; }
19647 else
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19649 $as_echo "no" >&6; }
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build Logitech compatability libraries:" >&5
19654 $as_echo_n "checking m2 front end will build Logitech compatability libraries:... " >&6; }
19655 if test x${BUILD_LOGLIB} = xtrue; then
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19657 $as_echo "yes" >&6; }
19658 else
19659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19660 $as_echo "no" >&6; }
19665 if test x$BUILD_PIMLIB = xtrue; then
19666 BUILD_PIMLIB_TRUE=
19667 BUILD_PIMLIB_FALSE='#'
19668 else
19669 BUILD_PIMLIB_TRUE='#'
19670 BUILD_PIMLIB_FALSE=
19673 if test x$BUILD_ISOLIB = xtrue; then
19674 BUILD_ISOLIB_TRUE=
19675 BUILD_ISOLIB_FALSE='#'
19676 else
19677 BUILD_ISOLIB_TRUE='#'
19678 BUILD_ISOLIB_FALSE=
19681 if test x$BUILD_CORLIB = xtrue; then
19682 BUILD_CORLIB_TRUE=
19683 BUILD_CORLIB_FALSE='#'
19684 else
19685 BUILD_CORLIB_TRUE='#'
19686 BUILD_CORLIB_FALSE=
19689 if test x$BUILD_LOGLIB = xtrue; then
19690 BUILD_LOGLIB_TRUE=
19691 BUILD_LOGLIB_FALSE='#'
19692 else
19693 BUILD_LOGLIB_TRUE='#'
19694 BUILD_LOGLIB_FALSE=
19697 if test x$M2_TARGET_OS = xdarwin; then
19698 TARGET_DARWIN_TRUE=
19699 TARGET_DARWIN_FALSE='#'
19700 else
19701 TARGET_DARWIN_TRUE='#'
19702 TARGET_DARWIN_FALSE=
19706 # Determine what GCC version number to use in filesystem paths.
19708 get_gcc_base_ver="cat"
19710 # Check whether --with-gcc-major-version-only was given.
19711 if test "${with_gcc_major_version_only+set}" = set; then :
19712 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
19713 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
19722 ac_config_files="$ac_config_files Makefile"
19725 ac_config_files="$ac_config_files libm2min/Makefile libm2pim/Makefile libm2iso/Makefile libm2cor/Makefile libm2log/Makefile"
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: libgm2 has been configured." >&5
19729 $as_echo "$as_me: libgm2 has been configured." >&6;}
19731 cat >confcache <<\_ACEOF
19732 # This file is a shell script that caches the results of configure
19733 # tests run on this system so they can be shared between configure
19734 # scripts and configure runs, see configure's option --config-cache.
19735 # It is not useful on other systems. If it contains results you don't
19736 # want to keep, you may remove or edit it.
19738 # config.status only pays attention to the cache file if you give it
19739 # the --recheck option to rerun configure.
19741 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19742 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19743 # following values.
19745 _ACEOF
19747 # The following way of writing the cache mishandles newlines in values,
19748 # but we know of no workaround that is simple, portable, and efficient.
19749 # So, we kill variables containing newlines.
19750 # Ultrix sh set writes to stderr and can't be redirected directly,
19751 # and sets the high bit in the cache file unless we assign to the vars.
19753 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19754 eval ac_val=\$$ac_var
19755 case $ac_val in #(
19756 *${as_nl}*)
19757 case $ac_var in #(
19758 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19759 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19760 esac
19761 case $ac_var in #(
19762 _ | IFS | as_nl) ;; #(
19763 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19764 *) { eval $ac_var=; unset $ac_var;} ;;
19765 esac ;;
19766 esac
19767 done
19769 (set) 2>&1 |
19770 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19771 *${as_nl}ac_space=\ *)
19772 # `set' does not quote correctly, so add quotes: double-quote
19773 # substitution turns \\\\ into \\, and sed turns \\ into \.
19774 sed -n \
19775 "s/'/'\\\\''/g;
19776 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19777 ;; #(
19779 # `set' quotes correctly as required by POSIX, so do not add quotes.
19780 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19782 esac |
19783 sort
19785 sed '
19786 /^ac_cv_env_/b end
19787 t clear
19788 :clear
19789 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19790 t end
19791 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19792 :end' >>confcache
19793 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19794 if test -w "$cache_file"; then
19795 if test "x$cache_file" != "x/dev/null"; then
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19797 $as_echo "$as_me: updating cache $cache_file" >&6;}
19798 if test ! -f "$cache_file" || test -h "$cache_file"; then
19799 cat confcache >"$cache_file"
19800 else
19801 case $cache_file in #(
19802 */* | ?:*)
19803 mv -f confcache "$cache_file"$$ &&
19804 mv -f "$cache_file"$$ "$cache_file" ;; #(
19806 mv -f confcache "$cache_file" ;;
19807 esac
19810 else
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19812 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19815 rm -f confcache
19817 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19818 # Let make expand exec_prefix.
19819 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19821 DEFS=-DHAVE_CONFIG_H
19823 ac_libobjs=
19824 ac_ltlibobjs=
19826 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19827 # 1. Remove the extension, and $U if already installed.
19828 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19829 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19830 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19831 # will be set to the directory where LIBOBJS objects are built.
19832 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19833 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19834 done
19835 LIBOBJS=$ac_libobjs
19837 LTLIBOBJS=$ac_ltlibobjs
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19841 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19842 if test -n "$am_sleep_pid"; then
19843 # Hide warnings about reused PIDs.
19844 wait $am_sleep_pid 2>/dev/null
19846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19847 $as_echo "done" >&6; }
19848 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19849 as_fn_error $? "conditional \"AMDEP\" was never defined.
19850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19852 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19853 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19856 if test -n "$EXEEXT"; then
19857 am__EXEEXT_TRUE=
19858 am__EXEEXT_FALSE='#'
19859 else
19860 am__EXEEXT_TRUE='#'
19861 am__EXEEXT_FALSE=
19864 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19865 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19868 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19869 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19872 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
19873 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
19874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19876 if test -z "${BUILD_PIMLIB_TRUE}" && test -z "${BUILD_PIMLIB_FALSE}"; then
19877 as_fn_error $? "conditional \"BUILD_PIMLIB\" was never defined.
19878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19880 if test -z "${BUILD_ISOLIB_TRUE}" && test -z "${BUILD_ISOLIB_FALSE}"; then
19881 as_fn_error $? "conditional \"BUILD_ISOLIB\" was never defined.
19882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19884 if test -z "${BUILD_CORLIB_TRUE}" && test -z "${BUILD_CORLIB_FALSE}"; then
19885 as_fn_error $? "conditional \"BUILD_CORLIB\" was never defined.
19886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19888 if test -z "${BUILD_LOGLIB_TRUE}" && test -z "${BUILD_LOGLIB_FALSE}"; then
19889 as_fn_error $? "conditional \"BUILD_LOGLIB\" was never defined.
19890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19892 if test -z "${TARGET_DARWIN_TRUE}" && test -z "${TARGET_DARWIN_FALSE}"; then
19893 as_fn_error $? "conditional \"TARGET_DARWIN\" was never defined.
19894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19897 : "${CONFIG_STATUS=./config.status}"
19898 ac_write_fail=0
19899 ac_clean_files_save=$ac_clean_files
19900 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19901 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19902 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19903 as_write_fail=0
19904 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19905 #! $SHELL
19906 # Generated by $as_me.
19907 # Run this file to recreate the current configuration.
19908 # Compiler output produced by configure, useful for debugging
19909 # configure, is in config.log if it exists.
19911 debug=false
19912 ac_cs_recheck=false
19913 ac_cs_silent=false
19915 SHELL=\${CONFIG_SHELL-$SHELL}
19916 export SHELL
19917 _ASEOF
19918 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19919 ## -------------------- ##
19920 ## M4sh Initialization. ##
19921 ## -------------------- ##
19923 # Be more Bourne compatible
19924 DUALCASE=1; export DUALCASE # for MKS sh
19925 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19926 emulate sh
19927 NULLCMD=:
19928 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19929 # is contrary to our usage. Disable this feature.
19930 alias -g '${1+"$@"}'='"$@"'
19931 setopt NO_GLOB_SUBST
19932 else
19933 case `(set -o) 2>/dev/null` in #(
19934 *posix*) :
19935 set -o posix ;; #(
19936 *) :
19938 esac
19942 as_nl='
19944 export as_nl
19945 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19946 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19947 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19948 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19949 # Prefer a ksh shell builtin over an external printf program on Solaris,
19950 # but without wasting forks for bash or zsh.
19951 if test -z "$BASH_VERSION$ZSH_VERSION" \
19952 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19953 as_echo='print -r --'
19954 as_echo_n='print -rn --'
19955 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19956 as_echo='printf %s\n'
19957 as_echo_n='printf %s'
19958 else
19959 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19960 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19961 as_echo_n='/usr/ucb/echo -n'
19962 else
19963 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19964 as_echo_n_body='eval
19965 arg=$1;
19966 case $arg in #(
19967 *"$as_nl"*)
19968 expr "X$arg" : "X\\(.*\\)$as_nl";
19969 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19970 esac;
19971 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19973 export as_echo_n_body
19974 as_echo_n='sh -c $as_echo_n_body as_echo'
19976 export as_echo_body
19977 as_echo='sh -c $as_echo_body as_echo'
19980 # The user is always right.
19981 if test "${PATH_SEPARATOR+set}" != set; then
19982 PATH_SEPARATOR=:
19983 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19984 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19985 PATH_SEPARATOR=';'
19990 # IFS
19991 # We need space, tab and new line, in precisely that order. Quoting is
19992 # there to prevent editors from complaining about space-tab.
19993 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19994 # splitting by setting IFS to empty value.)
19995 IFS=" "" $as_nl"
19997 # Find who we are. Look in the path if we contain no directory separator.
19998 as_myself=
19999 case $0 in #((
20000 *[\\/]* ) as_myself=$0 ;;
20001 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20002 for as_dir in $PATH
20004 IFS=$as_save_IFS
20005 test -z "$as_dir" && as_dir=.
20006 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20007 done
20008 IFS=$as_save_IFS
20011 esac
20012 # We did not find ourselves, most probably we were run as `sh COMMAND'
20013 # in which case we are not to be found in the path.
20014 if test "x$as_myself" = x; then
20015 as_myself=$0
20017 if test ! -f "$as_myself"; then
20018 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20019 exit 1
20022 # Unset variables that we do not need and which cause bugs (e.g. in
20023 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20024 # suppresses any "Segmentation fault" message there. '((' could
20025 # trigger a bug in pdksh 5.2.14.
20026 for as_var in BASH_ENV ENV MAIL MAILPATH
20027 do eval test x\${$as_var+set} = xset \
20028 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20029 done
20030 PS1='$ '
20031 PS2='> '
20032 PS4='+ '
20034 # NLS nuisances.
20035 LC_ALL=C
20036 export LC_ALL
20037 LANGUAGE=C
20038 export LANGUAGE
20040 # CDPATH.
20041 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20044 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20045 # ----------------------------------------
20046 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20047 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20048 # script with STATUS, using 1 if that was 0.
20049 as_fn_error ()
20051 as_status=$1; test $as_status -eq 0 && as_status=1
20052 if test "$4"; then
20053 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20054 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20056 $as_echo "$as_me: error: $2" >&2
20057 as_fn_exit $as_status
20058 } # as_fn_error
20061 # as_fn_set_status STATUS
20062 # -----------------------
20063 # Set $? to STATUS, without forking.
20064 as_fn_set_status ()
20066 return $1
20067 } # as_fn_set_status
20069 # as_fn_exit STATUS
20070 # -----------------
20071 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20072 as_fn_exit ()
20074 set +e
20075 as_fn_set_status $1
20076 exit $1
20077 } # as_fn_exit
20079 # as_fn_unset VAR
20080 # ---------------
20081 # Portably unset VAR.
20082 as_fn_unset ()
20084 { eval $1=; unset $1;}
20086 as_unset=as_fn_unset
20087 # as_fn_append VAR VALUE
20088 # ----------------------
20089 # Append the text in VALUE to the end of the definition contained in VAR. Take
20090 # advantage of any shell optimizations that allow amortized linear growth over
20091 # repeated appends, instead of the typical quadratic growth present in naive
20092 # implementations.
20093 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20094 eval 'as_fn_append ()
20096 eval $1+=\$2
20098 else
20099 as_fn_append ()
20101 eval $1=\$$1\$2
20103 fi # as_fn_append
20105 # as_fn_arith ARG...
20106 # ------------------
20107 # Perform arithmetic evaluation on the ARGs, and store the result in the
20108 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20109 # must be portable across $(()) and expr.
20110 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20111 eval 'as_fn_arith ()
20113 as_val=$(( $* ))
20115 else
20116 as_fn_arith ()
20118 as_val=`expr "$@" || test $? -eq 1`
20120 fi # as_fn_arith
20123 if expr a : '\(a\)' >/dev/null 2>&1 &&
20124 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20125 as_expr=expr
20126 else
20127 as_expr=false
20130 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20131 as_basename=basename
20132 else
20133 as_basename=false
20136 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20137 as_dirname=dirname
20138 else
20139 as_dirname=false
20142 as_me=`$as_basename -- "$0" ||
20143 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20144 X"$0" : 'X\(//\)$' \| \
20145 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20146 $as_echo X/"$0" |
20147 sed '/^.*\/\([^/][^/]*\)\/*$/{
20148 s//\1/
20151 /^X\/\(\/\/\)$/{
20152 s//\1/
20155 /^X\/\(\/\).*/{
20156 s//\1/
20159 s/.*/./; q'`
20161 # Avoid depending upon Character Ranges.
20162 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20163 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20164 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20165 as_cr_digits='0123456789'
20166 as_cr_alnum=$as_cr_Letters$as_cr_digits
20168 ECHO_C= ECHO_N= ECHO_T=
20169 case `echo -n x` in #(((((
20170 -n*)
20171 case `echo 'xy\c'` in
20172 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20173 xy) ECHO_C='\c';;
20174 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20175 ECHO_T=' ';;
20176 esac;;
20178 ECHO_N='-n';;
20179 esac
20181 rm -f conf$$ conf$$.exe conf$$.file
20182 if test -d conf$$.dir; then
20183 rm -f conf$$.dir/conf$$.file
20184 else
20185 rm -f conf$$.dir
20186 mkdir conf$$.dir 2>/dev/null
20188 if (echo >conf$$.file) 2>/dev/null; then
20189 if ln -s conf$$.file conf$$ 2>/dev/null; then
20190 as_ln_s='ln -s'
20191 # ... but there are two gotchas:
20192 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20193 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20194 # In both cases, we have to default to `cp -pR'.
20195 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20196 as_ln_s='cp -pR'
20197 elif ln conf$$.file conf$$ 2>/dev/null; then
20198 as_ln_s=ln
20199 else
20200 as_ln_s='cp -pR'
20202 else
20203 as_ln_s='cp -pR'
20205 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20206 rmdir conf$$.dir 2>/dev/null
20209 # as_fn_mkdir_p
20210 # -------------
20211 # Create "$as_dir" as a directory, including parents if necessary.
20212 as_fn_mkdir_p ()
20215 case $as_dir in #(
20216 -*) as_dir=./$as_dir;;
20217 esac
20218 test -d "$as_dir" || eval $as_mkdir_p || {
20219 as_dirs=
20220 while :; do
20221 case $as_dir in #(
20222 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20223 *) as_qdir=$as_dir;;
20224 esac
20225 as_dirs="'$as_qdir' $as_dirs"
20226 as_dir=`$as_dirname -- "$as_dir" ||
20227 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20228 X"$as_dir" : 'X\(//\)[^/]' \| \
20229 X"$as_dir" : 'X\(//\)$' \| \
20230 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20231 $as_echo X"$as_dir" |
20232 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20233 s//\1/
20236 /^X\(\/\/\)[^/].*/{
20237 s//\1/
20240 /^X\(\/\/\)$/{
20241 s//\1/
20244 /^X\(\/\).*/{
20245 s//\1/
20248 s/.*/./; q'`
20249 test -d "$as_dir" && break
20250 done
20251 test -z "$as_dirs" || eval "mkdir $as_dirs"
20252 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20255 } # as_fn_mkdir_p
20256 if mkdir -p . 2>/dev/null; then
20257 as_mkdir_p='mkdir -p "$as_dir"'
20258 else
20259 test -d ./-p && rmdir ./-p
20260 as_mkdir_p=false
20264 # as_fn_executable_p FILE
20265 # -----------------------
20266 # Test if FILE is an executable regular file.
20267 as_fn_executable_p ()
20269 test -f "$1" && test -x "$1"
20270 } # as_fn_executable_p
20271 as_test_x='test -x'
20272 as_executable_p=as_fn_executable_p
20274 # Sed expression to map a string onto a valid CPP name.
20275 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20277 # Sed expression to map a string onto a valid variable name.
20278 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20281 exec 6>&1
20282 ## ----------------------------------- ##
20283 ## Main body of $CONFIG_STATUS script. ##
20284 ## ----------------------------------- ##
20285 _ASEOF
20286 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20288 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20289 # Save the log message, to keep $0 and so on meaningful, and to
20290 # report actual input values of CONFIG_FILES etc. instead of their
20291 # values after options handling.
20292 ac_log="
20293 This file was extended by package-unused $as_me version-unused, which was
20294 generated by GNU Autoconf 2.69. Invocation command line was
20296 CONFIG_FILES = $CONFIG_FILES
20297 CONFIG_HEADERS = $CONFIG_HEADERS
20298 CONFIG_LINKS = $CONFIG_LINKS
20299 CONFIG_COMMANDS = $CONFIG_COMMANDS
20300 $ $0 $@
20302 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20305 _ACEOF
20307 case $ac_config_files in *"
20308 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20309 esac
20311 case $ac_config_headers in *"
20312 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20313 esac
20316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20317 # Files that config.status was made for.
20318 config_files="$ac_config_files"
20319 config_headers="$ac_config_headers"
20320 config_commands="$ac_config_commands"
20322 _ACEOF
20324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20325 ac_cs_usage="\
20326 \`$as_me' instantiates files and other configuration actions
20327 from templates according to the current configuration. Unless the files
20328 and actions are specified as TAGs, all are instantiated by default.
20330 Usage: $0 [OPTION]... [TAG]...
20332 -h, --help print this help, then exit
20333 -V, --version print version number and configuration settings, then exit
20334 --config print configuration, then exit
20335 -q, --quiet, --silent
20336 do not print progress messages
20337 -d, --debug don't remove temporary files
20338 --recheck update $as_me by reconfiguring in the same conditions
20339 --file=FILE[:TEMPLATE]
20340 instantiate the configuration file FILE
20341 --header=FILE[:TEMPLATE]
20342 instantiate the configuration header FILE
20344 Configuration files:
20345 $config_files
20347 Configuration headers:
20348 $config_headers
20350 Configuration commands:
20351 $config_commands
20353 Report bugs to the package provider."
20355 _ACEOF
20356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20357 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20358 ac_cs_version="\\
20359 package-unused config.status version-unused
20360 configured by $0, generated by GNU Autoconf 2.69,
20361 with options \\"\$ac_cs_config\\"
20363 Copyright (C) 2012 Free Software Foundation, Inc.
20364 This config.status script is free software; the Free Software Foundation
20365 gives unlimited permission to copy, distribute and modify it."
20367 ac_pwd='$ac_pwd'
20368 srcdir='$srcdir'
20369 INSTALL='$INSTALL'
20370 MKDIR_P='$MKDIR_P'
20371 AWK='$AWK'
20372 test -n "\$AWK" || AWK=awk
20373 _ACEOF
20375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20376 # The default lists apply if the user does not specify any file.
20377 ac_need_defaults=:
20378 while test $# != 0
20380 case $1 in
20381 --*=?*)
20382 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20383 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20384 ac_shift=:
20386 --*=)
20387 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20388 ac_optarg=
20389 ac_shift=:
20392 ac_option=$1
20393 ac_optarg=$2
20394 ac_shift=shift
20396 esac
20398 case $ac_option in
20399 # Handling of the options.
20400 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20401 ac_cs_recheck=: ;;
20402 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20403 $as_echo "$ac_cs_version"; exit ;;
20404 --config | --confi | --conf | --con | --co | --c )
20405 $as_echo "$ac_cs_config"; exit ;;
20406 --debug | --debu | --deb | --de | --d | -d )
20407 debug=: ;;
20408 --file | --fil | --fi | --f )
20409 $ac_shift
20410 case $ac_optarg in
20411 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20412 '') as_fn_error $? "missing file argument" ;;
20413 esac
20414 as_fn_append CONFIG_FILES " '$ac_optarg'"
20415 ac_need_defaults=false;;
20416 --header | --heade | --head | --hea )
20417 $ac_shift
20418 case $ac_optarg in
20419 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20420 esac
20421 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20422 ac_need_defaults=false;;
20423 --he | --h)
20424 # Conflict between --help and --header
20425 as_fn_error $? "ambiguous option: \`$1'
20426 Try \`$0 --help' for more information.";;
20427 --help | --hel | -h )
20428 $as_echo "$ac_cs_usage"; exit ;;
20429 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20430 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20431 ac_cs_silent=: ;;
20433 # This is an error.
20434 -*) as_fn_error $? "unrecognized option: \`$1'
20435 Try \`$0 --help' for more information." ;;
20437 *) as_fn_append ac_config_targets " $1"
20438 ac_need_defaults=false ;;
20440 esac
20441 shift
20442 done
20444 ac_configure_extra_args=
20446 if $ac_cs_silent; then
20447 exec 6>/dev/null
20448 ac_configure_extra_args="$ac_configure_extra_args --silent"
20451 _ACEOF
20452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20453 if \$ac_cs_recheck; then
20454 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20455 shift
20456 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20457 CONFIG_SHELL='$SHELL'
20458 export CONFIG_SHELL
20459 exec "\$@"
20462 _ACEOF
20463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20464 exec 5>>config.log
20466 echo
20467 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20468 ## Running $as_me. ##
20469 _ASBOX
20470 $as_echo "$ac_log"
20471 } >&5
20473 _ACEOF
20474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20476 # INIT-COMMANDS
20479 srcdir="$srcdir"
20480 host="$host"
20481 target="$target"
20482 with_multisubdir="$with_multisubdir"
20483 with_multisrctop="$with_multisrctop"
20484 with_target_subdir="$with_target_subdir"
20485 ac_configure_args="${multilib_arg} ${ac_configure_args}"
20486 multi_basedir="$multi_basedir"
20487 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
20488 CC="$CC"
20489 CXX="$CXX"
20490 GFORTRAN="$GFORTRAN"
20491 GDC="$GDC"
20492 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20495 # The HP-UX ksh and POSIX shell print the target directory to stdout
20496 # if CDPATH is set.
20497 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20499 sed_quote_subst='$sed_quote_subst'
20500 double_quote_subst='$double_quote_subst'
20501 delay_variable_subst='$delay_variable_subst'
20502 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20503 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20504 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20505 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20506 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20507 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20508 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20509 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20510 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20511 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20512 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20513 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20514 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20515 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20516 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20517 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20518 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20519 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20520 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20521 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20522 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20523 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20524 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20525 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20526 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20527 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20528 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20529 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20530 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20531 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20532 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20533 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20534 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20535 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20536 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20537 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20538 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20539 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20540 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20541 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20542 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20543 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20544 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20545 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20546 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20547 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20548 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20549 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20550 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"`'
20551 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20552 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20553 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20554 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20555 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20556 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20557 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20558 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20559 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20560 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20561 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20562 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20563 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20564 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20565 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20566 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20567 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20568 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20569 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20570 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20571 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20572 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20573 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20574 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20575 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20576 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20577 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20578 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20579 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20580 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20581 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20582 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20583 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20584 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20585 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20586 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20587 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20588 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20589 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20590 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20591 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
20592 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20593 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20594 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20595 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20596 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20597 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20598 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20599 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20600 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20601 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20602 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20603 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20604 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20605 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20606 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20607 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20608 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20609 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20610 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20611 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20612 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20613 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20614 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20615 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20616 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20617 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20618 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20619 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20620 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20621 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20622 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20623 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20624 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20625 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20626 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20627 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20628 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20629 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20630 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20631 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20632 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20633 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20634 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20635 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20636 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20637 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20638 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20639 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20640 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20641 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20642 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20643 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20644 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20645 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20646 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20647 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20648 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20649 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20650 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20651 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20652 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20653 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20654 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
20655 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20656 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20657 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20658 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20659 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20660 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20661 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20662 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20663 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
20664 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20665 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20666 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20667 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20668 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20669 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20670 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20671 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20672 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20673 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20674 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20675 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20676 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20678 LTCC='$LTCC'
20679 LTCFLAGS='$LTCFLAGS'
20680 compiler='$compiler_DEFAULT'
20682 # A function that is used when there is no print builtin or printf.
20683 func_fallback_echo ()
20685 eval 'cat <<_LTECHO_EOF
20687 _LTECHO_EOF'
20690 # Quote evaled strings.
20691 for var in SHELL \
20692 ECHO \
20693 SED \
20694 GREP \
20695 EGREP \
20696 FGREP \
20697 LD \
20698 NM \
20699 LN_S \
20700 lt_SP2NL \
20701 lt_NL2SP \
20702 reload_flag \
20703 OBJDUMP \
20704 deplibs_check_method \
20705 file_magic_cmd \
20706 AR \
20707 AR_FLAGS \
20708 STRIP \
20709 RANLIB \
20710 CC \
20711 CFLAGS \
20712 compiler \
20713 lt_cv_sys_global_symbol_pipe \
20714 lt_cv_sys_global_symbol_to_cdecl \
20715 lt_cv_sys_global_symbol_to_c_name_address \
20716 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20717 lt_prog_compiler_no_builtin_flag \
20718 lt_prog_compiler_wl \
20719 lt_prog_compiler_pic \
20720 lt_prog_compiler_static \
20721 lt_cv_prog_compiler_c_o \
20722 need_locks \
20723 DSYMUTIL \
20724 NMEDIT \
20725 LIPO \
20726 OTOOL \
20727 OTOOL64 \
20728 shrext_cmds \
20729 export_dynamic_flag_spec \
20730 whole_archive_flag_spec \
20731 compiler_needs_object \
20732 with_gnu_ld \
20733 allow_undefined_flag \
20734 no_undefined_flag \
20735 hardcode_libdir_flag_spec \
20736 hardcode_libdir_flag_spec_ld \
20737 hardcode_libdir_separator \
20738 fix_srcfile_path \
20739 exclude_expsyms \
20740 include_expsyms \
20741 file_list_spec \
20742 variables_saved_for_relink \
20743 libname_spec \
20744 library_names_spec \
20745 soname_spec \
20746 install_override_mode \
20747 finish_eval \
20748 old_striplib \
20749 striplib \
20750 compiler_lib_search_dirs \
20751 predep_objects \
20752 postdep_objects \
20753 predeps \
20754 postdeps \
20755 compiler_lib_search_path \
20756 LD_CXX \
20757 reload_flag_CXX \
20758 compiler_CXX \
20759 lt_prog_compiler_no_builtin_flag_CXX \
20760 lt_prog_compiler_wl_CXX \
20761 lt_prog_compiler_pic_CXX \
20762 lt_prog_compiler_static_CXX \
20763 lt_cv_prog_compiler_c_o_CXX \
20764 export_dynamic_flag_spec_CXX \
20765 whole_archive_flag_spec_CXX \
20766 compiler_needs_object_CXX \
20767 with_gnu_ld_CXX \
20768 allow_undefined_flag_CXX \
20769 no_undefined_flag_CXX \
20770 hardcode_libdir_flag_spec_CXX \
20771 hardcode_libdir_flag_spec_ld_CXX \
20772 hardcode_libdir_separator_CXX \
20773 fix_srcfile_path_CXX \
20774 exclude_expsyms_CXX \
20775 include_expsyms_CXX \
20776 file_list_spec_CXX \
20777 compiler_lib_search_dirs_CXX \
20778 predep_objects_CXX \
20779 postdep_objects_CXX \
20780 predeps_CXX \
20781 postdeps_CXX \
20782 compiler_lib_search_path_CXX; do
20783 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20784 *[\\\\\\\`\\"\\\$]*)
20785 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20788 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20790 esac
20791 done
20793 # Double-quote double-evaled strings.
20794 for var in reload_cmds \
20795 old_postinstall_cmds \
20796 old_postuninstall_cmds \
20797 old_archive_cmds \
20798 extract_expsyms_cmds \
20799 old_archive_from_new_cmds \
20800 old_archive_from_expsyms_cmds \
20801 archive_cmds \
20802 archive_expsym_cmds \
20803 module_cmds \
20804 module_expsym_cmds \
20805 export_symbols_cmds \
20806 prelink_cmds \
20807 postinstall_cmds \
20808 postuninstall_cmds \
20809 finish_cmds \
20810 sys_lib_search_path_spec \
20811 sys_lib_dlsearch_path_spec \
20812 reload_cmds_CXX \
20813 old_archive_cmds_CXX \
20814 old_archive_from_new_cmds_CXX \
20815 old_archive_from_expsyms_cmds_CXX \
20816 archive_cmds_CXX \
20817 archive_expsym_cmds_CXX \
20818 module_cmds_CXX \
20819 module_expsym_cmds_CXX \
20820 export_symbols_cmds_CXX \
20821 prelink_cmds_CXX; do
20822 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20823 *[\\\\\\\`\\"\\\$]*)
20824 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20827 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20829 esac
20830 done
20832 ac_aux_dir='$ac_aux_dir'
20833 xsi_shell='$xsi_shell'
20834 lt_shell_append='$lt_shell_append'
20836 # See if we are running on zsh, and set the options which allow our
20837 # commands through without removal of \ escapes INIT.
20838 if test -n "\${ZSH_VERSION+set}" ; then
20839 setopt NO_GLOB_SUBST
20843 PACKAGE='$PACKAGE'
20844 VERSION='$VERSION'
20845 TIMESTAMP='$TIMESTAMP'
20846 RM='$RM'
20847 ofile='$ofile'
20854 _ACEOF
20856 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20858 # Handling of arguments.
20859 for ac_config_target in $ac_config_targets
20861 case $ac_config_target in
20862 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20863 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20864 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20865 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20866 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20867 "libm2min/Makefile") CONFIG_FILES="$CONFIG_FILES libm2min/Makefile" ;;
20868 "libm2pim/Makefile") CONFIG_FILES="$CONFIG_FILES libm2pim/Makefile" ;;
20869 "libm2iso/Makefile") CONFIG_FILES="$CONFIG_FILES libm2iso/Makefile" ;;
20870 "libm2cor/Makefile") CONFIG_FILES="$CONFIG_FILES libm2cor/Makefile" ;;
20871 "libm2log/Makefile") CONFIG_FILES="$CONFIG_FILES libm2log/Makefile" ;;
20873 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20874 esac
20875 done
20878 # If the user did not use the arguments to specify the items to instantiate,
20879 # then the envvar interface is used. Set only those that are not.
20880 # We use the long form for the default assignment because of an extremely
20881 # bizarre bug on SunOS 4.1.3.
20882 if $ac_need_defaults; then
20883 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20884 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20885 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20888 # Have a temporary directory for convenience. Make it in the build tree
20889 # simply because there is no reason against having it here, and in addition,
20890 # creating and moving files from /tmp can sometimes cause problems.
20891 # Hook for its removal unless debugging.
20892 # Note that there is a small window in which the directory will not be cleaned:
20893 # after its creation but before its name has been assigned to `$tmp'.
20894 $debug ||
20896 tmp= ac_tmp=
20897 trap 'exit_status=$?
20898 : "${ac_tmp:=$tmp}"
20899 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20901 trap 'as_fn_exit 1' 1 2 13 15
20903 # Create a (secure) tmp directory for tmp files.
20906 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20907 test -d "$tmp"
20908 } ||
20910 tmp=./conf$$-$RANDOM
20911 (umask 077 && mkdir "$tmp")
20912 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20913 ac_tmp=$tmp
20915 # Set up the scripts for CONFIG_FILES section.
20916 # No need to generate them if there are no CONFIG_FILES.
20917 # This happens for instance with `./config.status config.h'.
20918 if test -n "$CONFIG_FILES"; then
20921 ac_cr=`echo X | tr X '\015'`
20922 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20923 # But we know of no other shell where ac_cr would be empty at this
20924 # point, so we can use a bashism as a fallback.
20925 if test "x$ac_cr" = x; then
20926 eval ac_cr=\$\'\\r\'
20928 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20929 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20930 ac_cs_awk_cr='\\r'
20931 else
20932 ac_cs_awk_cr=$ac_cr
20935 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20936 _ACEOF
20940 echo "cat >conf$$subs.awk <<_ACEOF" &&
20941 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20942 echo "_ACEOF"
20943 } >conf$$subs.sh ||
20944 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20945 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20946 ac_delim='%!_!# '
20947 for ac_last_try in false false false false false :; do
20948 . ./conf$$subs.sh ||
20949 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20951 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20952 if test $ac_delim_n = $ac_delim_num; then
20953 break
20954 elif $ac_last_try; then
20955 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20956 else
20957 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20959 done
20960 rm -f conf$$subs.sh
20962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20963 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20964 _ACEOF
20965 sed -n '
20967 s/^/S["/; s/!.*/"]=/
20970 s/^[^!]*!//
20971 :repl
20972 t repl
20973 s/'"$ac_delim"'$//
20974 t delim
20977 s/\(.\{148\}\)..*/\1/
20978 t more1
20979 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20982 b repl
20983 :more1
20984 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20987 s/.\{148\}//
20988 t nl
20989 :delim
20991 s/\(.\{148\}\)..*/\1/
20992 t more2
20993 s/["\\]/\\&/g; s/^/"/; s/$/"/
20996 :more2
20997 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21000 s/.\{148\}//
21001 t delim
21002 ' <conf$$subs.awk | sed '
21003 /^[^""]/{
21005 s/\n//
21007 ' >>$CONFIG_STATUS || ac_write_fail=1
21008 rm -f conf$$subs.awk
21009 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21010 _ACAWK
21011 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21012 for (key in S) S_is_set[key] = 1
21013 FS = "\a"
21017 line = $ 0
21018 nfields = split(line, field, "@")
21019 substed = 0
21020 len = length(field[1])
21021 for (i = 2; i < nfields; i++) {
21022 key = field[i]
21023 keylen = length(key)
21024 if (S_is_set[key]) {
21025 value = S[key]
21026 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21027 len += length(value) + length(field[++i])
21028 substed = 1
21029 } else
21030 len += 1 + keylen
21033 print line
21036 _ACAWK
21037 _ACEOF
21038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21039 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21040 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21041 else
21043 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21044 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21045 _ACEOF
21047 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21048 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21049 # trailing colons and then remove the whole line if VPATH becomes empty
21050 # (actually we leave an empty line to preserve line numbers).
21051 if test "x$srcdir" = x.; then
21052 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21054 s///
21055 s/^/:/
21056 s/[ ]*$/:/
21057 s/:\$(srcdir):/:/g
21058 s/:\${srcdir}:/:/g
21059 s/:@srcdir@:/:/g
21060 s/^:*//
21061 s/:*$//
21063 s/\(=[ ]*\).*/\1/
21065 s/\n//
21066 s/^[^=]*=[ ]*$//
21070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21071 fi # test -n "$CONFIG_FILES"
21073 # Set up the scripts for CONFIG_HEADERS section.
21074 # No need to generate them if there are no CONFIG_HEADERS.
21075 # This happens for instance with `./config.status Makefile'.
21076 if test -n "$CONFIG_HEADERS"; then
21077 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21078 BEGIN {
21079 _ACEOF
21081 # Transform confdefs.h into an awk script `defines.awk', embedded as
21082 # here-document in config.status, that substitutes the proper values into
21083 # config.h.in to produce config.h.
21085 # Create a delimiter string that does not exist in confdefs.h, to ease
21086 # handling of long lines.
21087 ac_delim='%!_!# '
21088 for ac_last_try in false false :; do
21089 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21090 if test -z "$ac_tt"; then
21091 break
21092 elif $ac_last_try; then
21093 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21094 else
21095 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21097 done
21099 # For the awk script, D is an array of macro values keyed by name,
21100 # likewise P contains macro parameters if any. Preserve backslash
21101 # newline sequences.
21103 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21104 sed -n '
21105 s/.\{148\}/&'"$ac_delim"'/g
21106 t rset
21107 :rset
21108 s/^[ ]*#[ ]*define[ ][ ]*/ /
21109 t def
21111 :def
21112 s/\\$//
21113 t bsnl
21114 s/["\\]/\\&/g
21115 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21116 D["\1"]=" \3"/p
21117 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21119 :bsnl
21120 s/["\\]/\\&/g
21121 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21122 D["\1"]=" \3\\\\\\n"\\/p
21123 t cont
21124 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21125 t cont
21127 :cont
21129 s/.\{148\}/&'"$ac_delim"'/g
21130 t clear
21131 :clear
21132 s/\\$//
21133 t bsnlc
21134 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21136 :bsnlc
21137 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21138 b cont
21139 ' <confdefs.h | sed '
21140 s/'"$ac_delim"'/"\\\
21141 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21143 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21144 for (key in D) D_is_set[key] = 1
21145 FS = "\a"
21147 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21148 line = \$ 0
21149 split(line, arg, " ")
21150 if (arg[1] == "#") {
21151 defundef = arg[2]
21152 mac1 = arg[3]
21153 } else {
21154 defundef = substr(arg[1], 2)
21155 mac1 = arg[2]
21157 split(mac1, mac2, "(") #)
21158 macro = mac2[1]
21159 prefix = substr(line, 1, index(line, defundef) - 1)
21160 if (D_is_set[macro]) {
21161 # Preserve the white space surrounding the "#".
21162 print prefix "define", macro P[macro] D[macro]
21163 next
21164 } else {
21165 # Replace #undef with comments. This is necessary, for example,
21166 # in the case of _POSIX_SOURCE, which is predefined and required
21167 # on some systems where configure will not decide to define it.
21168 if (defundef == "undef") {
21169 print "/*", prefix defundef, macro, "*/"
21170 next
21174 { print }
21175 _ACAWK
21176 _ACEOF
21177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21178 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21179 fi # test -n "$CONFIG_HEADERS"
21182 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21183 shift
21184 for ac_tag
21186 case $ac_tag in
21187 :[FHLC]) ac_mode=$ac_tag; continue;;
21188 esac
21189 case $ac_mode$ac_tag in
21190 :[FHL]*:*);;
21191 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21192 :[FH]-) ac_tag=-:-;;
21193 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21194 esac
21195 ac_save_IFS=$IFS
21196 IFS=:
21197 set x $ac_tag
21198 IFS=$ac_save_IFS
21199 shift
21200 ac_file=$1
21201 shift
21203 case $ac_mode in
21204 :L) ac_source=$1;;
21205 :[FH])
21206 ac_file_inputs=
21207 for ac_f
21209 case $ac_f in
21210 -) ac_f="$ac_tmp/stdin";;
21211 *) # Look for the file first in the build tree, then in the source tree
21212 # (if the path is not absolute). The absolute path cannot be DOS-style,
21213 # because $ac_f cannot contain `:'.
21214 test -f "$ac_f" ||
21215 case $ac_f in
21216 [\\/$]*) false;;
21217 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21218 esac ||
21219 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21220 esac
21221 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21222 as_fn_append ac_file_inputs " '$ac_f'"
21223 done
21225 # Let's still pretend it is `configure' which instantiates (i.e., don't
21226 # use $as_me), people would be surprised to read:
21227 # /* config.h. Generated by config.status. */
21228 configure_input='Generated from '`
21229 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21230 `' by configure.'
21231 if test x"$ac_file" != x-; then
21232 configure_input="$ac_file. $configure_input"
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21234 $as_echo "$as_me: creating $ac_file" >&6;}
21236 # Neutralize special characters interpreted by sed in replacement strings.
21237 case $configure_input in #(
21238 *\&* | *\|* | *\\* )
21239 ac_sed_conf_input=`$as_echo "$configure_input" |
21240 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21241 *) ac_sed_conf_input=$configure_input;;
21242 esac
21244 case $ac_tag in
21245 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21246 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21247 esac
21249 esac
21251 ac_dir=`$as_dirname -- "$ac_file" ||
21252 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21253 X"$ac_file" : 'X\(//\)[^/]' \| \
21254 X"$ac_file" : 'X\(//\)$' \| \
21255 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21256 $as_echo X"$ac_file" |
21257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21258 s//\1/
21261 /^X\(\/\/\)[^/].*/{
21262 s//\1/
21265 /^X\(\/\/\)$/{
21266 s//\1/
21269 /^X\(\/\).*/{
21270 s//\1/
21273 s/.*/./; q'`
21274 as_dir="$ac_dir"; as_fn_mkdir_p
21275 ac_builddir=.
21277 case "$ac_dir" in
21278 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21280 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21281 # A ".." for each directory in $ac_dir_suffix.
21282 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21283 case $ac_top_builddir_sub in
21284 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21285 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21286 esac ;;
21287 esac
21288 ac_abs_top_builddir=$ac_pwd
21289 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21290 # for backward compatibility:
21291 ac_top_builddir=$ac_top_build_prefix
21293 case $srcdir in
21294 .) # We are building in place.
21295 ac_srcdir=.
21296 ac_top_srcdir=$ac_top_builddir_sub
21297 ac_abs_top_srcdir=$ac_pwd ;;
21298 [\\/]* | ?:[\\/]* ) # Absolute name.
21299 ac_srcdir=$srcdir$ac_dir_suffix;
21300 ac_top_srcdir=$srcdir
21301 ac_abs_top_srcdir=$srcdir ;;
21302 *) # Relative name.
21303 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21304 ac_top_srcdir=$ac_top_build_prefix$srcdir
21305 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21306 esac
21307 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21310 case $ac_mode in
21313 # CONFIG_FILE
21316 case $INSTALL in
21317 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21318 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21319 esac
21320 ac_MKDIR_P=$MKDIR_P
21321 case $MKDIR_P in
21322 [\\/$]* | ?:[\\/]* ) ;;
21323 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21324 esac
21325 _ACEOF
21327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21328 # If the template does not know about datarootdir, expand it.
21329 # FIXME: This hack should be removed a few years after 2.60.
21330 ac_datarootdir_hack=; ac_datarootdir_seen=
21331 ac_sed_dataroot='
21332 /datarootdir/ {
21336 /@datadir@/p
21337 /@docdir@/p
21338 /@infodir@/p
21339 /@localedir@/p
21340 /@mandir@/p'
21341 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21342 *datarootdir*) ac_datarootdir_seen=yes;;
21343 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21345 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21346 _ACEOF
21347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21348 ac_datarootdir_hack='
21349 s&@datadir@&$datadir&g
21350 s&@docdir@&$docdir&g
21351 s&@infodir@&$infodir&g
21352 s&@localedir@&$localedir&g
21353 s&@mandir@&$mandir&g
21354 s&\\\${datarootdir}&$datarootdir&g' ;;
21355 esac
21356 _ACEOF
21358 # Neutralize VPATH when `$srcdir' = `.'.
21359 # Shell code in configure.ac might set extrasub.
21360 # FIXME: do we really want to maintain this feature?
21361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21362 ac_sed_extra="$ac_vpsub
21363 $extrasub
21364 _ACEOF
21365 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21367 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21368 s|@configure_input@|$ac_sed_conf_input|;t t
21369 s&@top_builddir@&$ac_top_builddir_sub&;t t
21370 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21371 s&@srcdir@&$ac_srcdir&;t t
21372 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21373 s&@top_srcdir@&$ac_top_srcdir&;t t
21374 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21375 s&@builddir@&$ac_builddir&;t t
21376 s&@abs_builddir@&$ac_abs_builddir&;t t
21377 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21378 s&@INSTALL@&$ac_INSTALL&;t t
21379 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21380 $ac_datarootdir_hack
21382 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21383 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21385 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21386 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21387 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21388 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21390 which seems to be undefined. Please make sure it is defined" >&5
21391 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21392 which seems to be undefined. Please make sure it is defined" >&2;}
21394 rm -f "$ac_tmp/stdin"
21395 case $ac_file in
21396 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21397 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21398 esac \
21399 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21403 # CONFIG_HEADER
21405 if test x"$ac_file" != x-; then
21407 $as_echo "/* $configure_input */" \
21408 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21409 } >"$ac_tmp/config.h" \
21410 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21411 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21413 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21414 else
21415 rm -f "$ac_file"
21416 mv "$ac_tmp/config.h" "$ac_file" \
21417 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21419 else
21420 $as_echo "/* $configure_input */" \
21421 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21422 || as_fn_error $? "could not create -" "$LINENO" 5
21424 # Compute "$ac_file"'s index in $config_headers.
21425 _am_arg="$ac_file"
21426 _am_stamp_count=1
21427 for _am_header in $config_headers :; do
21428 case $_am_header in
21429 $_am_arg | $_am_arg:* )
21430 break ;;
21432 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21433 esac
21434 done
21435 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21436 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21437 X"$_am_arg" : 'X\(//\)[^/]' \| \
21438 X"$_am_arg" : 'X\(//\)$' \| \
21439 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21440 $as_echo X"$_am_arg" |
21441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21442 s//\1/
21445 /^X\(\/\/\)[^/].*/{
21446 s//\1/
21449 /^X\(\/\/\)$/{
21450 s//\1/
21453 /^X\(\/\).*/{
21454 s//\1/
21457 s/.*/./; q'`/stamp-h$_am_stamp_count
21460 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21461 $as_echo "$as_me: executing $ac_file commands" >&6;}
21463 esac
21466 case $ac_file$ac_mode in
21467 "default-1":C)
21468 # Only add multilib support code if we just rebuilt the top-level
21469 # Makefile.
21470 case " $CONFIG_FILES " in
21471 *" Makefile "*)
21472 ac_file=Makefile . ${multi_basedir}/config-ml.in
21474 esac ;;
21475 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21476 # Older Autoconf quotes --file arguments for eval, but not when files
21477 # are listed without --file. Let's play safe and only enable the eval
21478 # if we detect the quoting.
21479 case $CONFIG_FILES in
21480 *\'*) eval set x "$CONFIG_FILES" ;;
21481 *) set x $CONFIG_FILES ;;
21482 esac
21483 shift
21484 for mf
21486 # Strip MF so we end up with the name of the file.
21487 mf=`echo "$mf" | sed -e 's/:.*$//'`
21488 # Check whether this is an Automake generated Makefile or not.
21489 # We used to match only the files named 'Makefile.in', but
21490 # some people rename them; so instead we look at the file content.
21491 # Grep'ing the first line is not enough: some people post-process
21492 # each Makefile.in and add a new line on top of each file to say so.
21493 # Grep'ing the whole file is not good either: AIX grep has a line
21494 # limit of 2048, but all sed's we know have understand at least 4000.
21495 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21496 dirpart=`$as_dirname -- "$mf" ||
21497 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21498 X"$mf" : 'X\(//\)[^/]' \| \
21499 X"$mf" : 'X\(//\)$' \| \
21500 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21501 $as_echo X"$mf" |
21502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21503 s//\1/
21506 /^X\(\/\/\)[^/].*/{
21507 s//\1/
21510 /^X\(\/\/\)$/{
21511 s//\1/
21514 /^X\(\/\).*/{
21515 s//\1/
21518 s/.*/./; q'`
21519 else
21520 continue
21522 # Extract the definition of DEPDIR, am__include, and am__quote
21523 # from the Makefile without running 'make'.
21524 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21525 test -z "$DEPDIR" && continue
21526 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21527 test -z "$am__include" && continue
21528 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21529 # Find all dependency output files, they are included files with
21530 # $(DEPDIR) in their names. We invoke sed twice because it is the
21531 # simplest approach to changing $(DEPDIR) to its actual value in the
21532 # expansion.
21533 for file in `sed -n "
21534 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21535 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21536 # Make sure the directory exists.
21537 test -f "$dirpart/$file" && continue
21538 fdir=`$as_dirname -- "$file" ||
21539 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21540 X"$file" : 'X\(//\)[^/]' \| \
21541 X"$file" : 'X\(//\)$' \| \
21542 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21543 $as_echo X"$file" |
21544 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21545 s//\1/
21548 /^X\(\/\/\)[^/].*/{
21549 s//\1/
21552 /^X\(\/\/\)$/{
21553 s//\1/
21556 /^X\(\/\).*/{
21557 s//\1/
21560 s/.*/./; q'`
21561 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21562 # echo "creating $dirpart/$file"
21563 echo '# dummy' > "$dirpart/$file"
21564 done
21565 done
21568 "libtool":C)
21570 # See if we are running on zsh, and set the options which allow our
21571 # commands through without removal of \ escapes.
21572 if test -n "${ZSH_VERSION+set}" ; then
21573 setopt NO_GLOB_SUBST
21576 cfgfile="${ofile}T"
21577 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21578 $RM "$cfgfile"
21580 cat <<_LT_EOF >> "$cfgfile"
21581 #! $SHELL
21583 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21584 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21585 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21586 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21588 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21589 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
21590 # Written by Gordon Matzigkeit, 1996
21592 # This file is part of GNU Libtool.
21594 # GNU Libtool is free software; you can redistribute it and/or
21595 # modify it under the terms of the GNU General Public License as
21596 # published by the Free Software Foundation; either version 2 of
21597 # the License, or (at your option) any later version.
21599 # As a special exception to the GNU General Public License,
21600 # if you distribute this file as part of a program or library that
21601 # is built using GNU Libtool, you may include this file under the
21602 # same distribution terms that you use for the rest of that program.
21604 # GNU Libtool is distributed in the hope that it will be useful,
21605 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21606 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21607 # GNU General Public License for more details.
21609 # You should have received a copy of the GNU General Public License
21610 # along with GNU Libtool; see the file COPYING. If not, a copy
21611 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21612 # obtained by writing to the Free Software Foundation, Inc.,
21613 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21616 # The names of the tagged configurations supported by this script.
21617 available_tags="CXX "
21619 # ### BEGIN LIBTOOL CONFIG
21621 # Which release of libtool.m4 was used?
21622 macro_version=$macro_version
21623 macro_revision=$macro_revision
21625 # Whether or not to build shared libraries.
21626 build_libtool_libs=$enable_shared
21628 # Whether or not to build static libraries.
21629 build_old_libs=$enable_static
21631 # What type of objects to build.
21632 pic_mode=$pic_mode
21634 # Whether or not to optimize for fast installation.
21635 fast_install=$enable_fast_install
21637 # Shell to use when invoking shell scripts.
21638 SHELL=$lt_SHELL
21640 # An echo program that protects backslashes.
21641 ECHO=$lt_ECHO
21643 # The host system.
21644 host_alias=$host_alias
21645 host=$host
21646 host_os=$host_os
21648 # The build system.
21649 build_alias=$build_alias
21650 build=$build
21651 build_os=$build_os
21653 # A sed program that does not truncate output.
21654 SED=$lt_SED
21656 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21657 Xsed="\$SED -e 1s/^X//"
21659 # A grep program that handles long lines.
21660 GREP=$lt_GREP
21662 # An ERE matcher.
21663 EGREP=$lt_EGREP
21665 # A literal string matcher.
21666 FGREP=$lt_FGREP
21668 # A BSD- or MS-compatible name lister.
21669 NM=$lt_NM
21671 # Whether we need soft or hard links.
21672 LN_S=$lt_LN_S
21674 # What is the maximum length of a command?
21675 max_cmd_len=$max_cmd_len
21677 # Object file suffix (normally "o").
21678 objext=$ac_objext
21680 # Executable file suffix (normally "").
21681 exeext=$exeext
21683 # whether the shell understands "unset".
21684 lt_unset=$lt_unset
21686 # turn spaces into newlines.
21687 SP2NL=$lt_lt_SP2NL
21689 # turn newlines into spaces.
21690 NL2SP=$lt_lt_NL2SP
21692 # An object symbol dumper.
21693 OBJDUMP=$lt_OBJDUMP
21695 # Method to check whether dependent libraries are shared objects.
21696 deplibs_check_method=$lt_deplibs_check_method
21698 # Command to use when deplibs_check_method == "file_magic".
21699 file_magic_cmd=$lt_file_magic_cmd
21701 # The archiver.
21702 AR=$lt_AR
21703 AR_FLAGS=$lt_AR_FLAGS
21705 # A symbol stripping program.
21706 STRIP=$lt_STRIP
21708 # Commands used to install an old-style archive.
21709 RANLIB=$lt_RANLIB
21710 old_postinstall_cmds=$lt_old_postinstall_cmds
21711 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21713 # Whether to use a lock for old archive extraction.
21714 lock_old_archive_extraction=$lock_old_archive_extraction
21716 # A C compiler.
21717 LTCC=$lt_CC
21719 # LTCC compiler flags.
21720 LTCFLAGS=$lt_CFLAGS
21722 # Take the output of nm and produce a listing of raw symbols and C names.
21723 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21725 # Transform the output of nm in a proper C declaration.
21726 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21728 # Transform the output of nm in a C name address pair.
21729 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21731 # Transform the output of nm in a C name address pair when lib prefix is needed.
21732 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21734 # The name of the directory that contains temporary libtool files.
21735 objdir=$objdir
21737 # Used to examine libraries when file_magic_cmd begins with "file".
21738 MAGIC_CMD=$MAGIC_CMD
21740 # Must we lock files when doing compilation?
21741 need_locks=$lt_need_locks
21743 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21744 DSYMUTIL=$lt_DSYMUTIL
21746 # Tool to change global to local symbols on Mac OS X.
21747 NMEDIT=$lt_NMEDIT
21749 # Tool to manipulate fat objects and archives on Mac OS X.
21750 LIPO=$lt_LIPO
21752 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21753 OTOOL=$lt_OTOOL
21755 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21756 OTOOL64=$lt_OTOOL64
21758 # Old archive suffix (normally "a").
21759 libext=$libext
21761 # Shared library suffix (normally ".so").
21762 shrext_cmds=$lt_shrext_cmds
21764 # The commands to extract the exported symbol list from a shared archive.
21765 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21767 # Variables whose values should be saved in libtool wrapper scripts and
21768 # restored at link time.
21769 variables_saved_for_relink=$lt_variables_saved_for_relink
21771 # Do we need the "lib" prefix for modules?
21772 need_lib_prefix=$need_lib_prefix
21774 # Do we need a version for libraries?
21775 need_version=$need_version
21777 # Library versioning type.
21778 version_type=$version_type
21780 # Shared library runtime path variable.
21781 runpath_var=$runpath_var
21783 # Shared library path variable.
21784 shlibpath_var=$shlibpath_var
21786 # Is shlibpath searched before the hard-coded library search path?
21787 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21789 # Format of library name prefix.
21790 libname_spec=$lt_libname_spec
21792 # List of archive names. First name is the real one, the rest are links.
21793 # The last name is the one that the linker finds with -lNAME
21794 library_names_spec=$lt_library_names_spec
21796 # The coded name of the library, if different from the real name.
21797 soname_spec=$lt_soname_spec
21799 # Permission mode override for installation of shared libraries.
21800 install_override_mode=$lt_install_override_mode
21802 # Command to use after installation of a shared archive.
21803 postinstall_cmds=$lt_postinstall_cmds
21805 # Command to use after uninstallation of a shared archive.
21806 postuninstall_cmds=$lt_postuninstall_cmds
21808 # Commands used to finish a libtool library installation in a directory.
21809 finish_cmds=$lt_finish_cmds
21811 # As "finish_cmds", except a single script fragment to be evaled but
21812 # not shown.
21813 finish_eval=$lt_finish_eval
21815 # Whether we should hardcode library paths into libraries.
21816 hardcode_into_libs=$hardcode_into_libs
21818 # Compile-time system search path for libraries.
21819 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21821 # Run-time system search path for libraries.
21822 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21824 # Whether dlopen is supported.
21825 dlopen_support=$enable_dlopen
21827 # Whether dlopen of programs is supported.
21828 dlopen_self=$enable_dlopen_self
21830 # Whether dlopen of statically linked programs is supported.
21831 dlopen_self_static=$enable_dlopen_self_static
21833 # Commands to strip libraries.
21834 old_striplib=$lt_old_striplib
21835 striplib=$lt_striplib
21838 # The linker used to build libraries.
21839 LD=$lt_LD
21841 # How to create reloadable object files.
21842 reload_flag=$lt_reload_flag
21843 reload_cmds=$lt_reload_cmds
21845 # Commands used to build an old-style archive.
21846 old_archive_cmds=$lt_old_archive_cmds
21848 # A language specific compiler.
21849 CC=$lt_compiler
21851 # Is the compiler the GNU compiler?
21852 with_gcc=$GCC
21854 # Compiler flag to turn off builtin functions.
21855 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21857 # How to pass a linker flag through the compiler.
21858 wl=$lt_lt_prog_compiler_wl
21860 # Additional compiler flags for building library objects.
21861 pic_flag=$lt_lt_prog_compiler_pic
21863 # Compiler flag to prevent dynamic linking.
21864 link_static_flag=$lt_lt_prog_compiler_static
21866 # Does compiler simultaneously support -c and -o options?
21867 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21869 # Whether or not to add -lc for building shared libraries.
21870 build_libtool_need_lc=$archive_cmds_need_lc
21872 # Whether or not to disallow shared libs when runtime libs are static.
21873 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21875 # Compiler flag to allow reflexive dlopens.
21876 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21878 # Compiler flag to generate shared objects directly from archives.
21879 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21881 # Whether the compiler copes with passing no objects directly.
21882 compiler_needs_object=$lt_compiler_needs_object
21884 # Create an old-style archive from a shared archive.
21885 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21887 # Create a temporary old-style archive to link instead of a shared archive.
21888 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21890 # Commands used to build a shared archive.
21891 archive_cmds=$lt_archive_cmds
21892 archive_expsym_cmds=$lt_archive_expsym_cmds
21894 # Commands used to build a loadable module if different from building
21895 # a shared archive.
21896 module_cmds=$lt_module_cmds
21897 module_expsym_cmds=$lt_module_expsym_cmds
21899 # Whether we are building with GNU ld or not.
21900 with_gnu_ld=$lt_with_gnu_ld
21902 # Flag that allows shared libraries with undefined symbols to be built.
21903 allow_undefined_flag=$lt_allow_undefined_flag
21905 # Flag that enforces no undefined symbols.
21906 no_undefined_flag=$lt_no_undefined_flag
21908 # Flag to hardcode \$libdir into a binary during linking.
21909 # This must work even if \$libdir does not exist
21910 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21912 # If ld is used when linking, flag to hardcode \$libdir into a binary
21913 # during linking. This must work even if \$libdir does not exist.
21914 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21916 # Whether we need a single "-rpath" flag with a separated argument.
21917 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21919 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21920 # DIR into the resulting binary.
21921 hardcode_direct=$hardcode_direct
21923 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21924 # DIR into the resulting binary and the resulting library dependency is
21925 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21926 # library is relocated.
21927 hardcode_direct_absolute=$hardcode_direct_absolute
21929 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21930 # into the resulting binary.
21931 hardcode_minus_L=$hardcode_minus_L
21933 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21934 # into the resulting binary.
21935 hardcode_shlibpath_var=$hardcode_shlibpath_var
21937 # Set to "yes" if building a shared library automatically hardcodes DIR
21938 # into the library and all subsequent libraries and executables linked
21939 # against it.
21940 hardcode_automatic=$hardcode_automatic
21942 # Set to yes if linker adds runtime paths of dependent libraries
21943 # to runtime path list.
21944 inherit_rpath=$inherit_rpath
21946 # Whether libtool must link a program against all its dependency libraries.
21947 link_all_deplibs=$link_all_deplibs
21949 # Fix the shell variable \$srcfile for the compiler.
21950 fix_srcfile_path=$lt_fix_srcfile_path
21952 # Set to "yes" if exported symbols are required.
21953 always_export_symbols=$always_export_symbols
21955 # The commands to list exported symbols.
21956 export_symbols_cmds=$lt_export_symbols_cmds
21958 # Symbols that should not be listed in the preloaded symbols.
21959 exclude_expsyms=$lt_exclude_expsyms
21961 # Symbols that must always be exported.
21962 include_expsyms=$lt_include_expsyms
21964 # Commands necessary for linking programs (against libraries) with templates.
21965 prelink_cmds=$lt_prelink_cmds
21967 # Specify filename containing input files.
21968 file_list_spec=$lt_file_list_spec
21970 # How to hardcode a shared library path into an executable.
21971 hardcode_action=$hardcode_action
21973 # The directories searched by this compiler when creating a shared library.
21974 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21976 # Dependencies to place before and after the objects being linked to
21977 # create a shared library.
21978 predep_objects=$lt_predep_objects
21979 postdep_objects=$lt_postdep_objects
21980 predeps=$lt_predeps
21981 postdeps=$lt_postdeps
21983 # The library search path used internally by the compiler when linking
21984 # a shared library.
21985 compiler_lib_search_path=$lt_compiler_lib_search_path
21987 # ### END LIBTOOL CONFIG
21989 _LT_EOF
21991 case $host_os in
21992 aix3*)
21993 cat <<\_LT_EOF >> "$cfgfile"
21994 # AIX sometimes has problems with the GCC collect2 program. For some
21995 # reason, if we set the COLLECT_NAMES environment variable, the problems
21996 # vanish in a puff of smoke.
21997 if test "X${COLLECT_NAMES+set}" != Xset; then
21998 COLLECT_NAMES=
21999 export COLLECT_NAMES
22001 _LT_EOF
22003 esac
22006 ltmain="$ac_aux_dir/ltmain.sh"
22009 # We use sed instead of cat because bash on DJGPP gets confused if
22010 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22011 # text mode, it properly converts lines to CR/LF. This bash problem
22012 # is reportedly fixed, but why not run on old versions too?
22013 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22014 || (rm -f "$cfgfile"; exit 1)
22016 case $xsi_shell in
22017 yes)
22018 cat << \_LT_EOF >> "$cfgfile"
22020 # func_dirname file append nondir_replacement
22021 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22022 # otherwise set result to NONDIR_REPLACEMENT.
22023 func_dirname ()
22025 case ${1} in
22026 */*) func_dirname_result="${1%/*}${2}" ;;
22027 * ) func_dirname_result="${3}" ;;
22028 esac
22031 # func_basename file
22032 func_basename ()
22034 func_basename_result="${1##*/}"
22037 # func_dirname_and_basename file append nondir_replacement
22038 # perform func_basename and func_dirname in a single function
22039 # call:
22040 # dirname: Compute the dirname of FILE. If nonempty,
22041 # add APPEND to the result, otherwise set result
22042 # to NONDIR_REPLACEMENT.
22043 # value returned in "$func_dirname_result"
22044 # basename: Compute filename of FILE.
22045 # value retuned in "$func_basename_result"
22046 # Implementation must be kept synchronized with func_dirname
22047 # and func_basename. For efficiency, we do not delegate to
22048 # those functions but instead duplicate the functionality here.
22049 func_dirname_and_basename ()
22051 case ${1} in
22052 */*) func_dirname_result="${1%/*}${2}" ;;
22053 * ) func_dirname_result="${3}" ;;
22054 esac
22055 func_basename_result="${1##*/}"
22058 # func_stripname prefix suffix name
22059 # strip PREFIX and SUFFIX off of NAME.
22060 # PREFIX and SUFFIX must not contain globbing or regex special
22061 # characters, hashes, percent signs, but SUFFIX may contain a leading
22062 # dot (in which case that matches only a dot).
22063 func_stripname ()
22065 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22066 # positional parameters, so assign one to ordinary parameter first.
22067 func_stripname_result=${3}
22068 func_stripname_result=${func_stripname_result#"${1}"}
22069 func_stripname_result=${func_stripname_result%"${2}"}
22072 # func_opt_split
22073 func_opt_split ()
22075 func_opt_split_opt=${1%%=*}
22076 func_opt_split_arg=${1#*=}
22079 # func_lo2o object
22080 func_lo2o ()
22082 case ${1} in
22083 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22084 *) func_lo2o_result=${1} ;;
22085 esac
22088 # func_xform libobj-or-source
22089 func_xform ()
22091 func_xform_result=${1%.*}.lo
22094 # func_arith arithmetic-term...
22095 func_arith ()
22097 func_arith_result=$(( $* ))
22100 # func_len string
22101 # STRING may not start with a hyphen.
22102 func_len ()
22104 func_len_result=${#1}
22107 _LT_EOF
22109 *) # Bourne compatible functions.
22110 cat << \_LT_EOF >> "$cfgfile"
22112 # func_dirname file append nondir_replacement
22113 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22114 # otherwise set result to NONDIR_REPLACEMENT.
22115 func_dirname ()
22117 # Extract subdirectory from the argument.
22118 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
22119 if test "X$func_dirname_result" = "X${1}"; then
22120 func_dirname_result="${3}"
22121 else
22122 func_dirname_result="$func_dirname_result${2}"
22126 # func_basename file
22127 func_basename ()
22129 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
22133 # func_stripname prefix suffix name
22134 # strip PREFIX and SUFFIX off of NAME.
22135 # PREFIX and SUFFIX must not contain globbing or regex special
22136 # characters, hashes, percent signs, but SUFFIX may contain a leading
22137 # dot (in which case that matches only a dot).
22138 # func_strip_suffix prefix name
22139 func_stripname ()
22141 case ${2} in
22142 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
22143 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
22144 esac
22147 # sed scripts:
22148 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22149 my_sed_long_arg='1s/^-[^=]*=//'
22151 # func_opt_split
22152 func_opt_split ()
22154 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
22155 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
22158 # func_lo2o object
22159 func_lo2o ()
22161 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
22164 # func_xform libobj-or-source
22165 func_xform ()
22167 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
22170 # func_arith arithmetic-term...
22171 func_arith ()
22173 func_arith_result=`expr "$@"`
22176 # func_len string
22177 # STRING may not start with a hyphen.
22178 func_len ()
22180 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22183 _LT_EOF
22184 esac
22186 case $lt_shell_append in
22187 yes)
22188 cat << \_LT_EOF >> "$cfgfile"
22190 # func_append var value
22191 # Append VALUE to the end of shell variable VAR.
22192 func_append ()
22194 eval "$1+=\$2"
22196 _LT_EOF
22199 cat << \_LT_EOF >> "$cfgfile"
22201 # func_append var value
22202 # Append VALUE to the end of shell variable VAR.
22203 func_append ()
22205 eval "$1=\$$1\$2"
22208 _LT_EOF
22210 esac
22213 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22214 || (rm -f "$cfgfile"; exit 1)
22216 mv -f "$cfgfile" "$ofile" ||
22217 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22218 chmod +x "$ofile"
22221 cat <<_LT_EOF >> "$ofile"
22223 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22225 # The linker used to build libraries.
22226 LD=$lt_LD_CXX
22228 # How to create reloadable object files.
22229 reload_flag=$lt_reload_flag_CXX
22230 reload_cmds=$lt_reload_cmds_CXX
22232 # Commands used to build an old-style archive.
22233 old_archive_cmds=$lt_old_archive_cmds_CXX
22235 # A language specific compiler.
22236 CC=$lt_compiler_CXX
22238 # Is the compiler the GNU compiler?
22239 with_gcc=$GCC_CXX
22241 # Compiler flag to turn off builtin functions.
22242 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22244 # How to pass a linker flag through the compiler.
22245 wl=$lt_lt_prog_compiler_wl_CXX
22247 # Additional compiler flags for building library objects.
22248 pic_flag=$lt_lt_prog_compiler_pic_CXX
22250 # Compiler flag to prevent dynamic linking.
22251 link_static_flag=$lt_lt_prog_compiler_static_CXX
22253 # Does compiler simultaneously support -c and -o options?
22254 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22256 # Whether or not to add -lc for building shared libraries.
22257 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22259 # Whether or not to disallow shared libs when runtime libs are static.
22260 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22262 # Compiler flag to allow reflexive dlopens.
22263 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22265 # Compiler flag to generate shared objects directly from archives.
22266 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22268 # Whether the compiler copes with passing no objects directly.
22269 compiler_needs_object=$lt_compiler_needs_object_CXX
22271 # Create an old-style archive from a shared archive.
22272 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22274 # Create a temporary old-style archive to link instead of a shared archive.
22275 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22277 # Commands used to build a shared archive.
22278 archive_cmds=$lt_archive_cmds_CXX
22279 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22281 # Commands used to build a loadable module if different from building
22282 # a shared archive.
22283 module_cmds=$lt_module_cmds_CXX
22284 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22286 # Whether we are building with GNU ld or not.
22287 with_gnu_ld=$lt_with_gnu_ld_CXX
22289 # Flag that allows shared libraries with undefined symbols to be built.
22290 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22292 # Flag that enforces no undefined symbols.
22293 no_undefined_flag=$lt_no_undefined_flag_CXX
22295 # Flag to hardcode \$libdir into a binary during linking.
22296 # This must work even if \$libdir does not exist
22297 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22299 # If ld is used when linking, flag to hardcode \$libdir into a binary
22300 # during linking. This must work even if \$libdir does not exist.
22301 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22303 # Whether we need a single "-rpath" flag with a separated argument.
22304 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22306 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22307 # DIR into the resulting binary.
22308 hardcode_direct=$hardcode_direct_CXX
22310 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22311 # DIR into the resulting binary and the resulting library dependency is
22312 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22313 # library is relocated.
22314 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22316 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22317 # into the resulting binary.
22318 hardcode_minus_L=$hardcode_minus_L_CXX
22320 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22321 # into the resulting binary.
22322 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22324 # Set to "yes" if building a shared library automatically hardcodes DIR
22325 # into the library and all subsequent libraries and executables linked
22326 # against it.
22327 hardcode_automatic=$hardcode_automatic_CXX
22329 # Set to yes if linker adds runtime paths of dependent libraries
22330 # to runtime path list.
22331 inherit_rpath=$inherit_rpath_CXX
22333 # Whether libtool must link a program against all its dependency libraries.
22334 link_all_deplibs=$link_all_deplibs_CXX
22336 # Fix the shell variable \$srcfile for the compiler.
22337 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22339 # Set to "yes" if exported symbols are required.
22340 always_export_symbols=$always_export_symbols_CXX
22342 # The commands to list exported symbols.
22343 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22345 # Symbols that should not be listed in the preloaded symbols.
22346 exclude_expsyms=$lt_exclude_expsyms_CXX
22348 # Symbols that must always be exported.
22349 include_expsyms=$lt_include_expsyms_CXX
22351 # Commands necessary for linking programs (against libraries) with templates.
22352 prelink_cmds=$lt_prelink_cmds_CXX
22354 # Specify filename containing input files.
22355 file_list_spec=$lt_file_list_spec_CXX
22357 # How to hardcode a shared library path into an executable.
22358 hardcode_action=$hardcode_action_CXX
22360 # The directories searched by this compiler when creating a shared library.
22361 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22363 # Dependencies to place before and after the objects being linked to
22364 # create a shared library.
22365 predep_objects=$lt_predep_objects_CXX
22366 postdep_objects=$lt_postdep_objects_CXX
22367 predeps=$lt_predeps_CXX
22368 postdeps=$lt_postdeps_CXX
22370 # The library search path used internally by the compiler when linking
22371 # a shared library.
22372 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22374 # ### END LIBTOOL TAG CONFIG: CXX
22375 _LT_EOF
22378 "libm2min/Makefile":F) cat > vpsed$$ << \_EOF
22379 s!`test -f '$<' || echo '$(srcdir)/'`!!
22380 _EOF
22381 sed -f vpsed$$ $ac_file > tmp$$
22382 mv tmp$$ $ac_file
22383 rm vpsed$$
22384 echo 'MULTISUBDIR =' >> $ac_file
22385 ml_norecursion=yes
22386 . ${multi_basedir}/config-ml.in
22387 { ml_norecursion=; unset ml_norecursion;}
22389 "libm2pim/Makefile":F) cat > vpsed$$ << \_EOF
22390 s!`test -f '$<' || echo '$(srcdir)/'`!!
22391 _EOF
22392 sed -f vpsed$$ $ac_file > tmp$$
22393 mv tmp$$ $ac_file
22394 rm vpsed$$
22395 echo 'MULTISUBDIR =' >> $ac_file
22396 ml_norecursion=yes
22397 . ${multi_basedir}/config-ml.in
22398 { ml_norecursion=; unset ml_norecursion;}
22400 "libm2iso/Makefile":F) cat > vpsed$$ << \_EOF
22401 s!`test -f '$<' || echo '$(srcdir)/'`!!
22402 _EOF
22403 sed -f vpsed$$ $ac_file > tmp$$
22404 mv tmp$$ $ac_file
22405 rm vpsed$$
22406 echo 'MULTISUBDIR =' >> $ac_file
22407 ml_norecursion=yes
22408 . ${multi_basedir}/config-ml.in
22409 { ml_norecursion=; unset ml_norecursion;}
22411 "libm2cor/Makefile":F) cat > vpsed$$ << \_EOF
22412 s!`test -f '$<' || echo '$(srcdir)/'`!!
22413 _EOF
22414 sed -f vpsed$$ $ac_file > tmp$$
22415 mv tmp$$ $ac_file
22416 rm vpsed$$
22417 echo 'MULTISUBDIR =' >> $ac_file
22418 ml_norecursion=yes
22419 . ${multi_basedir}/config-ml.in
22420 { ml_norecursion=; unset ml_norecursion;}
22422 "libm2log/Makefile":F) cat > vpsed$$ << \_EOF
22423 s!`test -f '$<' || echo '$(srcdir)/'`!!
22424 _EOF
22425 sed -f vpsed$$ $ac_file > tmp$$
22426 mv tmp$$ $ac_file
22427 rm vpsed$$
22428 echo 'MULTISUBDIR =' >> $ac_file
22429 ml_norecursion=yes
22430 . ${multi_basedir}/config-ml.in
22431 { ml_norecursion=; unset ml_norecursion;}
22434 esac
22435 done # for ac_tag
22438 as_fn_exit 0
22439 _ACEOF
22440 ac_clean_files=$ac_clean_files_save
22442 test $ac_write_fail = 0 ||
22443 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22446 # configure is writing to config.log, and then calls config.status.
22447 # config.status does its own redirection, appending to config.log.
22448 # Unfortunately, on DOS this fails, as config.log is still kept open
22449 # by configure, so config.status won't be able to write to it; its
22450 # output is simply discarded. So we exec the FD to /dev/null,
22451 # effectively closing config.log, so it can be properly (re)opened and
22452 # appended to by config.status. When coming back to configure, we
22453 # need to make the FD available again.
22454 if test "$no_create" != yes; then
22455 ac_cs_success=:
22456 ac_config_status_args=
22457 test "$silent" = yes &&
22458 ac_config_status_args="$ac_config_status_args --quiet"
22459 exec 5>/dev/null
22460 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22461 exec 5>>config.log
22462 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22463 # would make configure fail if this is the last instruction.
22464 $ac_cs_success || as_fn_exit 1
22466 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22468 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}