Dump profile_count along with relative frequency
[official-gcc.git] / libgm2 / configure
blobda3d3bd43911d8386d8158f39a777ac530e458c3
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 RANLIB
669 am__fastdepCCAS_FALSE
670 am__fastdepCCAS_TRUE
671 CCASDEPMODE
672 CCASFLAGS
673 CCAS
674 am__fastdepCXX_FALSE
675 am__fastdepCXX_TRUE
676 CXXDEPMODE
677 ac_ct_CXX
678 CXXFLAGS
680 MAINTAINER_MODE_FALSE
681 MAINTAINER_MODE_TRUE
682 toolexeclibdir
683 toolexecdir
684 MAINT
685 slibdir
686 target_subdir
687 host_subdir
688 build_subdir
689 build_libsubdir
690 target_noncanonical
691 host_noncanonical
692 AM_BACKSLASH
693 AM_DEFAULT_VERBOSITY
694 AM_DEFAULT_V
695 AM_V
696 am__fastdepCC_FALSE
697 am__fastdepCC_TRUE
698 CCDEPMODE
699 am__nodep
700 AMDEPBACKSLASH
701 AMDEP_FALSE
702 AMDEP_TRUE
703 am__quote
704 am__include
705 DEPDIR
706 am__untar
707 am__tar
708 AMTAR
709 am__leading_dot
710 SET_MAKE
712 mkdir_p
713 MKDIR_P
714 INSTALL_STRIP_PROGRAM
715 STRIP
716 install_sh
717 MAKEINFO
718 AUTOHEADER
719 AUTOMAKE
720 AUTOCONF
721 ACLOCAL
722 VERSION
723 PACKAGE
724 CYGPATH_W
725 am__isrc
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 target_os
730 target_vendor
731 target_cpu
732 target
733 host_os
734 host_vendor
735 host_cpu
736 host
737 build_os
738 build_vendor
739 build_cpu
740 build
741 EGREP
742 GREP
744 OBJEXT
745 EXEEXT
746 ac_ct_CC
747 CPPFLAGS
748 LDFLAGS
749 CFLAGS
751 multi_basedir
752 libtool_VERSION
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_multilib
795 enable_dependency_tracking
796 enable_silent_rules
797 with_cross_host
798 with_build_libsubdir
799 enable_version_specific_runtime_libs
800 with_slibdir
801 enable_maintainer_mode
802 enable_shared
803 enable_static
804 with_pic
805 enable_fast_install
806 with_gnu_ld
807 enable_libtool_lock
808 with_gcc_major_version_only
810 ac_precious_vars='build_alias
811 host_alias
812 target_alias
814 CFLAGS
815 LDFLAGS
816 LIBS
817 CPPFLAGS
819 CXXCPP'
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
870 ac_prev=
871 ac_dashdash=
872 for ac_option
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
877 ac_prev=
878 continue
881 case $ac_option in
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *=) ac_optarg= ;;
884 *) ac_optarg=yes ;;
885 esac
887 # Accept the important Cygnus configure options, so we can diagnose typos.
889 case $ac_dashdash$ac_option in
891 ac_dashdash=yes ;;
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
910 --config-cache | -C)
911 cache_file=config.cache ;;
913 -datadir | --datadir | --datadi | --datad)
914 ac_prev=datadir ;;
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=\$ac_optarg ;;
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
978 with_gas=yes ;;
980 -help | --help | --hel | --he | -h)
981 ac_init_help=long ;;
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 ac_prev=htmldir ;;
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 | --ht=*)
996 htmldir=$ac_optarg ;;
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 ac_prev=infodir ;;
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1010 -libdir | --libdir | --libdi | --libd)
1011 ac_prev=libdir ;;
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 ac_prev=mandir ;;
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1041 with_fp=no ;;
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1045 no_create=yes ;;
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 no_recursion=yes ;;
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 ac_prev=prefix ;;
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 ac_prev=pdfdir ;;
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1101 -psdir | --psdir | --psdi | --psd | --ps)
1102 ac_prev=psdir ;;
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 psdir=$ac_optarg ;;
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 silent=yes ;;
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215 esac
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1227 esac
1228 done
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 esac
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1251 case $ac_val in
1252 */ )
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1255 esac
1256 # Be sure to have absolute directory names.
1257 case $ac_val in
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 esac
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 done
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1267 build=$build_alias
1268 host=$host_alias
1269 target=$target_alias
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283 test "$silent" = yes && exec 6>/dev/null
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1312 /^X\(\/\/\)$/{
1313 s//\1/
1316 /^X\(\/\).*/{
1317 s//\1/
1320 s/.*/./; q'`
1321 srcdir=$ac_confdir
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 srcdir=..
1325 else
1326 ac_srcdir_defaulted=no
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1354 # Report the --help message.
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1367 Defaults for the options are specified in brackets.
1369 Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1391 For better control, use the options below.
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/libgm2]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413 _ACEOF
1415 cat <<\_ACEOF
1417 Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422 System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 --target=TARGET configure for building compilers for TARGET [HOST]
1426 _ACEOF
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of package-unused version-unused:";;
1432 esac
1433 cat <<\_ACEOF
1435 Optional Features:
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-multilib build many library versions (default)
1440 --enable-dependency-tracking
1441 do not reject slow dependency extractors
1442 --disable-dependency-tracking
1443 speeds up one-time build
1444 --enable-silent-rules less verbose build output (undo: "make V=1")
1445 --disable-silent-rules verbose build output (undo: "make V=0")
1446 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1447 --enable-maintainer-mode
1448 enable make rules and dependencies not useful (and
1449 sometimes confusing) to the casual installer
1450 --enable-maintainer-mode
1451 enable make rules and dependencies not useful (and
1452 sometimes confusing) to the casual installer
1453 --enable-shared[=PKGS] build shared libraries [default=yes]
1454 --enable-static[=PKGS] build static libraries [default=yes]
1455 --enable-fast-install[=PKGS]
1456 optimize for fast installation [default=yes]
1457 --disable-libtool-lock avoid locking (might break parallel builds)
1459 Optional Packages:
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1462 --with-cross-host=HOST Configuring with a cross compiler
1463 --with-build-libsubdir=DIR Directory where to find libraries for build system
1464 --with-slibdir=DIR shared libraries in DIR LIBDIR
1465 --with-pic try to use only PIC/non-PIC objects [default=use
1466 both]
1467 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1468 --with-gcc-major-version-only
1469 use only GCC major number in filesystem paths
1471 Some influential environment variables:
1472 CC C compiler command
1473 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
1476 LIBS libraries to pass to the linker, e.g. -l<library>
1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478 you have headers in a nonstandard directory <include dir>
1479 CPP C preprocessor
1480 CXX C++ compiler command
1481 CXXFLAGS C++ compiler flags
1482 CCAS assembler compiler command (defaults to CC)
1483 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1484 CXXCPP C++ preprocessor
1486 Use these variables to override the choices made by `configure' or to help
1487 it to find libraries and programs with nonstandard names/locations.
1489 Report bugs to the package provider.
1490 _ACEOF
1491 ac_status=$?
1494 if test "$ac_init_help" = "recursive"; then
1495 # If there are subdirs, report their specific --help.
1496 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1497 test -d "$ac_dir" ||
1498 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1499 continue
1500 ac_builddir=.
1502 case "$ac_dir" in
1503 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1506 # A ".." for each directory in $ac_dir_suffix.
1507 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1508 case $ac_top_builddir_sub in
1509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511 esac ;;
1512 esac
1513 ac_abs_top_builddir=$ac_pwd
1514 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1515 # for backward compatibility:
1516 ac_top_builddir=$ac_top_build_prefix
1518 case $srcdir in
1519 .) # We are building in place.
1520 ac_srcdir=.
1521 ac_top_srcdir=$ac_top_builddir_sub
1522 ac_abs_top_srcdir=$ac_pwd ;;
1523 [\\/]* | ?:[\\/]* ) # Absolute name.
1524 ac_srcdir=$srcdir$ac_dir_suffix;
1525 ac_top_srcdir=$srcdir
1526 ac_abs_top_srcdir=$srcdir ;;
1527 *) # Relative name.
1528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1529 ac_top_srcdir=$ac_top_build_prefix$srcdir
1530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1531 esac
1532 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534 cd "$ac_dir" || { ac_status=$?; continue; }
1535 # Check for guested configure.
1536 if test -f "$ac_srcdir/configure.gnu"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539 elif test -f "$ac_srcdir/configure"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure" --help=recursive
1542 else
1543 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1544 fi || ac_status=$?
1545 cd "$ac_pwd" || { ac_status=$?; break; }
1546 done
1549 test -n "$ac_init_help" && exit $ac_status
1550 if $ac_init_version; then
1551 cat <<\_ACEOF
1552 package-unused configure version-unused
1553 generated by GNU Autoconf 2.69
1555 Copyright (C) 2012 Free Software Foundation, Inc.
1556 This configure script is free software; the Free Software Foundation
1557 gives unlimited permission to copy, distribute and modify it.
1558 _ACEOF
1559 exit
1562 ## ------------------------ ##
1563 ## Autoconf initialization. ##
1564 ## ------------------------ ##
1566 # ac_fn_c_try_compile LINENO
1567 # --------------------------
1568 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_compile ()
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext
1573 if { { ac_try="$ac_compile"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_compile") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest.$ac_objext; then :
1592 ac_retval=0
1593 else
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1597 ac_retval=1
1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600 as_fn_set_status $ac_retval
1602 } # ac_fn_c_try_compile
1604 # ac_fn_c_try_cpp LINENO
1605 # ----------------------
1606 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_cpp ()
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 if { { ac_try="$ac_cpp conftest.$ac_ext"
1611 case "(($ac_try" in
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1614 esac
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1618 ac_status=$?
1619 if test -s conftest.err; then
1620 grep -v '^ *+' conftest.err >conftest.er1
1621 cat conftest.er1 >&5
1622 mv -f conftest.er1 conftest.err
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; } > conftest.i && {
1626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1627 test ! -s conftest.err
1628 }; then :
1629 ac_retval=0
1630 else
1631 $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1634 ac_retval=1
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1639 } # ac_fn_c_try_cpp
1641 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1642 # -------------------------------------------------------
1643 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1644 # the include files in INCLUDES and setting the cache variable VAR
1645 # accordingly.
1646 ac_fn_c_check_header_mongrel ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if eval \${$3+:} false; then :
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651 $as_echo_n "checking for $2... " >&6; }
1652 if eval \${$3+:} false; then :
1653 $as_echo_n "(cached) " >&6
1655 eval ac_res=\$$3
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1657 $as_echo "$ac_res" >&6; }
1658 else
1659 # Is the header compilable?
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1661 $as_echo_n "checking $2 usability... " >&6; }
1662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1663 /* end confdefs.h. */
1665 #include <$2>
1666 _ACEOF
1667 if ac_fn_c_try_compile "$LINENO"; then :
1668 ac_header_compiler=yes
1669 else
1670 ac_header_compiler=no
1672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1674 $as_echo "$ac_header_compiler" >&6; }
1676 # Is the header present?
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1678 $as_echo_n "checking $2 presence... " >&6; }
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1681 #include <$2>
1682 _ACEOF
1683 if ac_fn_c_try_cpp "$LINENO"; then :
1684 ac_header_preproc=yes
1685 else
1686 ac_header_preproc=no
1688 rm -f conftest.err conftest.i conftest.$ac_ext
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1690 $as_echo "$ac_header_preproc" >&6; }
1692 # So? What about this header?
1693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1694 yes:no: )
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1696 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1698 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1700 no:yes:* )
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1702 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1704 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1706 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1708 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1710 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1712 esac
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if eval \${$3+:} false; then :
1716 $as_echo_n "(cached) " >&6
1717 else
1718 eval "$3=\$ac_header_compiler"
1720 eval ac_res=\$$3
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722 $as_echo "$ac_res" >&6; }
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 } # ac_fn_c_check_header_mongrel
1728 # ac_fn_c_try_run LINENO
1729 # ----------------------
1730 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1731 # that executables *can* be run.
1732 ac_fn_c_try_run ()
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { { ac_try="$ac_link"
1736 case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_link") 2>&5
1743 ac_status=$?
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1746 { { case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_try") 2>&5
1753 ac_status=$?
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; }; }; then :
1756 ac_retval=0
1757 else
1758 $as_echo "$as_me: program exited with status $ac_status" >&5
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1762 ac_retval=$ac_status
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1768 } # ac_fn_c_try_run
1770 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1771 # -------------------------------------------------------
1772 # Tests whether HEADER exists and can be compiled using the include files in
1773 # INCLUDES, setting the cache variable VAR accordingly.
1774 ac_fn_c_check_header_compile ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1781 else
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1785 #include <$2>
1786 _ACEOF
1787 if ac_fn_c_try_compile "$LINENO"; then :
1788 eval "$3=yes"
1789 else
1790 eval "$3=no"
1792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 $as_echo "$ac_res" >&6; }
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 } # ac_fn_c_check_header_compile
1801 # ac_fn_cxx_try_compile LINENO
1802 # ----------------------------
1803 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1804 ac_fn_cxx_try_compile ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 rm -f conftest.$ac_objext
1808 if { { ac_try="$ac_compile"
1809 case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812 esac
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_compile") 2>conftest.err
1816 ac_status=$?
1817 if test -s conftest.err; then
1818 grep -v '^ *+' conftest.err >conftest.er1
1819 cat conftest.er1 >&5
1820 mv -f conftest.er1 conftest.err
1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823 test $ac_status = 0; } && {
1824 test -z "$ac_cxx_werror_flag" ||
1825 test ! -s conftest.err
1826 } && test -s conftest.$ac_objext; then :
1827 ac_retval=0
1828 else
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1832 ac_retval=1
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1837 } # ac_fn_cxx_try_compile
1839 # ac_fn_c_try_link LINENO
1840 # -----------------------
1841 # Try to link conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_c_try_link ()
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 rm -f conftest.$ac_objext conftest$ac_exeext
1846 if { { ac_try="$ac_link"
1847 case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_link") 2>conftest.err
1854 ac_status=$?
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_c_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest$ac_exeext && {
1865 test "$cross_compiling" = yes ||
1866 test -x conftest$ac_exeext
1867 }; then :
1868 ac_retval=0
1869 else
1870 $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1873 ac_retval=1
1875 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1876 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1877 # interfere with the next link command; also delete a directory that is
1878 # left behind by Apple's compiler. We do this before executing the actions.
1879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 as_fn_set_status $ac_retval
1883 } # ac_fn_c_try_link
1885 # ac_fn_c_check_func LINENO FUNC VAR
1886 # ----------------------------------
1887 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1888 ac_fn_c_check_func ()
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if eval \${$3+:} false; then :
1894 $as_echo_n "(cached) " >&6
1895 else
1896 if test x$gcc_no_link = xyes; then
1897 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1901 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1903 #define $2 innocuous_$2
1905 /* System header to define __stub macros and hopefully few prototypes,
1906 which can conflict with char $2 (); below.
1907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1908 <limits.h> exists even on freestanding compilers. */
1910 #ifdef __STDC__
1911 # include <limits.h>
1912 #else
1913 # include <assert.h>
1914 #endif
1916 #undef $2
1918 /* Override any GCC internal prototype to avoid an error.
1919 Use char because int might match the return type of a GCC
1920 builtin and then its argument prototype would still apply. */
1921 #ifdef __cplusplus
1922 extern "C"
1923 #endif
1924 char $2 ();
1925 /* The GNU C library defines this for functions which it implements
1926 to always fail with ENOSYS. Some functions are actually named
1927 something starting with __ and the normal name is an alias. */
1928 #if defined __stub_$2 || defined __stub___$2
1929 choke me
1930 #endif
1933 main ()
1935 return $2 ();
1937 return 0;
1939 _ACEOF
1940 if ac_fn_c_try_link "$LINENO"; then :
1941 eval "$3=yes"
1942 else
1943 eval "$3=no"
1945 rm -f core conftest.err conftest.$ac_objext \
1946 conftest$ac_exeext conftest.$ac_ext
1948 eval ac_res=\$$3
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 } # ac_fn_c_check_func
1955 # ac_fn_cxx_try_cpp LINENO
1956 # ------------------------
1957 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1958 ac_fn_cxx_try_cpp ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if { { ac_try="$ac_cpp conftest.$ac_ext"
1962 case "(($ac_try" in
1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964 *) ac_try_echo=$ac_try;;
1965 esac
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 $as_echo "$ac_try_echo"; } >&5
1968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1969 ac_status=$?
1970 if test -s conftest.err; then
1971 grep -v '^ *+' conftest.err >conftest.er1
1972 cat conftest.er1 >&5
1973 mv -f conftest.er1 conftest.err
1975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976 test $ac_status = 0; } > conftest.i && {
1977 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1978 test ! -s conftest.err
1979 }; then :
1980 ac_retval=0
1981 else
1982 $as_echo "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1985 ac_retval=1
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988 as_fn_set_status $ac_retval
1990 } # ac_fn_cxx_try_cpp
1992 # ac_fn_cxx_try_link LINENO
1993 # -------------------------
1994 # Try to link conftest.$ac_ext, and return whether this succeeded.
1995 ac_fn_cxx_try_link ()
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 rm -f conftest.$ac_objext conftest$ac_exeext
1999 if { { ac_try="$ac_link"
2000 case "(($ac_try" in
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2003 esac
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_link") 2>conftest.err
2007 ac_status=$?
2008 if test -s conftest.err; then
2009 grep -v '^ *+' conftest.err >conftest.er1
2010 cat conftest.er1 >&5
2011 mv -f conftest.er1 conftest.err
2013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014 test $ac_status = 0; } && {
2015 test -z "$ac_cxx_werror_flag" ||
2016 test ! -s conftest.err
2017 } && test -s conftest$ac_exeext && {
2018 test "$cross_compiling" = yes ||
2019 test -x conftest$ac_exeext
2020 }; then :
2021 ac_retval=0
2022 else
2023 $as_echo "$as_me: failed program was:" >&5
2024 sed 's/^/| /' conftest.$ac_ext >&5
2026 ac_retval=1
2028 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2029 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2030 # interfere with the next link command; also delete a directory that is
2031 # left behind by Apple's compiler. We do this before executing the actions.
2032 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034 as_fn_set_status $ac_retval
2036 } # ac_fn_cxx_try_link
2038 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2039 # -------------------------------------------
2040 # Tests whether TYPE exists after having included INCLUDES, setting cache
2041 # variable VAR accordingly.
2042 ac_fn_c_check_type ()
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if eval \${$3+:} false; then :
2048 $as_echo_n "(cached) " >&6
2049 else
2050 eval "$3=no"
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2055 main ()
2057 if (sizeof ($2))
2058 return 0;
2060 return 0;
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2068 main ()
2070 if (sizeof (($2)))
2071 return 0;
2073 return 0;
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2078 else
2079 eval "$3=yes"
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 eval ac_res=\$$3
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 } # ac_fn_c_check_type
2091 cat >config.log <<_ACEOF
2092 This file contains any messages produced by compilers while
2093 running configure, to aid debugging if configure makes a mistake.
2095 It was created by package-unused $as_me version-unused, which was
2096 generated by GNU Autoconf 2.69. Invocation command line was
2098 $ $0 $@
2100 _ACEOF
2101 exec 5>>config.log
2103 cat <<_ASUNAME
2104 ## --------- ##
2105 ## Platform. ##
2106 ## --------- ##
2108 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2109 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2110 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2111 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2112 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2114 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2115 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2117 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2118 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2119 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2120 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2121 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2122 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2123 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2125 _ASUNAME
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 for as_dir in $PATH
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 $as_echo "PATH: $as_dir"
2133 done
2134 IFS=$as_save_IFS
2136 } >&5
2138 cat >&5 <<_ACEOF
2141 ## ----------- ##
2142 ## Core tests. ##
2143 ## ----------- ##
2145 _ACEOF
2148 # Keep a trace of the command line.
2149 # Strip out --no-create and --no-recursion so they do not pile up.
2150 # Strip out --silent because we don't want to record it for future runs.
2151 # Also quote any args containing shell meta-characters.
2152 # Make two passes to allow for proper duplicate-argument suppression.
2153 ac_configure_args=
2154 ac_configure_args0=
2155 ac_configure_args1=
2156 ac_must_keep_next=false
2157 for ac_pass in 1 2
2159 for ac_arg
2161 case $ac_arg in
2162 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2164 | -silent | --silent | --silen | --sile | --sil)
2165 continue ;;
2166 *\'*)
2167 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2168 esac
2169 case $ac_pass in
2170 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2172 as_fn_append ac_configure_args1 " '$ac_arg'"
2173 if test $ac_must_keep_next = true; then
2174 ac_must_keep_next=false # Got value, back to normal.
2175 else
2176 case $ac_arg in
2177 *=* | --config-cache | -C | -disable-* | --disable-* \
2178 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2179 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2180 | -with-* | --with-* | -without-* | --without-* | --x)
2181 case "$ac_configure_args0 " in
2182 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2183 esac
2185 -* ) ac_must_keep_next=true ;;
2186 esac
2188 as_fn_append ac_configure_args " '$ac_arg'"
2190 esac
2191 done
2192 done
2193 { ac_configure_args0=; unset ac_configure_args0;}
2194 { ac_configure_args1=; unset ac_configure_args1;}
2196 # When interrupted or exit'd, cleanup temporary files, and complete
2197 # config.log. We remove comments because anyway the quotes in there
2198 # would cause problems or look ugly.
2199 # WARNING: Use '\'' to represent an apostrophe within the trap.
2200 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2201 trap 'exit_status=$?
2202 # Save into config.log some information that might help in debugging.
2204 echo
2206 $as_echo "## ---------------- ##
2207 ## Cache variables. ##
2208 ## ---------------- ##"
2209 echo
2210 # The following way of writing the cache mishandles newlines in values,
2212 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2213 eval ac_val=\$$ac_var
2214 case $ac_val in #(
2215 *${as_nl}*)
2216 case $ac_var in #(
2217 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2218 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2219 esac
2220 case $ac_var in #(
2221 _ | IFS | as_nl) ;; #(
2222 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2223 *) { eval $ac_var=; unset $ac_var;} ;;
2224 esac ;;
2225 esac
2226 done
2227 (set) 2>&1 |
2228 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2229 *${as_nl}ac_space=\ *)
2230 sed -n \
2231 "s/'\''/'\''\\\\'\'''\''/g;
2232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2233 ;; #(
2235 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2237 esac |
2238 sort
2240 echo
2242 $as_echo "## ----------------- ##
2243 ## Output variables. ##
2244 ## ----------------- ##"
2245 echo
2246 for ac_var in $ac_subst_vars
2248 eval ac_val=\$$ac_var
2249 case $ac_val in
2250 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2251 esac
2252 $as_echo "$ac_var='\''$ac_val'\''"
2253 done | sort
2254 echo
2256 if test -n "$ac_subst_files"; then
2257 $as_echo "## ------------------- ##
2258 ## File substitutions. ##
2259 ## ------------------- ##"
2260 echo
2261 for ac_var in $ac_subst_files
2263 eval ac_val=\$$ac_var
2264 case $ac_val in
2265 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266 esac
2267 $as_echo "$ac_var='\''$ac_val'\''"
2268 done | sort
2269 echo
2272 if test -s confdefs.h; then
2273 $as_echo "## ----------- ##
2274 ## confdefs.h. ##
2275 ## ----------- ##"
2276 echo
2277 cat confdefs.h
2278 echo
2280 test "$ac_signal" != 0 &&
2281 $as_echo "$as_me: caught signal $ac_signal"
2282 $as_echo "$as_me: exit $exit_status"
2283 } >&5
2284 rm -f core *.core core.conftest.* &&
2285 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2286 exit $exit_status
2288 for ac_signal in 1 2 13 15; do
2289 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2290 done
2291 ac_signal=0
2293 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2294 rm -f -r conftest* confdefs.h
2296 $as_echo "/* confdefs.h */" > confdefs.h
2298 # Predefined preprocessor variables.
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_NAME "$PACKAGE_NAME"
2302 _ACEOF
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2306 _ACEOF
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2310 _ACEOF
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_STRING "$PACKAGE_STRING"
2314 _ACEOF
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2318 _ACEOF
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_URL "$PACKAGE_URL"
2322 _ACEOF
2325 # Let the site file select an alternate cache file if it wants to.
2326 # Prefer an explicitly selected file to automatically selected ones.
2327 ac_site_file1=NONE
2328 ac_site_file2=NONE
2329 if test -n "$CONFIG_SITE"; then
2330 # We do not want a PATH search for config.site.
2331 case $CONFIG_SITE in #((
2332 -*) ac_site_file1=./$CONFIG_SITE;;
2333 */*) ac_site_file1=$CONFIG_SITE;;
2334 *) ac_site_file1=./$CONFIG_SITE;;
2335 esac
2336 elif test "x$prefix" != xNONE; then
2337 ac_site_file1=$prefix/share/config.site
2338 ac_site_file2=$prefix/etc/config.site
2339 else
2340 ac_site_file1=$ac_default_prefix/share/config.site
2341 ac_site_file2=$ac_default_prefix/etc/config.site
2343 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2345 test "x$ac_site_file" = xNONE && continue
2346 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2348 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2349 sed 's/^/| /' "$ac_site_file" >&5
2350 . "$ac_site_file" \
2351 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2353 as_fn_error $? "failed to load site script $ac_site_file
2354 See \`config.log' for more details" "$LINENO" 5; }
2356 done
2358 if test -r "$cache_file"; then
2359 # Some versions of bash will fail to source /dev/null (special files
2360 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2361 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2363 $as_echo "$as_me: loading cache $cache_file" >&6;}
2364 case $cache_file in
2365 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2366 *) . "./$cache_file";;
2367 esac
2369 else
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2371 $as_echo "$as_me: creating cache $cache_file" >&6;}
2372 >$cache_file
2375 # Check that the precious variables saved in the cache have kept the same
2376 # value.
2377 ac_cache_corrupted=false
2378 for ac_var in $ac_precious_vars; do
2379 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2380 eval ac_new_set=\$ac_env_${ac_var}_set
2381 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2382 eval ac_new_val=\$ac_env_${ac_var}_value
2383 case $ac_old_set,$ac_new_set in
2384 set,)
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2386 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2387 ac_cache_corrupted=: ;;
2388 ,set)
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2390 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2391 ac_cache_corrupted=: ;;
2392 ,);;
2394 if test "x$ac_old_val" != "x$ac_new_val"; then
2395 # differences in whitespace do not lead to failure.
2396 ac_old_val_w=`echo x $ac_old_val`
2397 ac_new_val_w=`echo x $ac_new_val`
2398 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2400 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2401 ac_cache_corrupted=:
2402 else
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2404 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2405 eval $ac_var=\$ac_old_val
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2408 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2410 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2411 fi;;
2412 esac
2413 # Pass precious variables to config.status.
2414 if test "$ac_new_set" = set; then
2415 case $ac_new_val in
2416 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2417 *) ac_arg=$ac_var=$ac_new_val ;;
2418 esac
2419 case " $ac_configure_args " in
2420 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2421 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2422 esac
2424 done
2425 if $ac_cache_corrupted; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2429 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2430 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2432 ## -------------------- ##
2433 ## Main body of script. ##
2434 ## -------------------- ##
2436 ac_ext=c
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2447 # AC_CONFIG_MACRO_DIR([config])
2448 ac_config_headers="$ac_config_headers config.h"
2451 libtool_VERSION=18:0:0
2454 # Default to --enable-multilib
2455 # Check whether --enable-multilib was given.
2456 if test "${enable_multilib+set}" = set; then :
2457 enableval=$enable_multilib; case "$enableval" in
2458 yes) multilib=yes ;;
2459 no) multilib=no ;;
2460 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2461 esac
2462 else
2463 multilib=yes
2467 # We may get other options which we leave undocumented:
2468 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2469 # See config-ml.in if you want the gory details.
2471 if test "$srcdir" = "."; then
2472 if test "$with_target_subdir" != "."; then
2473 multi_basedir="$srcdir/$with_multisrctop../.."
2474 else
2475 multi_basedir="$srcdir/$with_multisrctop.."
2477 else
2478 multi_basedir="$srcdir/.."
2482 # Even if the default multilib is not a cross compilation,
2483 # it may be that some of the other multilibs are.
2484 if test $cross_compiling = no && test $multilib = yes \
2485 && test "x${with_multisubdir}" != x ; then
2486 cross_compiling=maybe
2489 ac_config_commands="$ac_config_commands default-1"
2494 ac_aux_dir=
2495 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2496 if test -f "$ac_dir/install-sh"; then
2497 ac_aux_dir=$ac_dir
2498 ac_install_sh="$ac_aux_dir/install-sh -c"
2499 break
2500 elif test -f "$ac_dir/install.sh"; then
2501 ac_aux_dir=$ac_dir
2502 ac_install_sh="$ac_aux_dir/install.sh -c"
2503 break
2504 elif test -f "$ac_dir/shtool"; then
2505 ac_aux_dir=$ac_dir
2506 ac_install_sh="$ac_aux_dir/shtool install -c"
2507 break
2509 done
2510 if test -z "$ac_aux_dir"; then
2511 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2514 # These three variables are undocumented and unsupported,
2515 # and are intended to be withdrawn in a future Autoconf release.
2516 # They can cause serious problems if a builder's source tree is in a directory
2517 # whose full name contains unusual characters.
2518 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2519 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2520 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2523 # Expand $ac_aux_dir to an absolute path.
2524 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2526 ac_ext=c
2527 ac_cpp='$CPP $CPPFLAGS'
2528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531 if test -n "$ac_tool_prefix"; then
2532 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2533 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535 $as_echo_n "checking for $ac_word... " >&6; }
2536 if ${ac_cv_prog_CC+:} false; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2541 else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2545 IFS=$as_save_IFS
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2549 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 break 2
2553 done
2554 done
2555 IFS=$as_save_IFS
2559 CC=$ac_cv_prog_CC
2560 if test -n "$CC"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2562 $as_echo "$CC" >&6; }
2563 else
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565 $as_echo "no" >&6; }
2570 if test -z "$ac_cv_prog_CC"; then
2571 ac_ct_CC=$CC
2572 # Extract the first word of "gcc", so it can be a program name with args.
2573 set dummy gcc; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 if test -n "$ac_ct_CC"; then
2580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589 ac_cv_prog_ac_ct_CC="gcc"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2593 done
2594 done
2595 IFS=$as_save_IFS
2599 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2600 if test -n "$ac_ct_CC"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2602 $as_echo "$ac_ct_CC" >&6; }
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2608 if test "x$ac_ct_CC" = x; then
2609 CC=""
2610 else
2611 case $cross_compiling:$ac_tool_warned in
2612 yes:)
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2615 ac_tool_warned=yes ;;
2616 esac
2617 CC=$ac_ct_CC
2619 else
2620 CC="$ac_cv_prog_CC"
2623 if test -z "$CC"; then
2624 if test -n "$ac_tool_prefix"; then
2625 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2626 set dummy ${ac_tool_prefix}cc; ac_word=$2
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628 $as_echo_n "checking for $ac_word... " >&6; }
2629 if ${ac_cv_prog_CC+:} false; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2642 ac_cv_prog_CC="${ac_tool_prefix}cc"
2643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 break 2
2646 done
2647 done
2648 IFS=$as_save_IFS
2652 CC=$ac_cv_prog_CC
2653 if test -n "$CC"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2655 $as_echo "$CC" >&6; }
2656 else
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 $as_echo "no" >&6; }
2664 if test -z "$CC"; then
2665 # Extract the first word of "cc", so it can be a program name with args.
2666 set dummy cc; ac_word=$2
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668 $as_echo_n "checking for $ac_word... " >&6; }
2669 if ${ac_cv_prog_CC+:} false; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 if test -n "$CC"; then
2673 ac_cv_prog_CC="$CC" # Let the user override the test.
2674 else
2675 ac_prog_rejected=no
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2683 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2684 ac_prog_rejected=yes
2685 continue
2687 ac_cv_prog_CC="cc"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2691 done
2692 done
2693 IFS=$as_save_IFS
2695 if test $ac_prog_rejected = yes; then
2696 # We found a bogon in the path, so make sure we never use it.
2697 set dummy $ac_cv_prog_CC
2698 shift
2699 if test $# != 0; then
2700 # We chose a different compiler from the bogus one.
2701 # However, it has the same basename, so the bogon will be chosen
2702 # first if we set CC to just the basename; use the full file name.
2703 shift
2704 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2709 CC=$ac_cv_prog_CC
2710 if test -n "$CC"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2712 $as_echo "$CC" >&6; }
2713 else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 $as_echo "no" >&6; }
2720 if test -z "$CC"; then
2721 if test -n "$ac_tool_prefix"; then
2722 for ac_prog in cl.exe
2724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2725 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if ${ac_cv_prog_CC+:} false; then :
2729 $as_echo_n "(cached) " >&6
2730 else
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2745 done
2746 done
2747 IFS=$as_save_IFS
2751 CC=$ac_cv_prog_CC
2752 if test -n "$CC"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2754 $as_echo "$CC" >&6; }
2755 else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2761 test -n "$CC" && break
2762 done
2764 if test -z "$CC"; then
2765 ac_ct_CC=$CC
2766 for ac_prog in cl.exe
2768 # Extract the first word of "$ac_prog", so it can be a program name with args.
2769 set dummy $ac_prog; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 if test -n "$ac_ct_CC"; then
2776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785 ac_cv_prog_ac_ct_CC="$ac_prog"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2789 done
2790 done
2791 IFS=$as_save_IFS
2795 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2796 if test -n "$ac_ct_CC"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2798 $as_echo "$ac_ct_CC" >&6; }
2799 else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2805 test -n "$ac_ct_CC" && break
2806 done
2808 if test "x$ac_ct_CC" = x; then
2809 CC=""
2810 else
2811 case $cross_compiling:$ac_tool_warned in
2812 yes:)
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2815 ac_tool_warned=yes ;;
2816 esac
2817 CC=$ac_ct_CC
2824 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2826 as_fn_error $? "no acceptable C compiler found in \$PATH
2827 See \`config.log' for more details" "$LINENO" 5; }
2829 # Provide some information about the compiler.
2830 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2831 set X $ac_compile
2832 ac_compiler=$2
2833 for ac_option in --version -v -V -qversion; do
2834 { { ac_try="$ac_compiler $ac_option >&5"
2835 case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838 esac
2839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2840 $as_echo "$ac_try_echo"; } >&5
2841 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2842 ac_status=$?
2843 if test -s conftest.err; then
2844 sed '10a\
2845 ... rest of stderr output deleted ...
2846 10q' conftest.err >conftest.er1
2847 cat conftest.er1 >&5
2849 rm -f conftest.er1 conftest.err
2850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2851 test $ac_status = 0; }
2852 done
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855 /* end confdefs.h. */
2856 #include <stdio.h>
2858 main ()
2860 printf ("hello world\n");
2862 return 0;
2864 _ACEOF
2865 # FIXME: Cleanup?
2866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
2867 (eval $ac_link) 2>&5
2868 ac_status=$?
2869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2870 test $ac_status = 0; }; then :
2871 gcc_no_link=no
2872 else
2873 gcc_no_link=yes
2875 if test x$gcc_no_link = xyes; then
2876 # Setting cross_compile will disable run tests; it will
2877 # also disable AC_CHECK_FILE but that's generally
2878 # correct if we can't link.
2879 cross_compiling=yes
2880 EXEEXT=
2881 else
2882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2883 /* end confdefs.h. */
2886 main ()
2890 return 0;
2892 _ACEOF
2893 ac_clean_files_save=$ac_clean_files
2894 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2895 # Try to create an executable without -o first, disregard a.out.
2896 # It will help us diagnose broken compilers, and finding out an intuition
2897 # of exeext.
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2899 $as_echo_n "checking whether the C compiler works... " >&6; }
2900 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2902 # The possible output files:
2903 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2905 ac_rmfiles=
2906 for ac_file in $ac_files
2908 case $ac_file in
2909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2910 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2911 esac
2912 done
2913 rm -f $ac_rmfiles
2915 if { { ac_try="$ac_link_default"
2916 case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919 esac
2920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2921 $as_echo "$ac_try_echo"; } >&5
2922 (eval "$ac_link_default") 2>&5
2923 ac_status=$?
2924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2925 test $ac_status = 0; }; then :
2926 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2927 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2928 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2929 # so that the user can short-circuit this test for compilers unknown to
2930 # Autoconf.
2931 for ac_file in $ac_files ''
2933 test -f "$ac_file" || continue
2934 case $ac_file in
2935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2937 [ab].out )
2938 # We found the default executable, but exeext='' is most
2939 # certainly right.
2940 break;;
2941 *.* )
2942 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2943 then :; else
2944 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2946 # We set ac_cv_exeext here because the later test for it is not
2947 # safe: cross compilers may not add the suffix if given an `-o'
2948 # argument, so we may need to know it at that point already.
2949 # Even if this section looks crufty: it has the advantage of
2950 # actually working.
2951 break;;
2953 break;;
2954 esac
2955 done
2956 test "$ac_cv_exeext" = no && ac_cv_exeext=
2958 else
2959 ac_file=''
2961 if test -z "$ac_file"; then :
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 $as_echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969 as_fn_error 77 "C compiler cannot create executables
2970 See \`config.log' for more details" "$LINENO" 5; }
2971 else
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2973 $as_echo "yes" >&6; }
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2976 $as_echo_n "checking for C compiler default output file name... " >&6; }
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2978 $as_echo "$ac_file" >&6; }
2979 ac_exeext=$ac_cv_exeext
2981 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2982 ac_clean_files=$ac_clean_files_save
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2984 $as_echo_n "checking for suffix of executables... " >&6; }
2985 if { { ac_try="$ac_link"
2986 case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989 esac
2990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2991 $as_echo "$ac_try_echo"; } >&5
2992 (eval "$ac_link") 2>&5
2993 ac_status=$?
2994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2995 test $ac_status = 0; }; then :
2996 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2997 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2998 # work properly (i.e., refer to `conftest.exe'), while it won't with
2999 # `rm'.
3000 for ac_file in conftest.exe conftest conftest.*; do
3001 test -f "$ac_file" || continue
3002 case $ac_file in
3003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3004 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3005 break;;
3006 * ) break;;
3007 esac
3008 done
3009 else
3010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3012 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3013 See \`config.log' for more details" "$LINENO" 5; }
3015 rm -f conftest conftest$ac_cv_exeext
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3017 $as_echo "$ac_cv_exeext" >&6; }
3019 rm -f conftest.$ac_ext
3020 EXEEXT=$ac_cv_exeext
3021 ac_exeext=$EXEEXT
3022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023 /* end confdefs.h. */
3024 #include <stdio.h>
3026 main ()
3028 FILE *f = fopen ("conftest.out", "w");
3029 return ferror (f) || fclose (f) != 0;
3032 return 0;
3034 _ACEOF
3035 ac_clean_files="$ac_clean_files conftest.out"
3036 # Check that the compiler produces executables we can run. If not, either
3037 # the compiler is broken, or we cross compile.
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3039 $as_echo_n "checking whether we are cross compiling... " >&6; }
3040 if test "$cross_compiling" != yes; then
3041 { { ac_try="$ac_link"
3042 case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045 esac
3046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3047 $as_echo "$ac_try_echo"; } >&5
3048 (eval "$ac_link") 2>&5
3049 ac_status=$?
3050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051 test $ac_status = 0; }
3052 if { ac_try='./conftest$ac_cv_exeext'
3053 { { case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058 $as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_try") 2>&5
3060 ac_status=$?
3061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3062 test $ac_status = 0; }; }; then
3063 cross_compiling=no
3064 else
3065 if test "$cross_compiling" = maybe; then
3066 cross_compiling=yes
3067 else
3068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3070 as_fn_error $? "cannot run C compiled programs.
3071 If you meant to cross compile, use \`--host'.
3072 See \`config.log' for more details" "$LINENO" 5; }
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3077 $as_echo "$cross_compiling" >&6; }
3079 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3080 ac_clean_files=$ac_clean_files_save
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3083 $as_echo_n "checking for suffix of object files... " >&6; }
3084 if ${ac_cv_objext+:} false; then :
3085 $as_echo_n "(cached) " >&6
3086 else
3087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h. */
3091 main ()
3095 return 0;
3097 _ACEOF
3098 rm -f conftest.o conftest.obj
3099 if { { ac_try="$ac_compile"
3100 case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103 esac
3104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3105 $as_echo "$ac_try_echo"; } >&5
3106 (eval "$ac_compile") 2>&5
3107 ac_status=$?
3108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109 test $ac_status = 0; }; then :
3110 for ac_file in conftest.o conftest.obj conftest.*; do
3111 test -f "$ac_file" || continue;
3112 case $ac_file in
3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3114 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3115 break;;
3116 esac
3117 done
3118 else
3119 $as_echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124 as_fn_error $? "cannot compute suffix of object files: cannot compile
3125 See \`config.log' for more details" "$LINENO" 5; }
3127 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3130 $as_echo "$ac_cv_objext" >&6; }
3131 OBJEXT=$ac_cv_objext
3132 ac_objext=$OBJEXT
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3134 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3135 if ${ac_cv_c_compiler_gnu+:} false; then :
3136 $as_echo_n "(cached) " >&6
3137 else
3138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139 /* end confdefs.h. */
3142 main ()
3144 #ifndef __GNUC__
3145 choke me
3146 #endif
3149 return 0;
3151 _ACEOF
3152 if ac_fn_c_try_compile "$LINENO"; then :
3153 ac_compiler_gnu=yes
3154 else
3155 ac_compiler_gnu=no
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3162 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3163 if test $ac_compiler_gnu = yes; then
3164 GCC=yes
3165 else
3166 GCC=
3168 ac_test_CFLAGS=${CFLAGS+set}
3169 ac_save_CFLAGS=$CFLAGS
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3171 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3172 if ${ac_cv_prog_cc_g+:} false; then :
3173 $as_echo_n "(cached) " >&6
3174 else
3175 ac_save_c_werror_flag=$ac_c_werror_flag
3176 ac_c_werror_flag=yes
3177 ac_cv_prog_cc_g=no
3178 CFLAGS="-g"
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180 /* end confdefs.h. */
3183 main ()
3187 return 0;
3189 _ACEOF
3190 if ac_fn_c_try_compile "$LINENO"; then :
3191 ac_cv_prog_cc_g=yes
3192 else
3193 CFLAGS=""
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3198 main ()
3202 return 0;
3204 _ACEOF
3205 if ac_fn_c_try_compile "$LINENO"; then :
3207 else
3208 ac_c_werror_flag=$ac_save_c_werror_flag
3209 CFLAGS="-g"
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h. */
3214 main ()
3218 return 0;
3220 _ACEOF
3221 if ac_fn_c_try_compile "$LINENO"; then :
3222 ac_cv_prog_cc_g=yes
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_c_werror_flag=$ac_save_c_werror_flag
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3232 $as_echo "$ac_cv_prog_cc_g" >&6; }
3233 if test "$ac_test_CFLAGS" = set; then
3234 CFLAGS=$ac_save_CFLAGS
3235 elif test $ac_cv_prog_cc_g = yes; then
3236 if test "$GCC" = yes; then
3237 CFLAGS="-g -O2"
3238 else
3239 CFLAGS="-g"
3241 else
3242 if test "$GCC" = yes; then
3243 CFLAGS="-O2"
3244 else
3245 CFLAGS=
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3249 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3250 if ${ac_cv_prog_cc_c89+:} false; then :
3251 $as_echo_n "(cached) " >&6
3252 else
3253 ac_cv_prog_cc_c89=no
3254 ac_save_CC=$CC
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h. */
3257 #include <stdarg.h>
3258 #include <stdio.h>
3259 struct stat;
3260 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3261 struct buf { int x; };
3262 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3263 static char *e (p, i)
3264 char **p;
3265 int i;
3267 return p[i];
3269 static char *f (char * (*g) (char **, int), char **p, ...)
3271 char *s;
3272 va_list v;
3273 va_start (v,p);
3274 s = g (p, va_arg (v,int));
3275 va_end (v);
3276 return s;
3279 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3280 function prototypes and stuff, but not '\xHH' hex character constants.
3281 These don't provoke an error unfortunately, instead are silently treated
3282 as 'x'. The following induces an error, until -std is added to get
3283 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3284 array size at least. It's necessary to write '\x00'==0 to get something
3285 that's true only with -std. */
3286 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3288 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3289 inside strings and character constants. */
3290 #define FOO(x) 'x'
3291 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3293 int test (int i, double x);
3294 struct s1 {int (*f) (int a);};
3295 struct s2 {int (*f) (double a);};
3296 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3297 int argc;
3298 char **argv;
3300 main ()
3302 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3304 return 0;
3306 _ACEOF
3307 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3308 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3310 CC="$ac_save_CC $ac_arg"
3311 if ac_fn_c_try_compile "$LINENO"; then :
3312 ac_cv_prog_cc_c89=$ac_arg
3314 rm -f core conftest.err conftest.$ac_objext
3315 test "x$ac_cv_prog_cc_c89" != "xno" && break
3316 done
3317 rm -f conftest.$ac_ext
3318 CC=$ac_save_CC
3321 # AC_CACHE_VAL
3322 case "x$ac_cv_prog_cc_c89" in
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3325 $as_echo "none needed" >&6; } ;;
3326 xno)
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3328 $as_echo "unsupported" >&6; } ;;
3330 CC="$CC $ac_cv_prog_cc_c89"
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3332 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3333 esac
3334 if test "x$ac_cv_prog_cc_c89" != xno; then :
3338 ac_ext=c
3339 ac_cpp='$CPP $CPPFLAGS'
3340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3344 ac_ext=c
3345 ac_cpp='$CPP $CPPFLAGS'
3346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3350 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3351 if ${am_cv_prog_cc_c_o+:} false; then :
3352 $as_echo_n "(cached) " >&6
3353 else
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3358 main ()
3362 return 0;
3364 _ACEOF
3365 # Make sure it works both with $CC and with simple cc.
3366 # Following AC_PROG_CC_C_O, we do the test twice because some
3367 # compilers refuse to overwrite an existing .o file with -o,
3368 # though they will create one.
3369 am_cv_prog_cc_c_o=yes
3370 for am_i in 1 2; do
3371 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3372 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3373 ac_status=$?
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } \
3376 && test -f conftest2.$ac_objext; then
3377 : OK
3378 else
3379 am_cv_prog_cc_c_o=no
3380 break
3382 done
3383 rm -f core conftest*
3384 unset am_i
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3387 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3388 if test "$am_cv_prog_cc_c_o" != yes; then
3389 # Losing compiler, so override with the script.
3390 # FIXME: It is wrong to rewrite CC.
3391 # But if we don't then we get into trouble of one sort or another.
3392 # A longer-term fix would be to have automake use am__CC in this case,
3393 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3394 CC="$am_aux_dir/compile $CC"
3396 ac_ext=c
3397 ac_cpp='$CPP $CPPFLAGS'
3398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404 ac_ext=c
3405 ac_cpp='$CPP $CPPFLAGS'
3406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3410 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3411 # On Suns, sometimes $CPP names a directory.
3412 if test -n "$CPP" && test -d "$CPP"; then
3413 CPP=
3415 if test -z "$CPP"; then
3416 if ${ac_cv_prog_CPP+:} false; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 # Double quotes because CPP needs to be expanded
3420 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3422 ac_preproc_ok=false
3423 for ac_c_preproc_warn_flag in '' yes
3425 # Use a header file that comes with gcc, so configuring glibc
3426 # with a fresh cross-compiler works.
3427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428 # <limits.h> exists even on freestanding compilers.
3429 # On the NeXT, cc -E runs the code through the compiler's parser,
3430 # not just through cpp. "Syntax error" is here to catch this case.
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3433 #ifdef __STDC__
3434 # include <limits.h>
3435 #else
3436 # include <assert.h>
3437 #endif
3438 Syntax error
3439 _ACEOF
3440 if ac_fn_c_try_cpp "$LINENO"; then :
3442 else
3443 # Broken: fails on valid input.
3444 continue
3446 rm -f conftest.err conftest.i conftest.$ac_ext
3448 # OK, works on sane cases. Now check whether nonexistent headers
3449 # can be detected and how.
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3452 #include <ac_nonexistent.h>
3453 _ACEOF
3454 if ac_fn_c_try_cpp "$LINENO"; then :
3455 # Broken: success on invalid input.
3456 continue
3457 else
3458 # Passes both tests.
3459 ac_preproc_ok=:
3460 break
3462 rm -f conftest.err conftest.i conftest.$ac_ext
3464 done
3465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3466 rm -f conftest.i conftest.err conftest.$ac_ext
3467 if $ac_preproc_ok; then :
3468 break
3471 done
3472 ac_cv_prog_CPP=$CPP
3475 CPP=$ac_cv_prog_CPP
3476 else
3477 ac_cv_prog_CPP=$CPP
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3480 $as_echo "$CPP" >&6; }
3481 ac_preproc_ok=false
3482 for ac_c_preproc_warn_flag in '' yes
3484 # Use a header file that comes with gcc, so configuring glibc
3485 # with a fresh cross-compiler works.
3486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3487 # <limits.h> exists even on freestanding compilers.
3488 # On the NeXT, cc -E runs the code through the compiler's parser,
3489 # not just through cpp. "Syntax error" is here to catch this case.
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3492 #ifdef __STDC__
3493 # include <limits.h>
3494 #else
3495 # include <assert.h>
3496 #endif
3497 Syntax error
3498 _ACEOF
3499 if ac_fn_c_try_cpp "$LINENO"; then :
3501 else
3502 # Broken: fails on valid input.
3503 continue
3505 rm -f conftest.err conftest.i conftest.$ac_ext
3507 # OK, works on sane cases. Now check whether nonexistent headers
3508 # can be detected and how.
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3511 #include <ac_nonexistent.h>
3512 _ACEOF
3513 if ac_fn_c_try_cpp "$LINENO"; then :
3514 # Broken: success on invalid input.
3515 continue
3516 else
3517 # Passes both tests.
3518 ac_preproc_ok=:
3519 break
3521 rm -f conftest.err conftest.i conftest.$ac_ext
3523 done
3524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3525 rm -f conftest.i conftest.err conftest.$ac_ext
3526 if $ac_preproc_ok; then :
3528 else
3529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3532 See \`config.log' for more details" "$LINENO" 5; }
3535 ac_ext=c
3536 ac_cpp='$CPP $CPPFLAGS'
3537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3543 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3544 if ${ac_cv_path_GREP+:} false; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 if test -z "$GREP"; then
3548 ac_path_GREP_found=false
3549 # Loop through the user's path and test for each of PROGNAME-LIST
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_prog in grep ggrep; do
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3558 as_fn_executable_p "$ac_path_GREP" || continue
3559 # Check for GNU ac_path_GREP and select it if it is found.
3560 # Check for GNU $ac_path_GREP
3561 case `"$ac_path_GREP" --version 2>&1` in
3562 *GNU*)
3563 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3565 ac_count=0
3566 $as_echo_n 0123456789 >"conftest.in"
3567 while :
3569 cat "conftest.in" "conftest.in" >"conftest.tmp"
3570 mv "conftest.tmp" "conftest.in"
3571 cp "conftest.in" "conftest.nl"
3572 $as_echo 'GREP' >> "conftest.nl"
3573 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3575 as_fn_arith $ac_count + 1 && ac_count=$as_val
3576 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3577 # Best one so far, save it but keep looking for a better one
3578 ac_cv_path_GREP="$ac_path_GREP"
3579 ac_path_GREP_max=$ac_count
3581 # 10*(2^10) chars as input seems more than enough
3582 test $ac_count -gt 10 && break
3583 done
3584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3585 esac
3587 $ac_path_GREP_found && break 3
3588 done
3589 done
3590 done
3591 IFS=$as_save_IFS
3592 if test -z "$ac_cv_path_GREP"; then
3593 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3595 else
3596 ac_cv_path_GREP=$GREP
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3601 $as_echo "$ac_cv_path_GREP" >&6; }
3602 GREP="$ac_cv_path_GREP"
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3606 $as_echo_n "checking for egrep... " >&6; }
3607 if ${ac_cv_path_EGREP+:} false; then :
3608 $as_echo_n "(cached) " >&6
3609 else
3610 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3611 then ac_cv_path_EGREP="$GREP -E"
3612 else
3613 if test -z "$EGREP"; then
3614 ac_path_EGREP_found=false
3615 # Loop through the user's path and test for each of PROGNAME-LIST
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
3621 for ac_prog in egrep; do
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3624 as_fn_executable_p "$ac_path_EGREP" || continue
3625 # Check for GNU ac_path_EGREP and select it if it is found.
3626 # Check for GNU $ac_path_EGREP
3627 case `"$ac_path_EGREP" --version 2>&1` in
3628 *GNU*)
3629 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3631 ac_count=0
3632 $as_echo_n 0123456789 >"conftest.in"
3633 while :
3635 cat "conftest.in" "conftest.in" >"conftest.tmp"
3636 mv "conftest.tmp" "conftest.in"
3637 cp "conftest.in" "conftest.nl"
3638 $as_echo 'EGREP' >> "conftest.nl"
3639 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3641 as_fn_arith $ac_count + 1 && ac_count=$as_val
3642 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3643 # Best one so far, save it but keep looking for a better one
3644 ac_cv_path_EGREP="$ac_path_EGREP"
3645 ac_path_EGREP_max=$ac_count
3647 # 10*(2^10) chars as input seems more than enough
3648 test $ac_count -gt 10 && break
3649 done
3650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3651 esac
3653 $ac_path_EGREP_found && break 3
3654 done
3655 done
3656 done
3657 IFS=$as_save_IFS
3658 if test -z "$ac_cv_path_EGREP"; then
3659 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3661 else
3662 ac_cv_path_EGREP=$EGREP
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3668 $as_echo "$ac_cv_path_EGREP" >&6; }
3669 EGREP="$ac_cv_path_EGREP"
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3673 $as_echo_n "checking for ANSI C header files... " >&6; }
3674 if ${ac_cv_header_stdc+:} false; then :
3675 $as_echo_n "(cached) " >&6
3676 else
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679 #include <stdlib.h>
3680 #include <stdarg.h>
3681 #include <string.h>
3682 #include <float.h>
3685 main ()
3689 return 0;
3691 _ACEOF
3692 if ac_fn_c_try_compile "$LINENO"; then :
3693 ac_cv_header_stdc=yes
3694 else
3695 ac_cv_header_stdc=no
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 if test $ac_cv_header_stdc = yes; then
3700 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3703 #include <string.h>
3705 _ACEOF
3706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3707 $EGREP "memchr" >/dev/null 2>&1; then :
3709 else
3710 ac_cv_header_stdc=no
3712 rm -f conftest*
3716 if test $ac_cv_header_stdc = yes; then
3717 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3720 #include <stdlib.h>
3722 _ACEOF
3723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3724 $EGREP "free" >/dev/null 2>&1; then :
3726 else
3727 ac_cv_header_stdc=no
3729 rm -f conftest*
3733 if test $ac_cv_header_stdc = yes; then
3734 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3735 if test "$cross_compiling" = yes; then :
3737 else
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740 #include <ctype.h>
3741 #include <stdlib.h>
3742 #if ((' ' & 0x0FF) == 0x020)
3743 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3744 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3745 #else
3746 # define ISLOWER(c) \
3747 (('a' <= (c) && (c) <= 'i') \
3748 || ('j' <= (c) && (c) <= 'r') \
3749 || ('s' <= (c) && (c) <= 'z'))
3750 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3751 #endif
3753 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3755 main ()
3757 int i;
3758 for (i = 0; i < 256; i++)
3759 if (XOR (islower (i), ISLOWER (i))
3760 || toupper (i) != TOUPPER (i))
3761 return 2;
3762 return 0;
3764 _ACEOF
3765 if ac_fn_c_try_run "$LINENO"; then :
3767 else
3768 ac_cv_header_stdc=no
3770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3771 conftest.$ac_objext conftest.beam conftest.$ac_ext
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3777 $as_echo "$ac_cv_header_stdc" >&6; }
3778 if test $ac_cv_header_stdc = yes; then
3780 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3784 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3785 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3786 inttypes.h stdint.h unistd.h
3787 do :
3788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3789 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3791 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3792 cat >>confdefs.h <<_ACEOF
3793 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3794 _ACEOF
3798 done
3802 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3803 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3804 MINIX=yes
3805 else
3806 MINIX=
3810 if test "$MINIX" = yes; then
3812 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3815 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3818 $as_echo "#define _MINIX 1" >>confdefs.h
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3824 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3825 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3831 # define __EXTENSIONS__ 1
3832 $ac_includes_default
3834 main ()
3838 return 0;
3840 _ACEOF
3841 if ac_fn_c_try_compile "$LINENO"; then :
3842 ac_cv_safe_to_define___extensions__=yes
3843 else
3844 ac_cv_safe_to_define___extensions__=no
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3849 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3850 test $ac_cv_safe_to_define___extensions__ = yes &&
3851 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3853 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3855 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3857 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3859 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3863 # Do not delete or change the following two lines. For why, see
3864 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
3865 # Make sure we can run config.sub.
3866 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3867 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3870 $as_echo_n "checking build system type... " >&6; }
3871 if ${ac_cv_build+:} false; then :
3872 $as_echo_n "(cached) " >&6
3873 else
3874 ac_build_alias=$build_alias
3875 test "x$ac_build_alias" = x &&
3876 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3877 test "x$ac_build_alias" = x &&
3878 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3879 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3880 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3884 $as_echo "$ac_cv_build" >&6; }
3885 case $ac_cv_build in
3886 *-*-*) ;;
3887 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3888 esac
3889 build=$ac_cv_build
3890 ac_save_IFS=$IFS; IFS='-'
3891 set x $ac_cv_build
3892 shift
3893 build_cpu=$1
3894 build_vendor=$2
3895 shift; shift
3896 # Remember, the first character of IFS is used to create $*,
3897 # except with old shells:
3898 build_os=$*
3899 IFS=$ac_save_IFS
3900 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3904 $as_echo_n "checking host system type... " >&6; }
3905 if ${ac_cv_host+:} false; then :
3906 $as_echo_n "(cached) " >&6
3907 else
3908 if test "x$host_alias" = x; then
3909 ac_cv_host=$ac_cv_build
3910 else
3911 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3912 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3917 $as_echo "$ac_cv_host" >&6; }
3918 case $ac_cv_host in
3919 *-*-*) ;;
3920 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3921 esac
3922 host=$ac_cv_host
3923 ac_save_IFS=$IFS; IFS='-'
3924 set x $ac_cv_host
3925 shift
3926 host_cpu=$1
3927 host_vendor=$2
3928 shift; shift
3929 # Remember, the first character of IFS is used to create $*,
3930 # except with old shells:
3931 host_os=$*
3932 IFS=$ac_save_IFS
3933 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3937 $as_echo_n "checking target system type... " >&6; }
3938 if ${ac_cv_target+:} false; then :
3939 $as_echo_n "(cached) " >&6
3940 else
3941 if test "x$target_alias" = x; then
3942 ac_cv_target=$ac_cv_host
3943 else
3944 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3945 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3950 $as_echo "$ac_cv_target" >&6; }
3951 case $ac_cv_target in
3952 *-*-*) ;;
3953 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3954 esac
3955 target=$ac_cv_target
3956 ac_save_IFS=$IFS; IFS='-'
3957 set x $ac_cv_target
3958 shift
3959 target_cpu=$1
3960 target_vendor=$2
3961 shift; shift
3962 # Remember, the first character of IFS is used to create $*,
3963 # except with old shells:
3964 target_os=$*
3965 IFS=$ac_save_IFS
3966 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3969 # The aliases save the names the user supplied, while $host etc.
3970 # will get canonicalized.
3971 test -n "$target_alias" &&
3972 test "$program_prefix$program_suffix$program_transform_name" = \
3973 NONENONEs,x,x, &&
3974 program_prefix=${target_alias}-
3976 target_alias=${target_alias-$host_alias}
3979 am__api_version='1.15'
3981 # Find a good install program. We prefer a C program (faster),
3982 # so one script is as good as another. But avoid the broken or
3983 # incompatible versions:
3984 # SysV /etc/install, /usr/sbin/install
3985 # SunOS /usr/etc/install
3986 # IRIX /sbin/install
3987 # AIX /bin/install
3988 # AmigaOS /C/install, which installs bootblocks on floppy discs
3989 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3990 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3991 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3992 # OS/2's system install, which has a completely different semantic
3993 # ./install, which can be erroneously created by make from ./install.sh.
3994 # Reject install programs that cannot install multiple files.
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3996 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3997 if test -z "$INSTALL"; then
3998 if ${ac_cv_path_install+:} false; then :
3999 $as_echo_n "(cached) " >&6
4000 else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 # Account for people who put trailing slashes in PATH elements.
4007 case $as_dir/ in #((
4008 ./ | .// | /[cC]/* | \
4009 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4010 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4011 /usr/ucb/* ) ;;
4013 # OSF1 and SCO ODT 3.0 have their own names for install.
4014 # Don't use installbsd from OSF since it installs stuff as root
4015 # by default.
4016 for ac_prog in ginstall scoinst install; do
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4019 if test $ac_prog = install &&
4020 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4021 # AIX install. It has an incompatible calling convention.
4023 elif test $ac_prog = install &&
4024 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4025 # program-specific install script used by HP pwplus--don't use.
4027 else
4028 rm -rf conftest.one conftest.two conftest.dir
4029 echo one > conftest.one
4030 echo two > conftest.two
4031 mkdir conftest.dir
4032 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4033 test -s conftest.one && test -s conftest.two &&
4034 test -s conftest.dir/conftest.one &&
4035 test -s conftest.dir/conftest.two
4036 then
4037 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4038 break 3
4042 done
4043 done
4045 esac
4047 done
4048 IFS=$as_save_IFS
4050 rm -rf conftest.one conftest.two conftest.dir
4053 if test "${ac_cv_path_install+set}" = set; then
4054 INSTALL=$ac_cv_path_install
4055 else
4056 # As a last resort, use the slow shell script. Don't cache a
4057 # value for INSTALL within a source directory, because that will
4058 # break other packages using the cache if that directory is
4059 # removed, or if the value is a relative name.
4060 INSTALL=$ac_install_sh
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4064 $as_echo "$INSTALL" >&6; }
4066 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4067 # It thinks the first close brace ends the variable substitution.
4068 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4070 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4072 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4075 $as_echo_n "checking whether build environment is sane... " >&6; }
4076 # Reject unsafe characters in $srcdir or the absolute working directory
4077 # name. Accept space and tab only in the latter.
4078 am_lf='
4080 case `pwd` in
4081 *[\\\"\#\$\&\'\`$am_lf]*)
4082 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4083 esac
4084 case $srcdir in
4085 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4086 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4087 esac
4089 # Do 'set' in a subshell so we don't clobber the current shell's
4090 # arguments. Must try -L first in case configure is actually a
4091 # symlink; some systems play weird games with the mod time of symlinks
4092 # (eg FreeBSD returns the mod time of the symlink's containing
4093 # directory).
4094 if (
4095 am_has_slept=no
4096 for am_try in 1 2; do
4097 echo "timestamp, slept: $am_has_slept" > conftest.file
4098 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4099 if test "$*" = "X"; then
4100 # -L didn't work.
4101 set X `ls -t "$srcdir/configure" conftest.file`
4103 if test "$*" != "X $srcdir/configure conftest.file" \
4104 && test "$*" != "X conftest.file $srcdir/configure"; then
4106 # If neither matched, then we have a broken ls. This can happen
4107 # if, for instance, CONFIG_SHELL is bash and it inherits a
4108 # broken ls alias from the environment. This has actually
4109 # happened. Such a system could not be considered "sane".
4110 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4111 alias in your environment" "$LINENO" 5
4113 if test "$2" = conftest.file || test $am_try -eq 2; then
4114 break
4116 # Just in case.
4117 sleep 1
4118 am_has_slept=yes
4119 done
4120 test "$2" = conftest.file
4122 then
4123 # Ok.
4125 else
4126 as_fn_error $? "newly created file is older than distributed files!
4127 Check your system clock" "$LINENO" 5
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4130 $as_echo "yes" >&6; }
4131 # If we didn't sleep, we still need to ensure time stamps of config.status and
4132 # generated files are strictly newer.
4133 am_sleep_pid=
4134 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4135 ( sleep 1 ) &
4136 am_sleep_pid=$!
4139 rm -f conftest.file
4141 test "$program_prefix" != NONE &&
4142 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4143 # Use a double $ so make ignores it.
4144 test "$program_suffix" != NONE &&
4145 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4146 # Double any \ or $.
4147 # By default was `s,x,x', remove it if useless.
4148 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4149 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4151 if test x"${MISSING+set}" != xset; then
4152 case $am_aux_dir in
4153 *\ * | *\ *)
4154 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4156 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4157 esac
4159 # Use eval to expand $SHELL
4160 if eval "$MISSING --is-lightweight"; then
4161 am_missing_run="$MISSING "
4162 else
4163 am_missing_run=
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4165 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4168 if test x"${install_sh+set}" != xset; then
4169 case $am_aux_dir in
4170 *\ * | *\ *)
4171 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4173 install_sh="\${SHELL} $am_aux_dir/install-sh"
4174 esac
4177 # Installed binaries are usually stripped using 'strip' when the user
4178 # run "make install-strip". However 'strip' might not be the right
4179 # tool to use in cross-compilation environments, therefore Automake
4180 # will honor the 'STRIP' environment variable to overrule this program.
4181 if test "$cross_compiling" != no; then
4182 if test -n "$ac_tool_prefix"; then
4183 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4184 set dummy ${ac_tool_prefix}strip; ac_word=$2
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186 $as_echo_n "checking for $ac_word... " >&6; }
4187 if ${ac_cv_prog_STRIP+:} false; then :
4188 $as_echo_n "(cached) " >&6
4189 else
4190 if test -n "$STRIP"; then
4191 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4192 else
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH
4196 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 break 2
4204 done
4205 done
4206 IFS=$as_save_IFS
4210 STRIP=$ac_cv_prog_STRIP
4211 if test -n "$STRIP"; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4213 $as_echo "$STRIP" >&6; }
4214 else
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 $as_echo "no" >&6; }
4221 if test -z "$ac_cv_prog_STRIP"; then
4222 ac_ct_STRIP=$STRIP
4223 # Extract the first word of "strip", so it can be a program name with args.
4224 set dummy strip; ac_word=$2
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226 $as_echo_n "checking for $ac_word... " >&6; }
4227 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 if test -n "$ac_ct_STRIP"; then
4231 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4240 ac_cv_prog_ac_ct_STRIP="strip"
4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 break 2
4244 done
4245 done
4246 IFS=$as_save_IFS
4250 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4251 if test -n "$ac_ct_STRIP"; then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4253 $as_echo "$ac_ct_STRIP" >&6; }
4254 else
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4259 if test "x$ac_ct_STRIP" = x; then
4260 STRIP=":"
4261 else
4262 case $cross_compiling:$ac_tool_warned in
4263 yes:)
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4266 ac_tool_warned=yes ;;
4267 esac
4268 STRIP=$ac_ct_STRIP
4270 else
4271 STRIP="$ac_cv_prog_STRIP"
4275 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4278 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4279 if test -z "$MKDIR_P"; then
4280 if ${ac_cv_path_mkdir+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_prog in mkdir gmkdir; do
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4291 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4292 'mkdir (GNU coreutils) '* | \
4293 'mkdir (coreutils) '* | \
4294 'mkdir (fileutils) '4.1*)
4295 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4296 break 3;;
4297 esac
4298 done
4299 done
4300 done
4301 IFS=$as_save_IFS
4305 test -d ./--version && rmdir ./--version
4306 if test "${ac_cv_path_mkdir+set}" = set; then
4307 MKDIR_P="$ac_cv_path_mkdir -p"
4308 else
4309 # As a last resort, use the slow shell script. Don't cache a
4310 # value for MKDIR_P within a source directory, because that will
4311 # break other packages using the cache if that directory is
4312 # removed, or if the value is a relative name.
4313 MKDIR_P="$ac_install_sh -d"
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4317 $as_echo "$MKDIR_P" >&6; }
4319 for ac_prog in gawk mawk nawk awk
4321 # Extract the first word of "$ac_prog", so it can be a program name with args.
4322 set dummy $ac_prog; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if ${ac_cv_prog_AWK+:} false; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 if test -n "$AWK"; then
4329 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_AWK="$ac_prog"
4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 break 2
4342 done
4343 done
4344 IFS=$as_save_IFS
4348 AWK=$ac_cv_prog_AWK
4349 if test -n "$AWK"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4351 $as_echo "$AWK" >&6; }
4352 else
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4358 test -n "$AWK" && break
4359 done
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4362 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4363 set x ${MAKE-make}
4364 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4365 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 cat >conftest.make <<\_ACEOF
4369 SHELL = /bin/sh
4370 all:
4371 @echo '@@@%%%=$(MAKE)=@@@%%%'
4372 _ACEOF
4373 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4374 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4375 *@@@%%%=?*=@@@%%%*)
4376 eval ac_cv_prog_make_${ac_make}_set=yes;;
4378 eval ac_cv_prog_make_${ac_make}_set=no;;
4379 esac
4380 rm -f conftest.make
4382 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4384 $as_echo "yes" >&6; }
4385 SET_MAKE=
4386 else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4389 SET_MAKE="MAKE=${MAKE-make}"
4392 rm -rf .tst 2>/dev/null
4393 mkdir .tst 2>/dev/null
4394 if test -d .tst; then
4395 am__leading_dot=.
4396 else
4397 am__leading_dot=_
4399 rmdir .tst 2>/dev/null
4401 DEPDIR="${am__leading_dot}deps"
4403 ac_config_commands="$ac_config_commands depfiles"
4406 am_make=${MAKE-make}
4407 cat > confinc << 'END'
4408 am__doit:
4409 @echo this is the am__doit target
4410 .PHONY: am__doit
4412 # If we don't find an include directive, just comment out the code.
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4414 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4415 am__include="#"
4416 am__quote=
4417 _am_result=none
4418 # First try GNU make style include.
4419 echo "include confinc" > confmf
4420 # Ignore all kinds of additional output from 'make'.
4421 case `$am_make -s -f confmf 2> /dev/null` in #(
4422 *the\ am__doit\ target*)
4423 am__include=include
4424 am__quote=
4425 _am_result=GNU
4427 esac
4428 # Now try BSD make style include.
4429 if test "$am__include" = "#"; then
4430 echo '.include "confinc"' > confmf
4431 case `$am_make -s -f confmf 2> /dev/null` in #(
4432 *the\ am__doit\ target*)
4433 am__include=.include
4434 am__quote="\""
4435 _am_result=BSD
4437 esac
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4442 $as_echo "$_am_result" >&6; }
4443 rm -f confinc confmf
4445 # Check whether --enable-dependency-tracking was given.
4446 if test "${enable_dependency_tracking+set}" = set; then :
4447 enableval=$enable_dependency_tracking;
4450 if test "x$enable_dependency_tracking" != xno; then
4451 am_depcomp="$ac_aux_dir/depcomp"
4452 AMDEPBACKSLASH='\'
4453 am__nodep='_no'
4455 if test "x$enable_dependency_tracking" != xno; then
4456 AMDEP_TRUE=
4457 AMDEP_FALSE='#'
4458 else
4459 AMDEP_TRUE='#'
4460 AMDEP_FALSE=
4464 # Check whether --enable-silent-rules was given.
4465 if test "${enable_silent_rules+set}" = set; then :
4466 enableval=$enable_silent_rules;
4469 case $enable_silent_rules in # (((
4470 yes) AM_DEFAULT_VERBOSITY=0;;
4471 no) AM_DEFAULT_VERBOSITY=1;;
4472 *) AM_DEFAULT_VERBOSITY=1;;
4473 esac
4474 am_make=${MAKE-make}
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4476 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4477 if ${am_cv_make_support_nested_variables+:} false; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 if $as_echo 'TRUE=$(BAR$(V))
4481 BAR0=false
4482 BAR1=true
4484 am__doit:
4485 @$(TRUE)
4486 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4487 am_cv_make_support_nested_variables=yes
4488 else
4489 am_cv_make_support_nested_variables=no
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4493 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4494 if test $am_cv_make_support_nested_variables = yes; then
4495 AM_V='$(V)'
4496 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4497 else
4498 AM_V=$AM_DEFAULT_VERBOSITY
4499 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4501 AM_BACKSLASH='\'
4503 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4504 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4505 # is not polluted with repeated "-I."
4506 am__isrc=' -I$(srcdir)'
4507 # test to see if srcdir already configured
4508 if test -f $srcdir/config.status; then
4509 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4513 # test whether we have cygpath
4514 if test -z "$CYGPATH_W"; then
4515 if (cygpath --version) >/dev/null 2>/dev/null; then
4516 CYGPATH_W='cygpath -w'
4517 else
4518 CYGPATH_W=echo
4523 # Define the identity of the package.
4524 PACKAGE='libgm2'
4525 VERSION='version-unused'
4528 # Some tools Automake needs.
4530 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4533 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4536 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4539 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4542 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4544 # For better backward compatibility. To be removed once Automake 1.9.x
4545 # dies out for good. For more background, see:
4546 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4547 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4548 mkdir_p='$(MKDIR_P)'
4550 # We need awk for the "check" target (and possibly the TAP driver). The
4551 # system "awk" is bad on some platforms.
4552 # Always define AMTAR for backward compatibility. Yes, it's still used
4553 # in the wild :-( We should find a proper way to deprecate it ...
4554 AMTAR='$${TAR-tar}'
4557 # We'll loop over all known methods to create a tar archive until one works.
4558 _am_tools='gnutar pax cpio none'
4560 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4566 depcc="$CC" am_compiler_list=
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4569 $as_echo_n "checking dependency style of $depcc... " >&6; }
4570 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4574 # We make a subdir and do the tests there. Otherwise we can end up
4575 # making bogus files that we don't know about and never remove. For
4576 # instance it was reported that on HP-UX the gcc test will end up
4577 # making a dummy file named 'D' -- because '-MD' means "put the output
4578 # in D".
4579 rm -rf conftest.dir
4580 mkdir conftest.dir
4581 # Copy depcomp to subdir because otherwise we won't find it if we're
4582 # using a relative directory.
4583 cp "$am_depcomp" conftest.dir
4584 cd conftest.dir
4585 # We will build objects and dependencies in a subdirectory because
4586 # it helps to detect inapplicable dependency modes. For instance
4587 # both Tru64's cc and ICC support -MD to output dependencies as a
4588 # side effect of compilation, but ICC will put the dependencies in
4589 # the current directory while Tru64 will put them in the object
4590 # directory.
4591 mkdir sub
4593 am_cv_CC_dependencies_compiler_type=none
4594 if test "$am_compiler_list" = ""; then
4595 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4597 am__universal=false
4598 case " $depcc " in #(
4599 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4600 esac
4602 for depmode in $am_compiler_list; do
4603 # Setup a source with many dependencies, because some compilers
4604 # like to wrap large dependency lists on column 80 (with \), and
4605 # we should not choose a depcomp mode which is confused by this.
4607 # We need to recreate these files for each test, as the compiler may
4608 # overwrite some of them when testing with obscure command lines.
4609 # This happens at least with the AIX C compiler.
4610 : > sub/conftest.c
4611 for i in 1 2 3 4 5 6; do
4612 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4613 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4614 # Solaris 10 /bin/sh.
4615 echo '/* dummy */' > sub/conftst$i.h
4616 done
4617 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4619 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4620 # mode. It turns out that the SunPro C++ compiler does not properly
4621 # handle '-M -o', and we need to detect this. Also, some Intel
4622 # versions had trouble with output in subdirs.
4623 am__obj=sub/conftest.${OBJEXT-o}
4624 am__minus_obj="-o $am__obj"
4625 case $depmode in
4626 gcc)
4627 # This depmode causes a compiler race in universal mode.
4628 test "$am__universal" = false || continue
4630 nosideeffect)
4631 # After this tag, mechanisms are not by side-effect, so they'll
4632 # only be used when explicitly requested.
4633 if test "x$enable_dependency_tracking" = xyes; then
4634 continue
4635 else
4636 break
4639 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4640 # This compiler won't grok '-c -o', but also, the minuso test has
4641 # not run yet. These depmodes are late enough in the game, and
4642 # so weak that their functioning should not be impacted.
4643 am__obj=conftest.${OBJEXT-o}
4644 am__minus_obj=
4646 none) break ;;
4647 esac
4648 if depmode=$depmode \
4649 source=sub/conftest.c object=$am__obj \
4650 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4651 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4652 >/dev/null 2>conftest.err &&
4653 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4654 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4655 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4656 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4657 # icc doesn't choke on unknown options, it will just issue warnings
4658 # or remarks (even with -Werror). So we grep stderr for any message
4659 # that says an option was ignored or not supported.
4660 # When given -MP, icc 7.0 and 7.1 complain thusly:
4661 # icc: Command line warning: ignoring option '-M'; no argument required
4662 # The diagnosis changed in icc 8.0:
4663 # icc: Command line remark: option '-MP' not supported
4664 if (grep 'ignoring option' conftest.err ||
4665 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4666 am_cv_CC_dependencies_compiler_type=$depmode
4667 break
4670 done
4672 cd ..
4673 rm -rf conftest.dir
4674 else
4675 am_cv_CC_dependencies_compiler_type=none
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4680 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4681 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4684 test "x$enable_dependency_tracking" != xno \
4685 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4686 am__fastdepCC_TRUE=
4687 am__fastdepCC_FALSE='#'
4688 else
4689 am__fastdepCC_TRUE='#'
4690 am__fastdepCC_FALSE=
4695 # POSIX will say in a future version that running "rm -f" with no argument
4696 # is OK; and we want to be able to make that assumption in our Makefile
4697 # recipes. So use an aggressive probe to check that the usage we want is
4698 # actually supported "in the wild" to an acceptable degree.
4699 # See automake bug#10828.
4700 # To make any issue more visible, cause the running configure to be aborted
4701 # by default if the 'rm' program in use doesn't match our expectations; the
4702 # user can still override this though.
4703 if rm -f && rm -fr && rm -rf; then : OK; else
4704 cat >&2 <<'END'
4705 Oops!
4707 Your 'rm' program seems unable to run without file operands specified
4708 on the command line, even when the '-f' option is present. This is contrary
4709 to the behaviour of most rm programs out there, and not conforming with
4710 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4712 Please tell bug-automake@gnu.org about your system, including the value
4713 of your $PATH and any error possibly output before this message. This
4714 can help us improve future automake versions.
4717 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4718 echo 'Configuration will proceed anyway, since you have set the' >&2
4719 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4720 echo >&2
4721 else
4722 cat >&2 <<'END'
4723 Aborting the configuration process, to ensure you take notice of the issue.
4725 You can download and install GNU coreutils to get an 'rm' implementation
4726 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4728 If you want to complete the configuration process using your problematic
4729 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4730 to "yes", and re-run configure.
4733 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4742 # Check whether --with-cross-host was given.
4743 if test "${with_cross_host+set}" = set; then :
4744 withval=$with_cross_host;
4748 # Checks for header files.
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4750 $as_echo_n "checking for ANSI C header files... " >&6; }
4751 if ${ac_cv_header_stdc+:} false; then :
4752 $as_echo_n "(cached) " >&6
4753 else
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4756 #include <stdlib.h>
4757 #include <stdarg.h>
4758 #include <string.h>
4759 #include <float.h>
4762 main ()
4766 return 0;
4768 _ACEOF
4769 if ac_fn_c_try_compile "$LINENO"; then :
4770 ac_cv_header_stdc=yes
4771 else
4772 ac_cv_header_stdc=no
4774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 if test $ac_cv_header_stdc = yes; then
4777 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4780 #include <string.h>
4782 _ACEOF
4783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4784 $EGREP "memchr" >/dev/null 2>&1; then :
4786 else
4787 ac_cv_header_stdc=no
4789 rm -f conftest*
4793 if test $ac_cv_header_stdc = yes; then
4794 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797 #include <stdlib.h>
4799 _ACEOF
4800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4801 $EGREP "free" >/dev/null 2>&1; then :
4803 else
4804 ac_cv_header_stdc=no
4806 rm -f conftest*
4810 if test $ac_cv_header_stdc = yes; then
4811 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4812 if test "$cross_compiling" = yes; then :
4814 else
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4817 #include <ctype.h>
4818 #include <stdlib.h>
4819 #if ((' ' & 0x0FF) == 0x020)
4820 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4821 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4822 #else
4823 # define ISLOWER(c) \
4824 (('a' <= (c) && (c) <= 'i') \
4825 || ('j' <= (c) && (c) <= 'r') \
4826 || ('s' <= (c) && (c) <= 'z'))
4827 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4828 #endif
4830 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4832 main ()
4834 int i;
4835 for (i = 0; i < 256; i++)
4836 if (XOR (islower (i), ISLOWER (i))
4837 || toupper (i) != TOUPPER (i))
4838 return 2;
4839 return 0;
4841 _ACEOF
4842 if ac_fn_c_try_run "$LINENO"; then :
4844 else
4845 ac_cv_header_stdc=no
4847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4848 conftest.$ac_objext conftest.beam conftest.$ac_ext
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4854 $as_echo "$ac_cv_header_stdc" >&6; }
4855 if test $ac_cv_header_stdc = yes; then
4857 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4862 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4863 if ${ac_cv_header_sys_wait_h+:} false; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4868 #include <sys/types.h>
4869 #include <sys/wait.h>
4870 #ifndef WEXITSTATUS
4871 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4872 #endif
4873 #ifndef WIFEXITED
4874 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4875 #endif
4878 main ()
4880 int s;
4881 wait (&s);
4882 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4884 return 0;
4886 _ACEOF
4887 if ac_fn_c_try_compile "$LINENO"; then :
4888 ac_cv_header_sys_wait_h=yes
4889 else
4890 ac_cv_header_sys_wait_h=no
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4895 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4896 if test $ac_cv_header_sys_wait_h = yes; then
4898 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4902 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
4903 if test "x$ac_cv_header_math_h" = xyes; then :
4905 $as_echo "#define HAVE_MATH_H 1" >>confdefs.h
4911 for ac_header in limits.h stddef.h string.h strings.h stdlib.h \
4912 time.h \
4913 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
4914 sys/resource.h sys/param.h sys/times.h sys/stat.h \
4915 sys/socket.h \
4916 sys/wait.h sys/ioctl.h errno.h sys/errno.h \
4917 pwd.h direct.h dirent.h signal.h malloc.h langinfo.h \
4918 pthread.h stdarg.h stdio.h sys/types.h termios.h \
4919 netinet/in.h netdb.h sys/uio.h sys/stat.h wchar.h
4920 do :
4921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4922 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4923 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4924 cat >>confdefs.h <<_ACEOF
4925 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4926 _ACEOF
4930 done
4935 case ${build_alias} in
4936 "") build_noncanonical=${build} ;;
4937 *) build_noncanonical=${build_alias} ;;
4938 esac
4940 case ${host_alias} in
4941 "") host_noncanonical=${build_noncanonical} ;;
4942 *) host_noncanonical=${host_alias} ;;
4943 esac
4947 case ${target_alias} in
4948 "") target_noncanonical=${host_noncanonical} ;;
4949 *) target_noncanonical=${target_alias} ;;
4950 esac
4955 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
4956 # have matching libraries, they should use host libraries: Makefile.tpl
4957 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
4958 # However, they still use the build modules, because the corresponding
4959 # host modules (e.g. bison) are only built for the host when bootstrap
4960 # finishes. So:
4961 # - build_subdir is where we find build modules, and never changes.
4962 # - build_libsubdir is where we find build libraries, and can be overridden.
4964 # Prefix 'build-' so this never conflicts with target_subdir.
4965 build_subdir="build-${build_noncanonical}"
4967 # Check whether --with-build-libsubdir was given.
4968 if test "${with_build_libsubdir+set}" = set; then :
4969 withval=$with_build_libsubdir; build_libsubdir="$withval"
4970 else
4971 build_libsubdir="$build_subdir"
4974 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
4975 if ( test $srcdir = . && test -d gcc ) \
4976 || test -d $srcdir/../host-${host_noncanonical}; then
4977 host_subdir="host-${host_noncanonical}"
4978 else
4979 host_subdir=.
4981 # No prefix.
4982 target_subdir=${target_noncanonical}
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
4986 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
4987 # Check whether --enable-version-specific-runtime-libs was given.
4988 if test "${enable_version_specific_runtime_libs+set}" = set; then :
4989 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4990 yes) version_specific_libs=yes ;;
4991 no) version_specific_libs=no ;;
4992 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
4993 esac
4994 else
4995 version_specific_libs=no
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
4999 $as_echo "$version_specific_libs" >&6; }
5002 # Check whether --with-slibdir was given.
5003 if test "${with_slibdir+set}" = set; then :
5004 withval=$with_slibdir; slibdir="$with_slibdir"
5005 else
5006 if test "${version_specific_libs}" = yes; then
5007 slibdir='$(libsubdir)'
5008 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
5009 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
5010 else
5011 slibdir='$(libdir)'
5017 # Command-line options.
5018 # Very limited version of AC_MAINTAINER_MODE.
5019 # Check whether --enable-maintainer-mode was given.
5020 if test "${enable_maintainer_mode+set}" = set; then :
5021 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
5022 yes) MAINT='' ;;
5023 no) MAINT='#' ;;
5024 *) as_fn_error $? "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
5025 esac
5026 maintainer_mode=${enableval}
5027 else
5028 MAINT='#'
5032 toolexecdir=no
5033 toolexeclibdir=no
5035 # Calculate toolexeclibdir
5036 # Also toolexecdir, though it's only used in toolexeclibdir
5037 case ${version_specific_libs} in
5038 yes)
5039 # Need the gcc compiler version to know where to install libraries
5040 # and header files if --enable-version-specific-runtime-libs option
5041 # is selected.
5042 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
5043 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5046 if test -n "$with_cross_host" &&
5047 test x"$with_cross_host" != x"no"; then
5048 # Install a library built with a cross compiler in tooldir, not libdir.
5049 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
5050 toolexeclibdir='$(toolexecdir)/lib'
5051 else
5052 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
5053 toolexeclibdir='$(libdir)'
5055 multi_os_directory=`$CC -print-multi-os-directory`
5056 case $multi_os_directory in
5057 .) ;; # Avoid trailing /.
5058 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5059 esac
5061 esac
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5071 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5072 # Check whether --enable-maintainer-mode was given.
5073 if test "${enable_maintainer_mode+set}" = set; then :
5074 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5075 else
5076 USE_MAINTAINER_MODE=no
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5080 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5081 if test $USE_MAINTAINER_MODE = yes; then
5082 MAINTAINER_MODE_TRUE=
5083 MAINTAINER_MODE_FALSE='#'
5084 else
5085 MAINTAINER_MODE_TRUE='#'
5086 MAINTAINER_MODE_FALSE=
5089 MAINT=$MAINTAINER_MODE_TRUE
5093 # Check the compiler.
5094 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
5095 # We must force CC to /not/ be precious variables; otherwise
5096 # the wrong, non-multilib-adjusted value will be used in multilibs.
5097 # As a side effect, we have to subst CFLAGS ourselves.
5101 ac_ext=c
5102 ac_cpp='$CPP $CPPFLAGS'
5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106 if test -n "$ac_tool_prefix"; then
5107 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5108 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if ${ac_cv_prog_CC+:} false; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 if test -n "$CC"; then
5115 ac_cv_prog_CC="$CC" # Let the user override the test.
5116 else
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5124 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5128 done
5129 done
5130 IFS=$as_save_IFS
5134 CC=$ac_cv_prog_CC
5135 if test -n "$CC"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5137 $as_echo "$CC" >&6; }
5138 else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5145 if test -z "$ac_cv_prog_CC"; then
5146 ac_ct_CC=$CC
5147 # Extract the first word of "gcc", so it can be a program name with args.
5148 set dummy gcc; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 if test -n "$ac_ct_CC"; then
5155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5156 else
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164 ac_cv_prog_ac_ct_CC="gcc"
5165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5168 done
5169 done
5170 IFS=$as_save_IFS
5174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5175 if test -n "$ac_ct_CC"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5177 $as_echo "$ac_ct_CC" >&6; }
5178 else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5183 if test "x$ac_ct_CC" = x; then
5184 CC=""
5185 else
5186 case $cross_compiling:$ac_tool_warned in
5187 yes:)
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5190 ac_tool_warned=yes ;;
5191 esac
5192 CC=$ac_ct_CC
5194 else
5195 CC="$ac_cv_prog_CC"
5198 if test -z "$CC"; then
5199 if test -n "$ac_tool_prefix"; then
5200 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5201 set dummy ${ac_tool_prefix}cc; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if ${ac_cv_prog_CC+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 if test -n "$CC"; then
5208 ac_cv_prog_CC="$CC" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_CC="${ac_tool_prefix}cc"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5221 done
5222 done
5223 IFS=$as_save_IFS
5227 CC=$ac_cv_prog_CC
5228 if test -n "$CC"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5230 $as_echo "$CC" >&6; }
5231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5239 if test -z "$CC"; then
5240 # Extract the first word of "cc", so it can be a program name with args.
5241 set dummy cc; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if ${ac_cv_prog_CC+:} false; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 if test -n "$CC"; then
5248 ac_cv_prog_CC="$CC" # Let the user override the test.
5249 else
5250 ac_prog_rejected=no
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5259 ac_prog_rejected=yes
5260 continue
5262 ac_cv_prog_CC="cc"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5266 done
5267 done
5268 IFS=$as_save_IFS
5270 if test $ac_prog_rejected = yes; then
5271 # We found a bogon in the path, so make sure we never use it.
5272 set dummy $ac_cv_prog_CC
5273 shift
5274 if test $# != 0; then
5275 # We chose a different compiler from the bogus one.
5276 # However, it has the same basename, so the bogon will be chosen
5277 # first if we set CC to just the basename; use the full file name.
5278 shift
5279 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5284 CC=$ac_cv_prog_CC
5285 if test -n "$CC"; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5287 $as_echo "$CC" >&6; }
5288 else
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 $as_echo "no" >&6; }
5295 if test -z "$CC"; then
5296 if test -n "$ac_tool_prefix"; then
5297 for ac_prog in cl.exe
5299 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5300 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if ${ac_cv_prog_CC+:} false; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 if test -n "$CC"; then
5307 ac_cv_prog_CC="$CC" # Let the user override the test.
5308 else
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5316 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5320 done
5321 done
5322 IFS=$as_save_IFS
5326 CC=$ac_cv_prog_CC
5327 if test -n "$CC"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5329 $as_echo "$CC" >&6; }
5330 else
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5336 test -n "$CC" && break
5337 done
5339 if test -z "$CC"; then
5340 ac_ct_CC=$CC
5341 for ac_prog in cl.exe
5343 # Extract the first word of "$ac_prog", so it can be a program name with args.
5344 set dummy $ac_prog; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 if test -n "$ac_ct_CC"; then
5351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5352 else
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_prog_ac_ct_CC="$ac_prog"
5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5364 done
5365 done
5366 IFS=$as_save_IFS
5370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5371 if test -n "$ac_ct_CC"; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5373 $as_echo "$ac_ct_CC" >&6; }
5374 else
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5380 test -n "$ac_ct_CC" && break
5381 done
5383 if test "x$ac_ct_CC" = x; then
5384 CC=""
5385 else
5386 case $cross_compiling:$ac_tool_warned in
5387 yes:)
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5390 ac_tool_warned=yes ;;
5391 esac
5392 CC=$ac_ct_CC
5399 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5401 as_fn_error $? "no acceptable C compiler found in \$PATH
5402 See \`config.log' for more details" "$LINENO" 5; }
5404 # Provide some information about the compiler.
5405 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5406 set X $ac_compile
5407 ac_compiler=$2
5408 for ac_option in --version -v -V -qversion; do
5409 { { ac_try="$ac_compiler $ac_option >&5"
5410 case "(($ac_try" in
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5413 esac
5414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5415 $as_echo "$ac_try_echo"; } >&5
5416 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5417 ac_status=$?
5418 if test -s conftest.err; then
5419 sed '10a\
5420 ... rest of stderr output deleted ...
5421 10q' conftest.err >conftest.er1
5422 cat conftest.er1 >&5
5424 rm -f conftest.er1 conftest.err
5425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5426 test $ac_status = 0; }
5427 done
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5430 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5431 if ${ac_cv_c_compiler_gnu+:} false; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5438 main ()
5440 #ifndef __GNUC__
5441 choke me
5442 #endif
5445 return 0;
5447 _ACEOF
5448 if ac_fn_c_try_compile "$LINENO"; then :
5449 ac_compiler_gnu=yes
5450 else
5451 ac_compiler_gnu=no
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5458 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5459 if test $ac_compiler_gnu = yes; then
5460 GCC=yes
5461 else
5462 GCC=
5464 ac_test_CFLAGS=${CFLAGS+set}
5465 ac_save_CFLAGS=$CFLAGS
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5467 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5468 if ${ac_cv_prog_cc_g+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 ac_save_c_werror_flag=$ac_c_werror_flag
5472 ac_c_werror_flag=yes
5473 ac_cv_prog_cc_g=no
5474 CFLAGS="-g"
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5479 main ()
5483 return 0;
5485 _ACEOF
5486 if ac_fn_c_try_compile "$LINENO"; then :
5487 ac_cv_prog_cc_g=yes
5488 else
5489 CFLAGS=""
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491 /* end confdefs.h. */
5494 main ()
5498 return 0;
5500 _ACEOF
5501 if ac_fn_c_try_compile "$LINENO"; then :
5503 else
5504 ac_c_werror_flag=$ac_save_c_werror_flag
5505 CFLAGS="-g"
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5510 main ()
5514 return 0;
5516 _ACEOF
5517 if ac_fn_c_try_compile "$LINENO"; then :
5518 ac_cv_prog_cc_g=yes
5520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525 ac_c_werror_flag=$ac_save_c_werror_flag
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5528 $as_echo "$ac_cv_prog_cc_g" >&6; }
5529 if test "$ac_test_CFLAGS" = set; then
5530 CFLAGS=$ac_save_CFLAGS
5531 elif test $ac_cv_prog_cc_g = yes; then
5532 if test "$GCC" = yes; then
5533 CFLAGS="-g -O2"
5534 else
5535 CFLAGS="-g"
5537 else
5538 if test "$GCC" = yes; then
5539 CFLAGS="-O2"
5540 else
5541 CFLAGS=
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5545 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5546 if ${ac_cv_prog_cc_c89+:} false; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 ac_cv_prog_cc_c89=no
5550 ac_save_CC=$CC
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 #include <stdarg.h>
5554 #include <stdio.h>
5555 struct stat;
5556 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5557 struct buf { int x; };
5558 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5559 static char *e (p, i)
5560 char **p;
5561 int i;
5563 return p[i];
5565 static char *f (char * (*g) (char **, int), char **p, ...)
5567 char *s;
5568 va_list v;
5569 va_start (v,p);
5570 s = g (p, va_arg (v,int));
5571 va_end (v);
5572 return s;
5575 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5576 function prototypes and stuff, but not '\xHH' hex character constants.
5577 These don't provoke an error unfortunately, instead are silently treated
5578 as 'x'. The following induces an error, until -std is added to get
5579 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5580 array size at least. It's necessary to write '\x00'==0 to get something
5581 that's true only with -std. */
5582 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5584 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5585 inside strings and character constants. */
5586 #define FOO(x) 'x'
5587 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5589 int test (int i, double x);
5590 struct s1 {int (*f) (int a);};
5591 struct s2 {int (*f) (double a);};
5592 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5593 int argc;
5594 char **argv;
5596 main ()
5598 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5600 return 0;
5602 _ACEOF
5603 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5604 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5606 CC="$ac_save_CC $ac_arg"
5607 if ac_fn_c_try_compile "$LINENO"; then :
5608 ac_cv_prog_cc_c89=$ac_arg
5610 rm -f core conftest.err conftest.$ac_objext
5611 test "x$ac_cv_prog_cc_c89" != "xno" && break
5612 done
5613 rm -f conftest.$ac_ext
5614 CC=$ac_save_CC
5617 # AC_CACHE_VAL
5618 case "x$ac_cv_prog_cc_c89" in
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5621 $as_echo "none needed" >&6; } ;;
5622 xno)
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5624 $as_echo "unsupported" >&6; } ;;
5626 CC="$CC $ac_cv_prog_cc_c89"
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5628 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5629 esac
5630 if test "x$ac_cv_prog_cc_c89" != xno; then :
5634 ac_ext=c
5635 ac_cpp='$CPP $CPPFLAGS'
5636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5640 ac_ext=c
5641 ac_cpp='$CPP $CPPFLAGS'
5642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5646 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5647 if ${am_cv_prog_cc_c_o+:} false; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5654 main ()
5658 return 0;
5660 _ACEOF
5661 # Make sure it works both with $CC and with simple cc.
5662 # Following AC_PROG_CC_C_O, we do the test twice because some
5663 # compilers refuse to overwrite an existing .o file with -o,
5664 # though they will create one.
5665 am_cv_prog_cc_c_o=yes
5666 for am_i in 1 2; do
5667 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5668 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5669 ac_status=$?
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } \
5672 && test -f conftest2.$ac_objext; then
5673 : OK
5674 else
5675 am_cv_prog_cc_c_o=no
5676 break
5678 done
5679 rm -f core conftest*
5680 unset am_i
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5683 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5684 if test "$am_cv_prog_cc_c_o" != yes; then
5685 # Losing compiler, so override with the script.
5686 # FIXME: It is wrong to rewrite CC.
5687 # But if we don't then we get into trouble of one sort or another.
5688 # A longer-term fix would be to have automake use am__CC in this case,
5689 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5690 CC="$am_aux_dir/compile $CC"
5692 ac_ext=c
5693 ac_cpp='$CPP $CPPFLAGS'
5694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699 ac_ext=cpp
5700 ac_cpp='$CXXCPP $CPPFLAGS'
5701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5704 if test -z "$CXX"; then
5705 if test -n "$CCC"; then
5706 CXX=$CCC
5707 else
5708 if test -n "$ac_tool_prefix"; then
5709 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5711 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5712 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if ${ac_cv_prog_CXX+:} false; then :
5716 $as_echo_n "(cached) " >&6
5717 else
5718 if test -n "$CXX"; then
5719 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5720 else
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 for as_dir in $PATH
5724 IFS=$as_save_IFS
5725 test -z "$as_dir" && as_dir=.
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5728 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 break 2
5732 done
5733 done
5734 IFS=$as_save_IFS
5738 CXX=$ac_cv_prog_CXX
5739 if test -n "$CXX"; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5741 $as_echo "$CXX" >&6; }
5742 else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 $as_echo "no" >&6; }
5748 test -n "$CXX" && break
5749 done
5751 if test -z "$CXX"; then
5752 ac_ct_CXX=$CXX
5753 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5755 # Extract the first word of "$ac_prog", so it can be a program name with args.
5756 set dummy $ac_prog; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 if test -n "$ac_ct_CXX"; then
5763 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772 ac_cv_prog_ac_ct_CXX="$ac_prog"
5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5776 done
5777 done
5778 IFS=$as_save_IFS
5782 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5783 if test -n "$ac_ct_CXX"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5785 $as_echo "$ac_ct_CXX" >&6; }
5786 else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5792 test -n "$ac_ct_CXX" && break
5793 done
5795 if test "x$ac_ct_CXX" = x; then
5796 CXX="g++"
5797 else
5798 case $cross_compiling:$ac_tool_warned in
5799 yes:)
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5802 ac_tool_warned=yes ;;
5803 esac
5804 CXX=$ac_ct_CXX
5810 # Provide some information about the compiler.
5811 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5812 set X $ac_compile
5813 ac_compiler=$2
5814 for ac_option in --version -v -V -qversion; do
5815 { { ac_try="$ac_compiler $ac_option >&5"
5816 case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819 esac
5820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5821 $as_echo "$ac_try_echo"; } >&5
5822 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5823 ac_status=$?
5824 if test -s conftest.err; then
5825 sed '10a\
5826 ... rest of stderr output deleted ...
5827 10q' conftest.err >conftest.er1
5828 cat conftest.er1 >&5
5830 rm -f conftest.er1 conftest.err
5831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5832 test $ac_status = 0; }
5833 done
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5836 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5837 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5844 main ()
5846 #ifndef __GNUC__
5847 choke me
5848 #endif
5851 return 0;
5853 _ACEOF
5854 if ac_fn_cxx_try_compile "$LINENO"; then :
5855 ac_compiler_gnu=yes
5856 else
5857 ac_compiler_gnu=no
5859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5860 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5864 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5865 if test $ac_compiler_gnu = yes; then
5866 GXX=yes
5867 else
5868 GXX=
5870 ac_test_CXXFLAGS=${CXXFLAGS+set}
5871 ac_save_CXXFLAGS=$CXXFLAGS
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5873 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5874 if ${ac_cv_prog_cxx_g+:} false; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5878 ac_cxx_werror_flag=yes
5879 ac_cv_prog_cxx_g=no
5880 CXXFLAGS="-g"
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5885 main ()
5889 return 0;
5891 _ACEOF
5892 if ac_fn_cxx_try_compile "$LINENO"; then :
5893 ac_cv_prog_cxx_g=yes
5894 else
5895 CXXFLAGS=""
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5900 main ()
5904 return 0;
5906 _ACEOF
5907 if ac_fn_cxx_try_compile "$LINENO"; then :
5909 else
5910 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5911 CXXFLAGS="-g"
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5916 main ()
5920 return 0;
5922 _ACEOF
5923 if ac_fn_cxx_try_compile "$LINENO"; then :
5924 ac_cv_prog_cxx_g=yes
5926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5934 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5935 if test "$ac_test_CXXFLAGS" = set; then
5936 CXXFLAGS=$ac_save_CXXFLAGS
5937 elif test $ac_cv_prog_cxx_g = yes; then
5938 if test "$GXX" = yes; then
5939 CXXFLAGS="-g -O2"
5940 else
5941 CXXFLAGS="-g"
5943 else
5944 if test "$GXX" = yes; then
5945 CXXFLAGS="-O2"
5946 else
5947 CXXFLAGS=
5950 ac_ext=c
5951 ac_cpp='$CPP $CPPFLAGS'
5952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5956 depcc="$CXX" am_compiler_list=
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5959 $as_echo_n "checking dependency style of $depcc... " >&6; }
5960 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5964 # We make a subdir and do the tests there. Otherwise we can end up
5965 # making bogus files that we don't know about and never remove. For
5966 # instance it was reported that on HP-UX the gcc test will end up
5967 # making a dummy file named 'D' -- because '-MD' means "put the output
5968 # in D".
5969 rm -rf conftest.dir
5970 mkdir conftest.dir
5971 # Copy depcomp to subdir because otherwise we won't find it if we're
5972 # using a relative directory.
5973 cp "$am_depcomp" conftest.dir
5974 cd conftest.dir
5975 # We will build objects and dependencies in a subdirectory because
5976 # it helps to detect inapplicable dependency modes. For instance
5977 # both Tru64's cc and ICC support -MD to output dependencies as a
5978 # side effect of compilation, but ICC will put the dependencies in
5979 # the current directory while Tru64 will put them in the object
5980 # directory.
5981 mkdir sub
5983 am_cv_CXX_dependencies_compiler_type=none
5984 if test "$am_compiler_list" = ""; then
5985 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5987 am__universal=false
5988 case " $depcc " in #(
5989 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5990 esac
5992 for depmode in $am_compiler_list; do
5993 # Setup a source with many dependencies, because some compilers
5994 # like to wrap large dependency lists on column 80 (with \), and
5995 # we should not choose a depcomp mode which is confused by this.
5997 # We need to recreate these files for each test, as the compiler may
5998 # overwrite some of them when testing with obscure command lines.
5999 # This happens at least with the AIX C compiler.
6000 : > sub/conftest.c
6001 for i in 1 2 3 4 5 6; do
6002 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6003 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6004 # Solaris 10 /bin/sh.
6005 echo '/* dummy */' > sub/conftst$i.h
6006 done
6007 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6009 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6010 # mode. It turns out that the SunPro C++ compiler does not properly
6011 # handle '-M -o', and we need to detect this. Also, some Intel
6012 # versions had trouble with output in subdirs.
6013 am__obj=sub/conftest.${OBJEXT-o}
6014 am__minus_obj="-o $am__obj"
6015 case $depmode in
6016 gcc)
6017 # This depmode causes a compiler race in universal mode.
6018 test "$am__universal" = false || continue
6020 nosideeffect)
6021 # After this tag, mechanisms are not by side-effect, so they'll
6022 # only be used when explicitly requested.
6023 if test "x$enable_dependency_tracking" = xyes; then
6024 continue
6025 else
6026 break
6029 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6030 # This compiler won't grok '-c -o', but also, the minuso test has
6031 # not run yet. These depmodes are late enough in the game, and
6032 # so weak that their functioning should not be impacted.
6033 am__obj=conftest.${OBJEXT-o}
6034 am__minus_obj=
6036 none) break ;;
6037 esac
6038 if depmode=$depmode \
6039 source=sub/conftest.c object=$am__obj \
6040 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6041 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6042 >/dev/null 2>conftest.err &&
6043 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6044 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6045 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6046 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6047 # icc doesn't choke on unknown options, it will just issue warnings
6048 # or remarks (even with -Werror). So we grep stderr for any message
6049 # that says an option was ignored or not supported.
6050 # When given -MP, icc 7.0 and 7.1 complain thusly:
6051 # icc: Command line warning: ignoring option '-M'; no argument required
6052 # The diagnosis changed in icc 8.0:
6053 # icc: Command line remark: option '-MP' not supported
6054 if (grep 'ignoring option' conftest.err ||
6055 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6056 am_cv_CXX_dependencies_compiler_type=$depmode
6057 break
6060 done
6062 cd ..
6063 rm -rf conftest.dir
6064 else
6065 am_cv_CXX_dependencies_compiler_type=none
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6070 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6071 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6074 test "x$enable_dependency_tracking" != xno \
6075 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6076 am__fastdepCXX_TRUE=
6077 am__fastdepCXX_FALSE='#'
6078 else
6079 am__fastdepCXX_TRUE='#'
6080 am__fastdepCXX_FALSE=
6084 # By default we simply use the C compiler to build assembly code.
6086 test "${CCAS+set}" = set || CCAS=$CC
6087 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6091 depcc="$CCAS" am_compiler_list=
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6094 $as_echo_n "checking dependency style of $depcc... " >&6; }
6095 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6099 # We make a subdir and do the tests there. Otherwise we can end up
6100 # making bogus files that we don't know about and never remove. For
6101 # instance it was reported that on HP-UX the gcc test will end up
6102 # making a dummy file named 'D' -- because '-MD' means "put the output
6103 # in D".
6104 rm -rf conftest.dir
6105 mkdir conftest.dir
6106 # Copy depcomp to subdir because otherwise we won't find it if we're
6107 # using a relative directory.
6108 cp "$am_depcomp" conftest.dir
6109 cd conftest.dir
6110 # We will build objects and dependencies in a subdirectory because
6111 # it helps to detect inapplicable dependency modes. For instance
6112 # both Tru64's cc and ICC support -MD to output dependencies as a
6113 # side effect of compilation, but ICC will put the dependencies in
6114 # the current directory while Tru64 will put them in the object
6115 # directory.
6116 mkdir sub
6118 am_cv_CCAS_dependencies_compiler_type=none
6119 if test "$am_compiler_list" = ""; then
6120 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6122 am__universal=false
6125 for depmode in $am_compiler_list; do
6126 # Setup a source with many dependencies, because some compilers
6127 # like to wrap large dependency lists on column 80 (with \), and
6128 # we should not choose a depcomp mode which is confused by this.
6130 # We need to recreate these files for each test, as the compiler may
6131 # overwrite some of them when testing with obscure command lines.
6132 # This happens at least with the AIX C compiler.
6133 : > sub/conftest.c
6134 for i in 1 2 3 4 5 6; do
6135 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6136 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6137 # Solaris 10 /bin/sh.
6138 echo '/* dummy */' > sub/conftst$i.h
6139 done
6140 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6142 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6143 # mode. It turns out that the SunPro C++ compiler does not properly
6144 # handle '-M -o', and we need to detect this. Also, some Intel
6145 # versions had trouble with output in subdirs.
6146 am__obj=sub/conftest.${OBJEXT-o}
6147 am__minus_obj="-o $am__obj"
6148 case $depmode in
6149 gcc)
6150 # This depmode causes a compiler race in universal mode.
6151 test "$am__universal" = false || continue
6153 nosideeffect)
6154 # After this tag, mechanisms are not by side-effect, so they'll
6155 # only be used when explicitly requested.
6156 if test "x$enable_dependency_tracking" = xyes; then
6157 continue
6158 else
6159 break
6162 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6163 # This compiler won't grok '-c -o', but also, the minuso test has
6164 # not run yet. These depmodes are late enough in the game, and
6165 # so weak that their functioning should not be impacted.
6166 am__obj=conftest.${OBJEXT-o}
6167 am__minus_obj=
6169 none) break ;;
6170 esac
6171 if depmode=$depmode \
6172 source=sub/conftest.c object=$am__obj \
6173 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6174 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6175 >/dev/null 2>conftest.err &&
6176 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6177 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6178 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6179 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6180 # icc doesn't choke on unknown options, it will just issue warnings
6181 # or remarks (even with -Werror). So we grep stderr for any message
6182 # that says an option was ignored or not supported.
6183 # When given -MP, icc 7.0 and 7.1 complain thusly:
6184 # icc: Command line warning: ignoring option '-M'; no argument required
6185 # The diagnosis changed in icc 8.0:
6186 # icc: Command line remark: option '-MP' not supported
6187 if (grep 'ignoring option' conftest.err ||
6188 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6189 am_cv_CCAS_dependencies_compiler_type=$depmode
6190 break
6193 done
6195 cd ..
6196 rm -rf conftest.dir
6197 else
6198 am_cv_CCAS_dependencies_compiler_type=none
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6203 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6204 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6207 test "x$enable_dependency_tracking" != xno \
6208 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6209 am__fastdepCCAS_TRUE=
6210 am__fastdepCCAS_FALSE='#'
6211 else
6212 am__fastdepCCAS_TRUE='#'
6213 am__fastdepCCAS_FALSE=
6221 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
6222 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
6223 # in both places for now and restore CFLAGS at the end of config.
6224 save_CFLAGS="$CFLAGS"
6226 # Find other programs we need.
6227 if test -n "$ac_tool_prefix"; then
6228 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6229 set dummy ${ac_tool_prefix}ar; ac_word=$2
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231 $as_echo_n "checking for $ac_word... " >&6; }
6232 if ${ac_cv_prog_AR+:} false; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6235 if test -n "$AR"; then
6236 ac_cv_prog_AR="$AR" # Let the user override the test.
6237 else
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6245 ac_cv_prog_AR="${ac_tool_prefix}ar"
6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 break 2
6249 done
6250 done
6251 IFS=$as_save_IFS
6255 AR=$ac_cv_prog_AR
6256 if test -n "$AR"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6258 $as_echo "$AR" >&6; }
6259 else
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6266 if test -z "$ac_cv_prog_AR"; then
6267 ac_ct_AR=$AR
6268 # Extract the first word of "ar", so it can be a program name with args.
6269 set dummy ar; ac_word=$2
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271 $as_echo_n "checking for $ac_word... " >&6; }
6272 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 if test -n "$ac_ct_AR"; then
6276 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6277 else
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 for as_dir in $PATH
6281 IFS=$as_save_IFS
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6285 ac_cv_prog_ac_ct_AR="ar"
6286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 break 2
6289 done
6290 done
6291 IFS=$as_save_IFS
6295 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6296 if test -n "$ac_ct_AR"; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6298 $as_echo "$ac_ct_AR" >&6; }
6299 else
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301 $as_echo "no" >&6; }
6304 if test "x$ac_ct_AR" = x; then
6305 AR=""
6306 else
6307 case $cross_compiling:$ac_tool_warned in
6308 yes:)
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6311 ac_tool_warned=yes ;;
6312 esac
6313 AR=$ac_ct_AR
6315 else
6316 AR="$ac_cv_prog_AR"
6319 if test -n "$ac_tool_prefix"; then
6320 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6321 set dummy ${ac_tool_prefix}nm; ac_word=$2
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if ${ac_cv_prog_NM+:} false; then :
6325 $as_echo_n "(cached) " >&6
6326 else
6327 if test -n "$NM"; then
6328 ac_cv_prog_NM="$NM" # Let the user override the test.
6329 else
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 for as_dir in $PATH
6333 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337 ac_cv_prog_NM="${ac_tool_prefix}nm"
6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 break 2
6341 done
6342 done
6343 IFS=$as_save_IFS
6347 NM=$ac_cv_prog_NM
6348 if test -n "$NM"; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
6350 $as_echo "$NM" >&6; }
6351 else
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6358 if test -z "$ac_cv_prog_NM"; then
6359 ac_ct_NM=$NM
6360 # Extract the first word of "nm", so it can be a program name with args.
6361 set dummy nm; ac_word=$2
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363 $as_echo_n "checking for $ac_word... " >&6; }
6364 if ${ac_cv_prog_ac_ct_NM+:} false; then :
6365 $as_echo_n "(cached) " >&6
6366 else
6367 if test -n "$ac_ct_NM"; then
6368 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6369 else
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 for as_dir in $PATH
6373 IFS=$as_save_IFS
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6377 ac_cv_prog_ac_ct_NM="nm"
6378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 break 2
6381 done
6382 done
6383 IFS=$as_save_IFS
6387 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6388 if test -n "$ac_ct_NM"; then
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
6390 $as_echo "$ac_ct_NM" >&6; }
6391 else
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393 $as_echo "no" >&6; }
6396 if test "x$ac_ct_NM" = x; then
6397 NM=""
6398 else
6399 case $cross_compiling:$ac_tool_warned in
6400 yes:)
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6403 ac_tool_warned=yes ;;
6404 esac
6405 NM=$ac_ct_NM
6407 else
6408 NM="$ac_cv_prog_NM"
6411 if test -n "$ac_tool_prefix"; then
6412 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6413 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if ${ac_cv_prog_RANLIB+:} false; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 if test -n "$RANLIB"; then
6420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6421 else
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6429 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 break 2
6433 done
6434 done
6435 IFS=$as_save_IFS
6439 RANLIB=$ac_cv_prog_RANLIB
6440 if test -n "$RANLIB"; then
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6442 $as_echo "$RANLIB" >&6; }
6443 else
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445 $as_echo "no" >&6; }
6450 if test -z "$ac_cv_prog_RANLIB"; then
6451 ac_ct_RANLIB=$RANLIB
6452 # Extract the first word of "ranlib", so it can be a program name with args.
6453 set dummy ranlib; ac_word=$2
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 if test -n "$ac_ct_RANLIB"; then
6460 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6461 else
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6469 ac_cv_prog_ac_ct_RANLIB="ranlib"
6470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 break 2
6473 done
6474 done
6475 IFS=$as_save_IFS
6479 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6480 if test -n "$ac_ct_RANLIB"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6482 $as_echo "$ac_ct_RANLIB" >&6; }
6483 else
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6488 if test "x$ac_ct_RANLIB" = x; then
6489 RANLIB="ranlib-not-found-in-path-error"
6490 else
6491 case $cross_compiling:$ac_tool_warned in
6492 yes:)
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6495 ac_tool_warned=yes ;;
6496 esac
6497 RANLIB=$ac_ct_RANLIB
6499 else
6500 RANLIB="$ac_cv_prog_RANLIB"
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6504 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6505 set x ${MAKE-make}
6506 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6507 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6508 $as_echo_n "(cached) " >&6
6509 else
6510 cat >conftest.make <<\_ACEOF
6511 SHELL = /bin/sh
6512 all:
6513 @echo '@@@%%%=$(MAKE)=@@@%%%'
6514 _ACEOF
6515 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6516 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6517 *@@@%%%=?*=@@@%%%*)
6518 eval ac_cv_prog_make_${ac_make}_set=yes;;
6520 eval ac_cv_prog_make_${ac_make}_set=no;;
6521 esac
6522 rm -f conftest.make
6524 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6526 $as_echo "yes" >&6; }
6527 SET_MAKE=
6528 else
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6531 SET_MAKE="MAKE=${MAKE-make}"
6536 enable_dlopen=yes
6540 case `pwd` in
6541 *\ * | *\ *)
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6543 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6544 esac
6548 macro_version='2.2.7a'
6549 macro_revision='1.3134'
6563 ltmain="$ac_aux_dir/ltmain.sh"
6565 # Backslashify metacharacters that are still active within
6566 # double-quoted strings.
6567 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6569 # Same as above, but do not quote variable references.
6570 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6572 # Sed substitution to delay expansion of an escaped shell variable in a
6573 # double_quote_subst'ed string.
6574 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6576 # Sed substitution to delay expansion of an escaped single quote.
6577 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6579 # Sed substitution to avoid accidental globbing in evaled expressions
6580 no_glob_subst='s/\*/\\\*/g'
6582 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6583 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6584 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6587 $as_echo_n "checking how to print strings... " >&6; }
6588 # Test print first, because it will be a builtin if present.
6589 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6590 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6591 ECHO='print -r --'
6592 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6593 ECHO='printf %s\n'
6594 else
6595 # Use this function as a fallback that always works.
6596 func_fallback_echo ()
6598 eval 'cat <<_LTECHO_EOF
6600 _LTECHO_EOF'
6602 ECHO='func_fallback_echo'
6605 # func_echo_all arg...
6606 # Invoke $ECHO with all args, space-separated.
6607 func_echo_all ()
6609 $ECHO ""
6612 case "$ECHO" in
6613 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6614 $as_echo "printf" >&6; } ;;
6615 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6616 $as_echo "print -r" >&6; } ;;
6617 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6618 $as_echo "cat" >&6; } ;;
6619 esac
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6635 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6636 if ${ac_cv_path_SED+:} false; then :
6637 $as_echo_n "(cached) " >&6
6638 else
6639 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6640 for ac_i in 1 2 3 4 5 6 7; do
6641 ac_script="$ac_script$as_nl$ac_script"
6642 done
6643 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6644 { ac_script=; unset ac_script;}
6645 if test -z "$SED"; then
6646 ac_path_SED_found=false
6647 # Loop through the user's path and test for each of PROGNAME-LIST
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6651 IFS=$as_save_IFS
6652 test -z "$as_dir" && as_dir=.
6653 for ac_prog in sed gsed; do
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6656 as_fn_executable_p "$ac_path_SED" || continue
6657 # Check for GNU ac_path_SED and select it if it is found.
6658 # Check for GNU $ac_path_SED
6659 case `"$ac_path_SED" --version 2>&1` in
6660 *GNU*)
6661 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6663 ac_count=0
6664 $as_echo_n 0123456789 >"conftest.in"
6665 while :
6667 cat "conftest.in" "conftest.in" >"conftest.tmp"
6668 mv "conftest.tmp" "conftest.in"
6669 cp "conftest.in" "conftest.nl"
6670 $as_echo '' >> "conftest.nl"
6671 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6673 as_fn_arith $ac_count + 1 && ac_count=$as_val
6674 if test $ac_count -gt ${ac_path_SED_max-0}; then
6675 # Best one so far, save it but keep looking for a better one
6676 ac_cv_path_SED="$ac_path_SED"
6677 ac_path_SED_max=$ac_count
6679 # 10*(2^10) chars as input seems more than enough
6680 test $ac_count -gt 10 && break
6681 done
6682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6683 esac
6685 $ac_path_SED_found && break 3
6686 done
6687 done
6688 done
6689 IFS=$as_save_IFS
6690 if test -z "$ac_cv_path_SED"; then
6691 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6693 else
6694 ac_cv_path_SED=$SED
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6699 $as_echo "$ac_cv_path_SED" >&6; }
6700 SED="$ac_cv_path_SED"
6701 rm -f conftest.sed
6703 test -z "$SED" && SED=sed
6704 Xsed="$SED -e 1s/^X//"
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6717 $as_echo_n "checking for fgrep... " >&6; }
6718 if ${ac_cv_path_FGREP+:} false; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6722 then ac_cv_path_FGREP="$GREP -F"
6723 else
6724 if test -z "$FGREP"; then
6725 ac_path_FGREP_found=false
6726 # Loop through the user's path and test for each of PROGNAME-LIST
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_prog in fgrep; do
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6735 as_fn_executable_p "$ac_path_FGREP" || continue
6736 # Check for GNU ac_path_FGREP and select it if it is found.
6737 # Check for GNU $ac_path_FGREP
6738 case `"$ac_path_FGREP" --version 2>&1` in
6739 *GNU*)
6740 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6742 ac_count=0
6743 $as_echo_n 0123456789 >"conftest.in"
6744 while :
6746 cat "conftest.in" "conftest.in" >"conftest.tmp"
6747 mv "conftest.tmp" "conftest.in"
6748 cp "conftest.in" "conftest.nl"
6749 $as_echo 'FGREP' >> "conftest.nl"
6750 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6751 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6752 as_fn_arith $ac_count + 1 && ac_count=$as_val
6753 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6754 # Best one so far, save it but keep looking for a better one
6755 ac_cv_path_FGREP="$ac_path_FGREP"
6756 ac_path_FGREP_max=$ac_count
6758 # 10*(2^10) chars as input seems more than enough
6759 test $ac_count -gt 10 && break
6760 done
6761 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6762 esac
6764 $ac_path_FGREP_found && break 3
6765 done
6766 done
6767 done
6768 IFS=$as_save_IFS
6769 if test -z "$ac_cv_path_FGREP"; then
6770 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6772 else
6773 ac_cv_path_FGREP=$FGREP
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6779 $as_echo "$ac_cv_path_FGREP" >&6; }
6780 FGREP="$ac_cv_path_FGREP"
6783 test -z "$GREP" && GREP=grep
6803 # Check whether --with-gnu-ld was given.
6804 if test "${with_gnu_ld+set}" = set; then :
6805 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6806 else
6807 with_gnu_ld=no
6810 ac_prog=ld
6811 if test "$GCC" = yes; then
6812 # Check if gcc -print-prog-name=ld gives a path.
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6814 $as_echo_n "checking for ld used by $CC... " >&6; }
6815 case $host in
6816 *-*-mingw*)
6817 # gcc leaves a trailing carriage return which upsets mingw
6818 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6820 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6821 esac
6822 case $ac_prog in
6823 # Accept absolute paths.
6824 [\\/]* | ?:[\\/]*)
6825 re_direlt='/[^/][^/]*/\.\./'
6826 # Canonicalize the pathname of ld
6827 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6828 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6829 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6830 done
6831 test -z "$LD" && LD="$ac_prog"
6834 # If it fails, then pretend we aren't using GCC.
6835 ac_prog=ld
6838 # If it is relative, then search for the first ld in PATH.
6839 with_gnu_ld=unknown
6841 esac
6842 elif test "$with_gnu_ld" = yes; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6844 $as_echo_n "checking for GNU ld... " >&6; }
6845 else
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6847 $as_echo_n "checking for non-GNU ld... " >&6; }
6849 if ${lt_cv_path_LD+:} false; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 if test -z "$LD"; then
6853 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6854 for ac_dir in $PATH; do
6855 IFS="$lt_save_ifs"
6856 test -z "$ac_dir" && ac_dir=.
6857 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6858 lt_cv_path_LD="$ac_dir/$ac_prog"
6859 # Check to see if the program is GNU ld. I'd rather use --version,
6860 # but apparently some variants of GNU ld only accept -v.
6861 # Break only if it was the GNU/non-GNU ld that we prefer.
6862 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6863 *GNU* | *'with BFD'*)
6864 test "$with_gnu_ld" != no && break
6867 test "$with_gnu_ld" != yes && break
6869 esac
6871 done
6872 IFS="$lt_save_ifs"
6873 else
6874 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6878 LD="$lt_cv_path_LD"
6879 if test -n "$LD"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6881 $as_echo "$LD" >&6; }
6882 else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 $as_echo "no" >&6; }
6886 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6888 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6889 if ${lt_cv_prog_gnu_ld+:} false; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6893 case `$LD -v 2>&1 </dev/null` in
6894 *GNU* | *'with BFD'*)
6895 lt_cv_prog_gnu_ld=yes
6898 lt_cv_prog_gnu_ld=no
6900 esac
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6903 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6904 with_gnu_ld=$lt_cv_prog_gnu_ld
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6915 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6916 if ${lt_cv_path_NM+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 if test -n "$NM"; then
6920 # Let the user override the test.
6921 lt_cv_path_NM="$NM"
6922 else
6923 lt_nm_to_check="${ac_tool_prefix}nm"
6924 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6925 lt_nm_to_check="$lt_nm_to_check nm"
6927 for lt_tmp_nm in $lt_nm_to_check; do
6928 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6929 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6930 IFS="$lt_save_ifs"
6931 test -z "$ac_dir" && ac_dir=.
6932 tmp_nm="$ac_dir/$lt_tmp_nm"
6933 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6934 # Check to see if the nm accepts a BSD-compat flag.
6935 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6936 # nm: unknown option "B" ignored
6937 # Tru64's nm complains that /dev/null is an invalid object file
6938 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6939 */dev/null* | *'Invalid file or object type'*)
6940 lt_cv_path_NM="$tmp_nm -B"
6941 break
6944 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6945 */dev/null*)
6946 lt_cv_path_NM="$tmp_nm -p"
6947 break
6950 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6951 continue # so that we can try to find one that supports BSD flags
6953 esac
6955 esac
6957 done
6958 IFS="$lt_save_ifs"
6959 done
6960 : ${lt_cv_path_NM=no}
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6964 $as_echo "$lt_cv_path_NM" >&6; }
6965 if test "$lt_cv_path_NM" != "no"; then
6966 NM="$lt_cv_path_NM"
6967 else
6968 # Didn't find any BSD compatible name lister, look for dumpbin.
6969 if test -n "$DUMPBIN"; then :
6970 # Let the user override the test.
6971 else
6972 if test -n "$ac_tool_prefix"; then
6973 for ac_prog in dumpbin "link -dump"
6975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6976 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6978 $as_echo_n "checking for $ac_word... " >&6; }
6979 if ${ac_cv_prog_DUMPBIN+:} false; then :
6980 $as_echo_n "(cached) " >&6
6981 else
6982 if test -n "$DUMPBIN"; then
6983 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6984 else
6985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 for as_dir in $PATH
6988 IFS=$as_save_IFS
6989 test -z "$as_dir" && as_dir=.
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6992 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6994 break 2
6996 done
6997 done
6998 IFS=$as_save_IFS
7002 DUMPBIN=$ac_cv_prog_DUMPBIN
7003 if test -n "$DUMPBIN"; then
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7005 $as_echo "$DUMPBIN" >&6; }
7006 else
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7008 $as_echo "no" >&6; }
7012 test -n "$DUMPBIN" && break
7013 done
7015 if test -z "$DUMPBIN"; then
7016 ac_ct_DUMPBIN=$DUMPBIN
7017 for ac_prog in dumpbin "link -dump"
7019 # Extract the first word of "$ac_prog", so it can be a program name with args.
7020 set dummy $ac_prog; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7024 $as_echo_n "(cached) " >&6
7025 else
7026 if test -n "$ac_ct_DUMPBIN"; then
7027 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7028 else
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 break 2
7040 done
7041 done
7042 IFS=$as_save_IFS
7046 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7047 if test -n "$ac_ct_DUMPBIN"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7049 $as_echo "$ac_ct_DUMPBIN" >&6; }
7050 else
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7056 test -n "$ac_ct_DUMPBIN" && break
7057 done
7059 if test "x$ac_ct_DUMPBIN" = x; then
7060 DUMPBIN=":"
7061 else
7062 case $cross_compiling:$ac_tool_warned in
7063 yes:)
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7066 ac_tool_warned=yes ;;
7067 esac
7068 DUMPBIN=$ac_ct_DUMPBIN
7072 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7073 *COFF*)
7074 DUMPBIN="$DUMPBIN -symbols"
7077 DUMPBIN=:
7079 esac
7082 if test "$DUMPBIN" != ":"; then
7083 NM="$DUMPBIN"
7086 test -z "$NM" && NM=nm
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7094 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7095 if ${lt_cv_nm_interface+:} false; then :
7096 $as_echo_n "(cached) " >&6
7097 else
7098 lt_cv_nm_interface="BSD nm"
7099 echo "int some_variable = 0;" > conftest.$ac_ext
7100 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7101 (eval "$ac_compile" 2>conftest.err)
7102 cat conftest.err >&5
7103 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7104 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7105 cat conftest.err >&5
7106 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7107 cat conftest.out >&5
7108 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7109 lt_cv_nm_interface="MS dumpbin"
7111 rm -f conftest*
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7114 $as_echo "$lt_cv_nm_interface" >&6; }
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7117 $as_echo_n "checking whether ln -s works... " >&6; }
7118 LN_S=$as_ln_s
7119 if test "$LN_S" = "ln -s"; then
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7121 $as_echo "yes" >&6; }
7122 else
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7124 $as_echo "no, using $LN_S" >&6; }
7127 # find the maximum length of command line arguments
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7129 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7130 if ${lt_cv_sys_max_cmd_len+:} false; then :
7131 $as_echo_n "(cached) " >&6
7132 else
7134 teststring="ABCD"
7136 case $build_os in
7137 msdosdjgpp*)
7138 # On DJGPP, this test can blow up pretty badly due to problems in libc
7139 # (any single argument exceeding 2000 bytes causes a buffer overrun
7140 # during glob expansion). Even if it were fixed, the result of this
7141 # check would be larger than it should be.
7142 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7145 gnu*)
7146 # Under GNU Hurd, this test is not required because there is
7147 # no limit to the length of command line arguments.
7148 # Libtool will interpret -1 as no limit whatsoever
7149 lt_cv_sys_max_cmd_len=-1;
7152 cygwin* | mingw* | cegcc*)
7153 # On Win9x/ME, this test blows up -- it succeeds, but takes
7154 # about 5 minutes as the teststring grows exponentially.
7155 # Worse, since 9x/ME are not pre-emptively multitasking,
7156 # you end up with a "frozen" computer, even though with patience
7157 # the test eventually succeeds (with a max line length of 256k).
7158 # Instead, let's just punt: use the minimum linelength reported by
7159 # all of the supported platforms: 8192 (on NT/2K/XP).
7160 lt_cv_sys_max_cmd_len=8192;
7163 mint*)
7164 # On MiNT this can take a long time and run out of memory.
7165 lt_cv_sys_max_cmd_len=8192;
7168 amigaos*)
7169 # On AmigaOS with pdksh, this test takes hours, literally.
7170 # So we just punt and use a minimum line length of 8192.
7171 lt_cv_sys_max_cmd_len=8192;
7174 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7175 # This has been around since 386BSD, at least. Likely further.
7176 if test -x /sbin/sysctl; then
7177 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7178 elif test -x /usr/sbin/sysctl; then
7179 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7180 else
7181 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7183 # And add a safety zone
7184 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7188 interix*)
7189 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7190 lt_cv_sys_max_cmd_len=196608
7193 osf*)
7194 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7195 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7196 # nice to cause kernel panics so lets avoid the loop below.
7197 # First set a reasonable default.
7198 lt_cv_sys_max_cmd_len=16384
7200 if test -x /sbin/sysconfig; then
7201 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7202 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7203 esac
7206 sco3.2v5*)
7207 lt_cv_sys_max_cmd_len=102400
7209 sysv5* | sco5v6* | sysv4.2uw2*)
7210 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7211 if test -n "$kargmax"; then
7212 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7213 else
7214 lt_cv_sys_max_cmd_len=32768
7218 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7219 if test -n "$lt_cv_sys_max_cmd_len"; then
7220 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7222 else
7223 # Make teststring a little bigger before we do anything with it.
7224 # a 1K string should be a reasonable start.
7225 for i in 1 2 3 4 5 6 7 8 ; do
7226 teststring=$teststring$teststring
7227 done
7228 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7229 # If test is not a shell built-in, we'll probably end up computing a
7230 # maximum length that is only half of the actual maximum length, but
7231 # we can't tell.
7232 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7233 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7234 test $i != 17 # 1/2 MB should be enough
7236 i=`expr $i + 1`
7237 teststring=$teststring$teststring
7238 done
7239 # Only check the string length outside the loop.
7240 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7241 teststring=
7242 # Add a significant safety factor because C++ compilers can tack on
7243 # massive amounts of additional arguments before passing them to the
7244 # linker. It appears as though 1/2 is a usable value.
7245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7248 esac
7252 if test -n $lt_cv_sys_max_cmd_len ; then
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7254 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7255 else
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7257 $as_echo "none" >&6; }
7259 max_cmd_len=$lt_cv_sys_max_cmd_len
7266 : ${CP="cp -f"}
7267 : ${MV="mv -f"}
7268 : ${RM="rm -f"}
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7271 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7272 # Try some XSI features
7273 xsi_shell=no
7274 ( _lt_dummy="a/b/c"
7275 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7276 = c,a/b,, \
7277 && eval 'test $(( 1 + 1 )) -eq 2 \
7278 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7279 && xsi_shell=yes
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7281 $as_echo "$xsi_shell" >&6; }
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7285 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7286 lt_shell_append=no
7287 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7288 >/dev/null 2>&1 \
7289 && lt_shell_append=yes
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7291 $as_echo "$lt_shell_append" >&6; }
7294 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7295 lt_unset=unset
7296 else
7297 lt_unset=false
7304 # test EBCDIC or ASCII
7305 case `echo X|tr X '\101'` in
7306 A) # ASCII based system
7307 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7308 lt_SP2NL='tr \040 \012'
7309 lt_NL2SP='tr \015\012 \040\040'
7311 *) # EBCDIC based system
7312 lt_SP2NL='tr \100 \n'
7313 lt_NL2SP='tr \r\n \100\100'
7315 esac
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7326 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7327 if ${lt_cv_ld_reload_flag+:} false; then :
7328 $as_echo_n "(cached) " >&6
7329 else
7330 lt_cv_ld_reload_flag='-r'
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7333 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7334 reload_flag=$lt_cv_ld_reload_flag
7335 case $reload_flag in
7336 "" | " "*) ;;
7337 *) reload_flag=" $reload_flag" ;;
7338 esac
7339 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7340 case $host_os in
7341 darwin*)
7342 if test "$GCC" = yes; then
7343 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7344 else
7345 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7348 esac
7358 if test -n "$ac_tool_prefix"; then
7359 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7360 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7362 $as_echo_n "checking for $ac_word... " >&6; }
7363 if ${ac_cv_prog_OBJDUMP+:} false; then :
7364 $as_echo_n "(cached) " >&6
7365 else
7366 if test -n "$OBJDUMP"; then
7367 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7368 else
7369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7370 for as_dir in $PATH
7372 IFS=$as_save_IFS
7373 test -z "$as_dir" && as_dir=.
7374 for ac_exec_ext in '' $ac_executable_extensions; do
7375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7376 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7378 break 2
7380 done
7381 done
7382 IFS=$as_save_IFS
7386 OBJDUMP=$ac_cv_prog_OBJDUMP
7387 if test -n "$OBJDUMP"; then
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7389 $as_echo "$OBJDUMP" >&6; }
7390 else
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7392 $as_echo "no" >&6; }
7397 if test -z "$ac_cv_prog_OBJDUMP"; then
7398 ac_ct_OBJDUMP=$OBJDUMP
7399 # Extract the first word of "objdump", so it can be a program name with args.
7400 set dummy objdump; ac_word=$2
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7402 $as_echo_n "checking for $ac_word... " >&6; }
7403 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7404 $as_echo_n "(cached) " >&6
7405 else
7406 if test -n "$ac_ct_OBJDUMP"; then
7407 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7408 else
7409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7410 for as_dir in $PATH
7412 IFS=$as_save_IFS
7413 test -z "$as_dir" && as_dir=.
7414 for ac_exec_ext in '' $ac_executable_extensions; do
7415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7416 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 break 2
7420 done
7421 done
7422 IFS=$as_save_IFS
7426 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7427 if test -n "$ac_ct_OBJDUMP"; then
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7429 $as_echo "$ac_ct_OBJDUMP" >&6; }
7430 else
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432 $as_echo "no" >&6; }
7435 if test "x$ac_ct_OBJDUMP" = x; then
7436 OBJDUMP="false"
7437 else
7438 case $cross_compiling:$ac_tool_warned in
7439 yes:)
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7442 ac_tool_warned=yes ;;
7443 esac
7444 OBJDUMP=$ac_ct_OBJDUMP
7446 else
7447 OBJDUMP="$ac_cv_prog_OBJDUMP"
7450 test -z "$OBJDUMP" && OBJDUMP=objdump
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7461 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7462 if ${lt_cv_deplibs_check_method+:} false; then :
7463 $as_echo_n "(cached) " >&6
7464 else
7465 lt_cv_file_magic_cmd='$MAGIC_CMD'
7466 lt_cv_file_magic_test_file=
7467 lt_cv_deplibs_check_method='unknown'
7468 # Need to set the preceding variable on all platforms that support
7469 # interlibrary dependencies.
7470 # 'none' -- dependencies not supported.
7471 # `unknown' -- same as none, but documents that we really don't know.
7472 # 'pass_all' -- all dependencies passed with no checks.
7473 # 'test_compile' -- check by making test program.
7474 # 'file_magic [[regex]]' -- check by looking for files in library path
7475 # which responds to the $file_magic_cmd with a given extended regex.
7476 # If you have `file' or equivalent on your system and you're not sure
7477 # whether `pass_all' will *always* work, you probably want this one.
7479 case $host_os in
7480 aix[4-9]*)
7481 lt_cv_deplibs_check_method=pass_all
7484 beos*)
7485 lt_cv_deplibs_check_method=pass_all
7488 bsdi[45]*)
7489 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7490 lt_cv_file_magic_cmd='/usr/bin/file -L'
7491 lt_cv_file_magic_test_file=/shlib/libc.so
7494 cygwin*)
7495 # func_win32_libid is a shell function defined in ltmain.sh
7496 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7497 lt_cv_file_magic_cmd='func_win32_libid'
7500 mingw* | pw32*)
7501 # Base MSYS/MinGW do not provide the 'file' command needed by
7502 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7503 # unless we find 'file', for example because we are cross-compiling.
7504 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7505 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7506 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7507 lt_cv_file_magic_cmd='func_win32_libid'
7508 else
7509 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7510 lt_cv_file_magic_cmd='$OBJDUMP -f'
7514 cegcc*)
7515 # use the weaker test based on 'objdump'. See mingw*.
7516 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7517 lt_cv_file_magic_cmd='$OBJDUMP -f'
7520 darwin* | rhapsody*)
7521 lt_cv_deplibs_check_method=pass_all
7524 freebsd* | dragonfly*)
7525 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7526 case $host_cpu in
7527 i*86 )
7528 # Not sure whether the presence of OpenBSD here was a mistake.
7529 # Let's accept both of them until this is cleared up.
7530 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7531 lt_cv_file_magic_cmd=/usr/bin/file
7532 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7534 esac
7535 else
7536 lt_cv_deplibs_check_method=pass_all
7540 gnu*)
7541 lt_cv_deplibs_check_method=pass_all
7544 haiku*)
7545 lt_cv_deplibs_check_method=pass_all
7548 hpux10.20* | hpux11*)
7549 lt_cv_file_magic_cmd=/usr/bin/file
7550 case $host_cpu in
7551 ia64*)
7552 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7553 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7555 hppa*64*)
7556 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]'
7557 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7560 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7561 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7563 esac
7566 interix[3-9]*)
7567 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7568 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7571 irix5* | irix6* | nonstopux*)
7572 case $LD in
7573 *-32|*"-32 ") libmagic=32-bit;;
7574 *-n32|*"-n32 ") libmagic=N32;;
7575 *-64|*"-64 ") libmagic=64-bit;;
7576 *) libmagic=never-match;;
7577 esac
7578 lt_cv_deplibs_check_method=pass_all
7581 # This must be Linux ELF.
7582 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7583 lt_cv_deplibs_check_method=pass_all
7586 netbsd*)
7587 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7588 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7589 else
7590 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7594 newos6*)
7595 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7596 lt_cv_file_magic_cmd=/usr/bin/file
7597 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7600 *nto* | *qnx*)
7601 lt_cv_deplibs_check_method=pass_all
7604 openbsd*)
7605 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7607 else
7608 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7612 osf3* | osf4* | osf5*)
7613 lt_cv_deplibs_check_method=pass_all
7616 rdos*)
7617 lt_cv_deplibs_check_method=pass_all
7620 solaris*)
7621 lt_cv_deplibs_check_method=pass_all
7624 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7625 lt_cv_deplibs_check_method=pass_all
7628 sysv4 | sysv4.3*)
7629 case $host_vendor in
7630 motorola)
7631 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]'
7632 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7634 ncr)
7635 lt_cv_deplibs_check_method=pass_all
7637 sequent)
7638 lt_cv_file_magic_cmd='/bin/file'
7639 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7641 sni)
7642 lt_cv_file_magic_cmd='/bin/file'
7643 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7644 lt_cv_file_magic_test_file=/lib/libc.so
7646 siemens)
7647 lt_cv_deplibs_check_method=pass_all
7650 lt_cv_deplibs_check_method=pass_all
7652 esac
7655 tpf*)
7656 lt_cv_deplibs_check_method=pass_all
7658 vxworks*)
7659 # Assume VxWorks cross toolchains are built on Linux, possibly
7660 # as canadian for Windows hosts.
7661 lt_cv_deplibs_check_method=pass_all
7663 esac
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7667 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7668 file_magic_cmd=$lt_cv_file_magic_cmd
7669 deplibs_check_method=$lt_cv_deplibs_check_method
7670 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7683 if test -n "$ac_tool_prefix"; then
7684 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7685 set dummy ${ac_tool_prefix}ar; ac_word=$2
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687 $as_echo_n "checking for $ac_word... " >&6; }
7688 if ${ac_cv_prog_AR+:} false; then :
7689 $as_echo_n "(cached) " >&6
7690 else
7691 if test -n "$AR"; then
7692 ac_cv_prog_AR="$AR" # Let the user override the test.
7693 else
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695 for as_dir in $PATH
7697 IFS=$as_save_IFS
7698 test -z "$as_dir" && as_dir=.
7699 for ac_exec_ext in '' $ac_executable_extensions; do
7700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7701 ac_cv_prog_AR="${ac_tool_prefix}ar"
7702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 break 2
7705 done
7706 done
7707 IFS=$as_save_IFS
7711 AR=$ac_cv_prog_AR
7712 if test -n "$AR"; then
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7714 $as_echo "$AR" >&6; }
7715 else
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7717 $as_echo "no" >&6; }
7722 if test -z "$ac_cv_prog_AR"; then
7723 ac_ct_AR=$AR
7724 # Extract the first word of "ar", so it can be a program name with args.
7725 set dummy ar; ac_word=$2
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7727 $as_echo_n "checking for $ac_word... " >&6; }
7728 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 if test -n "$ac_ct_AR"; then
7732 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7733 else
7734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 for as_dir in $PATH
7737 IFS=$as_save_IFS
7738 test -z "$as_dir" && as_dir=.
7739 for ac_exec_ext in '' $ac_executable_extensions; do
7740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7741 ac_cv_prog_ac_ct_AR="ar"
7742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7743 break 2
7745 done
7746 done
7747 IFS=$as_save_IFS
7751 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7752 if test -n "$ac_ct_AR"; then
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7754 $as_echo "$ac_ct_AR" >&6; }
7755 else
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7757 $as_echo "no" >&6; }
7760 if test "x$ac_ct_AR" = x; then
7761 AR="false"
7762 else
7763 case $cross_compiling:$ac_tool_warned in
7764 yes:)
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7767 ac_tool_warned=yes ;;
7768 esac
7769 AR=$ac_ct_AR
7771 else
7772 AR="$ac_cv_prog_AR"
7775 test -z "$AR" && AR=ar
7776 test -z "$AR_FLAGS" && AR_FLAGS=cru
7788 if test -n "$ac_tool_prefix"; then
7789 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7790 set dummy ${ac_tool_prefix}strip; ac_word=$2
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7792 $as_echo_n "checking for $ac_word... " >&6; }
7793 if ${ac_cv_prog_STRIP+:} false; then :
7794 $as_echo_n "(cached) " >&6
7795 else
7796 if test -n "$STRIP"; then
7797 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7798 else
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800 for as_dir in $PATH
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7806 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7810 done
7811 done
7812 IFS=$as_save_IFS
7816 STRIP=$ac_cv_prog_STRIP
7817 if test -n "$STRIP"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7819 $as_echo "$STRIP" >&6; }
7820 else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7827 if test -z "$ac_cv_prog_STRIP"; then
7828 ac_ct_STRIP=$STRIP
7829 # Extract the first word of "strip", so it can be a program name with args.
7830 set dummy strip; ac_word=$2
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7832 $as_echo_n "checking for $ac_word... " >&6; }
7833 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 if test -n "$ac_ct_STRIP"; then
7837 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7838 else
7839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7840 for as_dir in $PATH
7842 IFS=$as_save_IFS
7843 test -z "$as_dir" && as_dir=.
7844 for ac_exec_ext in '' $ac_executable_extensions; do
7845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7846 ac_cv_prog_ac_ct_STRIP="strip"
7847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7848 break 2
7850 done
7851 done
7852 IFS=$as_save_IFS
7856 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7857 if test -n "$ac_ct_STRIP"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7859 $as_echo "$ac_ct_STRIP" >&6; }
7860 else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7865 if test "x$ac_ct_STRIP" = x; then
7866 STRIP=":"
7867 else
7868 case $cross_compiling:$ac_tool_warned in
7869 yes:)
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7872 ac_tool_warned=yes ;;
7873 esac
7874 STRIP=$ac_ct_STRIP
7876 else
7877 STRIP="$ac_cv_prog_STRIP"
7880 test -z "$STRIP" && STRIP=:
7887 if test -n "$ac_tool_prefix"; then
7888 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7889 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891 $as_echo_n "checking for $ac_word... " >&6; }
7892 if ${ac_cv_prog_RANLIB+:} false; then :
7893 $as_echo_n "(cached) " >&6
7894 else
7895 if test -n "$RANLIB"; then
7896 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7897 else
7898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7899 for as_dir in $PATH
7901 IFS=$as_save_IFS
7902 test -z "$as_dir" && as_dir=.
7903 for ac_exec_ext in '' $ac_executable_extensions; do
7904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7905 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7907 break 2
7909 done
7910 done
7911 IFS=$as_save_IFS
7915 RANLIB=$ac_cv_prog_RANLIB
7916 if test -n "$RANLIB"; then
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7918 $as_echo "$RANLIB" >&6; }
7919 else
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7921 $as_echo "no" >&6; }
7926 if test -z "$ac_cv_prog_RANLIB"; then
7927 ac_ct_RANLIB=$RANLIB
7928 # Extract the first word of "ranlib", so it can be a program name with args.
7929 set dummy ranlib; ac_word=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 if test -n "$ac_ct_RANLIB"; then
7936 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7937 else
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7941 IFS=$as_save_IFS
7942 test -z "$as_dir" && as_dir=.
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7945 ac_cv_prog_ac_ct_RANLIB="ranlib"
7946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947 break 2
7949 done
7950 done
7951 IFS=$as_save_IFS
7955 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7956 if test -n "$ac_ct_RANLIB"; then
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7958 $as_echo "$ac_ct_RANLIB" >&6; }
7959 else
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7964 if test "x$ac_ct_RANLIB" = x; then
7965 RANLIB=":"
7966 else
7967 case $cross_compiling:$ac_tool_warned in
7968 yes:)
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7971 ac_tool_warned=yes ;;
7972 esac
7973 RANLIB=$ac_ct_RANLIB
7975 else
7976 RANLIB="$ac_cv_prog_RANLIB"
7979 test -z "$RANLIB" && RANLIB=:
7986 # Determine commands to create old-style static archives.
7987 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7988 old_postinstall_cmds='chmod 644 $oldlib'
7989 old_postuninstall_cmds=
7991 if test -n "$RANLIB"; then
7992 case $host_os in
7993 openbsd*)
7994 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7997 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7999 esac
8000 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8003 case $host_os in
8004 darwin*)
8005 lock_old_archive_extraction=yes ;;
8007 lock_old_archive_extraction=no ;;
8008 esac
8048 # If no C compiler was specified, use CC.
8049 LTCC=${LTCC-"$CC"}
8051 # If no C compiler flags were specified, use CFLAGS.
8052 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8054 # Allow CC to be a program name with arguments.
8055 compiler=$CC
8058 # Check for command to grab the raw symbol name followed by C symbol from nm.
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8060 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8061 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8065 # These are sane defaults that work on at least a few old systems.
8066 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8068 # Character class describing NM global symbol codes.
8069 symcode='[BCDEGRST]'
8071 # Regexp to match symbols that can be accessed directly from C.
8072 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8074 # Define system-specific variables.
8075 case $host_os in
8076 aix*)
8077 symcode='[BCDT]'
8079 cygwin* | mingw* | pw32* | cegcc*)
8080 symcode='[ABCDGISTW]'
8082 hpux*)
8083 if test "$host_cpu" = ia64; then
8084 symcode='[ABCDEGRST]'
8087 irix* | nonstopux*)
8088 symcode='[BCDEGRST]'
8090 osf*)
8091 symcode='[BCDEGQRST]'
8093 solaris*)
8094 symcode='[BDRT]'
8096 sco3.2v5*)
8097 symcode='[DT]'
8099 sysv4.2uw2*)
8100 symcode='[DT]'
8102 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8103 symcode='[ABDT]'
8105 sysv4)
8106 symcode='[DFNSTU]'
8108 esac
8110 # If we're using GNU nm, then use its standard symbol codes.
8111 case `$NM -V 2>&1` in
8112 *GNU* | *'with BFD'*)
8113 symcode='[ABCDGIRSTW]' ;;
8114 esac
8116 # Transform an extracted symbol line into a proper C declaration.
8117 # Some systems (esp. on ia64) link data and code symbols differently,
8118 # so use this general approach.
8119 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8121 # Transform an extracted symbol line into symbol name and symbol address
8122 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8123 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'"
8125 # Handle CRLF in mingw tool chain
8126 opt_cr=
8127 case $build_os in
8128 mingw*)
8129 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8131 esac
8133 # Try without a prefix underscore, then with it.
8134 for ac_symprfx in "" "_"; do
8136 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8137 symxfrm="\\1 $ac_symprfx\\2 \\2"
8139 # Write the raw and C identifiers.
8140 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8141 # Fake it for dumpbin and say T for any non-static function
8142 # and D for any global variable.
8143 # Also find C++ and __fastcall symbols from MSVC++,
8144 # which start with @ or ?.
8145 lt_cv_sys_global_symbol_pipe="$AWK '"\
8146 " {last_section=section; section=\$ 3};"\
8147 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8148 " \$ 0!~/External *\|/{next};"\
8149 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8150 " {if(hide[section]) next};"\
8151 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8152 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8153 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8154 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8155 " ' prfx=^$ac_symprfx"
8156 else
8157 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8160 # Check to see that the pipe works correctly.
8161 pipe_works=no
8163 rm -f conftest*
8164 cat > conftest.$ac_ext <<_LT_EOF
8165 #ifdef __cplusplus
8166 extern "C" {
8167 #endif
8168 char nm_test_var;
8169 void nm_test_func(void);
8170 void nm_test_func(void){}
8171 #ifdef __cplusplus
8173 #endif
8174 int main(){nm_test_var='a';nm_test_func();return(0);}
8175 _LT_EOF
8177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8178 (eval $ac_compile) 2>&5
8179 ac_status=$?
8180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8181 test $ac_status = 0; }; then
8182 # Now try to grab the symbols.
8183 nlist=conftest.nm
8184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8185 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8186 ac_status=$?
8187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8188 test $ac_status = 0; } && test -s "$nlist"; then
8189 # Try sorting and uniquifying the output.
8190 if sort "$nlist" | uniq > "$nlist"T; then
8191 mv -f "$nlist"T "$nlist"
8192 else
8193 rm -f "$nlist"T
8196 # Make sure that we snagged all the symbols we need.
8197 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8198 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8199 cat <<_LT_EOF > conftest.$ac_ext
8200 #ifdef __cplusplus
8201 extern "C" {
8202 #endif
8204 _LT_EOF
8205 # Now generate the symbol file.
8206 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8208 cat <<_LT_EOF >> conftest.$ac_ext
8210 /* The mapping between symbol names and symbols. */
8211 const struct {
8212 const char *name;
8213 void *address;
8215 lt__PROGRAM__LTX_preloaded_symbols[] =
8217 { "@PROGRAM@", (void *) 0 },
8218 _LT_EOF
8219 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8220 cat <<\_LT_EOF >> conftest.$ac_ext
8221 {0, (void *) 0}
8224 /* This works around a problem in FreeBSD linker */
8225 #ifdef FREEBSD_WORKAROUND
8226 static const void *lt_preloaded_setup() {
8227 return lt__PROGRAM__LTX_preloaded_symbols;
8229 #endif
8231 #ifdef __cplusplus
8233 #endif
8234 _LT_EOF
8235 # Now try linking the two files.
8236 mv conftest.$ac_objext conftstm.$ac_objext
8237 lt_save_LIBS="$LIBS"
8238 lt_save_CFLAGS="$CFLAGS"
8239 LIBS="conftstm.$ac_objext"
8240 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8242 (eval $ac_link) 2>&5
8243 ac_status=$?
8244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8245 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8246 pipe_works=yes
8248 LIBS="$lt_save_LIBS"
8249 CFLAGS="$lt_save_CFLAGS"
8250 else
8251 echo "cannot find nm_test_func in $nlist" >&5
8253 else
8254 echo "cannot find nm_test_var in $nlist" >&5
8256 else
8257 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8259 else
8260 echo "$progname: failed program was:" >&5
8261 cat conftest.$ac_ext >&5
8263 rm -rf conftest* conftst*
8265 # Do not use the global_symbol_pipe unless it works.
8266 if test "$pipe_works" = yes; then
8267 break
8268 else
8269 lt_cv_sys_global_symbol_pipe=
8271 done
8275 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8276 lt_cv_sys_global_symbol_to_cdecl=
8278 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8280 $as_echo "failed" >&6; }
8281 else
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8283 $as_echo "ok" >&6; }
8307 # Check whether --enable-libtool-lock was given.
8308 if test "${enable_libtool_lock+set}" = set; then :
8309 enableval=$enable_libtool_lock;
8312 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8314 # Some flags need to be propagated to the compiler or linker for good
8315 # libtool support.
8316 case $host in
8317 ia64-*-hpux*)
8318 # Find out which ABI we are using.
8319 echo 'int i;' > conftest.$ac_ext
8320 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8321 (eval $ac_compile) 2>&5
8322 ac_status=$?
8323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8324 test $ac_status = 0; }; then
8325 case `/usr/bin/file conftest.$ac_objext` in
8326 *ELF-32*)
8327 HPUX_IA64_MODE="32"
8329 *ELF-64*)
8330 HPUX_IA64_MODE="64"
8332 esac
8334 rm -rf conftest*
8336 *-*-irix6*)
8337 # Find out which ABI we are using.
8338 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8340 (eval $ac_compile) 2>&5
8341 ac_status=$?
8342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8343 test $ac_status = 0; }; then
8344 if test "$lt_cv_prog_gnu_ld" = yes; then
8345 case `/usr/bin/file conftest.$ac_objext` in
8346 *32-bit*)
8347 LD="${LD-ld} -melf32bsmip"
8349 *N32*)
8350 LD="${LD-ld} -melf32bmipn32"
8352 *64-bit*)
8353 LD="${LD-ld} -melf64bmip"
8355 esac
8356 else
8357 case `/usr/bin/file conftest.$ac_objext` in
8358 *32-bit*)
8359 LD="${LD-ld} -32"
8361 *N32*)
8362 LD="${LD-ld} -n32"
8364 *64-bit*)
8365 LD="${LD-ld} -64"
8367 esac
8370 rm -rf conftest*
8373 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8374 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8375 # Find out which ABI we are using.
8376 echo 'int i;' > conftest.$ac_ext
8377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8378 (eval $ac_compile) 2>&5
8379 ac_status=$?
8380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8381 test $ac_status = 0; }; then
8382 case `/usr/bin/file conftest.o` in
8383 *32-bit*)
8384 case $host in
8385 x86_64-*kfreebsd*-gnu)
8386 LD="${LD-ld} -m elf_i386_fbsd"
8388 x86_64-*linux*)
8389 case `/usr/bin/file conftest.o` in
8390 *x86-64*)
8391 LD="${LD-ld} -m elf32_x86_64"
8394 LD="${LD-ld} -m elf_i386"
8396 esac
8398 powerpc64le-*linux*)
8399 LD="${LD-ld} -m elf32lppclinux"
8401 powerpc64-*linux*)
8402 LD="${LD-ld} -m elf32ppclinux"
8404 s390x-*linux*)
8405 LD="${LD-ld} -m elf_s390"
8407 sparc64-*linux*)
8408 LD="${LD-ld} -m elf32_sparc"
8410 esac
8412 *64-bit*)
8413 case $host in
8414 x86_64-*kfreebsd*-gnu)
8415 LD="${LD-ld} -m elf_x86_64_fbsd"
8417 x86_64-*linux*)
8418 LD="${LD-ld} -m elf_x86_64"
8420 powerpcle-*linux*)
8421 LD="${LD-ld} -m elf64lppc"
8423 powerpc-*linux*)
8424 LD="${LD-ld} -m elf64ppc"
8426 s390*-*linux*|s390*-*tpf*)
8427 LD="${LD-ld} -m elf64_s390"
8429 sparc*-*linux*)
8430 LD="${LD-ld} -m elf64_sparc"
8432 esac
8434 esac
8436 rm -rf conftest*
8439 *-*-sco3.2v5*)
8440 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8441 SAVE_CFLAGS="$CFLAGS"
8442 CFLAGS="$CFLAGS -belf"
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8444 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8445 if ${lt_cv_cc_needs_belf+:} false; then :
8446 $as_echo_n "(cached) " >&6
8447 else
8448 ac_ext=c
8449 ac_cpp='$CPP $CPPFLAGS'
8450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8454 if test x$gcc_no_link = xyes; then
8455 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8461 main ()
8465 return 0;
8467 _ACEOF
8468 if ac_fn_c_try_link "$LINENO"; then :
8469 lt_cv_cc_needs_belf=yes
8470 else
8471 lt_cv_cc_needs_belf=no
8473 rm -f core conftest.err conftest.$ac_objext \
8474 conftest$ac_exeext conftest.$ac_ext
8475 ac_ext=c
8476 ac_cpp='$CPP $CPPFLAGS'
8477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8483 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8484 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8485 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8486 CFLAGS="$SAVE_CFLAGS"
8489 sparc*-*solaris*)
8490 # Find out which ABI we are using.
8491 echo 'int i;' > conftest.$ac_ext
8492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8493 (eval $ac_compile) 2>&5
8494 ac_status=$?
8495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8496 test $ac_status = 0; }; then
8497 case `/usr/bin/file conftest.o` in
8498 *64-bit*)
8499 case $lt_cv_prog_gnu_ld in
8500 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8502 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8503 LD="${LD-ld} -64"
8506 esac
8508 esac
8510 rm -rf conftest*
8512 esac
8514 need_locks="$enable_libtool_lock"
8517 case $host_os in
8518 rhapsody* | darwin*)
8519 if test -n "$ac_tool_prefix"; then
8520 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8521 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523 $as_echo_n "checking for $ac_word... " >&6; }
8524 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8525 $as_echo_n "(cached) " >&6
8526 else
8527 if test -n "$DSYMUTIL"; then
8528 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8529 else
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 for as_dir in $PATH
8533 IFS=$as_save_IFS
8534 test -z "$as_dir" && as_dir=.
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8537 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8539 break 2
8541 done
8542 done
8543 IFS=$as_save_IFS
8547 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8548 if test -n "$DSYMUTIL"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8550 $as_echo "$DSYMUTIL" >&6; }
8551 else
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8558 if test -z "$ac_cv_prog_DSYMUTIL"; then
8559 ac_ct_DSYMUTIL=$DSYMUTIL
8560 # Extract the first word of "dsymutil", so it can be a program name with args.
8561 set dummy dsymutil; ac_word=$2
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563 $as_echo_n "checking for $ac_word... " >&6; }
8564 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8565 $as_echo_n "(cached) " >&6
8566 else
8567 if test -n "$ac_ct_DSYMUTIL"; then
8568 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8569 else
8570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571 for as_dir in $PATH
8573 IFS=$as_save_IFS
8574 test -z "$as_dir" && as_dir=.
8575 for ac_exec_ext in '' $ac_executable_extensions; do
8576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8577 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8579 break 2
8581 done
8582 done
8583 IFS=$as_save_IFS
8587 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8588 if test -n "$ac_ct_DSYMUTIL"; then
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8590 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8591 else
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593 $as_echo "no" >&6; }
8596 if test "x$ac_ct_DSYMUTIL" = x; then
8597 DSYMUTIL=":"
8598 else
8599 case $cross_compiling:$ac_tool_warned in
8600 yes:)
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8603 ac_tool_warned=yes ;;
8604 esac
8605 DSYMUTIL=$ac_ct_DSYMUTIL
8607 else
8608 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8611 if test -n "$ac_tool_prefix"; then
8612 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8613 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615 $as_echo_n "checking for $ac_word... " >&6; }
8616 if ${ac_cv_prog_NMEDIT+:} false; then :
8617 $as_echo_n "(cached) " >&6
8618 else
8619 if test -n "$NMEDIT"; then
8620 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8621 else
8622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623 for as_dir in $PATH
8625 IFS=$as_save_IFS
8626 test -z "$as_dir" && as_dir=.
8627 for ac_exec_ext in '' $ac_executable_extensions; do
8628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8629 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8631 break 2
8633 done
8634 done
8635 IFS=$as_save_IFS
8639 NMEDIT=$ac_cv_prog_NMEDIT
8640 if test -n "$NMEDIT"; then
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8642 $as_echo "$NMEDIT" >&6; }
8643 else
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8645 $as_echo "no" >&6; }
8650 if test -z "$ac_cv_prog_NMEDIT"; then
8651 ac_ct_NMEDIT=$NMEDIT
8652 # Extract the first word of "nmedit", so it can be a program name with args.
8653 set dummy nmedit; ac_word=$2
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8655 $as_echo_n "checking for $ac_word... " >&6; }
8656 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 if test -n "$ac_ct_NMEDIT"; then
8660 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8661 else
8662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8663 for as_dir in $PATH
8665 IFS=$as_save_IFS
8666 test -z "$as_dir" && as_dir=.
8667 for ac_exec_ext in '' $ac_executable_extensions; do
8668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8669 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8671 break 2
8673 done
8674 done
8675 IFS=$as_save_IFS
8679 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8680 if test -n "$ac_ct_NMEDIT"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8682 $as_echo "$ac_ct_NMEDIT" >&6; }
8683 else
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685 $as_echo "no" >&6; }
8688 if test "x$ac_ct_NMEDIT" = x; then
8689 NMEDIT=":"
8690 else
8691 case $cross_compiling:$ac_tool_warned in
8692 yes:)
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8695 ac_tool_warned=yes ;;
8696 esac
8697 NMEDIT=$ac_ct_NMEDIT
8699 else
8700 NMEDIT="$ac_cv_prog_NMEDIT"
8703 if test -n "$ac_tool_prefix"; then
8704 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8705 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707 $as_echo_n "checking for $ac_word... " >&6; }
8708 if ${ac_cv_prog_LIPO+:} false; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 if test -n "$LIPO"; then
8712 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8713 else
8714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8715 for as_dir in $PATH
8717 IFS=$as_save_IFS
8718 test -z "$as_dir" && as_dir=.
8719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8721 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8723 break 2
8725 done
8726 done
8727 IFS=$as_save_IFS
8731 LIPO=$ac_cv_prog_LIPO
8732 if test -n "$LIPO"; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8734 $as_echo "$LIPO" >&6; }
8735 else
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737 $as_echo "no" >&6; }
8742 if test -z "$ac_cv_prog_LIPO"; then
8743 ac_ct_LIPO=$LIPO
8744 # Extract the first word of "lipo", so it can be a program name with args.
8745 set dummy lipo; ac_word=$2
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8747 $as_echo_n "checking for $ac_word... " >&6; }
8748 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8749 $as_echo_n "(cached) " >&6
8750 else
8751 if test -n "$ac_ct_LIPO"; then
8752 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8753 else
8754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 for as_dir in $PATH
8757 IFS=$as_save_IFS
8758 test -z "$as_dir" && as_dir=.
8759 for ac_exec_ext in '' $ac_executable_extensions; do
8760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8761 ac_cv_prog_ac_ct_LIPO="lipo"
8762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 break 2
8765 done
8766 done
8767 IFS=$as_save_IFS
8771 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8772 if test -n "$ac_ct_LIPO"; then
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8774 $as_echo "$ac_ct_LIPO" >&6; }
8775 else
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 $as_echo "no" >&6; }
8780 if test "x$ac_ct_LIPO" = x; then
8781 LIPO=":"
8782 else
8783 case $cross_compiling:$ac_tool_warned in
8784 yes:)
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8787 ac_tool_warned=yes ;;
8788 esac
8789 LIPO=$ac_ct_LIPO
8791 else
8792 LIPO="$ac_cv_prog_LIPO"
8795 if test -n "$ac_tool_prefix"; then
8796 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8797 set dummy ${ac_tool_prefix}otool; ac_word=$2
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8799 $as_echo_n "checking for $ac_word... " >&6; }
8800 if ${ac_cv_prog_OTOOL+:} false; then :
8801 $as_echo_n "(cached) " >&6
8802 else
8803 if test -n "$OTOOL"; then
8804 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8805 else
8806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8807 for as_dir in $PATH
8809 IFS=$as_save_IFS
8810 test -z "$as_dir" && as_dir=.
8811 for ac_exec_ext in '' $ac_executable_extensions; do
8812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8813 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8815 break 2
8817 done
8818 done
8819 IFS=$as_save_IFS
8823 OTOOL=$ac_cv_prog_OTOOL
8824 if test -n "$OTOOL"; then
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8826 $as_echo "$OTOOL" >&6; }
8827 else
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8829 $as_echo "no" >&6; }
8834 if test -z "$ac_cv_prog_OTOOL"; then
8835 ac_ct_OTOOL=$OTOOL
8836 # Extract the first word of "otool", so it can be a program name with args.
8837 set dummy otool; ac_word=$2
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8839 $as_echo_n "checking for $ac_word... " >&6; }
8840 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8841 $as_echo_n "(cached) " >&6
8842 else
8843 if test -n "$ac_ct_OTOOL"; then
8844 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8845 else
8846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8847 for as_dir in $PATH
8849 IFS=$as_save_IFS
8850 test -z "$as_dir" && as_dir=.
8851 for ac_exec_ext in '' $ac_executable_extensions; do
8852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8853 ac_cv_prog_ac_ct_OTOOL="otool"
8854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8855 break 2
8857 done
8858 done
8859 IFS=$as_save_IFS
8863 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8864 if test -n "$ac_ct_OTOOL"; then
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8866 $as_echo "$ac_ct_OTOOL" >&6; }
8867 else
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869 $as_echo "no" >&6; }
8872 if test "x$ac_ct_OTOOL" = x; then
8873 OTOOL=":"
8874 else
8875 case $cross_compiling:$ac_tool_warned in
8876 yes:)
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8879 ac_tool_warned=yes ;;
8880 esac
8881 OTOOL=$ac_ct_OTOOL
8883 else
8884 OTOOL="$ac_cv_prog_OTOOL"
8887 if test -n "$ac_tool_prefix"; then
8888 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8889 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8891 $as_echo_n "checking for $ac_word... " >&6; }
8892 if ${ac_cv_prog_OTOOL64+:} false; then :
8893 $as_echo_n "(cached) " >&6
8894 else
8895 if test -n "$OTOOL64"; then
8896 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8897 else
8898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899 for as_dir in $PATH
8901 IFS=$as_save_IFS
8902 test -z "$as_dir" && as_dir=.
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8905 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8907 break 2
8909 done
8910 done
8911 IFS=$as_save_IFS
8915 OTOOL64=$ac_cv_prog_OTOOL64
8916 if test -n "$OTOOL64"; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8918 $as_echo "$OTOOL64" >&6; }
8919 else
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8921 $as_echo "no" >&6; }
8926 if test -z "$ac_cv_prog_OTOOL64"; then
8927 ac_ct_OTOOL64=$OTOOL64
8928 # Extract the first word of "otool64", so it can be a program name with args.
8929 set dummy otool64; ac_word=$2
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8931 $as_echo_n "checking for $ac_word... " >&6; }
8932 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8933 $as_echo_n "(cached) " >&6
8934 else
8935 if test -n "$ac_ct_OTOOL64"; then
8936 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8937 else
8938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8939 for as_dir in $PATH
8941 IFS=$as_save_IFS
8942 test -z "$as_dir" && as_dir=.
8943 for ac_exec_ext in '' $ac_executable_extensions; do
8944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8945 ac_cv_prog_ac_ct_OTOOL64="otool64"
8946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8947 break 2
8949 done
8950 done
8951 IFS=$as_save_IFS
8955 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8956 if test -n "$ac_ct_OTOOL64"; then
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8958 $as_echo "$ac_ct_OTOOL64" >&6; }
8959 else
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8961 $as_echo "no" >&6; }
8964 if test "x$ac_ct_OTOOL64" = x; then
8965 OTOOL64=":"
8966 else
8967 case $cross_compiling:$ac_tool_warned in
8968 yes:)
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8971 ac_tool_warned=yes ;;
8972 esac
8973 OTOOL64=$ac_ct_OTOOL64
8975 else
8976 OTOOL64="$ac_cv_prog_OTOOL64"
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9006 $as_echo_n "checking for -single_module linker flag... " >&6; }
9007 if ${lt_cv_apple_cc_single_mod+:} false; then :
9008 $as_echo_n "(cached) " >&6
9009 else
9010 lt_cv_apple_cc_single_mod=no
9011 if test -z "${LT_MULTI_MODULE}"; then
9012 # By default we will add the -single_module flag. You can override
9013 # by either setting the environment variable LT_MULTI_MODULE
9014 # non-empty at configure time, or by adding -multi_module to the
9015 # link flags.
9016 rm -rf libconftest.dylib*
9017 echo "int foo(void){return 1;}" > conftest.c
9018 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9019 -dynamiclib -Wl,-single_module conftest.c" >&5
9020 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9021 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9022 _lt_result=$?
9023 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9024 lt_cv_apple_cc_single_mod=yes
9025 else
9026 cat conftest.err >&5
9028 rm -rf libconftest.dylib*
9029 rm -f conftest.*
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9033 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9035 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9036 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9037 $as_echo_n "(cached) " >&6
9038 else
9039 lt_cv_ld_exported_symbols_list=no
9040 save_LDFLAGS=$LDFLAGS
9041 echo "_main" > conftest.sym
9042 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9043 if test x$gcc_no_link = xyes; then
9044 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047 /* end confdefs.h. */
9050 main ()
9054 return 0;
9056 _ACEOF
9057 if ac_fn_c_try_link "$LINENO"; then :
9058 lt_cv_ld_exported_symbols_list=yes
9059 else
9060 lt_cv_ld_exported_symbols_list=no
9062 rm -f core conftest.err conftest.$ac_objext \
9063 conftest$ac_exeext conftest.$ac_ext
9064 LDFLAGS="$save_LDFLAGS"
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9068 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9070 $as_echo_n "checking for -force_load linker flag... " >&6; }
9071 if ${lt_cv_ld_force_load+:} false; then :
9072 $as_echo_n "(cached) " >&6
9073 else
9074 lt_cv_ld_force_load=no
9075 cat > conftest.c << _LT_EOF
9076 int forced_loaded() { return 2;}
9077 _LT_EOF
9078 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9079 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9080 echo "$AR cru libconftest.a conftest.o" >&5
9081 $AR cru libconftest.a conftest.o 2>&5
9082 cat > conftest.c << _LT_EOF
9083 int main() { return 0;}
9084 _LT_EOF
9085 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9086 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9087 _lt_result=$?
9088 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9089 lt_cv_ld_force_load=yes
9090 else
9091 cat conftest.err >&5
9093 rm -f conftest.err libconftest.a conftest conftest.c
9094 rm -rf conftest.dSYM
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9098 $as_echo "$lt_cv_ld_force_load" >&6; }
9099 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
9100 # build without first building modern cctools / linker.
9101 case $host_cpu-$host_os in
9102 *-rhapsody* | *-darwin1.[012])
9103 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9104 *-darwin1.*)
9105 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9106 *-darwin*)
9107 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
9108 # deployment target is forced to an earlier version.
9109 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
9110 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
9112 10.[012][,.]*)
9113 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9117 esac
9119 esac
9120 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9121 _lt_dar_single_mod='$single_module'
9123 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9124 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9125 else
9126 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9128 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9129 _lt_dsymutil='~$DSYMUTIL $lib || :'
9130 else
9131 _lt_dsymutil=
9134 esac
9136 for ac_header in dlfcn.h
9137 do :
9138 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9140 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9141 cat >>confdefs.h <<_ACEOF
9142 #define HAVE_DLFCN_H 1
9143 _ACEOF
9147 done
9154 # Set options
9159 enable_win32_dll=no
9162 # Check whether --enable-shared was given.
9163 if test "${enable_shared+set}" = set; then :
9164 enableval=$enable_shared; p=${PACKAGE-default}
9165 case $enableval in
9166 yes) enable_shared=yes ;;
9167 no) enable_shared=no ;;
9169 enable_shared=no
9170 # Look at the argument we got. We use all the common list separators.
9171 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9172 for pkg in $enableval; do
9173 IFS="$lt_save_ifs"
9174 if test "X$pkg" = "X$p"; then
9175 enable_shared=yes
9177 done
9178 IFS="$lt_save_ifs"
9180 esac
9181 else
9182 enable_shared=yes
9193 # Check whether --enable-static was given.
9194 if test "${enable_static+set}" = set; then :
9195 enableval=$enable_static; p=${PACKAGE-default}
9196 case $enableval in
9197 yes) enable_static=yes ;;
9198 no) enable_static=no ;;
9200 enable_static=no
9201 # Look at the argument we got. We use all the common list separators.
9202 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9203 for pkg in $enableval; do
9204 IFS="$lt_save_ifs"
9205 if test "X$pkg" = "X$p"; then
9206 enable_static=yes
9208 done
9209 IFS="$lt_save_ifs"
9211 esac
9212 else
9213 enable_static=yes
9225 # Check whether --with-pic was given.
9226 if test "${with_pic+set}" = set; then :
9227 withval=$with_pic; pic_mode="$withval"
9228 else
9229 pic_mode=default
9233 test -z "$pic_mode" && pic_mode=default
9241 # Check whether --enable-fast-install was given.
9242 if test "${enable_fast_install+set}" = set; then :
9243 enableval=$enable_fast_install; p=${PACKAGE-default}
9244 case $enableval in
9245 yes) enable_fast_install=yes ;;
9246 no) enable_fast_install=no ;;
9248 enable_fast_install=no
9249 # Look at the argument we got. We use all the common list separators.
9250 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9251 for pkg in $enableval; do
9252 IFS="$lt_save_ifs"
9253 if test "X$pkg" = "X$p"; then
9254 enable_fast_install=yes
9256 done
9257 IFS="$lt_save_ifs"
9259 esac
9260 else
9261 enable_fast_install=yes
9274 # This can be used to rebuild libtool when needed
9275 LIBTOOL_DEPS="$ltmain"
9277 # Always use our own libtool.
9278 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9305 test -z "$LN_S" && LN_S="ln -s"
9320 if test -n "${ZSH_VERSION+set}" ; then
9321 setopt NO_GLOB_SUBST
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9325 $as_echo_n "checking for objdir... " >&6; }
9326 if ${lt_cv_objdir+:} false; then :
9327 $as_echo_n "(cached) " >&6
9328 else
9329 rm -f .libs 2>/dev/null
9330 mkdir .libs 2>/dev/null
9331 if test -d .libs; then
9332 lt_cv_objdir=.libs
9333 else
9334 # MS-DOS does not allow filenames that begin with a dot.
9335 lt_cv_objdir=_libs
9337 rmdir .libs 2>/dev/null
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9340 $as_echo "$lt_cv_objdir" >&6; }
9341 objdir=$lt_cv_objdir
9347 cat >>confdefs.h <<_ACEOF
9348 #define LT_OBJDIR "$lt_cv_objdir/"
9349 _ACEOF
9354 case $host_os in
9355 aix3*)
9356 # AIX sometimes has problems with the GCC collect2 program. For some
9357 # reason, if we set the COLLECT_NAMES environment variable, the problems
9358 # vanish in a puff of smoke.
9359 if test "X${COLLECT_NAMES+set}" != Xset; then
9360 COLLECT_NAMES=
9361 export COLLECT_NAMES
9364 esac
9366 # Global variables:
9367 ofile=libtool
9368 can_build_shared=yes
9370 # All known linkers require a `.a' archive for static linking (except MSVC,
9371 # which needs '.lib').
9372 libext=a
9374 with_gnu_ld="$lt_cv_prog_gnu_ld"
9376 old_CC="$CC"
9377 old_CFLAGS="$CFLAGS"
9379 # Set sane defaults for various variables
9380 test -z "$CC" && CC=cc
9381 test -z "$LTCC" && LTCC=$CC
9382 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9383 test -z "$LD" && LD=ld
9384 test -z "$ac_objext" && ac_objext=o
9386 for cc_temp in $compiler""; do
9387 case $cc_temp in
9388 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9389 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9390 \-*) ;;
9391 *) break;;
9392 esac
9393 done
9394 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9397 # Only perform the check for file, if the check method requires it
9398 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9399 case $deplibs_check_method in
9400 file_magic*)
9401 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9403 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9404 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9405 $as_echo_n "(cached) " >&6
9406 else
9407 case $MAGIC_CMD in
9408 [\\/*] | ?:[\\/]*)
9409 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9412 lt_save_MAGIC_CMD="$MAGIC_CMD"
9413 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9414 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9415 for ac_dir in $ac_dummy; do
9416 IFS="$lt_save_ifs"
9417 test -z "$ac_dir" && ac_dir=.
9418 if test -f $ac_dir/${ac_tool_prefix}file; then
9419 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9420 if test -n "$file_magic_test_file"; then
9421 case $deplibs_check_method in
9422 "file_magic "*)
9423 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9424 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9425 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9426 $EGREP "$file_magic_regex" > /dev/null; then
9428 else
9429 cat <<_LT_EOF 1>&2
9431 *** Warning: the command libtool uses to detect shared libraries,
9432 *** $file_magic_cmd, produces output that libtool cannot recognize.
9433 *** The result is that libtool may fail to recognize shared libraries
9434 *** as such. This will affect the creation of libtool libraries that
9435 *** depend on shared libraries, but programs linked with such libtool
9436 *** libraries will work regardless of this problem. Nevertheless, you
9437 *** may want to report the problem to your system manager and/or to
9438 *** bug-libtool@gnu.org
9440 _LT_EOF
9441 fi ;;
9442 esac
9444 break
9446 done
9447 IFS="$lt_save_ifs"
9448 MAGIC_CMD="$lt_save_MAGIC_CMD"
9450 esac
9453 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9454 if test -n "$MAGIC_CMD"; then
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9456 $as_echo "$MAGIC_CMD" >&6; }
9457 else
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9459 $as_echo "no" >&6; }
9466 if test -z "$lt_cv_path_MAGIC_CMD"; then
9467 if test -n "$ac_tool_prefix"; then
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9469 $as_echo_n "checking for file... " >&6; }
9470 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9471 $as_echo_n "(cached) " >&6
9472 else
9473 case $MAGIC_CMD in
9474 [\\/*] | ?:[\\/]*)
9475 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9478 lt_save_MAGIC_CMD="$MAGIC_CMD"
9479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9480 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9481 for ac_dir in $ac_dummy; do
9482 IFS="$lt_save_ifs"
9483 test -z "$ac_dir" && ac_dir=.
9484 if test -f $ac_dir/file; then
9485 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9486 if test -n "$file_magic_test_file"; then
9487 case $deplibs_check_method in
9488 "file_magic "*)
9489 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9490 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9491 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9492 $EGREP "$file_magic_regex" > /dev/null; then
9494 else
9495 cat <<_LT_EOF 1>&2
9497 *** Warning: the command libtool uses to detect shared libraries,
9498 *** $file_magic_cmd, produces output that libtool cannot recognize.
9499 *** The result is that libtool may fail to recognize shared libraries
9500 *** as such. This will affect the creation of libtool libraries that
9501 *** depend on shared libraries, but programs linked with such libtool
9502 *** libraries will work regardless of this problem. Nevertheless, you
9503 *** may want to report the problem to your system manager and/or to
9504 *** bug-libtool@gnu.org
9506 _LT_EOF
9507 fi ;;
9508 esac
9510 break
9512 done
9513 IFS="$lt_save_ifs"
9514 MAGIC_CMD="$lt_save_MAGIC_CMD"
9516 esac
9519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9520 if test -n "$MAGIC_CMD"; then
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9522 $as_echo "$MAGIC_CMD" >&6; }
9523 else
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9525 $as_echo "no" >&6; }
9529 else
9530 MAGIC_CMD=:
9536 esac
9538 # Use C for the default configuration in the libtool script
9540 lt_save_CC="$CC"
9541 ac_ext=c
9542 ac_cpp='$CPP $CPPFLAGS'
9543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9548 # Source file extension for C test sources.
9549 ac_ext=c
9551 # Object file extension for compiled C test sources.
9552 objext=o
9553 objext=$objext
9555 # Code to be used in simple compile tests
9556 lt_simple_compile_test_code="int some_variable = 0;"
9558 # Code to be used in simple link tests
9559 lt_simple_link_test_code='int main(){return(0);}'
9567 # If no C compiler was specified, use CC.
9568 LTCC=${LTCC-"$CC"}
9570 # If no C compiler flags were specified, use CFLAGS.
9571 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9573 # Allow CC to be a program name with arguments.
9574 compiler=$CC
9576 # Save the default compiler, since it gets overwritten when the other
9577 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9578 compiler_DEFAULT=$CC
9580 # save warnings/boilerplate of simple test code
9581 ac_outfile=conftest.$ac_objext
9582 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9583 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9584 _lt_compiler_boilerplate=`cat conftest.err`
9585 $RM conftest*
9587 ac_outfile=conftest.$ac_objext
9588 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9589 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9590 _lt_linker_boilerplate=`cat conftest.err`
9591 $RM -r conftest*
9594 ## CAVEAT EMPTOR:
9595 ## There is no encapsulation within the following macros, do not change
9596 ## the running order or otherwise move them around unless you know exactly
9597 ## what you are doing...
9598 if test -n "$compiler"; then
9600 lt_prog_compiler_no_builtin_flag=
9602 if test "$GCC" = yes; then
9603 case $cc_basename in
9604 nvcc*)
9605 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9607 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9608 esac
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9611 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9612 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9613 $as_echo_n "(cached) " >&6
9614 else
9615 lt_cv_prog_compiler_rtti_exceptions=no
9616 ac_outfile=conftest.$ac_objext
9617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9618 lt_compiler_flag="-fno-rtti -fno-exceptions"
9619 # Insert the option either (1) after the last *FLAGS variable, or
9620 # (2) before a word containing "conftest.", or (3) at the end.
9621 # Note that $ac_compile itself does not contain backslashes and begins
9622 # with a dollar sign (not a hyphen), so the echo should work correctly.
9623 # The option is referenced via a variable to avoid confusing sed.
9624 lt_compile=`echo "$ac_compile" | $SED \
9625 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9626 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9627 -e 's:$: $lt_compiler_flag:'`
9628 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9629 (eval "$lt_compile" 2>conftest.err)
9630 ac_status=$?
9631 cat conftest.err >&5
9632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9633 if (exit $ac_status) && test -s "$ac_outfile"; then
9634 # The compiler can only warn and ignore the option if not recognized
9635 # So say no if there are warnings other than the usual output.
9636 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9638 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9639 lt_cv_prog_compiler_rtti_exceptions=yes
9642 $RM conftest*
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9646 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9648 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9649 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9650 else
9661 lt_prog_compiler_wl=
9662 lt_prog_compiler_pic=
9663 lt_prog_compiler_static=
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9666 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9668 if test "$GCC" = yes; then
9669 lt_prog_compiler_wl='-Wl,'
9670 lt_prog_compiler_static='-static'
9672 case $host_os in
9673 aix*)
9674 # All AIX code is PIC.
9675 if test "$host_cpu" = ia64; then
9676 # AIX 5 now supports IA64 processor
9677 lt_prog_compiler_static='-Bstatic'
9679 lt_prog_compiler_pic='-fPIC'
9682 amigaos*)
9683 case $host_cpu in
9684 powerpc)
9685 # see comment about AmigaOS4 .so support
9686 lt_prog_compiler_pic='-fPIC'
9688 m68k)
9689 # FIXME: we need at least 68020 code to build shared libraries, but
9690 # adding the `-m68020' flag to GCC prevents building anything better,
9691 # like `-m68040'.
9692 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9694 esac
9697 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9698 # PIC is the default for these OSes.
9701 mingw* | cygwin* | pw32* | os2* | cegcc*)
9702 # This hack is so that the source file can tell whether it is being
9703 # built for inclusion in a dll (and should export symbols for example).
9704 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9705 # (--disable-auto-import) libraries
9706 lt_prog_compiler_pic='-DDLL_EXPORT'
9709 darwin* | rhapsody*)
9710 # PIC is the default on this platform
9711 # Common symbols not allowed in MH_DYLIB files
9712 lt_prog_compiler_pic='-fno-common'
9715 haiku*)
9716 # PIC is the default for Haiku.
9717 # The "-static" flag exists, but is broken.
9718 lt_prog_compiler_static=
9721 hpux*)
9722 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9723 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9724 # sets the default TLS model and affects inlining.
9725 case $host_cpu in
9726 hppa*64*)
9727 # +Z the default
9730 lt_prog_compiler_pic='-fPIC'
9732 esac
9735 interix[3-9]*)
9736 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9737 # Instead, we relocate shared libraries at runtime.
9740 msdosdjgpp*)
9741 # Just because we use GCC doesn't mean we suddenly get shared libraries
9742 # on systems that don't support them.
9743 lt_prog_compiler_can_build_shared=no
9744 enable_shared=no
9747 *nto* | *qnx*)
9748 # QNX uses GNU C++, but need to define -shared option too, otherwise
9749 # it will coredump.
9750 lt_prog_compiler_pic='-fPIC -shared'
9753 sysv4*MP*)
9754 if test -d /usr/nec; then
9755 lt_prog_compiler_pic=-Kconform_pic
9760 lt_prog_compiler_pic='-fPIC'
9762 esac
9764 case $cc_basename in
9765 nvcc*) # Cuda Compiler Driver 2.2
9766 lt_prog_compiler_wl='-Xlinker '
9767 lt_prog_compiler_pic='-Xcompiler -fPIC'
9769 esac
9770 else
9771 # PORTME Check for flag to pass linker flags through the system compiler.
9772 case $host_os in
9773 aix*)
9774 lt_prog_compiler_wl='-Wl,'
9775 if test "$host_cpu" = ia64; then
9776 # AIX 5 now supports IA64 processor
9777 lt_prog_compiler_static='-Bstatic'
9778 else
9779 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9783 mingw* | cygwin* | pw32* | os2* | cegcc*)
9784 # This hack is so that the source file can tell whether it is being
9785 # built for inclusion in a dll (and should export symbols for example).
9786 lt_prog_compiler_pic='-DDLL_EXPORT'
9789 hpux9* | hpux10* | hpux11*)
9790 lt_prog_compiler_wl='-Wl,'
9791 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9792 # not for PA HP-UX.
9793 case $host_cpu in
9794 hppa*64*|ia64*)
9795 # +Z the default
9798 lt_prog_compiler_pic='+Z'
9800 esac
9801 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9802 lt_prog_compiler_static='${wl}-a ${wl}archive'
9805 irix5* | irix6* | nonstopux*)
9806 lt_prog_compiler_wl='-Wl,'
9807 # PIC (with -KPIC) is the default.
9808 lt_prog_compiler_static='-non_shared'
9811 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9812 case $cc_basename in
9813 # old Intel for x86_64 which still supported -KPIC.
9814 ecc*)
9815 lt_prog_compiler_wl='-Wl,'
9816 lt_prog_compiler_pic='-KPIC'
9817 lt_prog_compiler_static='-static'
9819 # icc used to be incompatible with GCC.
9820 # ICC 10 doesn't accept -KPIC any more.
9821 icc* | ifort*)
9822 lt_prog_compiler_wl='-Wl,'
9823 lt_prog_compiler_pic='-fPIC'
9824 lt_prog_compiler_static='-static'
9826 # Lahey Fortran 8.1.
9827 lf95*)
9828 lt_prog_compiler_wl='-Wl,'
9829 lt_prog_compiler_pic='--shared'
9830 lt_prog_compiler_static='--static'
9832 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9833 # Portland Group compilers (*not* the Pentium gcc compiler,
9834 # which looks to be a dead project)
9835 lt_prog_compiler_wl='-Wl,'
9836 lt_prog_compiler_pic='-fpic'
9837 lt_prog_compiler_static='-Bstatic'
9839 ccc*)
9840 lt_prog_compiler_wl='-Wl,'
9841 # All Alpha code is PIC.
9842 lt_prog_compiler_static='-non_shared'
9844 xl* | bgxl* | bgf* | mpixl*)
9845 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9846 lt_prog_compiler_wl='-Wl,'
9847 lt_prog_compiler_pic='-qpic'
9848 lt_prog_compiler_static='-qstaticlink'
9851 case `$CC -V 2>&1 | sed 5q` in
9852 *Sun\ F* | *Sun*Fortran*)
9853 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9854 lt_prog_compiler_pic='-KPIC'
9855 lt_prog_compiler_static='-Bstatic'
9856 lt_prog_compiler_wl=''
9858 *Sun\ C*)
9859 # Sun C 5.9
9860 lt_prog_compiler_pic='-KPIC'
9861 lt_prog_compiler_static='-Bstatic'
9862 lt_prog_compiler_wl='-Wl,'
9864 esac
9866 esac
9869 newsos6)
9870 lt_prog_compiler_pic='-KPIC'
9871 lt_prog_compiler_static='-Bstatic'
9874 *nto* | *qnx*)
9875 # QNX uses GNU C++, but need to define -shared option too, otherwise
9876 # it will coredump.
9877 lt_prog_compiler_pic='-fPIC -shared'
9880 osf3* | osf4* | osf5*)
9881 lt_prog_compiler_wl='-Wl,'
9882 # All OSF/1 code is PIC.
9883 lt_prog_compiler_static='-non_shared'
9886 rdos*)
9887 lt_prog_compiler_static='-non_shared'
9890 solaris*)
9891 lt_prog_compiler_pic='-KPIC'
9892 lt_prog_compiler_static='-Bstatic'
9893 case $cc_basename in
9894 f77* | f90* | f95*)
9895 lt_prog_compiler_wl='-Qoption ld ';;
9897 lt_prog_compiler_wl='-Wl,';;
9898 esac
9901 sunos4*)
9902 lt_prog_compiler_wl='-Qoption ld '
9903 lt_prog_compiler_pic='-PIC'
9904 lt_prog_compiler_static='-Bstatic'
9907 sysv4 | sysv4.2uw2* | sysv4.3*)
9908 lt_prog_compiler_wl='-Wl,'
9909 lt_prog_compiler_pic='-KPIC'
9910 lt_prog_compiler_static='-Bstatic'
9913 sysv4*MP*)
9914 if test -d /usr/nec ;then
9915 lt_prog_compiler_pic='-Kconform_pic'
9916 lt_prog_compiler_static='-Bstatic'
9920 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9921 lt_prog_compiler_wl='-Wl,'
9922 lt_prog_compiler_pic='-KPIC'
9923 lt_prog_compiler_static='-Bstatic'
9926 unicos*)
9927 lt_prog_compiler_wl='-Wl,'
9928 lt_prog_compiler_can_build_shared=no
9931 uts4*)
9932 lt_prog_compiler_pic='-pic'
9933 lt_prog_compiler_static='-Bstatic'
9937 lt_prog_compiler_can_build_shared=no
9939 esac
9942 case $host_os in
9943 # For platforms which do not support PIC, -DPIC is meaningless:
9944 *djgpp*)
9945 lt_prog_compiler_pic=
9948 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9950 esac
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9952 $as_echo "$lt_prog_compiler_pic" >&6; }
9960 # Check to make sure the PIC flag actually works.
9962 if test -n "$lt_prog_compiler_pic"; then
9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9964 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9965 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9966 $as_echo_n "(cached) " >&6
9967 else
9968 lt_cv_prog_compiler_pic_works=no
9969 ac_outfile=conftest.$ac_objext
9970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9971 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9972 # Insert the option either (1) after the last *FLAGS variable, or
9973 # (2) before a word containing "conftest.", or (3) at the end.
9974 # Note that $ac_compile itself does not contain backslashes and begins
9975 # with a dollar sign (not a hyphen), so the echo should work correctly.
9976 # The option is referenced via a variable to avoid confusing sed.
9977 lt_compile=`echo "$ac_compile" | $SED \
9978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9980 -e 's:$: $lt_compiler_flag:'`
9981 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9982 (eval "$lt_compile" 2>conftest.err)
9983 ac_status=$?
9984 cat conftest.err >&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 if (exit $ac_status) && test -s "$ac_outfile"; then
9987 # The compiler can only warn and ignore the option if not recognized
9988 # So say no if there are warnings other than the usual output.
9989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9992 lt_cv_prog_compiler_pic_works=yes
9995 $RM conftest*
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9999 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10001 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10002 case $lt_prog_compiler_pic in
10003 "" | " "*) ;;
10004 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10005 esac
10006 else
10007 lt_prog_compiler_pic=
10008 lt_prog_compiler_can_build_shared=no
10019 # Check to make sure the static flag actually works.
10021 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10023 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10024 if ${lt_cv_prog_compiler_static_works+:} false; then :
10025 $as_echo_n "(cached) " >&6
10026 else
10027 lt_cv_prog_compiler_static_works=no
10028 save_LDFLAGS="$LDFLAGS"
10029 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10030 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10031 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10032 # The linker can only warn and ignore the option if not recognized
10033 # So say no if there are warnings
10034 if test -s conftest.err; then
10035 # Append any errors to the config.log.
10036 cat conftest.err 1>&5
10037 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10038 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10039 if diff conftest.exp conftest.er2 >/dev/null; then
10040 lt_cv_prog_compiler_static_works=yes
10042 else
10043 lt_cv_prog_compiler_static_works=yes
10046 $RM -r conftest*
10047 LDFLAGS="$save_LDFLAGS"
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10051 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10053 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10055 else
10056 lt_prog_compiler_static=
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10066 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10067 if ${lt_cv_prog_compiler_c_o+:} false; then :
10068 $as_echo_n "(cached) " >&6
10069 else
10070 lt_cv_prog_compiler_c_o=no
10071 $RM -r conftest 2>/dev/null
10072 mkdir conftest
10073 cd conftest
10074 mkdir out
10075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10077 lt_compiler_flag="-o out/conftest2.$ac_objext"
10078 # Insert the option either (1) after the last *FLAGS variable, or
10079 # (2) before a word containing "conftest.", or (3) at the end.
10080 # Note that $ac_compile itself does not contain backslashes and begins
10081 # with a dollar sign (not a hyphen), so the echo should work correctly.
10082 lt_compile=`echo "$ac_compile" | $SED \
10083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10085 -e 's:$: $lt_compiler_flag:'`
10086 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10087 (eval "$lt_compile" 2>out/conftest.err)
10088 ac_status=$?
10089 cat out/conftest.err >&5
10090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10091 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10092 then
10093 # The compiler can only warn and ignore the option if not recognized
10094 # So say no if there are warnings
10095 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10096 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10097 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10098 lt_cv_prog_compiler_c_o=yes
10101 chmod u+w . 2>&5
10102 $RM conftest*
10103 # SGI C++ compiler will create directory out/ii_files/ for
10104 # template instantiation
10105 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10106 $RM out/* && rmdir out
10107 cd ..
10108 $RM -r conftest
10109 $RM conftest*
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10113 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10121 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10122 if ${lt_cv_prog_compiler_c_o+:} false; then :
10123 $as_echo_n "(cached) " >&6
10124 else
10125 lt_cv_prog_compiler_c_o=no
10126 $RM -r conftest 2>/dev/null
10127 mkdir conftest
10128 cd conftest
10129 mkdir out
10130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10132 lt_compiler_flag="-o out/conftest2.$ac_objext"
10133 # Insert the option either (1) after the last *FLAGS variable, or
10134 # (2) before a word containing "conftest.", or (3) at the end.
10135 # Note that $ac_compile itself does not contain backslashes and begins
10136 # with a dollar sign (not a hyphen), so the echo should work correctly.
10137 lt_compile=`echo "$ac_compile" | $SED \
10138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10140 -e 's:$: $lt_compiler_flag:'`
10141 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10142 (eval "$lt_compile" 2>out/conftest.err)
10143 ac_status=$?
10144 cat out/conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10147 then
10148 # The compiler can only warn and ignore the option if not recognized
10149 # So say no if there are warnings
10150 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10151 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10152 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10153 lt_cv_prog_compiler_c_o=yes
10156 chmod u+w . 2>&5
10157 $RM conftest*
10158 # SGI C++ compiler will create directory out/ii_files/ for
10159 # template instantiation
10160 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10161 $RM out/* && rmdir out
10162 cd ..
10163 $RM -r conftest
10164 $RM conftest*
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10168 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10173 hard_links="nottested"
10174 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10175 # do not overwrite the value of need_locks provided by the user
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10177 $as_echo_n "checking if we can lock with hard links... " >&6; }
10178 hard_links=yes
10179 $RM conftest*
10180 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10181 touch conftest.a
10182 ln conftest.a conftest.b 2>&5 || hard_links=no
10183 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10185 $as_echo "$hard_links" >&6; }
10186 if test "$hard_links" = no; then
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10188 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10189 need_locks=warn
10191 else
10192 need_locks=no
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10201 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10203 runpath_var=
10204 allow_undefined_flag=
10205 always_export_symbols=no
10206 archive_cmds=
10207 archive_expsym_cmds=
10208 compiler_needs_object=no
10209 enable_shared_with_static_runtimes=no
10210 export_dynamic_flag_spec=
10211 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10212 hardcode_automatic=no
10213 hardcode_direct=no
10214 hardcode_direct_absolute=no
10215 hardcode_libdir_flag_spec=
10216 hardcode_libdir_flag_spec_ld=
10217 hardcode_libdir_separator=
10218 hardcode_minus_L=no
10219 hardcode_shlibpath_var=unsupported
10220 inherit_rpath=no
10221 link_all_deplibs=unknown
10222 module_cmds=
10223 module_expsym_cmds=
10224 old_archive_from_new_cmds=
10225 old_archive_from_expsyms_cmds=
10226 thread_safe_flag_spec=
10227 whole_archive_flag_spec=
10228 # include_expsyms should be a list of space-separated symbols to be *always*
10229 # included in the symbol list
10230 include_expsyms=
10231 # exclude_expsyms can be an extended regexp of symbols to exclude
10232 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10233 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10234 # as well as any symbol that contains `d'.
10235 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10236 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10237 # platforms (ab)use it in PIC code, but their linkers get confused if
10238 # the symbol is explicitly referenced. Since portable code cannot
10239 # rely on this symbol name, it's probably fine to never include it in
10240 # preloaded symbol tables.
10241 # Exclude shared library initialization/finalization symbols.
10242 extract_expsyms_cmds=
10244 case $host_os in
10245 cygwin* | mingw* | pw32* | cegcc*)
10246 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10247 # When not using gcc, we currently assume that we are using
10248 # Microsoft Visual C++.
10249 if test "$GCC" != yes; then
10250 with_gnu_ld=no
10253 interix*)
10254 # we just hope/assume this is gcc and not c89 (= MSVC++)
10255 with_gnu_ld=yes
10257 openbsd*)
10258 with_gnu_ld=no
10260 esac
10262 ld_shlibs=yes
10264 # On some targets, GNU ld is compatible enough with the native linker
10265 # that we're better off using the native interface for both.
10266 lt_use_gnu_ld_interface=no
10267 if test "$with_gnu_ld" = yes; then
10268 case $host_os in
10269 aix*)
10270 # The AIX port of GNU ld has always aspired to compatibility
10271 # with the native linker. However, as the warning in the GNU ld
10272 # block says, versions before 2.19.5* couldn't really create working
10273 # shared libraries, regardless of the interface used.
10274 case `$LD -v 2>&1` in
10275 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10276 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10277 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10279 lt_use_gnu_ld_interface=yes
10281 esac
10284 lt_use_gnu_ld_interface=yes
10286 esac
10289 if test "$lt_use_gnu_ld_interface" = yes; then
10290 # If archive_cmds runs LD, not CC, wlarc should be empty
10291 wlarc='${wl}'
10293 # Set some defaults for GNU ld with shared library support. These
10294 # are reset later if shared libraries are not supported. Putting them
10295 # here allows them to be overridden if necessary.
10296 runpath_var=LD_RUN_PATH
10297 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10298 export_dynamic_flag_spec='${wl}--export-dynamic'
10299 # ancient GNU ld didn't support --whole-archive et. al.
10300 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10301 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10302 else
10303 whole_archive_flag_spec=
10305 supports_anon_versioning=no
10306 case `$LD -v 2>&1` in
10307 *GNU\ gold*) supports_anon_versioning=yes ;;
10308 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10309 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10310 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10311 *\ 2.11.*) ;; # other 2.11 versions
10312 *) supports_anon_versioning=yes ;;
10313 esac
10315 # See if GNU ld supports shared libraries.
10316 case $host_os in
10317 aix[3-9]*)
10318 # On AIX/PPC, the GNU linker is very broken
10319 if test "$host_cpu" != ia64; then
10320 ld_shlibs=no
10321 cat <<_LT_EOF 1>&2
10323 *** Warning: the GNU linker, at least up to release 2.19, is reported
10324 *** to be unable to reliably create shared libraries on AIX.
10325 *** Therefore, libtool is disabling shared libraries support. If you
10326 *** really care for shared libraries, you may want to install binutils
10327 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10328 *** You will then need to restart the configuration process.
10330 _LT_EOF
10334 amigaos*)
10335 case $host_cpu in
10336 powerpc)
10337 # see comment about AmigaOS4 .so support
10338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10339 archive_expsym_cmds=''
10341 m68k)
10342 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)'
10343 hardcode_libdir_flag_spec='-L$libdir'
10344 hardcode_minus_L=yes
10346 esac
10349 beos*)
10350 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10351 allow_undefined_flag=unsupported
10352 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10353 # support --undefined. This deserves some investigation. FIXME
10354 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10355 else
10356 ld_shlibs=no
10360 cygwin* | mingw* | pw32* | cegcc*)
10361 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10362 # as there is no search path for DLLs.
10363 hardcode_libdir_flag_spec='-L$libdir'
10364 export_dynamic_flag_spec='${wl}--export-all-symbols'
10365 allow_undefined_flag=unsupported
10366 always_export_symbols=no
10367 enable_shared_with_static_runtimes=yes
10368 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10370 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10372 # If the export-symbols file already is a .def file (1st line
10373 # is EXPORTS), use it as is; otherwise, prepend...
10374 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10375 cp $export_symbols $output_objdir/$soname.def;
10376 else
10377 echo EXPORTS > $output_objdir/$soname.def;
10378 cat $export_symbols >> $output_objdir/$soname.def;
10380 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10381 else
10382 ld_shlibs=no
10386 haiku*)
10387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10388 link_all_deplibs=yes
10391 interix[3-9]*)
10392 hardcode_direct=no
10393 hardcode_shlibpath_var=no
10394 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10395 export_dynamic_flag_spec='${wl}-E'
10396 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10397 # Instead, shared libraries are loaded at an image base (0x10000000 by
10398 # default) and relocated if they conflict, which is a slow very memory
10399 # consuming and fragmenting process. To avoid this, we pick a random,
10400 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10401 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10402 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10403 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'
10406 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10407 tmp_diet=no
10408 if test "$host_os" = linux-dietlibc; then
10409 case $cc_basename in
10410 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10411 esac
10413 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10414 && test "$tmp_diet" = no
10415 then
10416 tmp_addflag=' $pic_flag'
10417 tmp_sharedflag='-shared'
10418 case $cc_basename,$host_cpu in
10419 pgcc*) # Portland Group C compiler
10420 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'
10421 tmp_addflag=' $pic_flag'
10423 pgf77* | pgf90* | pgf95* | pgfortran*)
10424 # Portland Group f77 and f90 compilers
10425 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'
10426 tmp_addflag=' $pic_flag -Mnomain' ;;
10427 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10428 tmp_addflag=' -i_dynamic' ;;
10429 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10430 tmp_addflag=' -i_dynamic -nofor_main' ;;
10431 ifc* | ifort*) # Intel Fortran compiler
10432 tmp_addflag=' -nofor_main' ;;
10433 lf95*) # Lahey Fortran 8.1
10434 whole_archive_flag_spec=
10435 tmp_sharedflag='--shared' ;;
10436 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10437 tmp_sharedflag='-qmkshrobj'
10438 tmp_addflag= ;;
10439 nvcc*) # Cuda Compiler Driver 2.2
10440 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'
10441 compiler_needs_object=yes
10443 esac
10444 case `$CC -V 2>&1 | sed 5q` in
10445 *Sun\ C*) # Sun C 5.9
10446 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'
10447 compiler_needs_object=yes
10448 tmp_sharedflag='-G' ;;
10449 *Sun\ F*) # Sun Fortran 8.3
10450 tmp_sharedflag='-G' ;;
10451 esac
10452 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10454 if test "x$supports_anon_versioning" = xyes; then
10455 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10456 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10457 echo "local: *; };" >> $output_objdir/$libname.ver~
10458 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10461 case $cc_basename in
10462 xlf* | bgf* | bgxlf* | mpixlf*)
10463 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10464 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10465 hardcode_libdir_flag_spec=
10466 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10467 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10468 if test "x$supports_anon_versioning" = xyes; then
10469 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10470 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10471 echo "local: *; };" >> $output_objdir/$libname.ver~
10472 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10475 esac
10476 else
10477 ld_shlibs=no
10481 netbsd*)
10482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10483 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10484 wlarc=
10485 else
10486 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10487 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10491 solaris*)
10492 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10493 ld_shlibs=no
10494 cat <<_LT_EOF 1>&2
10496 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10497 *** create shared libraries on Solaris systems. Therefore, libtool
10498 *** is disabling shared libraries support. We urge you to upgrade GNU
10499 *** binutils to release 2.9.1 or newer. Another option is to modify
10500 *** your PATH or compiler configuration so that the native linker is
10501 *** used, and then restart.
10503 _LT_EOF
10504 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10506 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10507 else
10508 ld_shlibs=no
10512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10513 case `$LD -v 2>&1` in
10514 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10515 ld_shlibs=no
10516 cat <<_LT_EOF 1>&2
10518 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10519 *** reliably create shared libraries on SCO systems. Therefore, libtool
10520 *** is disabling shared libraries support. We urge you to upgrade GNU
10521 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10522 *** your PATH or compiler configuration so that the native linker is
10523 *** used, and then restart.
10525 _LT_EOF
10528 # For security reasons, it is highly recommended that you always
10529 # use absolute paths for naming shared libraries, and exclude the
10530 # DT_RUNPATH tag from executables and libraries. But doing so
10531 # requires that you compile everything twice, which is a pain.
10532 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10533 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10534 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10535 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10536 else
10537 ld_shlibs=no
10540 esac
10543 sunos4*)
10544 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10545 wlarc=
10546 hardcode_direct=yes
10547 hardcode_shlibpath_var=no
10551 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10552 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10553 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10554 else
10555 ld_shlibs=no
10558 esac
10560 if test "$ld_shlibs" = no; then
10561 runpath_var=
10562 hardcode_libdir_flag_spec=
10563 export_dynamic_flag_spec=
10564 whole_archive_flag_spec=
10566 else
10567 # PORTME fill in a description of your system's linker (not GNU ld)
10568 case $host_os in
10569 aix3*)
10570 allow_undefined_flag=unsupported
10571 always_export_symbols=yes
10572 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'
10573 # Note: this linker hardcodes the directories in LIBPATH if there
10574 # are no directories specified by -L.
10575 hardcode_minus_L=yes
10576 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10577 # Neither direct hardcoding nor static linking is supported with a
10578 # broken collect2.
10579 hardcode_direct=unsupported
10583 aix[4-9]*)
10584 if test "$host_cpu" = ia64; then
10585 # On IA64, the linker does run time linking by default, so we don't
10586 # have to do anything special.
10587 aix_use_runtimelinking=no
10588 exp_sym_flag='-Bexport'
10589 no_entry_flag=""
10590 else
10591 # If we're using GNU nm, then we don't want the "-C" option.
10592 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10593 # Also, AIX nm treats weak defined symbols like other global
10594 # defined symbols, whereas GNU nm marks them as "W".
10595 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10596 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'
10597 else
10598 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'
10600 aix_use_runtimelinking=no
10602 # Test if we are trying to use run time linking or normal
10603 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10604 # need to do runtime linking.
10605 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10606 for ld_flag in $LDFLAGS; do
10607 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10608 aix_use_runtimelinking=yes
10609 break
10611 done
10613 esac
10615 exp_sym_flag='-bexport'
10616 no_entry_flag='-bnoentry'
10619 # When large executables or shared objects are built, AIX ld can
10620 # have problems creating the table of contents. If linking a library
10621 # or program results in "error TOC overflow" add -mminimal-toc to
10622 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10623 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10625 archive_cmds=''
10626 hardcode_direct=yes
10627 hardcode_direct_absolute=yes
10628 hardcode_libdir_separator=':'
10629 link_all_deplibs=yes
10630 file_list_spec='${wl}-f,'
10632 if test "$GCC" = yes; then
10633 case $host_os in aix4.[012]|aix4.[012].*)
10634 # We only want to do this on AIX 4.2 and lower, the check
10635 # below for broken collect2 doesn't work under 4.3+
10636 collect2name=`${CC} -print-prog-name=collect2`
10637 if test -f "$collect2name" &&
10638 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10639 then
10640 # We have reworked collect2
10642 else
10643 # We have old collect2
10644 hardcode_direct=unsupported
10645 # It fails to find uninstalled libraries when the uninstalled
10646 # path is not listed in the libpath. Setting hardcode_minus_L
10647 # to unsupported forces relinking
10648 hardcode_minus_L=yes
10649 hardcode_libdir_flag_spec='-L$libdir'
10650 hardcode_libdir_separator=
10653 esac
10654 shared_flag='-shared'
10655 if test "$aix_use_runtimelinking" = yes; then
10656 shared_flag="$shared_flag "'${wl}-G'
10658 else
10659 # not using gcc
10660 if test "$host_cpu" = ia64; then
10661 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10662 # chokes on -Wl,-G. The following line is correct:
10663 shared_flag='-G'
10664 else
10665 if test "$aix_use_runtimelinking" = yes; then
10666 shared_flag='${wl}-G'
10667 else
10668 shared_flag='${wl}-bM:SRE'
10673 export_dynamic_flag_spec='${wl}-bexpall'
10674 # It seems that -bexpall does not export symbols beginning with
10675 # underscore (_), so it is better to generate a list of symbols to export.
10676 always_export_symbols=yes
10677 if test "$aix_use_runtimelinking" = yes; then
10678 # Warning - without using the other runtime loading flags (-brtl),
10679 # -berok will link without error, but may produce a broken library.
10680 allow_undefined_flag='-berok'
10681 # Determine the default libpath from the value encoded in an
10682 # empty executable.
10683 if test x$gcc_no_link = xyes; then
10684 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10687 /* end confdefs.h. */
10690 main ()
10694 return 0;
10696 _ACEOF
10697 if ac_fn_c_try_link "$LINENO"; then :
10699 lt_aix_libpath_sed='
10700 /Import File Strings/,/^$/ {
10701 /^0/ {
10702 s/^0 *\(.*\)$/\1/
10706 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10707 # Check for a 64-bit object if we didn't find anything.
10708 if test -z "$aix_libpath"; then
10709 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10712 rm -f core conftest.err conftest.$ac_objext \
10713 conftest$ac_exeext conftest.$ac_ext
10714 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10716 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10717 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"
10718 else
10719 if test "$host_cpu" = ia64; then
10720 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10721 allow_undefined_flag="-z nodefs"
10722 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"
10723 else
10724 # Determine the default libpath from the value encoded in an
10725 # empty executable.
10726 if test x$gcc_no_link = xyes; then
10727 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10730 /* end confdefs.h. */
10733 main ()
10737 return 0;
10739 _ACEOF
10740 if ac_fn_c_try_link "$LINENO"; then :
10742 lt_aix_libpath_sed='
10743 /Import File Strings/,/^$/ {
10744 /^0/ {
10745 s/^0 *\(.*\)$/\1/
10749 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10750 # Check for a 64-bit object if we didn't find anything.
10751 if test -z "$aix_libpath"; then
10752 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10755 rm -f core conftest.err conftest.$ac_objext \
10756 conftest$ac_exeext conftest.$ac_ext
10757 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10759 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10760 # Warning - without using the other run time loading flags,
10761 # -berok will link without error, but may produce a broken library.
10762 no_undefined_flag=' ${wl}-bernotok'
10763 allow_undefined_flag=' ${wl}-berok'
10764 if test "$with_gnu_ld" = yes; then
10765 # We only use this code for GNU lds that support --whole-archive.
10766 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10767 else
10768 # Exported symbols can be pulled into shared objects from archives
10769 whole_archive_flag_spec='$convenience'
10771 archive_cmds_need_lc=yes
10772 # This is similar to how AIX traditionally builds its shared libraries.
10773 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'
10778 amigaos*)
10779 case $host_cpu in
10780 powerpc)
10781 # see comment about AmigaOS4 .so support
10782 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10783 archive_expsym_cmds=''
10785 m68k)
10786 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)'
10787 hardcode_libdir_flag_spec='-L$libdir'
10788 hardcode_minus_L=yes
10790 esac
10793 bsdi[45]*)
10794 export_dynamic_flag_spec=-rdynamic
10797 cygwin* | mingw* | pw32* | cegcc*)
10798 # When not using gcc, we currently assume that we are using
10799 # Microsoft Visual C++.
10800 # hardcode_libdir_flag_spec is actually meaningless, as there is
10801 # no search path for DLLs.
10802 hardcode_libdir_flag_spec=' '
10803 allow_undefined_flag=unsupported
10804 # Tell ltmain to make .lib files, not .a files.
10805 libext=lib
10806 # Tell ltmain to make .dll files, not .so files.
10807 shrext_cmds=".dll"
10808 # FIXME: Setting linknames here is a bad hack.
10809 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10810 # The linker will automatically build a .lib file if we build a DLL.
10811 old_archive_from_new_cmds='true'
10812 # FIXME: Should let the user specify the lib program.
10813 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10814 fix_srcfile_path='`cygpath -w "$srcfile"`'
10815 enable_shared_with_static_runtimes=yes
10818 darwin* | rhapsody*)
10821 archive_cmds_need_lc=no
10822 hardcode_direct=no
10823 hardcode_automatic=yes
10824 hardcode_shlibpath_var=unsupported
10825 if test "$lt_cv_ld_force_load" = "yes"; then
10826 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\"`'
10827 else
10828 whole_archive_flag_spec=''
10830 link_all_deplibs=yes
10831 allow_undefined_flag="$_lt_dar_allow_undefined"
10832 case $cc_basename in
10833 ifort*) _lt_dar_can_shared=yes ;;
10834 *) _lt_dar_can_shared=$GCC ;;
10835 esac
10836 if test "$_lt_dar_can_shared" = "yes"; then
10837 output_verbose_link_cmd=func_echo_all
10838 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10839 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10840 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}"
10841 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}"
10843 else
10844 ld_shlibs=no
10849 dgux*)
10850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10851 hardcode_libdir_flag_spec='-L$libdir'
10852 hardcode_shlibpath_var=no
10855 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10856 # support. Future versions do this automatically, but an explicit c++rt0.o
10857 # does not break anything, and helps significantly (at the cost of a little
10858 # extra space).
10859 freebsd2.2*)
10860 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10861 hardcode_libdir_flag_spec='-R$libdir'
10862 hardcode_direct=yes
10863 hardcode_shlibpath_var=no
10866 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10867 freebsd2.*)
10868 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10869 hardcode_direct=yes
10870 hardcode_minus_L=yes
10871 hardcode_shlibpath_var=no
10874 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10875 freebsd* | dragonfly*)
10876 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10877 hardcode_libdir_flag_spec='-R$libdir'
10878 hardcode_direct=yes
10879 hardcode_shlibpath_var=no
10882 hpux9*)
10883 if test "$GCC" = yes; then
10884 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'
10885 else
10886 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'
10888 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10889 hardcode_libdir_separator=:
10890 hardcode_direct=yes
10892 # hardcode_minus_L: Not really in the search PATH,
10893 # but as the default location of the library.
10894 hardcode_minus_L=yes
10895 export_dynamic_flag_spec='${wl}-E'
10898 hpux10*)
10899 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10900 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10901 else
10902 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10904 if test "$with_gnu_ld" = no; then
10905 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10906 hardcode_libdir_flag_spec_ld='+b $libdir'
10907 hardcode_libdir_separator=:
10908 hardcode_direct=yes
10909 hardcode_direct_absolute=yes
10910 export_dynamic_flag_spec='${wl}-E'
10911 # hardcode_minus_L: Not really in the search PATH,
10912 # but as the default location of the library.
10913 hardcode_minus_L=yes
10917 hpux11*)
10918 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10919 case $host_cpu in
10920 hppa*64*)
10921 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10923 ia64*)
10924 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10927 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10929 esac
10930 else
10931 case $host_cpu in
10932 hppa*64*)
10933 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10935 ia64*)
10936 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10940 # Older versions of the 11.00 compiler do not understand -b yet
10941 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10943 $as_echo_n "checking if $CC understands -b... " >&6; }
10944 if ${lt_cv_prog_compiler__b+:} false; then :
10945 $as_echo_n "(cached) " >&6
10946 else
10947 lt_cv_prog_compiler__b=no
10948 save_LDFLAGS="$LDFLAGS"
10949 LDFLAGS="$LDFLAGS -b"
10950 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10951 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10952 # The linker can only warn and ignore the option if not recognized
10953 # So say no if there are warnings
10954 if test -s conftest.err; then
10955 # Append any errors to the config.log.
10956 cat conftest.err 1>&5
10957 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10958 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10959 if diff conftest.exp conftest.er2 >/dev/null; then
10960 lt_cv_prog_compiler__b=yes
10962 else
10963 lt_cv_prog_compiler__b=yes
10966 $RM -r conftest*
10967 LDFLAGS="$save_LDFLAGS"
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10971 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10973 if test x"$lt_cv_prog_compiler__b" = xyes; then
10974 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10975 else
10976 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10980 esac
10982 if test "$with_gnu_ld" = no; then
10983 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10984 hardcode_libdir_separator=:
10986 case $host_cpu in
10987 hppa*64*|ia64*)
10988 hardcode_direct=no
10989 hardcode_shlibpath_var=no
10992 hardcode_direct=yes
10993 hardcode_direct_absolute=yes
10994 export_dynamic_flag_spec='${wl}-E'
10996 # hardcode_minus_L: Not really in the search PATH,
10997 # but as the default location of the library.
10998 hardcode_minus_L=yes
11000 esac
11004 irix5* | irix6* | nonstopux*)
11005 if test "$GCC" = yes; then
11006 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'
11007 # Try to use the -exported_symbol ld option, if it does not
11008 # work, assume that -exports_file does not work either and
11009 # implicitly export all symbols.
11010 save_LDFLAGS="$LDFLAGS"
11011 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11012 if test x$gcc_no_link = xyes; then
11013 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11016 /* end confdefs.h. */
11017 int foo(void) {}
11018 _ACEOF
11019 if ac_fn_c_try_link "$LINENO"; then :
11020 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'
11023 rm -f core conftest.err conftest.$ac_objext \
11024 conftest$ac_exeext conftest.$ac_ext
11025 LDFLAGS="$save_LDFLAGS"
11026 else
11027 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'
11028 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'
11030 archive_cmds_need_lc='no'
11031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11032 hardcode_libdir_separator=:
11033 inherit_rpath=yes
11034 link_all_deplibs=yes
11037 netbsd*)
11038 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11039 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11040 else
11041 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11043 hardcode_libdir_flag_spec='-R$libdir'
11044 hardcode_direct=yes
11045 hardcode_shlibpath_var=no
11048 newsos6)
11049 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11050 hardcode_direct=yes
11051 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11052 hardcode_libdir_separator=:
11053 hardcode_shlibpath_var=no
11056 *nto* | *qnx*)
11059 openbsd*)
11060 if test -f /usr/libexec/ld.so; then
11061 hardcode_direct=yes
11062 hardcode_shlibpath_var=no
11063 hardcode_direct_absolute=yes
11064 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11065 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11066 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11067 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11068 export_dynamic_flag_spec='${wl}-E'
11069 else
11070 case $host_os in
11071 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11072 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11073 hardcode_libdir_flag_spec='-R$libdir'
11076 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11077 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11079 esac
11081 else
11082 ld_shlibs=no
11086 os2*)
11087 hardcode_libdir_flag_spec='-L$libdir'
11088 hardcode_minus_L=yes
11089 allow_undefined_flag=unsupported
11090 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'
11091 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11094 osf3*)
11095 if test "$GCC" = yes; then
11096 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11097 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'
11098 else
11099 allow_undefined_flag=' -expect_unresolved \*'
11100 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'
11102 archive_cmds_need_lc='no'
11103 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11104 hardcode_libdir_separator=:
11107 osf4* | osf5*) # as osf3* with the addition of -msym flag
11108 if test "$GCC" = yes; then
11109 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11110 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'
11111 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11112 else
11113 allow_undefined_flag=' -expect_unresolved \*'
11114 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'
11115 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~
11116 $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'
11118 # Both c and cxx compiler support -rpath directly
11119 hardcode_libdir_flag_spec='-rpath $libdir'
11121 archive_cmds_need_lc='no'
11122 hardcode_libdir_separator=:
11125 solaris*)
11126 no_undefined_flag=' -z defs'
11127 if test "$GCC" = yes; then
11128 wlarc='${wl}'
11129 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11130 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11131 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11132 else
11133 case `$CC -V 2>&1` in
11134 *"Compilers 5.0"*)
11135 wlarc=''
11136 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11137 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11138 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11141 wlarc='${wl}'
11142 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11143 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11144 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11146 esac
11148 hardcode_libdir_flag_spec='-R$libdir'
11149 hardcode_shlibpath_var=no
11150 case $host_os in
11151 solaris2.[0-5] | solaris2.[0-5].*) ;;
11153 # The compiler driver will combine and reorder linker options,
11154 # but understands `-z linker_flag'. GCC discards it without `$wl',
11155 # but is careful enough not to reorder.
11156 # Supported since Solaris 2.6 (maybe 2.5.1?)
11157 if test "$GCC" = yes; then
11158 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11159 else
11160 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11163 esac
11164 link_all_deplibs=yes
11167 sunos4*)
11168 if test "x$host_vendor" = xsequent; then
11169 # Use $CC to link under sequent, because it throws in some extra .o
11170 # files that make .init and .fini sections work.
11171 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11172 else
11173 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11175 hardcode_libdir_flag_spec='-L$libdir'
11176 hardcode_direct=yes
11177 hardcode_minus_L=yes
11178 hardcode_shlibpath_var=no
11181 sysv4)
11182 case $host_vendor in
11183 sni)
11184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11185 hardcode_direct=yes # is this really true???
11187 siemens)
11188 ## LD is ld it makes a PLAMLIB
11189 ## CC just makes a GrossModule.
11190 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11191 reload_cmds='$CC -r -o $output$reload_objs'
11192 hardcode_direct=no
11194 motorola)
11195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11196 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11198 esac
11199 runpath_var='LD_RUN_PATH'
11200 hardcode_shlibpath_var=no
11203 sysv4.3*)
11204 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11205 hardcode_shlibpath_var=no
11206 export_dynamic_flag_spec='-Bexport'
11209 sysv4*MP*)
11210 if test -d /usr/nec; then
11211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11212 hardcode_shlibpath_var=no
11213 runpath_var=LD_RUN_PATH
11214 hardcode_runpath_var=yes
11215 ld_shlibs=yes
11219 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11220 no_undefined_flag='${wl}-z,text'
11221 archive_cmds_need_lc=no
11222 hardcode_shlibpath_var=no
11223 runpath_var='LD_RUN_PATH'
11225 if test "$GCC" = yes; then
11226 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11227 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11228 else
11229 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11230 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11234 sysv5* | sco3.2v5* | sco5v6*)
11235 # Note: We can NOT use -z defs as we might desire, because we do not
11236 # link with -lc, and that would cause any symbols used from libc to
11237 # always be unresolved, which means just about no library would
11238 # ever link correctly. If we're not using GNU ld we use -z text
11239 # though, which does catch some bad symbols but isn't as heavy-handed
11240 # as -z defs.
11241 no_undefined_flag='${wl}-z,text'
11242 allow_undefined_flag='${wl}-z,nodefs'
11243 archive_cmds_need_lc=no
11244 hardcode_shlibpath_var=no
11245 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11246 hardcode_libdir_separator=':'
11247 link_all_deplibs=yes
11248 export_dynamic_flag_spec='${wl}-Bexport'
11249 runpath_var='LD_RUN_PATH'
11251 if test "$GCC" = yes; then
11252 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11253 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11254 else
11255 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11256 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11260 uts4*)
11261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11262 hardcode_libdir_flag_spec='-L$libdir'
11263 hardcode_shlibpath_var=no
11267 ld_shlibs=no
11269 esac
11271 if test x$host_vendor = xsni; then
11272 case $host in
11273 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11274 export_dynamic_flag_spec='${wl}-Blargedynsym'
11276 esac
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11281 $as_echo "$ld_shlibs" >&6; }
11282 test "$ld_shlibs" = no && can_build_shared=no
11284 with_gnu_ld=$with_gnu_ld
11301 # Do we need to explicitly link libc?
11303 case "x$archive_cmds_need_lc" in
11304 x|xyes)
11305 # Assume -lc should be added
11306 archive_cmds_need_lc=yes
11308 if test "$enable_shared" = yes && test "$GCC" = yes; then
11309 case $archive_cmds in
11310 *'~'*)
11311 # FIXME: we may have to deal with multi-command sequences.
11313 '$CC '*)
11314 # Test whether the compiler implicitly links with -lc since on some
11315 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11316 # to ld, don't add -lc before -lgcc.
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11318 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11319 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11320 $as_echo_n "(cached) " >&6
11321 else
11322 $RM conftest*
11323 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11325 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11326 (eval $ac_compile) 2>&5
11327 ac_status=$?
11328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11329 test $ac_status = 0; } 2>conftest.err; then
11330 soname=conftest
11331 lib=conftest
11332 libobjs=conftest.$ac_objext
11333 deplibs=
11334 wl=$lt_prog_compiler_wl
11335 pic_flag=$lt_prog_compiler_pic
11336 compiler_flags=-v
11337 linker_flags=-v
11338 verstring=
11339 output_objdir=.
11340 libname=conftest
11341 lt_save_allow_undefined_flag=$allow_undefined_flag
11342 allow_undefined_flag=
11343 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11344 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11345 ac_status=$?
11346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11347 test $ac_status = 0; }
11348 then
11349 lt_cv_archive_cmds_need_lc=no
11350 else
11351 lt_cv_archive_cmds_need_lc=yes
11353 allow_undefined_flag=$lt_save_allow_undefined_flag
11354 else
11355 cat conftest.err 1>&5
11357 $RM conftest*
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11361 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11362 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11364 esac
11367 esac
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11526 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11528 if test "$GCC" = yes; then
11529 case $host_os in
11530 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11531 *) lt_awk_arg="/^libraries:/" ;;
11532 esac
11533 case $host_os in
11534 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11535 *) lt_sed_strip_eq="s,=/,/,g" ;;
11536 esac
11537 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11538 case $lt_search_path_spec in
11539 *\;*)
11540 # if the path contains ";" then we assume it to be the separator
11541 # otherwise default to the standard path separator (i.e. ":") - it is
11542 # assumed that no part of a normal pathname contains ";" but that should
11543 # okay in the real world where ";" in dirpaths is itself problematic.
11544 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11547 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11549 esac
11550 # Ok, now we have the path, separated by spaces, we can step through it
11551 # and add multilib dir if necessary.
11552 lt_tmp_lt_search_path_spec=
11553 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11554 for lt_sys_path in $lt_search_path_spec; do
11555 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11556 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11557 else
11558 test -d "$lt_sys_path" && \
11559 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11561 done
11562 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11563 BEGIN {RS=" "; FS="/|\n";} {
11564 lt_foo="";
11565 lt_count=0;
11566 for (lt_i = NF; lt_i > 0; lt_i--) {
11567 if ($lt_i != "" && $lt_i != ".") {
11568 if ($lt_i == "..") {
11569 lt_count++;
11570 } else {
11571 if (lt_count == 0) {
11572 lt_foo="/" $lt_i lt_foo;
11573 } else {
11574 lt_count--;
11579 if (lt_foo != "") { lt_freq[lt_foo]++; }
11580 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11582 # AWK program above erroneously prepends '/' to C:/dos/paths
11583 # for these hosts.
11584 case $host_os in
11585 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11586 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11587 esac
11588 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11589 else
11590 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11592 library_names_spec=
11593 libname_spec='lib$name'
11594 soname_spec=
11595 shrext_cmds=".so"
11596 postinstall_cmds=
11597 postuninstall_cmds=
11598 finish_cmds=
11599 finish_eval=
11600 shlibpath_var=
11601 shlibpath_overrides_runpath=unknown
11602 version_type=none
11603 dynamic_linker="$host_os ld.so"
11604 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11605 need_lib_prefix=unknown
11606 hardcode_into_libs=no
11608 # when you set need_version to no, make sure it does not cause -set_version
11609 # flags to be left without arguments
11610 need_version=unknown
11612 case $host_os in
11613 aix3*)
11614 version_type=linux
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11616 shlibpath_var=LIBPATH
11618 # AIX 3 has no versioning support, so we append a major version to the name.
11619 soname_spec='${libname}${release}${shared_ext}$major'
11622 aix[4-9]*)
11623 version_type=linux
11624 need_lib_prefix=no
11625 need_version=no
11626 hardcode_into_libs=yes
11627 if test "$host_cpu" = ia64; then
11628 # AIX 5 supports IA64
11629 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11630 shlibpath_var=LD_LIBRARY_PATH
11631 else
11632 # With GCC up to 2.95.x, collect2 would create an import file
11633 # for dependence libraries. The import file would start with
11634 # the line `#! .'. This would cause the generated library to
11635 # depend on `.', always an invalid library. This was fixed in
11636 # development snapshots of GCC prior to 3.0.
11637 case $host_os in
11638 aix4 | aix4.[01] | aix4.[01].*)
11639 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11640 echo ' yes '
11641 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11643 else
11644 can_build_shared=no
11647 esac
11648 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11649 # soname into executable. Probably we can add versioning support to
11650 # collect2, so additional links can be useful in future.
11651 if test "$aix_use_runtimelinking" = yes; then
11652 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11653 # instead of lib<name>.a to let people know that these are not
11654 # typical AIX shared libraries.
11655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11656 else
11657 # We preserve .a as extension for shared libraries through AIX4.2
11658 # and later when we are not doing run time linking.
11659 library_names_spec='${libname}${release}.a $libname.a'
11660 soname_spec='${libname}${release}${shared_ext}$major'
11662 shlibpath_var=LIBPATH
11666 amigaos*)
11667 case $host_cpu in
11668 powerpc)
11669 # Since July 2007 AmigaOS4 officially supports .so libraries.
11670 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11673 m68k)
11674 library_names_spec='$libname.ixlibrary $libname.a'
11675 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11676 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'
11678 esac
11681 beos*)
11682 library_names_spec='${libname}${shared_ext}'
11683 dynamic_linker="$host_os ld.so"
11684 shlibpath_var=LIBRARY_PATH
11687 bsdi[45]*)
11688 version_type=linux
11689 need_version=no
11690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11691 soname_spec='${libname}${release}${shared_ext}$major'
11692 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11693 shlibpath_var=LD_LIBRARY_PATH
11694 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11695 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11696 # the default ld.so.conf also contains /usr/contrib/lib and
11697 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11698 # libtool to hard-code these into programs
11701 cygwin* | mingw* | pw32* | cegcc*)
11702 version_type=windows
11703 shrext_cmds=".dll"
11704 need_version=no
11705 need_lib_prefix=no
11707 case $GCC,$host_os in
11708 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11709 library_names_spec='$libname.dll.a'
11710 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11711 postinstall_cmds='base_file=`basename \${file}`~
11712 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11713 dldir=$destdir/`dirname \$dlpath`~
11714 test -d \$dldir || mkdir -p \$dldir~
11715 $install_prog $dir/$dlname \$dldir/$dlname~
11716 chmod a+x \$dldir/$dlname~
11717 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11718 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11720 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11721 dlpath=$dir/\$dldll~
11722 $RM \$dlpath'
11723 shlibpath_overrides_runpath=yes
11725 case $host_os in
11726 cygwin*)
11727 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11728 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11730 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11732 mingw* | cegcc*)
11733 # MinGW DLLs use traditional 'lib' prefix
11734 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11736 pw32*)
11737 # pw32 DLLs use 'pw' prefix rather than 'lib'
11738 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11740 esac
11744 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11746 esac
11747 dynamic_linker='Win32 ld.exe'
11748 # FIXME: first we should search . and the directory the executable is in
11749 shlibpath_var=PATH
11752 darwin* | rhapsody*)
11753 dynamic_linker="$host_os dyld"
11754 version_type=darwin
11755 need_lib_prefix=no
11756 need_version=no
11757 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11758 soname_spec='${libname}${release}${major}$shared_ext'
11759 shlibpath_overrides_runpath=yes
11760 shlibpath_var=DYLD_LIBRARY_PATH
11761 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11763 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11764 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11767 dgux*)
11768 version_type=linux
11769 need_lib_prefix=no
11770 need_version=no
11771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11772 soname_spec='${libname}${release}${shared_ext}$major'
11773 shlibpath_var=LD_LIBRARY_PATH
11776 freebsd* | dragonfly*)
11777 # DragonFly does not have aout. When/if they implement a new
11778 # versioning mechanism, adjust this.
11779 if test -x /usr/bin/objformat; then
11780 objformat=`/usr/bin/objformat`
11781 else
11782 case $host_os in
11783 freebsd[23].*) objformat=aout ;;
11784 *) objformat=elf ;;
11785 esac
11787 version_type=freebsd-$objformat
11788 case $version_type in
11789 freebsd-elf*)
11790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11791 need_version=no
11792 need_lib_prefix=no
11794 freebsd-*)
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11796 need_version=yes
11798 esac
11799 shlibpath_var=LD_LIBRARY_PATH
11800 case $host_os in
11801 freebsd2.*)
11802 shlibpath_overrides_runpath=yes
11804 freebsd3.[01]* | freebsdelf3.[01]*)
11805 shlibpath_overrides_runpath=yes
11806 hardcode_into_libs=yes
11808 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11809 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11810 shlibpath_overrides_runpath=no
11811 hardcode_into_libs=yes
11813 *) # from 4.6 on, and DragonFly
11814 shlibpath_overrides_runpath=yes
11815 hardcode_into_libs=yes
11817 esac
11820 haiku*)
11821 version_type=linux
11822 need_lib_prefix=no
11823 need_version=no
11824 dynamic_linker="$host_os runtime_loader"
11825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11826 soname_spec='${libname}${release}${shared_ext}$major'
11827 shlibpath_var=LIBRARY_PATH
11828 shlibpath_overrides_runpath=yes
11829 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11830 hardcode_into_libs=yes
11833 hpux9* | hpux10* | hpux11*)
11834 # Give a soname corresponding to the major version so that dld.sl refuses to
11835 # link against other versions.
11836 version_type=sunos
11837 need_lib_prefix=no
11838 need_version=no
11839 case $host_cpu in
11840 ia64*)
11841 shrext_cmds='.so'
11842 hardcode_into_libs=yes
11843 dynamic_linker="$host_os dld.so"
11844 shlibpath_var=LD_LIBRARY_PATH
11845 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11847 soname_spec='${libname}${release}${shared_ext}$major'
11848 if test "X$HPUX_IA64_MODE" = X32; then
11849 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11850 else
11851 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11853 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11855 hppa*64*)
11856 shrext_cmds='.sl'
11857 hardcode_into_libs=yes
11858 dynamic_linker="$host_os dld.sl"
11859 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11860 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11862 soname_spec='${libname}${release}${shared_ext}$major'
11863 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11864 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11867 shrext_cmds='.sl'
11868 dynamic_linker="$host_os dld.sl"
11869 shlibpath_var=SHLIB_PATH
11870 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11872 soname_spec='${libname}${release}${shared_ext}$major'
11874 esac
11875 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11876 postinstall_cmds='chmod 555 $lib'
11877 # or fails outright, so override atomically:
11878 install_override_mode=555
11881 interix[3-9]*)
11882 version_type=linux
11883 need_lib_prefix=no
11884 need_version=no
11885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11886 soname_spec='${libname}${release}${shared_ext}$major'
11887 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11888 shlibpath_var=LD_LIBRARY_PATH
11889 shlibpath_overrides_runpath=no
11890 hardcode_into_libs=yes
11893 irix5* | irix6* | nonstopux*)
11894 case $host_os in
11895 nonstopux*) version_type=nonstopux ;;
11897 if test "$lt_cv_prog_gnu_ld" = yes; then
11898 version_type=linux
11899 else
11900 version_type=irix
11901 fi ;;
11902 esac
11903 need_lib_prefix=no
11904 need_version=no
11905 soname_spec='${libname}${release}${shared_ext}$major'
11906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11907 case $host_os in
11908 irix5* | nonstopux*)
11909 libsuff= shlibsuff=
11912 case $LD in # libtool.m4 will add one of these switches to LD
11913 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11914 libsuff= shlibsuff= libmagic=32-bit;;
11915 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11916 libsuff=32 shlibsuff=N32 libmagic=N32;;
11917 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11918 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11919 *) libsuff= shlibsuff= libmagic=never-match;;
11920 esac
11922 esac
11923 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11924 shlibpath_overrides_runpath=no
11925 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11926 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11927 hardcode_into_libs=yes
11930 # No shared lib support for Linux oldld, aout, or coff.
11931 linux*oldld* | linux*aout* | linux*coff*)
11932 dynamic_linker=no
11935 # This must be Linux ELF.
11937 # uclinux* changes (here and below) have been submitted to the libtool
11938 # project, but have not yet been accepted: they are GCC-local changes
11939 # for the time being. (See
11940 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11941 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11942 version_type=linux
11943 need_lib_prefix=no
11944 need_version=no
11945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11946 soname_spec='${libname}${release}${shared_ext}$major'
11947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11948 shlibpath_var=LD_LIBRARY_PATH
11949 shlibpath_overrides_runpath=no
11951 # Some binutils ld are patched to set DT_RUNPATH
11952 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11953 $as_echo_n "(cached) " >&6
11954 else
11955 lt_cv_shlibpath_overrides_runpath=no
11956 save_LDFLAGS=$LDFLAGS
11957 save_libdir=$libdir
11958 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11959 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11960 if test x$gcc_no_link = xyes; then
11961 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h. */
11967 main ()
11971 return 0;
11973 _ACEOF
11974 if ac_fn_c_try_link "$LINENO"; then :
11975 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11976 lt_cv_shlibpath_overrides_runpath=yes
11979 rm -f core conftest.err conftest.$ac_objext \
11980 conftest$ac_exeext conftest.$ac_ext
11981 LDFLAGS=$save_LDFLAGS
11982 libdir=$save_libdir
11986 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11988 # This implies no fast_install, which is unacceptable.
11989 # Some rework will be needed to allow for fast_install
11990 # before this can be enabled.
11991 hardcode_into_libs=yes
11993 # Append ld.so.conf contents to the search path
11994 if test -f /etc/ld.so.conf; then
11995 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' ' '`
11996 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11999 # We used to test for /lib/ld.so.1 and disable shared libraries on
12000 # powerpc, because MkLinux only supported shared libraries with the
12001 # GNU dynamic linker. Since this was broken with cross compilers,
12002 # most powerpc-linux boxes support dynamic linking these days and
12003 # people can always --disable-shared, the test was removed, and we
12004 # assume the GNU/Linux dynamic linker is in use.
12005 dynamic_linker='GNU/Linux ld.so'
12008 netbsd*)
12009 version_type=sunos
12010 need_lib_prefix=no
12011 need_version=no
12012 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12015 dynamic_linker='NetBSD (a.out) ld.so'
12016 else
12017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12018 soname_spec='${libname}${release}${shared_ext}$major'
12019 dynamic_linker='NetBSD ld.elf_so'
12021 shlibpath_var=LD_LIBRARY_PATH
12022 shlibpath_overrides_runpath=yes
12023 hardcode_into_libs=yes
12026 newsos6)
12027 version_type=linux
12028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12029 shlibpath_var=LD_LIBRARY_PATH
12030 shlibpath_overrides_runpath=yes
12033 *nto* | *qnx*)
12034 version_type=qnx
12035 need_lib_prefix=no
12036 need_version=no
12037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12038 soname_spec='${libname}${release}${shared_ext}$major'
12039 shlibpath_var=LD_LIBRARY_PATH
12040 shlibpath_overrides_runpath=no
12041 hardcode_into_libs=yes
12042 dynamic_linker='ldqnx.so'
12045 openbsd*)
12046 version_type=sunos
12047 sys_lib_dlsearch_path_spec="/usr/lib"
12048 need_lib_prefix=no
12049 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12050 case $host_os in
12051 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12052 *) need_version=no ;;
12053 esac
12054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12056 shlibpath_var=LD_LIBRARY_PATH
12057 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12058 case $host_os in
12059 openbsd2.[89] | openbsd2.[89].*)
12060 shlibpath_overrides_runpath=no
12063 shlibpath_overrides_runpath=yes
12065 esac
12066 else
12067 shlibpath_overrides_runpath=yes
12071 os2*)
12072 libname_spec='$name'
12073 shrext_cmds=".dll"
12074 need_lib_prefix=no
12075 library_names_spec='$libname${shared_ext} $libname.a'
12076 dynamic_linker='OS/2 ld.exe'
12077 shlibpath_var=LIBPATH
12080 osf3* | osf4* | osf5*)
12081 version_type=osf
12082 need_lib_prefix=no
12083 need_version=no
12084 soname_spec='${libname}${release}${shared_ext}$major'
12085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12086 shlibpath_var=LD_LIBRARY_PATH
12087 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12088 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12091 rdos*)
12092 dynamic_linker=no
12095 solaris*)
12096 version_type=linux
12097 need_lib_prefix=no
12098 need_version=no
12099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12100 soname_spec='${libname}${release}${shared_ext}$major'
12101 shlibpath_var=LD_LIBRARY_PATH
12102 shlibpath_overrides_runpath=yes
12103 hardcode_into_libs=yes
12104 # ldd complains unless libraries are executable
12105 postinstall_cmds='chmod +x $lib'
12108 sunos4*)
12109 version_type=sunos
12110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12111 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12112 shlibpath_var=LD_LIBRARY_PATH
12113 shlibpath_overrides_runpath=yes
12114 if test "$with_gnu_ld" = yes; then
12115 need_lib_prefix=no
12117 need_version=yes
12120 sysv4 | sysv4.3*)
12121 version_type=linux
12122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12123 soname_spec='${libname}${release}${shared_ext}$major'
12124 shlibpath_var=LD_LIBRARY_PATH
12125 case $host_vendor in
12126 sni)
12127 shlibpath_overrides_runpath=no
12128 need_lib_prefix=no
12129 runpath_var=LD_RUN_PATH
12131 siemens)
12132 need_lib_prefix=no
12134 motorola)
12135 need_lib_prefix=no
12136 need_version=no
12137 shlibpath_overrides_runpath=no
12138 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12140 esac
12143 sysv4*MP*)
12144 if test -d /usr/nec ;then
12145 version_type=linux
12146 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12147 soname_spec='$libname${shared_ext}.$major'
12148 shlibpath_var=LD_LIBRARY_PATH
12152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12153 version_type=freebsd-elf
12154 need_lib_prefix=no
12155 need_version=no
12156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12157 soname_spec='${libname}${release}${shared_ext}$major'
12158 shlibpath_var=LD_LIBRARY_PATH
12159 shlibpath_overrides_runpath=yes
12160 hardcode_into_libs=yes
12161 if test "$with_gnu_ld" = yes; then
12162 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12163 else
12164 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12165 case $host_os in
12166 sco3.2v5*)
12167 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12169 esac
12171 sys_lib_dlsearch_path_spec='/usr/lib'
12174 tpf*)
12175 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12176 version_type=linux
12177 need_lib_prefix=no
12178 need_version=no
12179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12180 shlibpath_var=LD_LIBRARY_PATH
12181 shlibpath_overrides_runpath=no
12182 hardcode_into_libs=yes
12185 uts4*)
12186 version_type=linux
12187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12188 soname_spec='${libname}${release}${shared_ext}$major'
12189 shlibpath_var=LD_LIBRARY_PATH
12192 # Shared libraries for VwWorks, >= 7 only at this stage
12193 # and (fpic) still incompatible with "large" code models
12194 # in a few configurations. Only for RTP mode in any case,
12195 # and upon explicit request at configure time.
12196 vxworks7*)
12197 dynamic_linker=no
12198 case ${with_multisubdir}-${enable_shared} in
12199 *large*)
12201 *mrtp*-yes)
12202 version_type=linux
12203 need_lib_prefix=no
12204 need_version=no
12205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12206 soname_spec='${libname}${release}${shared_ext}$major'
12207 dynamic_linker="$host_os module_loader"
12209 esac
12212 dynamic_linker=no
12214 esac
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12216 $as_echo "$dynamic_linker" >&6; }
12217 test "$dynamic_linker" = no && can_build_shared=no
12219 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12220 if test "$GCC" = yes; then
12221 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12224 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12225 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12227 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12228 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12323 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12324 hardcode_action=
12325 if test -n "$hardcode_libdir_flag_spec" ||
12326 test -n "$runpath_var" ||
12327 test "X$hardcode_automatic" = "Xyes" ; then
12329 # We can hardcode non-existent directories.
12330 if test "$hardcode_direct" != no &&
12331 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12332 # have to relink, otherwise we might link with an installed library
12333 # when we should be linking with a yet-to-be-installed one
12334 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12335 test "$hardcode_minus_L" != no; then
12336 # Linking always hardcodes the temporary library directory.
12337 hardcode_action=relink
12338 else
12339 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12340 hardcode_action=immediate
12342 else
12343 # We cannot hardcode anything, or else we can only hardcode existing
12344 # directories.
12345 hardcode_action=unsupported
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12348 $as_echo "$hardcode_action" >&6; }
12350 if test "$hardcode_action" = relink ||
12351 test "$inherit_rpath" = yes; then
12352 # Fast installation is not supported
12353 enable_fast_install=no
12354 elif test "$shlibpath_overrides_runpath" = yes ||
12355 test "$enable_shared" = no; then
12356 # Fast installation is not necessary
12357 enable_fast_install=needless
12365 if test "x$enable_dlopen" != xyes; then
12366 enable_dlopen=unknown
12367 enable_dlopen_self=unknown
12368 enable_dlopen_self_static=unknown
12369 else
12370 lt_cv_dlopen=no
12371 lt_cv_dlopen_libs=
12373 case $host_os in
12374 beos*)
12375 lt_cv_dlopen="load_add_on"
12376 lt_cv_dlopen_libs=
12377 lt_cv_dlopen_self=yes
12380 mingw* | pw32* | cegcc*)
12381 lt_cv_dlopen="LoadLibrary"
12382 lt_cv_dlopen_libs=
12385 cygwin*)
12386 lt_cv_dlopen="dlopen"
12387 lt_cv_dlopen_libs=
12390 darwin*)
12391 # if libdl is installed we need to link against it
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12393 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12394 if ${ac_cv_lib_dl_dlopen+:} false; then :
12395 $as_echo_n "(cached) " >&6
12396 else
12397 ac_check_lib_save_LIBS=$LIBS
12398 LIBS="-ldl $LIBS"
12399 if test x$gcc_no_link = xyes; then
12400 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12403 /* end confdefs.h. */
12405 /* Override any GCC internal prototype to avoid an error.
12406 Use char because int might match the return type of a GCC
12407 builtin and then its argument prototype would still apply. */
12408 #ifdef __cplusplus
12409 extern "C"
12410 #endif
12411 char dlopen ();
12413 main ()
12415 return dlopen ();
12417 return 0;
12419 _ACEOF
12420 if ac_fn_c_try_link "$LINENO"; then :
12421 ac_cv_lib_dl_dlopen=yes
12422 else
12423 ac_cv_lib_dl_dlopen=no
12425 rm -f core conftest.err conftest.$ac_objext \
12426 conftest$ac_exeext conftest.$ac_ext
12427 LIBS=$ac_check_lib_save_LIBS
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12430 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12431 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12432 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12433 else
12435 lt_cv_dlopen="dyld"
12436 lt_cv_dlopen_libs=
12437 lt_cv_dlopen_self=yes
12444 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12445 if test "x$ac_cv_func_shl_load" = xyes; then :
12446 lt_cv_dlopen="shl_load"
12447 else
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12449 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12450 if ${ac_cv_lib_dld_shl_load+:} false; then :
12451 $as_echo_n "(cached) " >&6
12452 else
12453 ac_check_lib_save_LIBS=$LIBS
12454 LIBS="-ldld $LIBS"
12455 if test x$gcc_no_link = xyes; then
12456 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459 /* end confdefs.h. */
12461 /* Override any GCC internal prototype to avoid an error.
12462 Use char because int might match the return type of a GCC
12463 builtin and then its argument prototype would still apply. */
12464 #ifdef __cplusplus
12465 extern "C"
12466 #endif
12467 char shl_load ();
12469 main ()
12471 return shl_load ();
12473 return 0;
12475 _ACEOF
12476 if ac_fn_c_try_link "$LINENO"; then :
12477 ac_cv_lib_dld_shl_load=yes
12478 else
12479 ac_cv_lib_dld_shl_load=no
12481 rm -f core conftest.err conftest.$ac_objext \
12482 conftest$ac_exeext conftest.$ac_ext
12483 LIBS=$ac_check_lib_save_LIBS
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12486 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12487 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12488 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12489 else
12490 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12491 if test "x$ac_cv_func_dlopen" = xyes; then :
12492 lt_cv_dlopen="dlopen"
12493 else
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12495 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12496 if ${ac_cv_lib_dl_dlopen+:} false; then :
12497 $as_echo_n "(cached) " >&6
12498 else
12499 ac_check_lib_save_LIBS=$LIBS
12500 LIBS="-ldl $LIBS"
12501 if test x$gcc_no_link = xyes; then
12502 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505 /* end confdefs.h. */
12507 /* Override any GCC internal prototype to avoid an error.
12508 Use char because int might match the return type of a GCC
12509 builtin and then its argument prototype would still apply. */
12510 #ifdef __cplusplus
12511 extern "C"
12512 #endif
12513 char dlopen ();
12515 main ()
12517 return dlopen ();
12519 return 0;
12521 _ACEOF
12522 if ac_fn_c_try_link "$LINENO"; then :
12523 ac_cv_lib_dl_dlopen=yes
12524 else
12525 ac_cv_lib_dl_dlopen=no
12527 rm -f core conftest.err conftest.$ac_objext \
12528 conftest$ac_exeext conftest.$ac_ext
12529 LIBS=$ac_check_lib_save_LIBS
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12532 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12533 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12534 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12535 else
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12537 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12538 if ${ac_cv_lib_svld_dlopen+:} false; then :
12539 $as_echo_n "(cached) " >&6
12540 else
12541 ac_check_lib_save_LIBS=$LIBS
12542 LIBS="-lsvld $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_svld_dlopen=yes
12566 else
12567 ac_cv_lib_svld_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_svld_dlopen" >&5
12574 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12575 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12576 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12577 else
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12579 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12580 if ${ac_cv_lib_dld_dld_link+:} false; then :
12581 $as_echo_n "(cached) " >&6
12582 else
12583 ac_check_lib_save_LIBS=$LIBS
12584 LIBS="-ldld $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 dld_link ();
12599 main ()
12601 return dld_link ();
12603 return 0;
12605 _ACEOF
12606 if ac_fn_c_try_link "$LINENO"; then :
12607 ac_cv_lib_dld_dld_link=yes
12608 else
12609 ac_cv_lib_dld_dld_link=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_dld_dld_link" >&5
12616 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12617 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12618 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12637 esac
12639 if test "x$lt_cv_dlopen" != xno; then
12640 enable_dlopen=yes
12641 else
12642 enable_dlopen=no
12645 case $lt_cv_dlopen in
12646 dlopen)
12647 save_CPPFLAGS="$CPPFLAGS"
12648 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12650 save_LDFLAGS="$LDFLAGS"
12651 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12653 save_LIBS="$LIBS"
12654 LIBS="$lt_cv_dlopen_libs $LIBS"
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12657 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12658 if ${lt_cv_dlopen_self+:} false; then :
12659 $as_echo_n "(cached) " >&6
12660 else
12661 if test "$cross_compiling" = yes; then :
12662 lt_cv_dlopen_self=cross
12663 else
12664 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12665 lt_status=$lt_dlunknown
12666 cat > conftest.$ac_ext <<_LT_EOF
12667 #line 12667 "configure"
12668 #include "confdefs.h"
12670 #if HAVE_DLFCN_H
12671 #include <dlfcn.h>
12672 #endif
12674 #include <stdio.h>
12676 #ifdef RTLD_GLOBAL
12677 # define LT_DLGLOBAL RTLD_GLOBAL
12678 #else
12679 # ifdef DL_GLOBAL
12680 # define LT_DLGLOBAL DL_GLOBAL
12681 # else
12682 # define LT_DLGLOBAL 0
12683 # endif
12684 #endif
12686 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12687 find out it does not work in some platform. */
12688 #ifndef LT_DLLAZY_OR_NOW
12689 # ifdef RTLD_LAZY
12690 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12691 # else
12692 # ifdef DL_LAZY
12693 # define LT_DLLAZY_OR_NOW DL_LAZY
12694 # else
12695 # ifdef RTLD_NOW
12696 # define LT_DLLAZY_OR_NOW RTLD_NOW
12697 # else
12698 # ifdef DL_NOW
12699 # define LT_DLLAZY_OR_NOW DL_NOW
12700 # else
12701 # define LT_DLLAZY_OR_NOW 0
12702 # endif
12703 # endif
12704 # endif
12705 # endif
12706 #endif
12708 /* When -fvisbility=hidden is used, assume the code has been annotated
12709 correspondingly for the symbols needed. */
12710 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12711 void fnord () __attribute__((visibility("default")));
12712 #endif
12714 void fnord () { int i=42; }
12715 int main ()
12717 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12718 int status = $lt_dlunknown;
12720 if (self)
12722 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12723 else
12725 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12726 else puts (dlerror ());
12728 /* dlclose (self); */
12730 else
12731 puts (dlerror ());
12733 return status;
12735 _LT_EOF
12736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12737 (eval $ac_link) 2>&5
12738 ac_status=$?
12739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12740 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12741 (./conftest; exit; ) >&5 2>/dev/null
12742 lt_status=$?
12743 case x$lt_status in
12744 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12745 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12746 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12747 esac
12748 else :
12749 # compilation failed
12750 lt_cv_dlopen_self=no
12753 rm -fr conftest*
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12758 $as_echo "$lt_cv_dlopen_self" >&6; }
12760 if test "x$lt_cv_dlopen_self" = xyes; then
12761 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12763 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12764 if ${lt_cv_dlopen_self_static+:} false; then :
12765 $as_echo_n "(cached) " >&6
12766 else
12767 if test "$cross_compiling" = yes; then :
12768 lt_cv_dlopen_self_static=cross
12769 else
12770 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12771 lt_status=$lt_dlunknown
12772 cat > conftest.$ac_ext <<_LT_EOF
12773 #line 12773 "configure"
12774 #include "confdefs.h"
12776 #if HAVE_DLFCN_H
12777 #include <dlfcn.h>
12778 #endif
12780 #include <stdio.h>
12782 #ifdef RTLD_GLOBAL
12783 # define LT_DLGLOBAL RTLD_GLOBAL
12784 #else
12785 # ifdef DL_GLOBAL
12786 # define LT_DLGLOBAL DL_GLOBAL
12787 # else
12788 # define LT_DLGLOBAL 0
12789 # endif
12790 #endif
12792 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12793 find out it does not work in some platform. */
12794 #ifndef LT_DLLAZY_OR_NOW
12795 # ifdef RTLD_LAZY
12796 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12797 # else
12798 # ifdef DL_LAZY
12799 # define LT_DLLAZY_OR_NOW DL_LAZY
12800 # else
12801 # ifdef RTLD_NOW
12802 # define LT_DLLAZY_OR_NOW RTLD_NOW
12803 # else
12804 # ifdef DL_NOW
12805 # define LT_DLLAZY_OR_NOW DL_NOW
12806 # else
12807 # define LT_DLLAZY_OR_NOW 0
12808 # endif
12809 # endif
12810 # endif
12811 # endif
12812 #endif
12814 /* When -fvisbility=hidden is used, assume the code has been annotated
12815 correspondingly for the symbols needed. */
12816 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12817 void fnord () __attribute__((visibility("default")));
12818 #endif
12820 void fnord () { int i=42; }
12821 int main ()
12823 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12824 int status = $lt_dlunknown;
12826 if (self)
12828 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12829 else
12831 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12832 else puts (dlerror ());
12834 /* dlclose (self); */
12836 else
12837 puts (dlerror ());
12839 return status;
12841 _LT_EOF
12842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12843 (eval $ac_link) 2>&5
12844 ac_status=$?
12845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12846 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12847 (./conftest; exit; ) >&5 2>/dev/null
12848 lt_status=$?
12849 case x$lt_status in
12850 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12851 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12852 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12853 esac
12854 else :
12855 # compilation failed
12856 lt_cv_dlopen_self_static=no
12859 rm -fr conftest*
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12864 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12867 CPPFLAGS="$save_CPPFLAGS"
12868 LDFLAGS="$save_LDFLAGS"
12869 LIBS="$save_LIBS"
12871 esac
12873 case $lt_cv_dlopen_self in
12874 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12875 *) enable_dlopen_self=unknown ;;
12876 esac
12878 case $lt_cv_dlopen_self_static in
12879 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12880 *) enable_dlopen_self_static=unknown ;;
12881 esac
12900 striplib=
12901 old_striplib=
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12903 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12904 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12905 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12906 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12908 $as_echo "yes" >&6; }
12909 else
12910 # FIXME - insert some real tests, host_os isn't really good enough
12911 case $host_os in
12912 darwin*)
12913 if test -n "$STRIP" ; then
12914 striplib="$STRIP -x"
12915 old_striplib="$STRIP -S"
12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12917 $as_echo "yes" >&6; }
12918 else
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12920 $as_echo "no" >&6; }
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12925 $as_echo "no" >&6; }
12927 esac
12941 # Report which library types will actually be built
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12943 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12945 $as_echo "$can_build_shared" >&6; }
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12948 $as_echo_n "checking whether to build shared libraries... " >&6; }
12949 test "$can_build_shared" = "no" && enable_shared=no
12951 # On AIX, shared libraries and static libraries use the same namespace, and
12952 # are all built from PIC.
12953 case $host_os in
12954 aix3*)
12955 test "$enable_shared" = yes && enable_static=no
12956 if test -n "$RANLIB"; then
12957 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12958 postinstall_cmds='$RANLIB $lib'
12962 aix[4-9]*)
12963 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12964 test "$enable_shared" = yes && enable_static=no
12967 esac
12968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12969 $as_echo "$enable_shared" >&6; }
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12972 $as_echo_n "checking whether to build static libraries... " >&6; }
12973 # Make sure either enable_shared or enable_static is yes.
12974 test "$enable_shared" = yes || enable_static=yes
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12976 $as_echo "$enable_static" >&6; }
12982 ac_ext=c
12983 ac_cpp='$CPP $CPPFLAGS'
12984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12988 CC="$lt_save_CC"
12990 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12991 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12992 (test "X$CXX" != "Xg++"))) ; then
12993 ac_ext=cpp
12994 ac_cpp='$CXXCPP $CPPFLAGS'
12995 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12996 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12997 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12999 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13000 if test -z "$CXXCPP"; then
13001 if ${ac_cv_prog_CXXCPP+:} false; then :
13002 $as_echo_n "(cached) " >&6
13003 else
13004 # Double quotes because CXXCPP needs to be expanded
13005 for CXXCPP in "$CXX -E" "/lib/cpp"
13007 ac_preproc_ok=false
13008 for ac_cxx_preproc_warn_flag in '' yes
13010 # Use a header file that comes with gcc, so configuring glibc
13011 # with a fresh cross-compiler works.
13012 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13013 # <limits.h> exists even on freestanding compilers.
13014 # On the NeXT, cc -E runs the code through the compiler's parser,
13015 # not just through cpp. "Syntax error" is here to catch this case.
13016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13017 /* end confdefs.h. */
13018 #ifdef __STDC__
13019 # include <limits.h>
13020 #else
13021 # include <assert.h>
13022 #endif
13023 Syntax error
13024 _ACEOF
13025 if ac_fn_cxx_try_cpp "$LINENO"; then :
13027 else
13028 # Broken: fails on valid input.
13029 continue
13031 rm -f conftest.err conftest.i conftest.$ac_ext
13033 # OK, works on sane cases. Now check whether nonexistent headers
13034 # can be detected and how.
13035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036 /* end confdefs.h. */
13037 #include <ac_nonexistent.h>
13038 _ACEOF
13039 if ac_fn_cxx_try_cpp "$LINENO"; then :
13040 # Broken: success on invalid input.
13041 continue
13042 else
13043 # Passes both tests.
13044 ac_preproc_ok=:
13045 break
13047 rm -f conftest.err conftest.i conftest.$ac_ext
13049 done
13050 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13051 rm -f conftest.i conftest.err conftest.$ac_ext
13052 if $ac_preproc_ok; then :
13053 break
13056 done
13057 ac_cv_prog_CXXCPP=$CXXCPP
13060 CXXCPP=$ac_cv_prog_CXXCPP
13061 else
13062 ac_cv_prog_CXXCPP=$CXXCPP
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13065 $as_echo "$CXXCPP" >&6; }
13066 ac_preproc_ok=false
13067 for ac_cxx_preproc_warn_flag in '' yes
13069 # Use a header file that comes with gcc, so configuring glibc
13070 # with a fresh cross-compiler works.
13071 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13072 # <limits.h> exists even on freestanding compilers.
13073 # On the NeXT, cc -E runs the code through the compiler's parser,
13074 # not just through cpp. "Syntax error" is here to catch this case.
13075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13076 /* end confdefs.h. */
13077 #ifdef __STDC__
13078 # include <limits.h>
13079 #else
13080 # include <assert.h>
13081 #endif
13082 Syntax error
13083 _ACEOF
13084 if ac_fn_cxx_try_cpp "$LINENO"; then :
13086 else
13087 # Broken: fails on valid input.
13088 continue
13090 rm -f conftest.err conftest.i conftest.$ac_ext
13092 # OK, works on sane cases. Now check whether nonexistent headers
13093 # can be detected and how.
13094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13095 /* end confdefs.h. */
13096 #include <ac_nonexistent.h>
13097 _ACEOF
13098 if ac_fn_cxx_try_cpp "$LINENO"; then :
13099 # Broken: success on invalid input.
13100 continue
13101 else
13102 # Passes both tests.
13103 ac_preproc_ok=:
13104 break
13106 rm -f conftest.err conftest.i conftest.$ac_ext
13108 done
13109 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13110 rm -f conftest.i conftest.err conftest.$ac_ext
13111 if $ac_preproc_ok; then :
13113 else
13114 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13115 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13116 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13117 See \`config.log' for more details" "$LINENO" 5; }
13120 ac_ext=c
13121 ac_cpp='$CPP $CPPFLAGS'
13122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13126 else
13127 _lt_caught_CXX_error=yes
13130 ac_ext=cpp
13131 ac_cpp='$CXXCPP $CPPFLAGS'
13132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13136 archive_cmds_need_lc_CXX=no
13137 allow_undefined_flag_CXX=
13138 always_export_symbols_CXX=no
13139 archive_expsym_cmds_CXX=
13140 compiler_needs_object_CXX=no
13141 export_dynamic_flag_spec_CXX=
13142 hardcode_direct_CXX=no
13143 hardcode_direct_absolute_CXX=no
13144 hardcode_libdir_flag_spec_CXX=
13145 hardcode_libdir_flag_spec_ld_CXX=
13146 hardcode_libdir_separator_CXX=
13147 hardcode_minus_L_CXX=no
13148 hardcode_shlibpath_var_CXX=unsupported
13149 hardcode_automatic_CXX=no
13150 inherit_rpath_CXX=no
13151 module_cmds_CXX=
13152 module_expsym_cmds_CXX=
13153 link_all_deplibs_CXX=unknown
13154 old_archive_cmds_CXX=$old_archive_cmds
13155 reload_flag_CXX=$reload_flag
13156 reload_cmds_CXX=$reload_cmds
13157 no_undefined_flag_CXX=
13158 whole_archive_flag_spec_CXX=
13159 enable_shared_with_static_runtimes_CXX=no
13161 # Source file extension for C++ test sources.
13162 ac_ext=cpp
13164 # Object file extension for compiled C++ test sources.
13165 objext=o
13166 objext_CXX=$objext
13168 # No sense in running all these tests if we already determined that
13169 # the CXX compiler isn't working. Some variables (like enable_shared)
13170 # are currently assumed to apply to all compilers on this platform,
13171 # and will be corrupted by setting them based on a non-working compiler.
13172 if test "$_lt_caught_CXX_error" != yes; then
13173 # Code to be used in simple compile tests
13174 lt_simple_compile_test_code="int some_variable = 0;"
13176 # Code to be used in simple link tests
13177 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13179 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13186 # If no C compiler was specified, use CC.
13187 LTCC=${LTCC-"$CC"}
13189 # If no C compiler flags were specified, use CFLAGS.
13190 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13192 # Allow CC to be a program name with arguments.
13193 compiler=$CC
13196 # save warnings/boilerplate of simple test code
13197 ac_outfile=conftest.$ac_objext
13198 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13199 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13200 _lt_compiler_boilerplate=`cat conftest.err`
13201 $RM conftest*
13203 ac_outfile=conftest.$ac_objext
13204 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13205 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13206 _lt_linker_boilerplate=`cat conftest.err`
13207 $RM -r conftest*
13210 # Allow CC to be a program name with arguments.
13211 lt_save_CC=$CC
13212 lt_save_LD=$LD
13213 lt_save_GCC=$GCC
13214 GCC=$GXX
13215 lt_save_with_gnu_ld=$with_gnu_ld
13216 lt_save_path_LD=$lt_cv_path_LD
13217 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13218 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13219 else
13220 $as_unset lt_cv_prog_gnu_ld
13222 if test -n "${lt_cv_path_LDCXX+set}"; then
13223 lt_cv_path_LD=$lt_cv_path_LDCXX
13224 else
13225 $as_unset lt_cv_path_LD
13227 test -z "${LDCXX+set}" || LD=$LDCXX
13228 CC=${CXX-"c++"}
13229 compiler=$CC
13230 compiler_CXX=$CC
13231 for cc_temp in $compiler""; do
13232 case $cc_temp in
13233 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13234 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13235 \-*) ;;
13236 *) break;;
13237 esac
13238 done
13239 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13242 if test -n "$compiler"; then
13243 # We don't want -fno-exception when compiling C++ code, so set the
13244 # no_builtin_flag separately
13245 if test "$GXX" = yes; then
13246 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13247 else
13248 lt_prog_compiler_no_builtin_flag_CXX=
13251 if test "$GXX" = yes; then
13252 # Set up default GNU C++ configuration
13256 # Check whether --with-gnu-ld was given.
13257 if test "${with_gnu_ld+set}" = set; then :
13258 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13259 else
13260 with_gnu_ld=no
13263 ac_prog=ld
13264 if test "$GCC" = yes; then
13265 # Check if gcc -print-prog-name=ld gives a path.
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13267 $as_echo_n "checking for ld used by $CC... " >&6; }
13268 case $host in
13269 *-*-mingw*)
13270 # gcc leaves a trailing carriage return which upsets mingw
13271 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13273 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13274 esac
13275 case $ac_prog in
13276 # Accept absolute paths.
13277 [\\/]* | ?:[\\/]*)
13278 re_direlt='/[^/][^/]*/\.\./'
13279 # Canonicalize the pathname of ld
13280 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13281 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13282 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13283 done
13284 test -z "$LD" && LD="$ac_prog"
13287 # If it fails, then pretend we aren't using GCC.
13288 ac_prog=ld
13291 # If it is relative, then search for the first ld in PATH.
13292 with_gnu_ld=unknown
13294 esac
13295 elif test "$with_gnu_ld" = yes; then
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13297 $as_echo_n "checking for GNU ld... " >&6; }
13298 else
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13300 $as_echo_n "checking for non-GNU ld... " >&6; }
13302 if ${lt_cv_path_LD+:} false; then :
13303 $as_echo_n "(cached) " >&6
13304 else
13305 if test -z "$LD"; then
13306 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13307 for ac_dir in $PATH; do
13308 IFS="$lt_save_ifs"
13309 test -z "$ac_dir" && ac_dir=.
13310 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13311 lt_cv_path_LD="$ac_dir/$ac_prog"
13312 # Check to see if the program is GNU ld. I'd rather use --version,
13313 # but apparently some variants of GNU ld only accept -v.
13314 # Break only if it was the GNU/non-GNU ld that we prefer.
13315 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13316 *GNU* | *'with BFD'*)
13317 test "$with_gnu_ld" != no && break
13320 test "$with_gnu_ld" != yes && break
13322 esac
13324 done
13325 IFS="$lt_save_ifs"
13326 else
13327 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13331 LD="$lt_cv_path_LD"
13332 if test -n "$LD"; then
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13334 $as_echo "$LD" >&6; }
13335 else
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13337 $as_echo "no" >&6; }
13339 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13341 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13342 if ${lt_cv_prog_gnu_ld+:} false; then :
13343 $as_echo_n "(cached) " >&6
13344 else
13345 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13346 case `$LD -v 2>&1 </dev/null` in
13347 *GNU* | *'with BFD'*)
13348 lt_cv_prog_gnu_ld=yes
13351 lt_cv_prog_gnu_ld=no
13353 esac
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13356 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13357 with_gnu_ld=$lt_cv_prog_gnu_ld
13365 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13366 # archiving commands below assume that GNU ld is being used.
13367 if test "$with_gnu_ld" = yes; then
13368 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13369 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'
13371 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13372 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13374 # If archive_cmds runs LD, not CC, wlarc should be empty
13375 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13376 # investigate it a little bit more. (MM)
13377 wlarc='${wl}'
13379 # ancient GNU ld didn't support --whole-archive et. al.
13380 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13381 $GREP 'no-whole-archive' > /dev/null; then
13382 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13383 else
13384 whole_archive_flag_spec_CXX=
13386 else
13387 with_gnu_ld=no
13388 wlarc=
13390 # A generic and very simple default shared library creation
13391 # command for GNU C++ for the case where it uses the native
13392 # linker, instead of GNU ld. If possible, this setting should
13393 # overridden to take advantage of the native linker features on
13394 # the platform it is being used on.
13395 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13398 # Commands to make compiler produce verbose output that lists
13399 # what "hidden" libraries, object files and flags are used when
13400 # linking a shared library.
13401 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13403 else
13404 GXX=no
13405 with_gnu_ld=no
13406 wlarc=
13409 # PORTME: fill in a description of your system's C++ link characteristics
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13411 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13412 ld_shlibs_CXX=yes
13413 case $host_os in
13414 aix3*)
13415 # FIXME: insert proper C++ library support
13416 ld_shlibs_CXX=no
13418 aix[4-9]*)
13419 if test "$host_cpu" = ia64; then
13420 # On IA64, the linker does run time linking by default, so we don't
13421 # have to do anything special.
13422 aix_use_runtimelinking=no
13423 exp_sym_flag='-Bexport'
13424 no_entry_flag=""
13425 else
13426 aix_use_runtimelinking=no
13428 # Test if we are trying to use run time linking or normal
13429 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13430 # need to do runtime linking.
13431 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13432 for ld_flag in $LDFLAGS; do
13433 case $ld_flag in
13434 *-brtl*)
13435 aix_use_runtimelinking=yes
13436 break
13438 esac
13439 done
13441 esac
13443 exp_sym_flag='-bexport'
13444 no_entry_flag='-bnoentry'
13447 # When large executables or shared objects are built, AIX ld can
13448 # have problems creating the table of contents. If linking a library
13449 # or program results in "error TOC overflow" add -mminimal-toc to
13450 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13451 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13453 archive_cmds_CXX=''
13454 hardcode_direct_CXX=yes
13455 hardcode_direct_absolute_CXX=yes
13456 hardcode_libdir_separator_CXX=':'
13457 link_all_deplibs_CXX=yes
13458 file_list_spec_CXX='${wl}-f,'
13460 if test "$GXX" = yes; then
13461 case $host_os in aix4.[012]|aix4.[012].*)
13462 # We only want to do this on AIX 4.2 and lower, the check
13463 # below for broken collect2 doesn't work under 4.3+
13464 collect2name=`${CC} -print-prog-name=collect2`
13465 if test -f "$collect2name" &&
13466 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13467 then
13468 # We have reworked collect2
13470 else
13471 # We have old collect2
13472 hardcode_direct_CXX=unsupported
13473 # It fails to find uninstalled libraries when the uninstalled
13474 # path is not listed in the libpath. Setting hardcode_minus_L
13475 # to unsupported forces relinking
13476 hardcode_minus_L_CXX=yes
13477 hardcode_libdir_flag_spec_CXX='-L$libdir'
13478 hardcode_libdir_separator_CXX=
13480 esac
13481 shared_flag='-shared'
13482 if test "$aix_use_runtimelinking" = yes; then
13483 shared_flag="$shared_flag "'${wl}-G'
13485 else
13486 # not using gcc
13487 if test "$host_cpu" = ia64; then
13488 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13489 # chokes on -Wl,-G. The following line is correct:
13490 shared_flag='-G'
13491 else
13492 if test "$aix_use_runtimelinking" = yes; then
13493 shared_flag='${wl}-G'
13494 else
13495 shared_flag='${wl}-bM:SRE'
13500 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13501 # It seems that -bexpall does not export symbols beginning with
13502 # underscore (_), so it is better to generate a list of symbols to
13503 # export.
13504 always_export_symbols_CXX=yes
13505 if test "$aix_use_runtimelinking" = yes; then
13506 # Warning - without using the other runtime loading flags (-brtl),
13507 # -berok will link without error, but may produce a broken library.
13508 allow_undefined_flag_CXX='-berok'
13509 # Determine the default libpath from the value encoded in an empty
13510 # executable.
13511 if test x$gcc_no_link = xyes; then
13512 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13515 /* end confdefs.h. */
13518 main ()
13522 return 0;
13524 _ACEOF
13525 if ac_fn_cxx_try_link "$LINENO"; then :
13527 lt_aix_libpath_sed='
13528 /Import File Strings/,/^$/ {
13529 /^0/ {
13530 s/^0 *\(.*\)$/\1/
13534 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13535 # Check for a 64-bit object if we didn't find anything.
13536 if test -z "$aix_libpath"; then
13537 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13540 rm -f core conftest.err conftest.$ac_objext \
13541 conftest$ac_exeext conftest.$ac_ext
13542 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13544 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13546 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"
13547 else
13548 if test "$host_cpu" = ia64; then
13549 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13550 allow_undefined_flag_CXX="-z nodefs"
13551 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"
13552 else
13553 # Determine the default libpath from the value encoded in an
13554 # empty executable.
13555 if test x$gcc_no_link = xyes; then
13556 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559 /* end confdefs.h. */
13562 main ()
13566 return 0;
13568 _ACEOF
13569 if ac_fn_cxx_try_link "$LINENO"; then :
13571 lt_aix_libpath_sed='
13572 /Import File Strings/,/^$/ {
13573 /^0/ {
13574 s/^0 *\(.*\)$/\1/
13578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13579 # Check for a 64-bit object if we didn't find anything.
13580 if test -z "$aix_libpath"; then
13581 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13584 rm -f core conftest.err conftest.$ac_objext \
13585 conftest$ac_exeext conftest.$ac_ext
13586 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13588 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13589 # Warning - without using the other run time loading flags,
13590 # -berok will link without error, but may produce a broken library.
13591 no_undefined_flag_CXX=' ${wl}-bernotok'
13592 allow_undefined_flag_CXX=' ${wl}-berok'
13593 if test "$with_gnu_ld" = yes; then
13594 # We only use this code for GNU lds that support --whole-archive.
13595 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13596 else
13597 # Exported symbols can be pulled into shared objects from archives
13598 whole_archive_flag_spec_CXX='$convenience'
13600 archive_cmds_need_lc_CXX=yes
13601 # This is similar to how AIX traditionally builds its shared
13602 # libraries.
13603 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'
13608 beos*)
13609 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13610 allow_undefined_flag_CXX=unsupported
13611 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13612 # support --undefined. This deserves some investigation. FIXME
13613 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13614 else
13615 ld_shlibs_CXX=no
13619 chorus*)
13620 case $cc_basename in
13622 # FIXME: insert proper C++ library support
13623 ld_shlibs_CXX=no
13625 esac
13628 cygwin* | mingw* | pw32* | cegcc*)
13629 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13630 # as there is no search path for DLLs.
13631 hardcode_libdir_flag_spec_CXX='-L$libdir'
13632 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13633 allow_undefined_flag_CXX=unsupported
13634 always_export_symbols_CXX=no
13635 enable_shared_with_static_runtimes_CXX=yes
13637 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13638 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'
13639 # If the export-symbols file already is a .def file (1st line
13640 # is EXPORTS), use it as is; otherwise, prepend...
13641 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13642 cp $export_symbols $output_objdir/$soname.def;
13643 else
13644 echo EXPORTS > $output_objdir/$soname.def;
13645 cat $export_symbols >> $output_objdir/$soname.def;
13647 $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'
13648 else
13649 ld_shlibs_CXX=no
13652 darwin* | rhapsody*)
13655 archive_cmds_need_lc_CXX=no
13656 hardcode_direct_CXX=no
13657 hardcode_automatic_CXX=yes
13658 hardcode_shlibpath_var_CXX=unsupported
13659 if test "$lt_cv_ld_force_load" = "yes"; then
13660 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\"`'
13661 else
13662 whole_archive_flag_spec_CXX=''
13664 link_all_deplibs_CXX=yes
13665 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13666 case $cc_basename in
13667 ifort*) _lt_dar_can_shared=yes ;;
13668 *) _lt_dar_can_shared=$GCC ;;
13669 esac
13670 if test "$_lt_dar_can_shared" = "yes"; then
13671 output_verbose_link_cmd=func_echo_all
13672 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}"
13673 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13674 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}"
13675 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}"
13676 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13677 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}"
13678 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}"
13681 else
13682 ld_shlibs_CXX=no
13687 dgux*)
13688 case $cc_basename in
13689 ec++*)
13690 # FIXME: insert proper C++ library support
13691 ld_shlibs_CXX=no
13693 ghcx*)
13694 # Green Hills C++ Compiler
13695 # FIXME: insert proper C++ library support
13696 ld_shlibs_CXX=no
13699 # FIXME: insert proper C++ library support
13700 ld_shlibs_CXX=no
13702 esac
13705 freebsd2.*)
13706 # C++ shared libraries reported to be fairly broken before
13707 # switch to ELF
13708 ld_shlibs_CXX=no
13711 freebsd-elf*)
13712 archive_cmds_need_lc_CXX=no
13715 freebsd* | dragonfly*)
13716 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13717 # conventions
13718 ld_shlibs_CXX=yes
13721 gnu*)
13724 haiku*)
13725 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13726 link_all_deplibs_CXX=yes
13729 hpux9*)
13730 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13731 hardcode_libdir_separator_CXX=:
13732 export_dynamic_flag_spec_CXX='${wl}-E'
13733 hardcode_direct_CXX=yes
13734 hardcode_minus_L_CXX=yes # Not in the search PATH,
13735 # but as the default
13736 # location of the library.
13738 case $cc_basename in
13739 CC*)
13740 # FIXME: insert proper C++ library support
13741 ld_shlibs_CXX=no
13743 aCC*)
13744 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'
13745 # Commands to make compiler produce verbose output that lists
13746 # what "hidden" libraries, object files and flags are used when
13747 # linking a shared library.
13749 # There doesn't appear to be a way to prevent this compiler from
13750 # explicitly linking system object files so we need to strip them
13751 # from the output so that they don't get included in the library
13752 # dependencies.
13753 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"'
13756 if test "$GXX" = yes; then
13757 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'
13758 else
13759 # FIXME: insert proper C++ library support
13760 ld_shlibs_CXX=no
13763 esac
13766 hpux10*|hpux11*)
13767 if test $with_gnu_ld = no; then
13768 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13769 hardcode_libdir_separator_CXX=:
13771 case $host_cpu in
13772 hppa*64*|ia64*)
13775 export_dynamic_flag_spec_CXX='${wl}-E'
13777 esac
13779 case $host_cpu in
13780 hppa*64*|ia64*)
13781 hardcode_direct_CXX=no
13782 hardcode_shlibpath_var_CXX=no
13785 hardcode_direct_CXX=yes
13786 hardcode_direct_absolute_CXX=yes
13787 hardcode_minus_L_CXX=yes # Not in the search PATH,
13788 # but as the default
13789 # location of the library.
13791 esac
13793 case $cc_basename in
13794 CC*)
13795 # FIXME: insert proper C++ library support
13796 ld_shlibs_CXX=no
13798 aCC*)
13799 case $host_cpu in
13800 hppa*64*)
13801 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13803 ia64*)
13804 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13807 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13809 esac
13810 # Commands to make compiler produce verbose output that lists
13811 # what "hidden" libraries, object files and flags are used when
13812 # linking a shared library.
13814 # There doesn't appear to be a way to prevent this compiler from
13815 # explicitly linking system object files so we need to strip them
13816 # from the output so that they don't get included in the library
13817 # dependencies.
13818 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"'
13821 if test "$GXX" = yes; then
13822 if test $with_gnu_ld = no; then
13823 case $host_cpu in
13824 hppa*64*)
13825 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13827 ia64*)
13828 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13831 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'
13833 esac
13835 else
13836 # FIXME: insert proper C++ library support
13837 ld_shlibs_CXX=no
13840 esac
13843 interix[3-9]*)
13844 hardcode_direct_CXX=no
13845 hardcode_shlibpath_var_CXX=no
13846 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13847 export_dynamic_flag_spec_CXX='${wl}-E'
13848 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13849 # Instead, shared libraries are loaded at an image base (0x10000000 by
13850 # default) and relocated if they conflict, which is a slow very memory
13851 # consuming and fragmenting process. To avoid this, we pick a random,
13852 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13853 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13854 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'
13855 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'
13857 irix5* | irix6*)
13858 case $cc_basename in
13859 CC*)
13860 # SGI C++
13861 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'
13863 # Archives containing C++ object files must be created using
13864 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13865 # necessary to make sure instantiated templates are included
13866 # in the archive.
13867 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13870 if test "$GXX" = yes; then
13871 if test "$with_gnu_ld" = no; then
13872 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'
13873 else
13874 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'
13877 link_all_deplibs_CXX=yes
13879 esac
13880 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13881 hardcode_libdir_separator_CXX=:
13882 inherit_rpath_CXX=yes
13885 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13886 case $cc_basename in
13887 KCC*)
13888 # Kuck and Associates, Inc. (KAI) C++ Compiler
13890 # KCC will only create a shared library if the output file
13891 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13892 # to its proper name (with version) after linking.
13893 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'
13894 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'
13895 # Commands to make compiler produce verbose output that lists
13896 # what "hidden" libraries, object files and flags are used when
13897 # linking a shared library.
13899 # There doesn't appear to be a way to prevent this compiler from
13900 # explicitly linking system object files so we need to strip them
13901 # from the output so that they don't get included in the library
13902 # dependencies.
13903 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"'
13905 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13906 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13908 # Archives containing C++ object files must be created using
13909 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13910 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13912 icpc* | ecpc* )
13913 # Intel C++
13914 with_gnu_ld=yes
13915 # version 8.0 and above of icpc choke on multiply defined symbols
13916 # if we add $predep_objects and $postdep_objects, however 7.1 and
13917 # earlier do not add the objects themselves.
13918 case `$CC -V 2>&1` in
13919 *"Version 7."*)
13920 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13921 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'
13923 *) # Version 8.0 or newer
13924 tmp_idyn=
13925 case $host_cpu in
13926 ia64*) tmp_idyn=' -i_dynamic';;
13927 esac
13928 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13929 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'
13931 esac
13932 archive_cmds_need_lc_CXX=no
13933 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13934 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13935 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13937 pgCC* | pgcpp*)
13938 # Portland Group C++ compiler
13939 case `$CC -V` in
13940 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13941 prelink_cmds_CXX='tpldir=Template.dir~
13942 rm -rf $tpldir~
13943 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13944 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13945 old_archive_cmds_CXX='tpldir=Template.dir~
13946 rm -rf $tpldir~
13947 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13948 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13949 $RANLIB $oldlib'
13950 archive_cmds_CXX='tpldir=Template.dir~
13951 rm -rf $tpldir~
13952 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13953 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13954 archive_expsym_cmds_CXX='tpldir=Template.dir~
13955 rm -rf $tpldir~
13956 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13957 $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'
13959 *) # Version 6 and above use weak symbols
13960 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13961 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'
13963 esac
13965 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13966 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13967 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'
13969 cxx*)
13970 # Compaq C++
13971 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13972 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'
13974 runpath_var=LD_RUN_PATH
13975 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13976 hardcode_libdir_separator_CXX=:
13978 # Commands to make compiler produce verbose output that lists
13979 # what "hidden" libraries, object files and flags are used when
13980 # linking a shared library.
13982 # There doesn't appear to be a way to prevent this compiler from
13983 # explicitly linking system object files so we need to strip them
13984 # from the output so that they don't get included in the library
13985 # dependencies.
13986 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'
13988 xl* | mpixl* | bgxl*)
13989 # IBM XL 8.0 on PPC, with GNU ld
13990 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13991 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13992 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13993 if test "x$supports_anon_versioning" = xyes; then
13994 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13995 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13996 echo "local: *; };" >> $output_objdir/$libname.ver~
13997 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14001 case `$CC -V 2>&1 | sed 5q` in
14002 *Sun\ C*)
14003 # Sun C++ 5.9
14004 no_undefined_flag_CXX=' -zdefs'
14005 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14006 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'
14007 hardcode_libdir_flag_spec_CXX='-R$libdir'
14008 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'
14009 compiler_needs_object_CXX=yes
14011 # Not sure whether something based on
14012 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14013 # would be better.
14014 output_verbose_link_cmd='func_echo_all'
14016 # Archives containing C++ object files must be created using
14017 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14018 # necessary to make sure instantiated templates are included
14019 # in the archive.
14020 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14022 esac
14024 esac
14027 lynxos*)
14028 # FIXME: insert proper C++ library support
14029 ld_shlibs_CXX=no
14032 m88k*)
14033 # FIXME: insert proper C++ library support
14034 ld_shlibs_CXX=no
14037 mvs*)
14038 case $cc_basename in
14039 cxx*)
14040 # FIXME: insert proper C++ library support
14041 ld_shlibs_CXX=no
14044 # FIXME: insert proper C++ library support
14045 ld_shlibs_CXX=no
14047 esac
14050 netbsd*)
14051 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14052 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14053 wlarc=
14054 hardcode_libdir_flag_spec_CXX='-R$libdir'
14055 hardcode_direct_CXX=yes
14056 hardcode_shlibpath_var_CXX=no
14058 # Workaround some broken pre-1.5 toolchains
14059 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14062 *nto* | *qnx*)
14063 ld_shlibs_CXX=yes
14066 openbsd2*)
14067 # C++ shared libraries are fairly broken
14068 ld_shlibs_CXX=no
14071 openbsd*)
14072 if test -f /usr/libexec/ld.so; then
14073 hardcode_direct_CXX=yes
14074 hardcode_shlibpath_var_CXX=no
14075 hardcode_direct_absolute_CXX=yes
14076 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14077 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14078 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14079 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14080 export_dynamic_flag_spec_CXX='${wl}-E'
14081 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14083 output_verbose_link_cmd=func_echo_all
14084 else
14085 ld_shlibs_CXX=no
14089 osf3* | osf4* | osf5*)
14090 case $cc_basename in
14091 KCC*)
14092 # Kuck and Associates, Inc. (KAI) C++ Compiler
14094 # KCC will only create a shared library if the output file
14095 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14096 # to its proper name (with version) after linking.
14097 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'
14099 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14100 hardcode_libdir_separator_CXX=:
14102 # Archives containing C++ object files must be created using
14103 # the KAI C++ compiler.
14104 case $host in
14105 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14106 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14107 esac
14109 RCC*)
14110 # Rational C++ 2.4.1
14111 # FIXME: insert proper C++ library support
14112 ld_shlibs_CXX=no
14114 cxx*)
14115 case $host in
14116 osf3*)
14117 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14118 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'
14119 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14122 allow_undefined_flag_CXX=' -expect_unresolved \*'
14123 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'
14124 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14125 echo "-hidden">> $lib.exp~
14126 $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~
14127 $RM $lib.exp'
14128 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14130 esac
14132 hardcode_libdir_separator_CXX=:
14134 # Commands to make compiler produce verbose output that lists
14135 # what "hidden" libraries, object files and flags are used when
14136 # linking a shared library.
14138 # There doesn't appear to be a way to prevent this compiler from
14139 # explicitly linking system object files so we need to strip them
14140 # from the output so that they don't get included in the library
14141 # dependencies.
14142 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"'
14145 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14146 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14147 case $host in
14148 osf3*)
14149 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'
14152 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'
14154 esac
14156 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14157 hardcode_libdir_separator_CXX=:
14159 # Commands to make compiler produce verbose output that lists
14160 # what "hidden" libraries, object files and flags are used when
14161 # linking a shared library.
14162 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14164 else
14165 # FIXME: insert proper C++ library support
14166 ld_shlibs_CXX=no
14169 esac
14172 psos*)
14173 # FIXME: insert proper C++ library support
14174 ld_shlibs_CXX=no
14177 sunos4*)
14178 case $cc_basename in
14179 CC*)
14180 # Sun C++ 4.x
14181 # FIXME: insert proper C++ library support
14182 ld_shlibs_CXX=no
14184 lcc*)
14185 # Lucid
14186 # FIXME: insert proper C++ library support
14187 ld_shlibs_CXX=no
14190 # FIXME: insert proper C++ library support
14191 ld_shlibs_CXX=no
14193 esac
14196 solaris*)
14197 case $cc_basename in
14198 CC*)
14199 # Sun C++ 4.2, 5.x and Centerline C++
14200 archive_cmds_need_lc_CXX=yes
14201 no_undefined_flag_CXX=' -zdefs'
14202 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14203 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14204 $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'
14206 hardcode_libdir_flag_spec_CXX='-R$libdir'
14207 hardcode_shlibpath_var_CXX=no
14208 case $host_os in
14209 solaris2.[0-5] | solaris2.[0-5].*) ;;
14211 # The compiler driver will combine and reorder linker options,
14212 # but understands `-z linker_flag'.
14213 # Supported since Solaris 2.6 (maybe 2.5.1?)
14214 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14216 esac
14217 link_all_deplibs_CXX=yes
14219 output_verbose_link_cmd='func_echo_all'
14221 # Archives containing C++ object files must be created using
14222 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14223 # necessary to make sure instantiated templates are included
14224 # in the archive.
14225 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14227 gcx*)
14228 # Green Hills C++ Compiler
14229 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14231 # The C++ compiler must be used to create the archive.
14232 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14235 # GNU C++ compiler with Solaris linker
14236 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14237 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14238 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14239 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14240 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14241 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14243 # Commands to make compiler produce verbose output that lists
14244 # what "hidden" libraries, object files and flags are used when
14245 # linking a shared library.
14246 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14247 else
14248 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14249 # platform.
14250 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14251 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14252 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14254 # Commands to make compiler produce verbose output that lists
14255 # what "hidden" libraries, object files and flags are used when
14256 # linking a shared library.
14257 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14260 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14261 case $host_os in
14262 solaris2.[0-5] | solaris2.[0-5].*) ;;
14264 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14266 esac
14269 esac
14272 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14273 no_undefined_flag_CXX='${wl}-z,text'
14274 archive_cmds_need_lc_CXX=no
14275 hardcode_shlibpath_var_CXX=no
14276 runpath_var='LD_RUN_PATH'
14278 case $cc_basename in
14279 CC*)
14280 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14281 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14284 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14285 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14287 esac
14290 sysv5* | sco3.2v5* | sco5v6*)
14291 # Note: We can NOT use -z defs as we might desire, because we do not
14292 # link with -lc, and that would cause any symbols used from libc to
14293 # always be unresolved, which means just about no library would
14294 # ever link correctly. If we're not using GNU ld we use -z text
14295 # though, which does catch some bad symbols but isn't as heavy-handed
14296 # as -z defs.
14297 no_undefined_flag_CXX='${wl}-z,text'
14298 allow_undefined_flag_CXX='${wl}-z,nodefs'
14299 archive_cmds_need_lc_CXX=no
14300 hardcode_shlibpath_var_CXX=no
14301 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14302 hardcode_libdir_separator_CXX=':'
14303 link_all_deplibs_CXX=yes
14304 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14305 runpath_var='LD_RUN_PATH'
14307 case $cc_basename in
14308 CC*)
14309 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14310 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14311 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14312 '"$old_archive_cmds_CXX"
14313 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14314 '"$reload_cmds_CXX"
14317 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14318 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14320 esac
14323 tandem*)
14324 case $cc_basename in
14325 NCC*)
14326 # NonStop-UX NCC 3.20
14327 # FIXME: insert proper C++ library support
14328 ld_shlibs_CXX=no
14331 # FIXME: insert proper C++ library support
14332 ld_shlibs_CXX=no
14334 esac
14337 vxworks*)
14338 # For VxWorks ports, we assume the use of a GNU linker with
14339 # standard elf conventions.
14340 ld_shlibs_CXX=yes
14344 # FIXME: insert proper C++ library support
14345 ld_shlibs_CXX=no
14347 esac
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14350 $as_echo "$ld_shlibs_CXX" >&6; }
14351 test "$ld_shlibs_CXX" = no && can_build_shared=no
14353 GCC_CXX="$GXX"
14354 LD_CXX="$LD"
14356 ## CAVEAT EMPTOR:
14357 ## There is no encapsulation within the following macros, do not change
14358 ## the running order or otherwise move them around unless you know exactly
14359 ## what you are doing...
14360 # Dependencies to place before and after the object being linked:
14361 predep_objects_CXX=
14362 postdep_objects_CXX=
14363 predeps_CXX=
14364 postdeps_CXX=
14365 compiler_lib_search_path_CXX=
14367 cat > conftest.$ac_ext <<_LT_EOF
14368 class Foo
14370 public:
14371 Foo (void) { a = 0; }
14372 private:
14373 int a;
14375 _LT_EOF
14377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14378 (eval $ac_compile) 2>&5
14379 ac_status=$?
14380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14381 test $ac_status = 0; }; then
14382 # Parse the compiler output and extract the necessary
14383 # objects, libraries and library flags.
14385 # Sentinel used to keep track of whether or not we are before
14386 # the conftest object file.
14387 pre_test_object_deps_done=no
14389 for p in `eval "$output_verbose_link_cmd"`; do
14390 case $p in
14392 -L* | -R* | -l*)
14393 # Some compilers place space between "-{L,R}" and the path.
14394 # Remove the space.
14395 if test $p = "-L" ||
14396 test $p = "-R"; then
14397 prev=$p
14398 continue
14399 else
14400 prev=
14403 if test "$pre_test_object_deps_done" = no; then
14404 case $p in
14405 -L* | -R*)
14406 # Internal compiler library paths should come after those
14407 # provided the user. The postdeps already come after the
14408 # user supplied libs so there is no need to process them.
14409 if test -z "$compiler_lib_search_path_CXX"; then
14410 compiler_lib_search_path_CXX="${prev}${p}"
14411 else
14412 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14415 # The "-l" case would never come before the object being
14416 # linked, so don't bother handling this case.
14417 esac
14418 else
14419 if test -z "$postdeps_CXX"; then
14420 postdeps_CXX="${prev}${p}"
14421 else
14422 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14427 *.$objext)
14428 # This assumes that the test object file only shows up
14429 # once in the compiler output.
14430 if test "$p" = "conftest.$objext"; then
14431 pre_test_object_deps_done=yes
14432 continue
14435 if test "$pre_test_object_deps_done" = no; then
14436 if test -z "$predep_objects_CXX"; then
14437 predep_objects_CXX="$p"
14438 else
14439 predep_objects_CXX="$predep_objects_CXX $p"
14441 else
14442 if test -z "$postdep_objects_CXX"; then
14443 postdep_objects_CXX="$p"
14444 else
14445 postdep_objects_CXX="$postdep_objects_CXX $p"
14450 *) ;; # Ignore the rest.
14452 esac
14453 done
14455 # Clean up.
14456 rm -f a.out a.exe
14457 else
14458 echo "libtool.m4: error: problem compiling CXX test program"
14461 $RM -f confest.$objext
14463 # PORTME: override above test on systems where it is broken
14464 case $host_os in
14465 interix[3-9]*)
14466 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14467 # hack all around it, let's just trust "g++" to DTRT.
14468 predep_objects_CXX=
14469 postdep_objects_CXX=
14470 postdeps_CXX=
14473 linux*)
14474 case `$CC -V 2>&1 | sed 5q` in
14475 *Sun\ C*)
14476 # Sun C++ 5.9
14478 # The more standards-conforming stlport4 library is
14479 # incompatible with the Cstd library. Avoid specifying
14480 # it if it's in CXXFLAGS. Ignore libCrun as
14481 # -library=stlport4 depends on it.
14482 case " $CXX $CXXFLAGS " in
14483 *" -library=stlport4 "*)
14484 solaris_use_stlport4=yes
14486 esac
14488 if test "$solaris_use_stlport4" != yes; then
14489 postdeps_CXX='-library=Cstd -library=Crun'
14492 esac
14495 solaris*)
14496 case $cc_basename in
14497 CC*)
14498 # The more standards-conforming stlport4 library is
14499 # incompatible with the Cstd library. Avoid specifying
14500 # it if it's in CXXFLAGS. Ignore libCrun as
14501 # -library=stlport4 depends on it.
14502 case " $CXX $CXXFLAGS " in
14503 *" -library=stlport4 "*)
14504 solaris_use_stlport4=yes
14506 esac
14508 # Adding this requires a known-good setup of shared libraries for
14509 # Sun compiler versions before 5.6, else PIC objects from an old
14510 # archive will be linked into the output, leading to subtle bugs.
14511 if test "$solaris_use_stlport4" != yes; then
14512 postdeps_CXX='-library=Cstd -library=Crun'
14515 esac
14517 esac
14520 case " $postdeps_CXX " in
14521 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14522 esac
14523 compiler_lib_search_dirs_CXX=
14524 if test -n "${compiler_lib_search_path_CXX}"; then
14525 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14558 lt_prog_compiler_wl_CXX=
14559 lt_prog_compiler_pic_CXX=
14560 lt_prog_compiler_static_CXX=
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14563 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14565 # C++ specific cases for pic, static, wl, etc.
14566 if test "$GXX" = yes; then
14567 lt_prog_compiler_wl_CXX='-Wl,'
14568 lt_prog_compiler_static_CXX='-static'
14570 case $host_os in
14571 aix*)
14572 # All AIX code is PIC.
14573 if test "$host_cpu" = ia64; then
14574 # AIX 5 now supports IA64 processor
14575 lt_prog_compiler_static_CXX='-Bstatic'
14577 lt_prog_compiler_pic_CXX='-fPIC'
14580 amigaos*)
14581 case $host_cpu in
14582 powerpc)
14583 # see comment about AmigaOS4 .so support
14584 lt_prog_compiler_pic_CXX='-fPIC'
14586 m68k)
14587 # FIXME: we need at least 68020 code to build shared libraries, but
14588 # adding the `-m68020' flag to GCC prevents building anything better,
14589 # like `-m68040'.
14590 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14592 esac
14595 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14596 # PIC is the default for these OSes.
14598 mingw* | cygwin* | os2* | pw32* | cegcc*)
14599 # This hack is so that the source file can tell whether it is being
14600 # built for inclusion in a dll (and should export symbols for example).
14601 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14602 # (--disable-auto-import) libraries
14603 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14605 darwin* | rhapsody*)
14606 # PIC is the default on this platform
14607 # Common symbols not allowed in MH_DYLIB files
14608 lt_prog_compiler_pic_CXX='-fno-common'
14610 *djgpp*)
14611 # DJGPP does not support shared libraries at all
14612 lt_prog_compiler_pic_CXX=
14614 haiku*)
14615 # PIC is the default for Haiku.
14616 # The "-static" flag exists, but is broken.
14617 lt_prog_compiler_static_CXX=
14619 interix[3-9]*)
14620 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14621 # Instead, we relocate shared libraries at runtime.
14623 sysv4*MP*)
14624 if test -d /usr/nec; then
14625 lt_prog_compiler_pic_CXX=-Kconform_pic
14628 hpux*)
14629 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14630 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14631 # sets the default TLS model and affects inlining.
14632 case $host_cpu in
14633 hppa*64*)
14636 lt_prog_compiler_pic_CXX='-fPIC'
14638 esac
14640 *qnx* | *nto*)
14641 # QNX uses GNU C++, but need to define -shared option too, otherwise
14642 # it will coredump.
14643 lt_prog_compiler_pic_CXX='-fPIC -shared'
14646 lt_prog_compiler_pic_CXX='-fPIC'
14648 esac
14649 else
14650 case $host_os in
14651 aix[4-9]*)
14652 # All AIX code is PIC.
14653 if test "$host_cpu" = ia64; then
14654 # AIX 5 now supports IA64 processor
14655 lt_prog_compiler_static_CXX='-Bstatic'
14656 else
14657 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14660 chorus*)
14661 case $cc_basename in
14662 cxch68*)
14663 # Green Hills C++ Compiler
14664 # _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"
14666 esac
14668 dgux*)
14669 case $cc_basename in
14670 ec++*)
14671 lt_prog_compiler_pic_CXX='-KPIC'
14673 ghcx*)
14674 # Green Hills C++ Compiler
14675 lt_prog_compiler_pic_CXX='-pic'
14679 esac
14681 freebsd* | dragonfly*)
14682 # FreeBSD uses GNU C++
14684 hpux9* | hpux10* | hpux11*)
14685 case $cc_basename in
14686 CC*)
14687 lt_prog_compiler_wl_CXX='-Wl,'
14688 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14689 if test "$host_cpu" != ia64; then
14690 lt_prog_compiler_pic_CXX='+Z'
14693 aCC*)
14694 lt_prog_compiler_wl_CXX='-Wl,'
14695 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14696 case $host_cpu in
14697 hppa*64*|ia64*)
14698 # +Z the default
14701 lt_prog_compiler_pic_CXX='+Z'
14703 esac
14707 esac
14709 interix*)
14710 # This is c89, which is MS Visual C++ (no shared libs)
14711 # Anyone wants to do a port?
14713 irix5* | irix6* | nonstopux*)
14714 case $cc_basename in
14715 CC*)
14716 lt_prog_compiler_wl_CXX='-Wl,'
14717 lt_prog_compiler_static_CXX='-non_shared'
14718 # CC pic flag -KPIC is the default.
14722 esac
14724 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14725 case $cc_basename in
14726 KCC*)
14727 # KAI C++ Compiler
14728 lt_prog_compiler_wl_CXX='--backend -Wl,'
14729 lt_prog_compiler_pic_CXX='-fPIC'
14731 ecpc* )
14732 # old Intel C++ for x86_64 which still supported -KPIC.
14733 lt_prog_compiler_wl_CXX='-Wl,'
14734 lt_prog_compiler_pic_CXX='-KPIC'
14735 lt_prog_compiler_static_CXX='-static'
14737 icpc* )
14738 # Intel C++, used to be incompatible with GCC.
14739 # ICC 10 doesn't accept -KPIC any more.
14740 lt_prog_compiler_wl_CXX='-Wl,'
14741 lt_prog_compiler_pic_CXX='-fPIC'
14742 lt_prog_compiler_static_CXX='-static'
14744 pgCC* | pgcpp*)
14745 # Portland Group C++ compiler
14746 lt_prog_compiler_wl_CXX='-Wl,'
14747 lt_prog_compiler_pic_CXX='-fpic'
14748 lt_prog_compiler_static_CXX='-Bstatic'
14750 cxx*)
14751 # Compaq C++
14752 # Make sure the PIC flag is empty. It appears that all Alpha
14753 # Linux and Compaq Tru64 Unix objects are PIC.
14754 lt_prog_compiler_pic_CXX=
14755 lt_prog_compiler_static_CXX='-non_shared'
14757 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14758 # IBM XL 8.0, 9.0 on PPC and BlueGene
14759 lt_prog_compiler_wl_CXX='-Wl,'
14760 lt_prog_compiler_pic_CXX='-qpic'
14761 lt_prog_compiler_static_CXX='-qstaticlink'
14764 case `$CC -V 2>&1 | sed 5q` in
14765 *Sun\ C*)
14766 # Sun C++ 5.9
14767 lt_prog_compiler_pic_CXX='-KPIC'
14768 lt_prog_compiler_static_CXX='-Bstatic'
14769 lt_prog_compiler_wl_CXX='-Qoption ld '
14771 esac
14773 esac
14775 lynxos*)
14777 m88k*)
14779 mvs*)
14780 case $cc_basename in
14781 cxx*)
14782 lt_prog_compiler_pic_CXX='-W c,exportall'
14786 esac
14788 netbsd*)
14790 *qnx* | *nto*)
14791 # QNX uses GNU C++, but need to define -shared option too, otherwise
14792 # it will coredump.
14793 lt_prog_compiler_pic_CXX='-fPIC -shared'
14795 osf3* | osf4* | osf5*)
14796 case $cc_basename in
14797 KCC*)
14798 lt_prog_compiler_wl_CXX='--backend -Wl,'
14800 RCC*)
14801 # Rational C++ 2.4.1
14802 lt_prog_compiler_pic_CXX='-pic'
14804 cxx*)
14805 # Digital/Compaq C++
14806 lt_prog_compiler_wl_CXX='-Wl,'
14807 # Make sure the PIC flag is empty. It appears that all Alpha
14808 # Linux and Compaq Tru64 Unix objects are PIC.
14809 lt_prog_compiler_pic_CXX=
14810 lt_prog_compiler_static_CXX='-non_shared'
14814 esac
14816 psos*)
14818 solaris*)
14819 case $cc_basename in
14820 CC*)
14821 # Sun C++ 4.2, 5.x and Centerline C++
14822 lt_prog_compiler_pic_CXX='-KPIC'
14823 lt_prog_compiler_static_CXX='-Bstatic'
14824 lt_prog_compiler_wl_CXX='-Qoption ld '
14826 gcx*)
14827 # Green Hills C++ Compiler
14828 lt_prog_compiler_pic_CXX='-PIC'
14832 esac
14834 sunos4*)
14835 case $cc_basename in
14836 CC*)
14837 # Sun C++ 4.x
14838 lt_prog_compiler_pic_CXX='-pic'
14839 lt_prog_compiler_static_CXX='-Bstatic'
14841 lcc*)
14842 # Lucid
14843 lt_prog_compiler_pic_CXX='-pic'
14847 esac
14849 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14850 case $cc_basename in
14851 CC*)
14852 lt_prog_compiler_wl_CXX='-Wl,'
14853 lt_prog_compiler_pic_CXX='-KPIC'
14854 lt_prog_compiler_static_CXX='-Bstatic'
14856 esac
14858 tandem*)
14859 case $cc_basename in
14860 NCC*)
14861 # NonStop-UX NCC 3.20
14862 lt_prog_compiler_pic_CXX='-KPIC'
14866 esac
14868 vxworks*)
14871 lt_prog_compiler_can_build_shared_CXX=no
14873 esac
14876 case $host_os in
14877 # For platforms which do not support PIC, -DPIC is meaningless:
14878 *djgpp*)
14879 lt_prog_compiler_pic_CXX=
14882 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14884 esac
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14886 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14891 # Check to make sure the PIC flag actually works.
14893 if test -n "$lt_prog_compiler_pic_CXX"; then
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14895 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14896 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14897 $as_echo_n "(cached) " >&6
14898 else
14899 lt_cv_prog_compiler_pic_works_CXX=no
14900 ac_outfile=conftest.$ac_objext
14901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14902 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14903 # Insert the option either (1) after the last *FLAGS variable, or
14904 # (2) before a word containing "conftest.", or (3) at the end.
14905 # Note that $ac_compile itself does not contain backslashes and begins
14906 # with a dollar sign (not a hyphen), so the echo should work correctly.
14907 # The option is referenced via a variable to avoid confusing sed.
14908 lt_compile=`echo "$ac_compile" | $SED \
14909 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14910 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14911 -e 's:$: $lt_compiler_flag:'`
14912 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14913 (eval "$lt_compile" 2>conftest.err)
14914 ac_status=$?
14915 cat conftest.err >&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 if (exit $ac_status) && test -s "$ac_outfile"; then
14918 # The compiler can only warn and ignore the option if not recognized
14919 # So say no if there are warnings other than the usual output.
14920 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14921 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14922 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14923 lt_cv_prog_compiler_pic_works_CXX=yes
14926 $RM conftest*
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14930 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14932 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14933 case $lt_prog_compiler_pic_CXX in
14934 "" | " "*) ;;
14935 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14936 esac
14937 else
14938 lt_prog_compiler_pic_CXX=
14939 lt_prog_compiler_can_build_shared_CXX=no
14947 # Check to make sure the static flag actually works.
14949 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14951 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14952 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14953 $as_echo_n "(cached) " >&6
14954 else
14955 lt_cv_prog_compiler_static_works_CXX=no
14956 save_LDFLAGS="$LDFLAGS"
14957 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14958 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14959 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14960 # The linker can only warn and ignore the option if not recognized
14961 # So say no if there are warnings
14962 if test -s conftest.err; then
14963 # Append any errors to the config.log.
14964 cat conftest.err 1>&5
14965 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14966 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14967 if diff conftest.exp conftest.er2 >/dev/null; then
14968 lt_cv_prog_compiler_static_works_CXX=yes
14970 else
14971 lt_cv_prog_compiler_static_works_CXX=yes
14974 $RM -r conftest*
14975 LDFLAGS="$save_LDFLAGS"
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14979 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14981 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14983 else
14984 lt_prog_compiler_static_CXX=
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14991 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14992 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14993 $as_echo_n "(cached) " >&6
14994 else
14995 lt_cv_prog_compiler_c_o_CXX=no
14996 $RM -r conftest 2>/dev/null
14997 mkdir conftest
14998 cd conftest
14999 mkdir out
15000 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15002 lt_compiler_flag="-o out/conftest2.$ac_objext"
15003 # Insert the option either (1) after the last *FLAGS variable, or
15004 # (2) before a word containing "conftest.", or (3) at the end.
15005 # Note that $ac_compile itself does not contain backslashes and begins
15006 # with a dollar sign (not a hyphen), so the echo should work correctly.
15007 lt_compile=`echo "$ac_compile" | $SED \
15008 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15009 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15010 -e 's:$: $lt_compiler_flag:'`
15011 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15012 (eval "$lt_compile" 2>out/conftest.err)
15013 ac_status=$?
15014 cat out/conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15017 then
15018 # The compiler can only warn and ignore the option if not recognized
15019 # So say no if there are warnings
15020 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15021 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15022 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15023 lt_cv_prog_compiler_c_o_CXX=yes
15026 chmod u+w . 2>&5
15027 $RM conftest*
15028 # SGI C++ compiler will create directory out/ii_files/ for
15029 # template instantiation
15030 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15031 $RM out/* && rmdir out
15032 cd ..
15033 $RM -r conftest
15034 $RM conftest*
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15038 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15043 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15044 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15045 $as_echo_n "(cached) " >&6
15046 else
15047 lt_cv_prog_compiler_c_o_CXX=no
15048 $RM -r conftest 2>/dev/null
15049 mkdir conftest
15050 cd conftest
15051 mkdir out
15052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15054 lt_compiler_flag="-o out/conftest2.$ac_objext"
15055 # Insert the option either (1) after the last *FLAGS variable, or
15056 # (2) before a word containing "conftest.", or (3) at the end.
15057 # Note that $ac_compile itself does not contain backslashes and begins
15058 # with a dollar sign (not a hyphen), so the echo should work correctly.
15059 lt_compile=`echo "$ac_compile" | $SED \
15060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15062 -e 's:$: $lt_compiler_flag:'`
15063 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15064 (eval "$lt_compile" 2>out/conftest.err)
15065 ac_status=$?
15066 cat out/conftest.err >&5
15067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15068 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15069 then
15070 # The compiler can only warn and ignore the option if not recognized
15071 # So say no if there are warnings
15072 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15073 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15074 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15075 lt_cv_prog_compiler_c_o_CXX=yes
15078 chmod u+w . 2>&5
15079 $RM conftest*
15080 # SGI C++ compiler will create directory out/ii_files/ for
15081 # template instantiation
15082 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15083 $RM out/* && rmdir out
15084 cd ..
15085 $RM -r conftest
15086 $RM conftest*
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15090 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15095 hard_links="nottested"
15096 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15097 # do not overwrite the value of need_locks provided by the user
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15099 $as_echo_n "checking if we can lock with hard links... " >&6; }
15100 hard_links=yes
15101 $RM conftest*
15102 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15103 touch conftest.a
15104 ln conftest.a conftest.b 2>&5 || hard_links=no
15105 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15107 $as_echo "$hard_links" >&6; }
15108 if test "$hard_links" = no; then
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15110 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15111 need_locks=warn
15113 else
15114 need_locks=no
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15120 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15122 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15123 case $host_os in
15124 aix[4-9]*)
15125 # If we're using GNU nm, then we don't want the "-C" option.
15126 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15127 # Also, AIX nm treats weak defined symbols like other global defined
15128 # symbols, whereas GNU nm marks them as "W".
15129 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15130 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'
15131 else
15132 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'
15135 pw32*)
15136 export_symbols_cmds_CXX="$ltdll_cmds"
15138 cygwin* | mingw* | cegcc*)
15139 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'
15142 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15144 esac
15145 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15148 $as_echo "$ld_shlibs_CXX" >&6; }
15149 test "$ld_shlibs_CXX" = no && can_build_shared=no
15151 with_gnu_ld_CXX=$with_gnu_ld
15159 # Do we need to explicitly link libc?
15161 case "x$archive_cmds_need_lc_CXX" in
15162 x|xyes)
15163 # Assume -lc should be added
15164 archive_cmds_need_lc_CXX=yes
15166 if test "$enable_shared" = yes && test "$GCC" = yes; then
15167 case $archive_cmds_CXX in
15168 *'~'*)
15169 # FIXME: we may have to deal with multi-command sequences.
15171 '$CC '*)
15172 # Test whether the compiler implicitly links with -lc since on some
15173 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15174 # to ld, don't add -lc before -lgcc.
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15176 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15177 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15178 $as_echo_n "(cached) " >&6
15179 else
15180 $RM conftest*
15181 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15184 (eval $ac_compile) 2>&5
15185 ac_status=$?
15186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15187 test $ac_status = 0; } 2>conftest.err; then
15188 soname=conftest
15189 lib=conftest
15190 libobjs=conftest.$ac_objext
15191 deplibs=
15192 wl=$lt_prog_compiler_wl_CXX
15193 pic_flag=$lt_prog_compiler_pic_CXX
15194 compiler_flags=-v
15195 linker_flags=-v
15196 verstring=
15197 output_objdir=.
15198 libname=conftest
15199 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15200 allow_undefined_flag_CXX=
15201 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15202 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15203 ac_status=$?
15204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15205 test $ac_status = 0; }
15206 then
15207 lt_cv_archive_cmds_need_lc_CXX=no
15208 else
15209 lt_cv_archive_cmds_need_lc_CXX=yes
15211 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15212 else
15213 cat conftest.err 1>&5
15215 $RM conftest*
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15219 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15220 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15222 esac
15225 esac
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15291 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15293 library_names_spec=
15294 libname_spec='lib$name'
15295 soname_spec=
15296 shrext_cmds=".so"
15297 postinstall_cmds=
15298 postuninstall_cmds=
15299 finish_cmds=
15300 finish_eval=
15301 shlibpath_var=
15302 shlibpath_overrides_runpath=unknown
15303 version_type=none
15304 dynamic_linker="$host_os ld.so"
15305 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15306 need_lib_prefix=unknown
15307 hardcode_into_libs=no
15309 # when you set need_version to no, make sure it does not cause -set_version
15310 # flags to be left without arguments
15311 need_version=unknown
15313 case $host_os in
15314 aix3*)
15315 version_type=linux
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15317 shlibpath_var=LIBPATH
15319 # AIX 3 has no versioning support, so we append a major version to the name.
15320 soname_spec='${libname}${release}${shared_ext}$major'
15323 aix[4-9]*)
15324 version_type=linux
15325 need_lib_prefix=no
15326 need_version=no
15327 hardcode_into_libs=yes
15328 if test "$host_cpu" = ia64; then
15329 # AIX 5 supports IA64
15330 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15331 shlibpath_var=LD_LIBRARY_PATH
15332 else
15333 # With GCC up to 2.95.x, collect2 would create an import file
15334 # for dependence libraries. The import file would start with
15335 # the line `#! .'. This would cause the generated library to
15336 # depend on `.', always an invalid library. This was fixed in
15337 # development snapshots of GCC prior to 3.0.
15338 case $host_os in
15339 aix4 | aix4.[01] | aix4.[01].*)
15340 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15341 echo ' yes '
15342 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15344 else
15345 can_build_shared=no
15348 esac
15349 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15350 # soname into executable. Probably we can add versioning support to
15351 # collect2, so additional links can be useful in future.
15352 if test "$aix_use_runtimelinking" = yes; then
15353 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15354 # instead of lib<name>.a to let people know that these are not
15355 # typical AIX shared libraries.
15356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15357 else
15358 # We preserve .a as extension for shared libraries through AIX4.2
15359 # and later when we are not doing run time linking.
15360 library_names_spec='${libname}${release}.a $libname.a'
15361 soname_spec='${libname}${release}${shared_ext}$major'
15363 shlibpath_var=LIBPATH
15367 amigaos*)
15368 case $host_cpu in
15369 powerpc)
15370 # Since July 2007 AmigaOS4 officially supports .so libraries.
15371 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15374 m68k)
15375 library_names_spec='$libname.ixlibrary $libname.a'
15376 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15377 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'
15379 esac
15382 beos*)
15383 library_names_spec='${libname}${shared_ext}'
15384 dynamic_linker="$host_os ld.so"
15385 shlibpath_var=LIBRARY_PATH
15388 bsdi[45]*)
15389 version_type=linux
15390 need_version=no
15391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392 soname_spec='${libname}${release}${shared_ext}$major'
15393 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15394 shlibpath_var=LD_LIBRARY_PATH
15395 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15396 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15397 # the default ld.so.conf also contains /usr/contrib/lib and
15398 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15399 # libtool to hard-code these into programs
15402 cygwin* | mingw* | pw32* | cegcc*)
15403 version_type=windows
15404 shrext_cmds=".dll"
15405 need_version=no
15406 need_lib_prefix=no
15408 case $GCC,$host_os in
15409 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15410 library_names_spec='$libname.dll.a'
15411 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15412 postinstall_cmds='base_file=`basename \${file}`~
15413 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15414 dldir=$destdir/`dirname \$dlpath`~
15415 test -d \$dldir || mkdir -p \$dldir~
15416 $install_prog $dir/$dlname \$dldir/$dlname~
15417 chmod a+x \$dldir/$dlname~
15418 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15419 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15421 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15422 dlpath=$dir/\$dldll~
15423 $RM \$dlpath'
15424 shlibpath_overrides_runpath=yes
15426 case $host_os in
15427 cygwin*)
15428 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15429 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15432 mingw* | cegcc*)
15433 # MinGW DLLs use traditional 'lib' prefix
15434 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15436 pw32*)
15437 # pw32 DLLs use 'pw' prefix rather than 'lib'
15438 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15440 esac
15444 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15446 esac
15447 dynamic_linker='Win32 ld.exe'
15448 # FIXME: first we should search . and the directory the executable is in
15449 shlibpath_var=PATH
15452 darwin* | rhapsody*)
15453 dynamic_linker="$host_os dyld"
15454 version_type=darwin
15455 need_lib_prefix=no
15456 need_version=no
15457 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15458 soname_spec='${libname}${release}${major}$shared_ext'
15459 shlibpath_overrides_runpath=yes
15460 shlibpath_var=DYLD_LIBRARY_PATH
15461 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15463 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15466 dgux*)
15467 version_type=linux
15468 need_lib_prefix=no
15469 need_version=no
15470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15471 soname_spec='${libname}${release}${shared_ext}$major'
15472 shlibpath_var=LD_LIBRARY_PATH
15475 freebsd* | dragonfly*)
15476 # DragonFly does not have aout. When/if they implement a new
15477 # versioning mechanism, adjust this.
15478 if test -x /usr/bin/objformat; then
15479 objformat=`/usr/bin/objformat`
15480 else
15481 case $host_os in
15482 freebsd[23].*) objformat=aout ;;
15483 *) objformat=elf ;;
15484 esac
15486 version_type=freebsd-$objformat
15487 case $version_type in
15488 freebsd-elf*)
15489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15490 need_version=no
15491 need_lib_prefix=no
15493 freebsd-*)
15494 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15495 need_version=yes
15497 esac
15498 shlibpath_var=LD_LIBRARY_PATH
15499 case $host_os in
15500 freebsd2.*)
15501 shlibpath_overrides_runpath=yes
15503 freebsd3.[01]* | freebsdelf3.[01]*)
15504 shlibpath_overrides_runpath=yes
15505 hardcode_into_libs=yes
15507 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15508 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15509 shlibpath_overrides_runpath=no
15510 hardcode_into_libs=yes
15512 *) # from 4.6 on, and DragonFly
15513 shlibpath_overrides_runpath=yes
15514 hardcode_into_libs=yes
15516 esac
15519 haiku*)
15520 version_type=linux
15521 need_lib_prefix=no
15522 need_version=no
15523 dynamic_linker="$host_os runtime_loader"
15524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15525 soname_spec='${libname}${release}${shared_ext}$major'
15526 shlibpath_var=LIBRARY_PATH
15527 shlibpath_overrides_runpath=yes
15528 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15529 hardcode_into_libs=yes
15532 hpux9* | hpux10* | hpux11*)
15533 # Give a soname corresponding to the major version so that dld.sl refuses to
15534 # link against other versions.
15535 version_type=sunos
15536 need_lib_prefix=no
15537 need_version=no
15538 case $host_cpu in
15539 ia64*)
15540 shrext_cmds='.so'
15541 hardcode_into_libs=yes
15542 dynamic_linker="$host_os dld.so"
15543 shlibpath_var=LD_LIBRARY_PATH
15544 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15546 soname_spec='${libname}${release}${shared_ext}$major'
15547 if test "X$HPUX_IA64_MODE" = X32; then
15548 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15549 else
15550 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15552 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15554 hppa*64*)
15555 shrext_cmds='.sl'
15556 hardcode_into_libs=yes
15557 dynamic_linker="$host_os dld.sl"
15558 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15561 soname_spec='${libname}${release}${shared_ext}$major'
15562 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15563 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15566 shrext_cmds='.sl'
15567 dynamic_linker="$host_os dld.sl"
15568 shlibpath_var=SHLIB_PATH
15569 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15571 soname_spec='${libname}${release}${shared_ext}$major'
15573 esac
15574 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15575 postinstall_cmds='chmod 555 $lib'
15576 # or fails outright, so override atomically:
15577 install_override_mode=555
15580 interix[3-9]*)
15581 version_type=linux
15582 need_lib_prefix=no
15583 need_version=no
15584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15585 soname_spec='${libname}${release}${shared_ext}$major'
15586 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15587 shlibpath_var=LD_LIBRARY_PATH
15588 shlibpath_overrides_runpath=no
15589 hardcode_into_libs=yes
15592 irix5* | irix6* | nonstopux*)
15593 case $host_os in
15594 nonstopux*) version_type=nonstopux ;;
15596 if test "$lt_cv_prog_gnu_ld" = yes; then
15597 version_type=linux
15598 else
15599 version_type=irix
15600 fi ;;
15601 esac
15602 need_lib_prefix=no
15603 need_version=no
15604 soname_spec='${libname}${release}${shared_ext}$major'
15605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15606 case $host_os in
15607 irix5* | nonstopux*)
15608 libsuff= shlibsuff=
15611 case $LD in # libtool.m4 will add one of these switches to LD
15612 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15613 libsuff= shlibsuff= libmagic=32-bit;;
15614 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15615 libsuff=32 shlibsuff=N32 libmagic=N32;;
15616 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15617 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15618 *) libsuff= shlibsuff= libmagic=never-match;;
15619 esac
15621 esac
15622 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15623 shlibpath_overrides_runpath=no
15624 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15625 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15626 hardcode_into_libs=yes
15629 # No shared lib support for Linux oldld, aout, or coff.
15630 linux*oldld* | linux*aout* | linux*coff*)
15631 dynamic_linker=no
15634 # This must be Linux ELF.
15636 # uclinux* changes (here and below) have been submitted to the libtool
15637 # project, but have not yet been accepted: they are GCC-local changes
15638 # for the time being. (See
15639 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15640 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15641 version_type=linux
15642 need_lib_prefix=no
15643 need_version=no
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645 soname_spec='${libname}${release}${shared_ext}$major'
15646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15647 shlibpath_var=LD_LIBRARY_PATH
15648 shlibpath_overrides_runpath=no
15650 # Some binutils ld are patched to set DT_RUNPATH
15651 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15652 $as_echo_n "(cached) " >&6
15653 else
15654 lt_cv_shlibpath_overrides_runpath=no
15655 save_LDFLAGS=$LDFLAGS
15656 save_libdir=$libdir
15657 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15658 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15659 if test x$gcc_no_link = xyes; then
15660 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663 /* end confdefs.h. */
15666 main ()
15670 return 0;
15672 _ACEOF
15673 if ac_fn_cxx_try_link "$LINENO"; then :
15674 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15675 lt_cv_shlibpath_overrides_runpath=yes
15678 rm -f core conftest.err conftest.$ac_objext \
15679 conftest$ac_exeext conftest.$ac_ext
15680 LDFLAGS=$save_LDFLAGS
15681 libdir=$save_libdir
15685 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15687 # This implies no fast_install, which is unacceptable.
15688 # Some rework will be needed to allow for fast_install
15689 # before this can be enabled.
15690 hardcode_into_libs=yes
15692 # Append ld.so.conf contents to the search path
15693 if test -f /etc/ld.so.conf; then
15694 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' ' '`
15695 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15698 # We used to test for /lib/ld.so.1 and disable shared libraries on
15699 # powerpc, because MkLinux only supported shared libraries with the
15700 # GNU dynamic linker. Since this was broken with cross compilers,
15701 # most powerpc-linux boxes support dynamic linking these days and
15702 # people can always --disable-shared, the test was removed, and we
15703 # assume the GNU/Linux dynamic linker is in use.
15704 dynamic_linker='GNU/Linux ld.so'
15707 netbsd*)
15708 version_type=sunos
15709 need_lib_prefix=no
15710 need_version=no
15711 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15714 dynamic_linker='NetBSD (a.out) ld.so'
15715 else
15716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15717 soname_spec='${libname}${release}${shared_ext}$major'
15718 dynamic_linker='NetBSD ld.elf_so'
15720 shlibpath_var=LD_LIBRARY_PATH
15721 shlibpath_overrides_runpath=yes
15722 hardcode_into_libs=yes
15725 newsos6)
15726 version_type=linux
15727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15728 shlibpath_var=LD_LIBRARY_PATH
15729 shlibpath_overrides_runpath=yes
15732 *nto* | *qnx*)
15733 version_type=qnx
15734 need_lib_prefix=no
15735 need_version=no
15736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15737 soname_spec='${libname}${release}${shared_ext}$major'
15738 shlibpath_var=LD_LIBRARY_PATH
15739 shlibpath_overrides_runpath=no
15740 hardcode_into_libs=yes
15741 dynamic_linker='ldqnx.so'
15744 openbsd*)
15745 version_type=sunos
15746 sys_lib_dlsearch_path_spec="/usr/lib"
15747 need_lib_prefix=no
15748 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15749 case $host_os in
15750 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15751 *) need_version=no ;;
15752 esac
15753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15755 shlibpath_var=LD_LIBRARY_PATH
15756 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15757 case $host_os in
15758 openbsd2.[89] | openbsd2.[89].*)
15759 shlibpath_overrides_runpath=no
15762 shlibpath_overrides_runpath=yes
15764 esac
15765 else
15766 shlibpath_overrides_runpath=yes
15770 os2*)
15771 libname_spec='$name'
15772 shrext_cmds=".dll"
15773 need_lib_prefix=no
15774 library_names_spec='$libname${shared_ext} $libname.a'
15775 dynamic_linker='OS/2 ld.exe'
15776 shlibpath_var=LIBPATH
15779 osf3* | osf4* | osf5*)
15780 version_type=osf
15781 need_lib_prefix=no
15782 need_version=no
15783 soname_spec='${libname}${release}${shared_ext}$major'
15784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15785 shlibpath_var=LD_LIBRARY_PATH
15786 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15787 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15790 rdos*)
15791 dynamic_linker=no
15794 solaris*)
15795 version_type=linux
15796 need_lib_prefix=no
15797 need_version=no
15798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15799 soname_spec='${libname}${release}${shared_ext}$major'
15800 shlibpath_var=LD_LIBRARY_PATH
15801 shlibpath_overrides_runpath=yes
15802 hardcode_into_libs=yes
15803 # ldd complains unless libraries are executable
15804 postinstall_cmds='chmod +x $lib'
15807 sunos4*)
15808 version_type=sunos
15809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15810 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15811 shlibpath_var=LD_LIBRARY_PATH
15812 shlibpath_overrides_runpath=yes
15813 if test "$with_gnu_ld" = yes; then
15814 need_lib_prefix=no
15816 need_version=yes
15819 sysv4 | sysv4.3*)
15820 version_type=linux
15821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15822 soname_spec='${libname}${release}${shared_ext}$major'
15823 shlibpath_var=LD_LIBRARY_PATH
15824 case $host_vendor in
15825 sni)
15826 shlibpath_overrides_runpath=no
15827 need_lib_prefix=no
15828 runpath_var=LD_RUN_PATH
15830 siemens)
15831 need_lib_prefix=no
15833 motorola)
15834 need_lib_prefix=no
15835 need_version=no
15836 shlibpath_overrides_runpath=no
15837 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15839 esac
15842 sysv4*MP*)
15843 if test -d /usr/nec ;then
15844 version_type=linux
15845 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15846 soname_spec='$libname${shared_ext}.$major'
15847 shlibpath_var=LD_LIBRARY_PATH
15851 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15852 version_type=freebsd-elf
15853 need_lib_prefix=no
15854 need_version=no
15855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15856 soname_spec='${libname}${release}${shared_ext}$major'
15857 shlibpath_var=LD_LIBRARY_PATH
15858 shlibpath_overrides_runpath=yes
15859 hardcode_into_libs=yes
15860 if test "$with_gnu_ld" = yes; then
15861 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15862 else
15863 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15864 case $host_os in
15865 sco3.2v5*)
15866 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15868 esac
15870 sys_lib_dlsearch_path_spec='/usr/lib'
15873 tpf*)
15874 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15875 version_type=linux
15876 need_lib_prefix=no
15877 need_version=no
15878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15879 shlibpath_var=LD_LIBRARY_PATH
15880 shlibpath_overrides_runpath=no
15881 hardcode_into_libs=yes
15884 uts4*)
15885 version_type=linux
15886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15887 soname_spec='${libname}${release}${shared_ext}$major'
15888 shlibpath_var=LD_LIBRARY_PATH
15891 # Shared libraries for VwWorks, >= 7 only at this stage
15892 # and (fpic) still incompatible with "large" code models
15893 # in a few configurations. Only for RTP mode in any case,
15894 # and upon explicit request at configure time.
15895 vxworks7*)
15896 dynamic_linker=no
15897 case ${with_multisubdir}-${enable_shared} in
15898 *large*)
15900 *mrtp*-yes)
15901 version_type=linux
15902 need_lib_prefix=no
15903 need_version=no
15904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15905 soname_spec='${libname}${release}${shared_ext}$major'
15906 dynamic_linker="$host_os module_loader"
15908 esac
15911 dynamic_linker=no
15913 esac
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15915 $as_echo "$dynamic_linker" >&6; }
15916 test "$dynamic_linker" = no && can_build_shared=no
15918 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15919 if test "$GCC" = yes; then
15920 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15923 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15924 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15926 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15927 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15968 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15969 hardcode_action_CXX=
15970 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15971 test -n "$runpath_var_CXX" ||
15972 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15974 # We can hardcode non-existent directories.
15975 if test "$hardcode_direct_CXX" != no &&
15976 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15977 # have to relink, otherwise we might link with an installed library
15978 # when we should be linking with a yet-to-be-installed one
15979 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15980 test "$hardcode_minus_L_CXX" != no; then
15981 # Linking always hardcodes the temporary library directory.
15982 hardcode_action_CXX=relink
15983 else
15984 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15985 hardcode_action_CXX=immediate
15987 else
15988 # We cannot hardcode anything, or else we can only hardcode existing
15989 # directories.
15990 hardcode_action_CXX=unsupported
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15993 $as_echo "$hardcode_action_CXX" >&6; }
15995 if test "$hardcode_action_CXX" = relink ||
15996 test "$inherit_rpath_CXX" = yes; then
15997 # Fast installation is not supported
15998 enable_fast_install=no
15999 elif test "$shlibpath_overrides_runpath" = yes ||
16000 test "$enable_shared" = no; then
16001 # Fast installation is not necessary
16002 enable_fast_install=needless
16011 fi # test -n "$compiler"
16013 CC=$lt_save_CC
16014 LDCXX=$LD
16015 LD=$lt_save_LD
16016 GCC=$lt_save_GCC
16017 with_gnu_ld=$lt_save_with_gnu_ld
16018 lt_cv_path_LDCXX=$lt_cv_path_LD
16019 lt_cv_path_LD=$lt_save_path_LD
16020 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16021 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16022 fi # test "$_lt_caught_CXX_error" != yes
16024 ac_ext=c
16025 ac_cpp='$CPP $CPPFLAGS'
16026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16042 ac_config_commands="$ac_config_commands libtool"
16047 # Only expand once:
16053 if test "${multilib}" = "yes"; then
16054 multilib_arg="--enable-multilib"
16055 else
16056 multilib_arg=
16059 ac_fn_c_check_type "$LINENO" "struct timezone" "ac_cv_type_struct_timezone" "$ac_includes_default"
16060 if test "x$ac_cv_type_struct_timezone" = xyes; then :
16062 cat >>confdefs.h <<_ACEOF
16063 #define HAVE_STRUCT_TIMEZONE 1
16064 _ACEOF
16068 ac_fn_c_check_type "$LINENO" "struct stat" "ac_cv_type_struct_stat" "$ac_includes_default"
16069 if test "x$ac_cv_type_struct_stat" = xyes; then :
16071 cat >>confdefs.h <<_ACEOF
16072 #define HAVE_STRUCT_STAT 1
16073 _ACEOF
16077 ac_fn_c_check_type "$LINENO" "struct timeval" "ac_cv_type_struct_timeval" "$ac_includes_default"
16078 if test "x$ac_cv_type_struct_timeval" = xyes; then :
16080 cat >>confdefs.h <<_ACEOF
16081 #define HAVE_STRUCT_TIMEVAL 1
16082 _ACEOF
16088 ac_ext=c
16089 ac_cpp='$CPP $CPPFLAGS'
16090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16094 # Check the compiler.
16095 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
16096 # We must force CC to /not/ be precious variables; otherwise
16097 # the wrong, non-multilib-adjusted value will be used in multilibs.
16098 # As a side effect, we have to subst CFLAGS ourselves.
16102 ac_ext=c
16103 ac_cpp='$CPP $CPPFLAGS'
16104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16107 if test -n "$ac_tool_prefix"; then
16108 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16109 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16111 $as_echo_n "checking for $ac_word... " >&6; }
16112 if ${ac_cv_prog_CC+:} false; then :
16113 $as_echo_n "(cached) " >&6
16114 else
16115 if test -n "$CC"; then
16116 ac_cv_prog_CC="$CC" # Let the user override the test.
16117 else
16118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16119 for as_dir in $PATH
16121 IFS=$as_save_IFS
16122 test -z "$as_dir" && as_dir=.
16123 for ac_exec_ext in '' $ac_executable_extensions; do
16124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16125 ac_cv_prog_CC="${ac_tool_prefix}gcc"
16126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16127 break 2
16129 done
16130 done
16131 IFS=$as_save_IFS
16135 CC=$ac_cv_prog_CC
16136 if test -n "$CC"; then
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16138 $as_echo "$CC" >&6; }
16139 else
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16141 $as_echo "no" >&6; }
16146 if test -z "$ac_cv_prog_CC"; then
16147 ac_ct_CC=$CC
16148 # Extract the first word of "gcc", so it can be a program name with args.
16149 set dummy gcc; ac_word=$2
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16151 $as_echo_n "checking for $ac_word... " >&6; }
16152 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16153 $as_echo_n "(cached) " >&6
16154 else
16155 if test -n "$ac_ct_CC"; then
16156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16157 else
16158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16159 for as_dir in $PATH
16161 IFS=$as_save_IFS
16162 test -z "$as_dir" && as_dir=.
16163 for ac_exec_ext in '' $ac_executable_extensions; do
16164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16165 ac_cv_prog_ac_ct_CC="gcc"
16166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16167 break 2
16169 done
16170 done
16171 IFS=$as_save_IFS
16175 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16176 if test -n "$ac_ct_CC"; then
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16178 $as_echo "$ac_ct_CC" >&6; }
16179 else
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16181 $as_echo "no" >&6; }
16184 if test "x$ac_ct_CC" = x; then
16185 CC=""
16186 else
16187 case $cross_compiling:$ac_tool_warned in
16188 yes:)
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16191 ac_tool_warned=yes ;;
16192 esac
16193 CC=$ac_ct_CC
16195 else
16196 CC="$ac_cv_prog_CC"
16199 if test -z "$CC"; then
16200 if test -n "$ac_tool_prefix"; then
16201 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16202 set dummy ${ac_tool_prefix}cc; ac_word=$2
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16204 $as_echo_n "checking for $ac_word... " >&6; }
16205 if ${ac_cv_prog_CC+:} false; then :
16206 $as_echo_n "(cached) " >&6
16207 else
16208 if test -n "$CC"; then
16209 ac_cv_prog_CC="$CC" # Let the user override the test.
16210 else
16211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16212 for as_dir in $PATH
16214 IFS=$as_save_IFS
16215 test -z "$as_dir" && as_dir=.
16216 for ac_exec_ext in '' $ac_executable_extensions; do
16217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16218 ac_cv_prog_CC="${ac_tool_prefix}cc"
16219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16220 break 2
16222 done
16223 done
16224 IFS=$as_save_IFS
16228 CC=$ac_cv_prog_CC
16229 if test -n "$CC"; then
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16231 $as_echo "$CC" >&6; }
16232 else
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16234 $as_echo "no" >&6; }
16240 if test -z "$CC"; then
16241 # Extract the first word of "cc", so it can be a program name with args.
16242 set dummy cc; ac_word=$2
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16244 $as_echo_n "checking for $ac_word... " >&6; }
16245 if ${ac_cv_prog_CC+:} false; then :
16246 $as_echo_n "(cached) " >&6
16247 else
16248 if test -n "$CC"; then
16249 ac_cv_prog_CC="$CC" # Let the user override the test.
16250 else
16251 ac_prog_rejected=no
16252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16253 for as_dir in $PATH
16255 IFS=$as_save_IFS
16256 test -z "$as_dir" && as_dir=.
16257 for ac_exec_ext in '' $ac_executable_extensions; do
16258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16259 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16260 ac_prog_rejected=yes
16261 continue
16263 ac_cv_prog_CC="cc"
16264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16265 break 2
16267 done
16268 done
16269 IFS=$as_save_IFS
16271 if test $ac_prog_rejected = yes; then
16272 # We found a bogon in the path, so make sure we never use it.
16273 set dummy $ac_cv_prog_CC
16274 shift
16275 if test $# != 0; then
16276 # We chose a different compiler from the bogus one.
16277 # However, it has the same basename, so the bogon will be chosen
16278 # first if we set CC to just the basename; use the full file name.
16279 shift
16280 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16285 CC=$ac_cv_prog_CC
16286 if test -n "$CC"; then
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16288 $as_echo "$CC" >&6; }
16289 else
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16291 $as_echo "no" >&6; }
16296 if test -z "$CC"; then
16297 if test -n "$ac_tool_prefix"; then
16298 for ac_prog in cl.exe
16300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16301 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16303 $as_echo_n "checking for $ac_word... " >&6; }
16304 if ${ac_cv_prog_CC+:} false; then :
16305 $as_echo_n "(cached) " >&6
16306 else
16307 if test -n "$CC"; then
16308 ac_cv_prog_CC="$CC" # Let the user override the test.
16309 else
16310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16311 for as_dir in $PATH
16313 IFS=$as_save_IFS
16314 test -z "$as_dir" && as_dir=.
16315 for ac_exec_ext in '' $ac_executable_extensions; do
16316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16317 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16319 break 2
16321 done
16322 done
16323 IFS=$as_save_IFS
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; }
16337 test -n "$CC" && break
16338 done
16340 if test -z "$CC"; then
16341 ac_ct_CC=$CC
16342 for ac_prog in cl.exe
16344 # Extract the first word of "$ac_prog", so it can be a program name with args.
16345 set dummy $ac_prog; ac_word=$2
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16347 $as_echo_n "checking for $ac_word... " >&6; }
16348 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16349 $as_echo_n "(cached) " >&6
16350 else
16351 if test -n "$ac_ct_CC"; then
16352 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16353 else
16354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16355 for as_dir in $PATH
16357 IFS=$as_save_IFS
16358 test -z "$as_dir" && as_dir=.
16359 for ac_exec_ext in '' $ac_executable_extensions; do
16360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16361 ac_cv_prog_ac_ct_CC="$ac_prog"
16362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16363 break 2
16365 done
16366 done
16367 IFS=$as_save_IFS
16371 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16372 if test -n "$ac_ct_CC"; then
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16374 $as_echo "$ac_ct_CC" >&6; }
16375 else
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16377 $as_echo "no" >&6; }
16381 test -n "$ac_ct_CC" && break
16382 done
16384 if test "x$ac_ct_CC" = x; then
16385 CC=""
16386 else
16387 case $cross_compiling:$ac_tool_warned in
16388 yes:)
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16391 ac_tool_warned=yes ;;
16392 esac
16393 CC=$ac_ct_CC
16400 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16402 as_fn_error $? "no acceptable C compiler found in \$PATH
16403 See \`config.log' for more details" "$LINENO" 5; }
16405 # Provide some information about the compiler.
16406 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
16407 set X $ac_compile
16408 ac_compiler=$2
16409 for ac_option in --version -v -V -qversion; do
16410 { { ac_try="$ac_compiler $ac_option >&5"
16411 case "(($ac_try" in
16412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16413 *) ac_try_echo=$ac_try;;
16414 esac
16415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16416 $as_echo "$ac_try_echo"; } >&5
16417 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16418 ac_status=$?
16419 if test -s conftest.err; then
16420 sed '10a\
16421 ... rest of stderr output deleted ...
16422 10q' conftest.err >conftest.er1
16423 cat conftest.er1 >&5
16425 rm -f conftest.er1 conftest.err
16426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16427 test $ac_status = 0; }
16428 done
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
16431 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
16432 if ${ac_cv_c_compiler_gnu+:} false; then :
16433 $as_echo_n "(cached) " >&6
16434 else
16435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16436 /* end confdefs.h. */
16439 main ()
16441 #ifndef __GNUC__
16442 choke me
16443 #endif
16446 return 0;
16448 _ACEOF
16449 if ac_fn_c_try_compile "$LINENO"; then :
16450 ac_compiler_gnu=yes
16451 else
16452 ac_compiler_gnu=no
16454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16455 ac_cv_c_compiler_gnu=$ac_compiler_gnu
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
16459 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
16460 if test $ac_compiler_gnu = yes; then
16461 GCC=yes
16462 else
16463 GCC=
16465 ac_test_CFLAGS=${CFLAGS+set}
16466 ac_save_CFLAGS=$CFLAGS
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
16468 $as_echo_n "checking whether $CC accepts -g... " >&6; }
16469 if ${ac_cv_prog_cc_g+:} false; then :
16470 $as_echo_n "(cached) " >&6
16471 else
16472 ac_save_c_werror_flag=$ac_c_werror_flag
16473 ac_c_werror_flag=yes
16474 ac_cv_prog_cc_g=no
16475 CFLAGS="-g"
16476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477 /* end confdefs.h. */
16480 main ()
16484 return 0;
16486 _ACEOF
16487 if ac_fn_c_try_compile "$LINENO"; then :
16488 ac_cv_prog_cc_g=yes
16489 else
16490 CFLAGS=""
16491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16492 /* end confdefs.h. */
16495 main ()
16499 return 0;
16501 _ACEOF
16502 if ac_fn_c_try_compile "$LINENO"; then :
16504 else
16505 ac_c_werror_flag=$ac_save_c_werror_flag
16506 CFLAGS="-g"
16507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16508 /* end confdefs.h. */
16511 main ()
16515 return 0;
16517 _ACEOF
16518 if ac_fn_c_try_compile "$LINENO"; then :
16519 ac_cv_prog_cc_g=yes
16521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16526 ac_c_werror_flag=$ac_save_c_werror_flag
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
16529 $as_echo "$ac_cv_prog_cc_g" >&6; }
16530 if test "$ac_test_CFLAGS" = set; then
16531 CFLAGS=$ac_save_CFLAGS
16532 elif test $ac_cv_prog_cc_g = yes; then
16533 if test "$GCC" = yes; then
16534 CFLAGS="-g -O2"
16535 else
16536 CFLAGS="-g"
16538 else
16539 if test "$GCC" = yes; then
16540 CFLAGS="-O2"
16541 else
16542 CFLAGS=
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16546 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16547 if ${ac_cv_prog_cc_c89+:} false; then :
16548 $as_echo_n "(cached) " >&6
16549 else
16550 ac_cv_prog_cc_c89=no
16551 ac_save_CC=$CC
16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h. */
16554 #include <stdarg.h>
16555 #include <stdio.h>
16556 struct stat;
16557 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
16558 struct buf { int x; };
16559 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16560 static char *e (p, i)
16561 char **p;
16562 int i;
16564 return p[i];
16566 static char *f (char * (*g) (char **, int), char **p, ...)
16568 char *s;
16569 va_list v;
16570 va_start (v,p);
16571 s = g (p, va_arg (v,int));
16572 va_end (v);
16573 return s;
16576 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
16577 function prototypes and stuff, but not '\xHH' hex character constants.
16578 These don't provoke an error unfortunately, instead are silently treated
16579 as 'x'. The following induces an error, until -std is added to get
16580 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
16581 array size at least. It's necessary to write '\x00'==0 to get something
16582 that's true only with -std. */
16583 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16585 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16586 inside strings and character constants. */
16587 #define FOO(x) 'x'
16588 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16590 int test (int i, double x);
16591 struct s1 {int (*f) (int a);};
16592 struct s2 {int (*f) (double a);};
16593 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16594 int argc;
16595 char **argv;
16597 main ()
16599 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
16601 return 0;
16603 _ACEOF
16604 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16605 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16607 CC="$ac_save_CC $ac_arg"
16608 if ac_fn_c_try_compile "$LINENO"; then :
16609 ac_cv_prog_cc_c89=$ac_arg
16611 rm -f core conftest.err conftest.$ac_objext
16612 test "x$ac_cv_prog_cc_c89" != "xno" && break
16613 done
16614 rm -f conftest.$ac_ext
16615 CC=$ac_save_CC
16618 # AC_CACHE_VAL
16619 case "x$ac_cv_prog_cc_c89" in
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16622 $as_echo "none needed" >&6; } ;;
16623 xno)
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16625 $as_echo "unsupported" >&6; } ;;
16627 CC="$CC $ac_cv_prog_cc_c89"
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16629 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16630 esac
16631 if test "x$ac_cv_prog_cc_c89" != xno; then :
16635 ac_ext=c
16636 ac_cpp='$CPP $CPPFLAGS'
16637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16641 ac_ext=c
16642 ac_cpp='$CPP $CPPFLAGS'
16643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
16647 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
16648 if ${am_cv_prog_cc_c_o+:} false; then :
16649 $as_echo_n "(cached) " >&6
16650 else
16651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652 /* end confdefs.h. */
16655 main ()
16659 return 0;
16661 _ACEOF
16662 # Make sure it works both with $CC and with simple cc.
16663 # Following AC_PROG_CC_C_O, we do the test twice because some
16664 # compilers refuse to overwrite an existing .o file with -o,
16665 # though they will create one.
16666 am_cv_prog_cc_c_o=yes
16667 for am_i in 1 2; do
16668 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
16669 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); } \
16673 && test -f conftest2.$ac_objext; then
16674 : OK
16675 else
16676 am_cv_prog_cc_c_o=no
16677 break
16679 done
16680 rm -f core conftest*
16681 unset am_i
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
16684 $as_echo "$am_cv_prog_cc_c_o" >&6; }
16685 if test "$am_cv_prog_cc_c_o" != yes; then
16686 # Losing compiler, so override with the script.
16687 # FIXME: It is wrong to rewrite CC.
16688 # But if we don't then we get into trouble of one sort or another.
16689 # A longer-term fix would be to have automake use am__CC in this case,
16690 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16691 CC="$am_aux_dir/compile $CC"
16693 ac_ext=c
16694 ac_cpp='$CPP $CPPFLAGS'
16695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for access" >&5
16710 $as_echo_n "checking m2 front end checking c library for access... " >&6; }
16711 if test x$gcc_no_link != xyes; then
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for access in -lc" >&5
16713 $as_echo_n "checking for access in -lc... " >&6; }
16714 if ${ac_cv_lib_c_access+:} false; then :
16715 $as_echo_n "(cached) " >&6
16716 else
16717 ac_check_lib_save_LIBS=$LIBS
16718 LIBS="-lc $LIBS"
16719 if test x$gcc_no_link = xyes; then
16720 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16723 /* end confdefs.h. */
16725 /* Override any GCC internal prototype to avoid an error.
16726 Use char because int might match the return type of a GCC
16727 builtin and then its argument prototype would still apply. */
16728 #ifdef __cplusplus
16729 extern "C"
16730 #endif
16731 char access ();
16733 main ()
16735 return access ();
16737 return 0;
16739 _ACEOF
16740 if ac_fn_c_try_link "$LINENO"; then :
16741 ac_cv_lib_c_access=yes
16742 else
16743 ac_cv_lib_c_access=no
16745 rm -f core conftest.err conftest.$ac_objext \
16746 conftest$ac_exeext conftest.$ac_ext
16747 LIBS=$ac_check_lib_save_LIBS
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_access" >&5
16750 $as_echo "$ac_cv_lib_c_access" >&6; }
16751 if test "x$ac_cv_lib_c_access" = xyes; then :
16753 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
16755 else
16757 $as_echo "#undef HAVE_ACCESS" >>confdefs.h
16761 else
16762 if test "x$ac_cv_lib_c_access" = xyes; then
16764 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
16766 elif test "x$ac_cv_func_access" = xyes; then
16768 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
16770 else
16772 $as_echo "#undef HAVE_ACCESS" >>confdefs.h
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for brk" >&5
16779 $as_echo_n "checking m2 front end checking c library for brk... " >&6; }
16780 if test x$gcc_no_link != xyes; then
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for brk in -lc" >&5
16782 $as_echo_n "checking for brk in -lc... " >&6; }
16783 if ${ac_cv_lib_c_brk+:} false; then :
16784 $as_echo_n "(cached) " >&6
16785 else
16786 ac_check_lib_save_LIBS=$LIBS
16787 LIBS="-lc $LIBS"
16788 if test x$gcc_no_link = xyes; then
16789 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h. */
16794 /* Override any GCC internal prototype to avoid an error.
16795 Use char because int might match the return type of a GCC
16796 builtin and then its argument prototype would still apply. */
16797 #ifdef __cplusplus
16798 extern "C"
16799 #endif
16800 char brk ();
16802 main ()
16804 return brk ();
16806 return 0;
16808 _ACEOF
16809 if ac_fn_c_try_link "$LINENO"; then :
16810 ac_cv_lib_c_brk=yes
16811 else
16812 ac_cv_lib_c_brk=no
16814 rm -f core conftest.err conftest.$ac_objext \
16815 conftest$ac_exeext conftest.$ac_ext
16816 LIBS=$ac_check_lib_save_LIBS
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_brk" >&5
16819 $as_echo "$ac_cv_lib_c_brk" >&6; }
16820 if test "x$ac_cv_lib_c_brk" = xyes; then :
16822 $as_echo "#define HAVE_BRK 1" >>confdefs.h
16824 else
16826 $as_echo "#undef HAVE_BRK" >>confdefs.h
16830 else
16831 if test "x$ac_cv_lib_c_brk" = xyes; then
16833 $as_echo "#define HAVE_BRK 1" >>confdefs.h
16835 elif test "x$ac_cv_func_brk" = xyes; then
16837 $as_echo "#define HAVE_BRK 1" >>confdefs.h
16839 else
16841 $as_echo "#undef HAVE_BRK" >>confdefs.h
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for cfmakeraw" >&5
16848 $as_echo_n "checking m2 front end checking c library for cfmakeraw... " >&6; }
16849 if test x$gcc_no_link != xyes; then
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfmakeraw in -lc" >&5
16851 $as_echo_n "checking for cfmakeraw in -lc... " >&6; }
16852 if ${ac_cv_lib_c_cfmakeraw+:} false; then :
16853 $as_echo_n "(cached) " >&6
16854 else
16855 ac_check_lib_save_LIBS=$LIBS
16856 LIBS="-lc $LIBS"
16857 if test x$gcc_no_link = xyes; then
16858 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861 /* end confdefs.h. */
16863 /* Override any GCC internal prototype to avoid an error.
16864 Use char because int might match the return type of a GCC
16865 builtin and then its argument prototype would still apply. */
16866 #ifdef __cplusplus
16867 extern "C"
16868 #endif
16869 char cfmakeraw ();
16871 main ()
16873 return cfmakeraw ();
16875 return 0;
16877 _ACEOF
16878 if ac_fn_c_try_link "$LINENO"; then :
16879 ac_cv_lib_c_cfmakeraw=yes
16880 else
16881 ac_cv_lib_c_cfmakeraw=no
16883 rm -f core conftest.err conftest.$ac_objext \
16884 conftest$ac_exeext conftest.$ac_ext
16885 LIBS=$ac_check_lib_save_LIBS
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_cfmakeraw" >&5
16888 $as_echo "$ac_cv_lib_c_cfmakeraw" >&6; }
16889 if test "x$ac_cv_lib_c_cfmakeraw" = xyes; then :
16891 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
16893 else
16895 $as_echo "#undef HAVE_CFMAKERAW" >>confdefs.h
16899 else
16900 if test "x$ac_cv_lib_c_cfmakeraw" = xyes; then
16902 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
16904 elif test "x$ac_cv_func_cfmakeraw" = xyes; then
16906 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
16908 else
16910 $as_echo "#undef HAVE_CFMAKERAW" >>confdefs.h
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for close" >&5
16917 $as_echo_n "checking m2 front end checking c library for close... " >&6; }
16918 if test x$gcc_no_link != xyes; then
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for close in -lc" >&5
16920 $as_echo_n "checking for close in -lc... " >&6; }
16921 if ${ac_cv_lib_c_close+:} false; then :
16922 $as_echo_n "(cached) " >&6
16923 else
16924 ac_check_lib_save_LIBS=$LIBS
16925 LIBS="-lc $LIBS"
16926 if test x$gcc_no_link = xyes; then
16927 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16930 /* end confdefs.h. */
16932 /* Override any GCC internal prototype to avoid an error.
16933 Use char because int might match the return type of a GCC
16934 builtin and then its argument prototype would still apply. */
16935 #ifdef __cplusplus
16936 extern "C"
16937 #endif
16938 char close ();
16940 main ()
16942 return close ();
16944 return 0;
16946 _ACEOF
16947 if ac_fn_c_try_link "$LINENO"; then :
16948 ac_cv_lib_c_close=yes
16949 else
16950 ac_cv_lib_c_close=no
16952 rm -f core conftest.err conftest.$ac_objext \
16953 conftest$ac_exeext conftest.$ac_ext
16954 LIBS=$ac_check_lib_save_LIBS
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_close" >&5
16957 $as_echo "$ac_cv_lib_c_close" >&6; }
16958 if test "x$ac_cv_lib_c_close" = xyes; then :
16960 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
16962 else
16964 $as_echo "#undef HAVE_CLOSE" >>confdefs.h
16968 else
16969 if test "x$ac_cv_lib_c_close" = xyes; then
16971 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
16973 elif test "x$ac_cv_func_close" = xyes; then
16975 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
16977 else
16979 $as_echo "#undef HAVE_CLOSE" >>confdefs.h
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for ctime" >&5
16986 $as_echo_n "checking m2 front end checking c library for ctime... " >&6; }
16987 if test x$gcc_no_link != xyes; then
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctime in -lc" >&5
16989 $as_echo_n "checking for ctime in -lc... " >&6; }
16990 if ${ac_cv_lib_c_ctime+:} false; then :
16991 $as_echo_n "(cached) " >&6
16992 else
16993 ac_check_lib_save_LIBS=$LIBS
16994 LIBS="-lc $LIBS"
16995 if test x$gcc_no_link = xyes; then
16996 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16999 /* end confdefs.h. */
17001 /* Override any GCC internal prototype to avoid an error.
17002 Use char because int might match the return type of a GCC
17003 builtin and then its argument prototype would still apply. */
17004 #ifdef __cplusplus
17005 extern "C"
17006 #endif
17007 char ctime ();
17009 main ()
17011 return ctime ();
17013 return 0;
17015 _ACEOF
17016 if ac_fn_c_try_link "$LINENO"; then :
17017 ac_cv_lib_c_ctime=yes
17018 else
17019 ac_cv_lib_c_ctime=no
17021 rm -f core conftest.err conftest.$ac_objext \
17022 conftest$ac_exeext conftest.$ac_ext
17023 LIBS=$ac_check_lib_save_LIBS
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ctime" >&5
17026 $as_echo "$ac_cv_lib_c_ctime" >&6; }
17027 if test "x$ac_cv_lib_c_ctime" = xyes; then :
17029 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
17031 else
17033 $as_echo "#undef HAVE_CTIME" >>confdefs.h
17037 else
17038 if test "x$ac_cv_lib_c_ctime" = xyes; then
17040 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
17042 elif test "x$ac_cv_func_ctime" = xyes; then
17044 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
17046 else
17048 $as_echo "#undef HAVE_CTIME" >>confdefs.h
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for creat" >&5
17055 $as_echo_n "checking m2 front end checking c library for creat... " >&6; }
17056 if test x$gcc_no_link != xyes; then
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for creat in -lc" >&5
17058 $as_echo_n "checking for creat in -lc... " >&6; }
17059 if ${ac_cv_lib_c_creat+:} false; then :
17060 $as_echo_n "(cached) " >&6
17061 else
17062 ac_check_lib_save_LIBS=$LIBS
17063 LIBS="-lc $LIBS"
17064 if test x$gcc_no_link = xyes; then
17065 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17068 /* end confdefs.h. */
17070 /* Override any GCC internal prototype to avoid an error.
17071 Use char because int might match the return type of a GCC
17072 builtin and then its argument prototype would still apply. */
17073 #ifdef __cplusplus
17074 extern "C"
17075 #endif
17076 char creat ();
17078 main ()
17080 return creat ();
17082 return 0;
17084 _ACEOF
17085 if ac_fn_c_try_link "$LINENO"; then :
17086 ac_cv_lib_c_creat=yes
17087 else
17088 ac_cv_lib_c_creat=no
17090 rm -f core conftest.err conftest.$ac_objext \
17091 conftest$ac_exeext conftest.$ac_ext
17092 LIBS=$ac_check_lib_save_LIBS
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_creat" >&5
17095 $as_echo "$ac_cv_lib_c_creat" >&6; }
17096 if test "x$ac_cv_lib_c_creat" = xyes; then :
17098 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
17100 else
17102 $as_echo "#undef HAVE_CREAT" >>confdefs.h
17106 else
17107 if test "x$ac_cv_lib_c_creat" = xyes; then
17109 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
17111 elif test "x$ac_cv_func_creat" = xyes; then
17113 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
17115 else
17117 $as_echo "#undef HAVE_CREAT" >>confdefs.h
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for dup" >&5
17124 $as_echo_n "checking m2 front end checking c library for dup... " >&6; }
17125 if test x$gcc_no_link != xyes; then
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup in -lc" >&5
17127 $as_echo_n "checking for dup in -lc... " >&6; }
17128 if ${ac_cv_lib_c_dup+:} false; then :
17129 $as_echo_n "(cached) " >&6
17130 else
17131 ac_check_lib_save_LIBS=$LIBS
17132 LIBS="-lc $LIBS"
17133 if test x$gcc_no_link = xyes; then
17134 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17137 /* end confdefs.h. */
17139 /* Override any GCC internal prototype to avoid an error.
17140 Use char because int might match the return type of a GCC
17141 builtin and then its argument prototype would still apply. */
17142 #ifdef __cplusplus
17143 extern "C"
17144 #endif
17145 char dup ();
17147 main ()
17149 return dup ();
17151 return 0;
17153 _ACEOF
17154 if ac_fn_c_try_link "$LINENO"; then :
17155 ac_cv_lib_c_dup=yes
17156 else
17157 ac_cv_lib_c_dup=no
17159 rm -f core conftest.err conftest.$ac_objext \
17160 conftest$ac_exeext conftest.$ac_ext
17161 LIBS=$ac_check_lib_save_LIBS
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dup" >&5
17164 $as_echo "$ac_cv_lib_c_dup" >&6; }
17165 if test "x$ac_cv_lib_c_dup" = xyes; then :
17167 $as_echo "#define HAVE_DUP 1" >>confdefs.h
17169 else
17171 $as_echo "#undef HAVE_DUP" >>confdefs.h
17175 else
17176 if test "x$ac_cv_lib_c_dup" = xyes; then
17178 $as_echo "#define HAVE_DUP 1" >>confdefs.h
17180 elif test "x$ac_cv_func_dup" = xyes; then
17182 $as_echo "#define HAVE_DUP 1" >>confdefs.h
17184 else
17186 $as_echo "#undef HAVE_DUP" >>confdefs.h
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for execve" >&5
17193 $as_echo_n "checking m2 front end checking c library for execve... " >&6; }
17194 if test x$gcc_no_link != xyes; then
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execve in -lc" >&5
17196 $as_echo_n "checking for execve in -lc... " >&6; }
17197 if ${ac_cv_lib_c_execve+:} false; then :
17198 $as_echo_n "(cached) " >&6
17199 else
17200 ac_check_lib_save_LIBS=$LIBS
17201 LIBS="-lc $LIBS"
17202 if test x$gcc_no_link = xyes; then
17203 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17206 /* end confdefs.h. */
17208 /* Override any GCC internal prototype to avoid an error.
17209 Use char because int might match the return type of a GCC
17210 builtin and then its argument prototype would still apply. */
17211 #ifdef __cplusplus
17212 extern "C"
17213 #endif
17214 char execve ();
17216 main ()
17218 return execve ();
17220 return 0;
17222 _ACEOF
17223 if ac_fn_c_try_link "$LINENO"; then :
17224 ac_cv_lib_c_execve=yes
17225 else
17226 ac_cv_lib_c_execve=no
17228 rm -f core conftest.err conftest.$ac_objext \
17229 conftest$ac_exeext conftest.$ac_ext
17230 LIBS=$ac_check_lib_save_LIBS
17232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_execve" >&5
17233 $as_echo "$ac_cv_lib_c_execve" >&6; }
17234 if test "x$ac_cv_lib_c_execve" = xyes; then :
17236 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
17238 else
17240 $as_echo "#undef HAVE_EXECVE" >>confdefs.h
17244 else
17245 if test "x$ac_cv_lib_c_execve" = xyes; then
17247 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
17249 elif test "x$ac_cv_func_execve" = xyes; then
17251 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
17253 else
17255 $as_echo "#undef HAVE_EXECVE" >>confdefs.h
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for exit" >&5
17262 $as_echo_n "checking m2 front end checking c library for exit... " >&6; }
17263 if test x$gcc_no_link != xyes; then
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lc" >&5
17265 $as_echo_n "checking for exit in -lc... " >&6; }
17266 if ${ac_cv_lib_c_exit+:} false; then :
17267 $as_echo_n "(cached) " >&6
17268 else
17269 ac_check_lib_save_LIBS=$LIBS
17270 LIBS="-lc $LIBS"
17271 if test x$gcc_no_link = xyes; then
17272 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17275 /* end confdefs.h. */
17277 /* Override any GCC internal prototype to avoid an error.
17278 Use char because int might match the return type of a GCC
17279 builtin and then its argument prototype would still apply. */
17280 #ifdef __cplusplus
17281 extern "C"
17282 #endif
17283 char exit ();
17285 main ()
17287 return exit ();
17289 return 0;
17291 _ACEOF
17292 if ac_fn_c_try_link "$LINENO"; then :
17293 ac_cv_lib_c_exit=yes
17294 else
17295 ac_cv_lib_c_exit=no
17297 rm -f core conftest.err conftest.$ac_objext \
17298 conftest$ac_exeext conftest.$ac_ext
17299 LIBS=$ac_check_lib_save_LIBS
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_exit" >&5
17302 $as_echo "$ac_cv_lib_c_exit" >&6; }
17303 if test "x$ac_cv_lib_c_exit" = xyes; then :
17305 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
17307 else
17309 $as_echo "#undef HAVE_EXIT" >>confdefs.h
17313 else
17314 if test "x$ac_cv_lib_c_exit" = xyes; then
17316 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
17318 elif test "x$ac_cv_func_exit" = xyes; then
17320 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
17322 else
17324 $as_echo "#undef HAVE_EXIT" >>confdefs.h
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for fcntl" >&5
17331 $as_echo_n "checking m2 front end checking c library for fcntl... " >&6; }
17332 if test x$gcc_no_link != xyes; then
17333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl in -lc" >&5
17334 $as_echo_n "checking for fcntl in -lc... " >&6; }
17335 if ${ac_cv_lib_c_fcntl+:} false; then :
17336 $as_echo_n "(cached) " >&6
17337 else
17338 ac_check_lib_save_LIBS=$LIBS
17339 LIBS="-lc $LIBS"
17340 if test x$gcc_no_link = xyes; then
17341 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17344 /* end confdefs.h. */
17346 /* Override any GCC internal prototype to avoid an error.
17347 Use char because int might match the return type of a GCC
17348 builtin and then its argument prototype would still apply. */
17349 #ifdef __cplusplus
17350 extern "C"
17351 #endif
17352 char fcntl ();
17354 main ()
17356 return fcntl ();
17358 return 0;
17360 _ACEOF
17361 if ac_fn_c_try_link "$LINENO"; then :
17362 ac_cv_lib_c_fcntl=yes
17363 else
17364 ac_cv_lib_c_fcntl=no
17366 rm -f core conftest.err conftest.$ac_objext \
17367 conftest$ac_exeext conftest.$ac_ext
17368 LIBS=$ac_check_lib_save_LIBS
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fcntl" >&5
17371 $as_echo "$ac_cv_lib_c_fcntl" >&6; }
17372 if test "x$ac_cv_lib_c_fcntl" = xyes; then :
17374 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
17376 else
17378 $as_echo "#undef HAVE_FCNTL" >>confdefs.h
17382 else
17383 if test "x$ac_cv_lib_c_fcntl" = xyes; then
17385 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
17387 elif test "x$ac_cv_func_fcntl" = xyes; then
17389 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
17391 else
17393 $as_echo "#undef HAVE_FCNTL" >>confdefs.h
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for fstat" >&5
17400 $as_echo_n "checking m2 front end checking c library for fstat... " >&6; }
17401 if test x$gcc_no_link != xyes; then
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fstat in -lc" >&5
17403 $as_echo_n "checking for fstat in -lc... " >&6; }
17404 if ${ac_cv_lib_c_fstat+:} false; then :
17405 $as_echo_n "(cached) " >&6
17406 else
17407 ac_check_lib_save_LIBS=$LIBS
17408 LIBS="-lc $LIBS"
17409 if test x$gcc_no_link = xyes; then
17410 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17413 /* end confdefs.h. */
17415 /* Override any GCC internal prototype to avoid an error.
17416 Use char because int might match the return type of a GCC
17417 builtin and then its argument prototype would still apply. */
17418 #ifdef __cplusplus
17419 extern "C"
17420 #endif
17421 char fstat ();
17423 main ()
17425 return fstat ();
17427 return 0;
17429 _ACEOF
17430 if ac_fn_c_try_link "$LINENO"; then :
17431 ac_cv_lib_c_fstat=yes
17432 else
17433 ac_cv_lib_c_fstat=no
17435 rm -f core conftest.err conftest.$ac_objext \
17436 conftest$ac_exeext conftest.$ac_ext
17437 LIBS=$ac_check_lib_save_LIBS
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fstat" >&5
17440 $as_echo "$ac_cv_lib_c_fstat" >&6; }
17441 if test "x$ac_cv_lib_c_fstat" = xyes; then :
17443 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
17445 else
17447 $as_echo "#undef HAVE_FSTAT" >>confdefs.h
17451 else
17452 if test "x$ac_cv_lib_c_fstat" = xyes; then
17454 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
17456 elif test "x$ac_cv_func_fstat" = xyes; then
17458 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
17460 else
17462 $as_echo "#undef HAVE_FSTAT" >>confdefs.h
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getdents" >&5
17469 $as_echo_n "checking m2 front end checking c library for getdents... " >&6; }
17470 if test x$gcc_no_link != xyes; then
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getdents in -lc" >&5
17472 $as_echo_n "checking for getdents in -lc... " >&6; }
17473 if ${ac_cv_lib_c_getdents+:} false; then :
17474 $as_echo_n "(cached) " >&6
17475 else
17476 ac_check_lib_save_LIBS=$LIBS
17477 LIBS="-lc $LIBS"
17478 if test x$gcc_no_link = xyes; then
17479 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17482 /* end confdefs.h. */
17484 /* Override any GCC internal prototype to avoid an error.
17485 Use char because int might match the return type of a GCC
17486 builtin and then its argument prototype would still apply. */
17487 #ifdef __cplusplus
17488 extern "C"
17489 #endif
17490 char getdents ();
17492 main ()
17494 return getdents ();
17496 return 0;
17498 _ACEOF
17499 if ac_fn_c_try_link "$LINENO"; then :
17500 ac_cv_lib_c_getdents=yes
17501 else
17502 ac_cv_lib_c_getdents=no
17504 rm -f core conftest.err conftest.$ac_objext \
17505 conftest$ac_exeext conftest.$ac_ext
17506 LIBS=$ac_check_lib_save_LIBS
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getdents" >&5
17509 $as_echo "$ac_cv_lib_c_getdents" >&6; }
17510 if test "x$ac_cv_lib_c_getdents" = xyes; then :
17512 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
17514 else
17516 $as_echo "#undef HAVE_GETDENTS" >>confdefs.h
17520 else
17521 if test "x$ac_cv_lib_c_getdents" = xyes; then
17523 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
17525 elif test "x$ac_cv_func_getdents" = xyes; then
17527 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
17529 else
17531 $as_echo "#undef HAVE_GETDENTS" >>confdefs.h
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getgid" >&5
17538 $as_echo_n "checking m2 front end checking c library for getgid... " >&6; }
17539 if test x$gcc_no_link != xyes; then
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgid in -lc" >&5
17541 $as_echo_n "checking for getgid in -lc... " >&6; }
17542 if ${ac_cv_lib_c_getgid+:} false; then :
17543 $as_echo_n "(cached) " >&6
17544 else
17545 ac_check_lib_save_LIBS=$LIBS
17546 LIBS="-lc $LIBS"
17547 if test x$gcc_no_link = xyes; then
17548 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17551 /* end confdefs.h. */
17553 /* Override any GCC internal prototype to avoid an error.
17554 Use char because int might match the return type of a GCC
17555 builtin and then its argument prototype would still apply. */
17556 #ifdef __cplusplus
17557 extern "C"
17558 #endif
17559 char getgid ();
17561 main ()
17563 return getgid ();
17565 return 0;
17567 _ACEOF
17568 if ac_fn_c_try_link "$LINENO"; then :
17569 ac_cv_lib_c_getgid=yes
17570 else
17571 ac_cv_lib_c_getgid=no
17573 rm -f core conftest.err conftest.$ac_objext \
17574 conftest$ac_exeext conftest.$ac_ext
17575 LIBS=$ac_check_lib_save_LIBS
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getgid" >&5
17578 $as_echo "$ac_cv_lib_c_getgid" >&6; }
17579 if test "x$ac_cv_lib_c_getgid" = xyes; then :
17581 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
17583 else
17585 $as_echo "#undef HAVE_GETGID" >>confdefs.h
17589 else
17590 if test "x$ac_cv_lib_c_getgid" = xyes; then
17592 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
17594 elif test "x$ac_cv_func_getgid" = xyes; then
17596 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
17598 else
17600 $as_echo "#undef HAVE_GETGID" >>confdefs.h
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getpid" >&5
17607 $as_echo_n "checking m2 front end checking c library for getpid... " >&6; }
17608 if test x$gcc_no_link != xyes; then
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpid in -lc" >&5
17610 $as_echo_n "checking for getpid in -lc... " >&6; }
17611 if ${ac_cv_lib_c_getpid+:} false; then :
17612 $as_echo_n "(cached) " >&6
17613 else
17614 ac_check_lib_save_LIBS=$LIBS
17615 LIBS="-lc $LIBS"
17616 if test x$gcc_no_link = xyes; then
17617 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17620 /* end confdefs.h. */
17622 /* Override any GCC internal prototype to avoid an error.
17623 Use char because int might match the return type of a GCC
17624 builtin and then its argument prototype would still apply. */
17625 #ifdef __cplusplus
17626 extern "C"
17627 #endif
17628 char getpid ();
17630 main ()
17632 return getpid ();
17634 return 0;
17636 _ACEOF
17637 if ac_fn_c_try_link "$LINENO"; then :
17638 ac_cv_lib_c_getpid=yes
17639 else
17640 ac_cv_lib_c_getpid=no
17642 rm -f core conftest.err conftest.$ac_objext \
17643 conftest$ac_exeext conftest.$ac_ext
17644 LIBS=$ac_check_lib_save_LIBS
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpid" >&5
17647 $as_echo "$ac_cv_lib_c_getpid" >&6; }
17648 if test "x$ac_cv_lib_c_getpid" = xyes; then :
17650 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
17652 else
17654 $as_echo "#undef HAVE_GETPID" >>confdefs.h
17658 else
17659 if test "x$ac_cv_lib_c_getpid" = xyes; then
17661 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
17663 elif test "x$ac_cv_func_getpid" = xyes; then
17665 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
17667 else
17669 $as_echo "#undef HAVE_GETPID" >>confdefs.h
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for gettimeofday" >&5
17676 $as_echo_n "checking m2 front end checking c library for gettimeofday... " >&6; }
17677 if test x$gcc_no_link != xyes; then
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lc" >&5
17679 $as_echo_n "checking for gettimeofday in -lc... " >&6; }
17680 if ${ac_cv_lib_c_gettimeofday+:} false; then :
17681 $as_echo_n "(cached) " >&6
17682 else
17683 ac_check_lib_save_LIBS=$LIBS
17684 LIBS="-lc $LIBS"
17685 if test x$gcc_no_link = xyes; then
17686 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17689 /* end confdefs.h. */
17691 /* Override any GCC internal prototype to avoid an error.
17692 Use char because int might match the return type of a GCC
17693 builtin and then its argument prototype would still apply. */
17694 #ifdef __cplusplus
17695 extern "C"
17696 #endif
17697 char gettimeofday ();
17699 main ()
17701 return gettimeofday ();
17703 return 0;
17705 _ACEOF
17706 if ac_fn_c_try_link "$LINENO"; then :
17707 ac_cv_lib_c_gettimeofday=yes
17708 else
17709 ac_cv_lib_c_gettimeofday=no
17711 rm -f core conftest.err conftest.$ac_objext \
17712 conftest$ac_exeext conftest.$ac_ext
17713 LIBS=$ac_check_lib_save_LIBS
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gettimeofday" >&5
17716 $as_echo "$ac_cv_lib_c_gettimeofday" >&6; }
17717 if test "x$ac_cv_lib_c_gettimeofday" = xyes; then :
17719 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
17721 else
17723 $as_echo "#undef HAVE_GETTIMEOFD" >>confdefs.h
17727 else
17728 if test "x$ac_cv_lib_c_gettimeofday" = xyes; then
17730 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
17732 elif test "x$ac_cv_func_gettimeofday" = xyes; then
17734 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
17736 else
17738 $as_echo "#undef HAVE_GETTIMEOFD" >>confdefs.h
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getuid" >&5
17745 $as_echo_n "checking m2 front end checking c library for getuid... " >&6; }
17746 if test x$gcc_no_link != xyes; then
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getuid in -lc" >&5
17748 $as_echo_n "checking for getuid in -lc... " >&6; }
17749 if ${ac_cv_lib_c_getuid+:} false; then :
17750 $as_echo_n "(cached) " >&6
17751 else
17752 ac_check_lib_save_LIBS=$LIBS
17753 LIBS="-lc $LIBS"
17754 if test x$gcc_no_link = xyes; then
17755 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17758 /* end confdefs.h. */
17760 /* Override any GCC internal prototype to avoid an error.
17761 Use char because int might match the return type of a GCC
17762 builtin and then its argument prototype would still apply. */
17763 #ifdef __cplusplus
17764 extern "C"
17765 #endif
17766 char getuid ();
17768 main ()
17770 return getuid ();
17772 return 0;
17774 _ACEOF
17775 if ac_fn_c_try_link "$LINENO"; then :
17776 ac_cv_lib_c_getuid=yes
17777 else
17778 ac_cv_lib_c_getuid=no
17780 rm -f core conftest.err conftest.$ac_objext \
17781 conftest$ac_exeext conftest.$ac_ext
17782 LIBS=$ac_check_lib_save_LIBS
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getuid" >&5
17785 $as_echo "$ac_cv_lib_c_getuid" >&6; }
17786 if test "x$ac_cv_lib_c_getuid" = xyes; then :
17788 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
17790 else
17792 $as_echo "#undef HAVE_GETUID" >>confdefs.h
17796 else
17797 if test "x$ac_cv_lib_c_getuid" = xyes; then
17799 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
17801 elif test "x$ac_cv_func_getuid" = xyes; then
17803 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
17805 else
17807 $as_echo "#undef HAVE_GETUID" >>confdefs.h
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for ioctl" >&5
17814 $as_echo_n "checking m2 front end checking c library for ioctl... " >&6; }
17815 if test x$gcc_no_link != xyes; then
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl in -lc" >&5
17817 $as_echo_n "checking for ioctl in -lc... " >&6; }
17818 if ${ac_cv_lib_c_ioctl+:} false; then :
17819 $as_echo_n "(cached) " >&6
17820 else
17821 ac_check_lib_save_LIBS=$LIBS
17822 LIBS="-lc $LIBS"
17823 if test x$gcc_no_link = xyes; then
17824 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17827 /* end confdefs.h. */
17829 /* Override any GCC internal prototype to avoid an error.
17830 Use char because int might match the return type of a GCC
17831 builtin and then its argument prototype would still apply. */
17832 #ifdef __cplusplus
17833 extern "C"
17834 #endif
17835 char ioctl ();
17837 main ()
17839 return ioctl ();
17841 return 0;
17843 _ACEOF
17844 if ac_fn_c_try_link "$LINENO"; then :
17845 ac_cv_lib_c_ioctl=yes
17846 else
17847 ac_cv_lib_c_ioctl=no
17849 rm -f core conftest.err conftest.$ac_objext \
17850 conftest$ac_exeext conftest.$ac_ext
17851 LIBS=$ac_check_lib_save_LIBS
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ioctl" >&5
17854 $as_echo "$ac_cv_lib_c_ioctl" >&6; }
17855 if test "x$ac_cv_lib_c_ioctl" = xyes; then :
17857 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
17859 else
17861 $as_echo "#undef HAVE_IOCTL" >>confdefs.h
17865 else
17866 if test "x$ac_cv_lib_c_ioctl" = xyes; then
17868 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
17870 elif test "x$ac_cv_func_ioctl" = xyes; then
17872 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
17874 else
17876 $as_echo "#undef HAVE_IOCTL" >>confdefs.h
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for kill" >&5
17883 $as_echo_n "checking m2 front end checking c library for kill... " >&6; }
17884 if test x$gcc_no_link != xyes; then
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kill in -lc" >&5
17886 $as_echo_n "checking for kill in -lc... " >&6; }
17887 if ${ac_cv_lib_c_kill+:} false; then :
17888 $as_echo_n "(cached) " >&6
17889 else
17890 ac_check_lib_save_LIBS=$LIBS
17891 LIBS="-lc $LIBS"
17892 if test x$gcc_no_link = xyes; then
17893 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17896 /* end confdefs.h. */
17898 /* Override any GCC internal prototype to avoid an error.
17899 Use char because int might match the return type of a GCC
17900 builtin and then its argument prototype would still apply. */
17901 #ifdef __cplusplus
17902 extern "C"
17903 #endif
17904 char kill ();
17906 main ()
17908 return kill ();
17910 return 0;
17912 _ACEOF
17913 if ac_fn_c_try_link "$LINENO"; then :
17914 ac_cv_lib_c_kill=yes
17915 else
17916 ac_cv_lib_c_kill=no
17918 rm -f core conftest.err conftest.$ac_objext \
17919 conftest$ac_exeext conftest.$ac_ext
17920 LIBS=$ac_check_lib_save_LIBS
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_kill" >&5
17923 $as_echo "$ac_cv_lib_c_kill" >&6; }
17924 if test "x$ac_cv_lib_c_kill" = xyes; then :
17926 $as_echo "#define HAVE_KILL 1" >>confdefs.h
17928 else
17930 $as_echo "#undef HAVE_KILL" >>confdefs.h
17934 else
17935 if test "x$ac_cv_lib_c_kill" = xyes; then
17937 $as_echo "#define HAVE_KILL 1" >>confdefs.h
17939 elif test "x$ac_cv_func_kill" = xyes; then
17941 $as_echo "#define HAVE_KILL 1" >>confdefs.h
17943 else
17945 $as_echo "#undef HAVE_KILL" >>confdefs.h
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for link" >&5
17952 $as_echo_n "checking m2 front end checking c library for link... " >&6; }
17953 if test x$gcc_no_link != xyes; then
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link in -lc" >&5
17955 $as_echo_n "checking for link in -lc... " >&6; }
17956 if ${ac_cv_lib_c_link+:} false; then :
17957 $as_echo_n "(cached) " >&6
17958 else
17959 ac_check_lib_save_LIBS=$LIBS
17960 LIBS="-lc $LIBS"
17961 if test x$gcc_no_link = xyes; then
17962 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17965 /* end confdefs.h. */
17967 /* Override any GCC internal prototype to avoid an error.
17968 Use char because int might match the return type of a GCC
17969 builtin and then its argument prototype would still apply. */
17970 #ifdef __cplusplus
17971 extern "C"
17972 #endif
17973 char link ();
17975 main ()
17977 return link ();
17979 return 0;
17981 _ACEOF
17982 if ac_fn_c_try_link "$LINENO"; then :
17983 ac_cv_lib_c_link=yes
17984 else
17985 ac_cv_lib_c_link=no
17987 rm -f core conftest.err conftest.$ac_objext \
17988 conftest$ac_exeext conftest.$ac_ext
17989 LIBS=$ac_check_lib_save_LIBS
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_link" >&5
17992 $as_echo "$ac_cv_lib_c_link" >&6; }
17993 if test "x$ac_cv_lib_c_link" = xyes; then :
17995 $as_echo "#define HAVE_LINK 1" >>confdefs.h
17997 else
17999 $as_echo "#undef HAVE_LINK" >>confdefs.h
18003 else
18004 if test "x$ac_cv_lib_c_link" = xyes; then
18006 $as_echo "#define HAVE_LINK 1" >>confdefs.h
18008 elif test "x$ac_cv_func_link" = xyes; then
18010 $as_echo "#define HAVE_LINK 1" >>confdefs.h
18012 else
18014 $as_echo "#undef HAVE_LINK" >>confdefs.h
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for lseek" >&5
18021 $as_echo_n "checking m2 front end checking c library for lseek... " >&6; }
18022 if test x$gcc_no_link != xyes; then
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lseek in -lc" >&5
18024 $as_echo_n "checking for lseek in -lc... " >&6; }
18025 if ${ac_cv_lib_c_lseek+:} false; then :
18026 $as_echo_n "(cached) " >&6
18027 else
18028 ac_check_lib_save_LIBS=$LIBS
18029 LIBS="-lc $LIBS"
18030 if test x$gcc_no_link = xyes; then
18031 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18034 /* end confdefs.h. */
18036 /* Override any GCC internal prototype to avoid an error.
18037 Use char because int might match the return type of a GCC
18038 builtin and then its argument prototype would still apply. */
18039 #ifdef __cplusplus
18040 extern "C"
18041 #endif
18042 char lseek ();
18044 main ()
18046 return lseek ();
18048 return 0;
18050 _ACEOF
18051 if ac_fn_c_try_link "$LINENO"; then :
18052 ac_cv_lib_c_lseek=yes
18053 else
18054 ac_cv_lib_c_lseek=no
18056 rm -f core conftest.err conftest.$ac_objext \
18057 conftest$ac_exeext conftest.$ac_ext
18058 LIBS=$ac_check_lib_save_LIBS
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_lseek" >&5
18061 $as_echo "$ac_cv_lib_c_lseek" >&6; }
18062 if test "x$ac_cv_lib_c_lseek" = xyes; then :
18064 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
18066 else
18068 $as_echo "#undef HAVE_LSEEK" >>confdefs.h
18072 else
18073 if test "x$ac_cv_lib_c_lseek" = xyes; then
18075 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
18077 elif test "x$ac_cv_func_lseek" = xyes; then
18079 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
18081 else
18083 $as_echo "#undef HAVE_LSEEK" >>confdefs.h
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for open" >&5
18090 $as_echo_n "checking m2 front end checking c library for open... " >&6; }
18091 if test x$gcc_no_link != xyes; then
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for open in -lc" >&5
18093 $as_echo_n "checking for open in -lc... " >&6; }
18094 if ${ac_cv_lib_c_open+:} false; then :
18095 $as_echo_n "(cached) " >&6
18096 else
18097 ac_check_lib_save_LIBS=$LIBS
18098 LIBS="-lc $LIBS"
18099 if test x$gcc_no_link = xyes; then
18100 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18103 /* end confdefs.h. */
18105 /* Override any GCC internal prototype to avoid an error.
18106 Use char because int might match the return type of a GCC
18107 builtin and then its argument prototype would still apply. */
18108 #ifdef __cplusplus
18109 extern "C"
18110 #endif
18111 char open ();
18113 main ()
18115 return open ();
18117 return 0;
18119 _ACEOF
18120 if ac_fn_c_try_link "$LINENO"; then :
18121 ac_cv_lib_c_open=yes
18122 else
18123 ac_cv_lib_c_open=no
18125 rm -f core conftest.err conftest.$ac_objext \
18126 conftest$ac_exeext conftest.$ac_ext
18127 LIBS=$ac_check_lib_save_LIBS
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_open" >&5
18130 $as_echo "$ac_cv_lib_c_open" >&6; }
18131 if test "x$ac_cv_lib_c_open" = xyes; then :
18133 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
18135 else
18137 $as_echo "#undef HAVE_OPEN" >>confdefs.h
18141 else
18142 if test "x$ac_cv_lib_c_open" = xyes; then
18144 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
18146 elif test "x$ac_cv_func_open" = xyes; then
18148 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
18150 else
18152 $as_echo "#undef HAVE_OPEN" >>confdefs.h
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for pause" >&5
18159 $as_echo_n "checking m2 front end checking c library for pause... " >&6; }
18160 if test x$gcc_no_link != xyes; then
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pause in -lc" >&5
18162 $as_echo_n "checking for pause in -lc... " >&6; }
18163 if ${ac_cv_lib_c_pause+:} false; then :
18164 $as_echo_n "(cached) " >&6
18165 else
18166 ac_check_lib_save_LIBS=$LIBS
18167 LIBS="-lc $LIBS"
18168 if test x$gcc_no_link = xyes; then
18169 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18172 /* end confdefs.h. */
18174 /* Override any GCC internal prototype to avoid an error.
18175 Use char because int might match the return type of a GCC
18176 builtin and then its argument prototype would still apply. */
18177 #ifdef __cplusplus
18178 extern "C"
18179 #endif
18180 char pause ();
18182 main ()
18184 return pause ();
18186 return 0;
18188 _ACEOF
18189 if ac_fn_c_try_link "$LINENO"; then :
18190 ac_cv_lib_c_pause=yes
18191 else
18192 ac_cv_lib_c_pause=no
18194 rm -f core conftest.err conftest.$ac_objext \
18195 conftest$ac_exeext conftest.$ac_ext
18196 LIBS=$ac_check_lib_save_LIBS
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pause" >&5
18199 $as_echo "$ac_cv_lib_c_pause" >&6; }
18200 if test "x$ac_cv_lib_c_pause" = xyes; then :
18202 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
18204 else
18206 $as_echo "#undef HAVE_PAUSE" >>confdefs.h
18210 else
18211 if test "x$ac_cv_lib_c_pause" = xyes; then
18213 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
18215 elif test "x$ac_cv_func_pause" = xyes; then
18217 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
18219 else
18221 $as_echo "#undef HAVE_PAUSE" >>confdefs.h
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for pipe" >&5
18228 $as_echo_n "checking m2 front end checking c library for pipe... " >&6; }
18229 if test x$gcc_no_link != xyes; then
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pipe in -lc" >&5
18231 $as_echo_n "checking for pipe in -lc... " >&6; }
18232 if ${ac_cv_lib_c_pipe+:} false; then :
18233 $as_echo_n "(cached) " >&6
18234 else
18235 ac_check_lib_save_LIBS=$LIBS
18236 LIBS="-lc $LIBS"
18237 if test x$gcc_no_link = xyes; then
18238 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18241 /* end confdefs.h. */
18243 /* Override any GCC internal prototype to avoid an error.
18244 Use char because int might match the return type of a GCC
18245 builtin and then its argument prototype would still apply. */
18246 #ifdef __cplusplus
18247 extern "C"
18248 #endif
18249 char pipe ();
18251 main ()
18253 return pipe ();
18255 return 0;
18257 _ACEOF
18258 if ac_fn_c_try_link "$LINENO"; then :
18259 ac_cv_lib_c_pipe=yes
18260 else
18261 ac_cv_lib_c_pipe=no
18263 rm -f core conftest.err conftest.$ac_objext \
18264 conftest$ac_exeext conftest.$ac_ext
18265 LIBS=$ac_check_lib_save_LIBS
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pipe" >&5
18268 $as_echo "$ac_cv_lib_c_pipe" >&6; }
18269 if test "x$ac_cv_lib_c_pipe" = xyes; then :
18271 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
18273 else
18275 $as_echo "#undef HAVE_PIPE" >>confdefs.h
18279 else
18280 if test "x$ac_cv_lib_c_pipe" = xyes; then
18282 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
18284 elif test "x$ac_cv_func_pipe" = xyes; then
18286 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
18288 else
18290 $as_echo "#undef HAVE_PIPE" >>confdefs.h
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for rand" >&5
18297 $as_echo_n "checking m2 front end checking c library for rand... " >&6; }
18298 if test x$gcc_no_link != xyes; then
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rand in -lc" >&5
18300 $as_echo_n "checking for rand in -lc... " >&6; }
18301 if ${ac_cv_lib_c_rand+:} false; then :
18302 $as_echo_n "(cached) " >&6
18303 else
18304 ac_check_lib_save_LIBS=$LIBS
18305 LIBS="-lc $LIBS"
18306 if test x$gcc_no_link = xyes; then
18307 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18310 /* end confdefs.h. */
18312 /* Override any GCC internal prototype to avoid an error.
18313 Use char because int might match the return type of a GCC
18314 builtin and then its argument prototype would still apply. */
18315 #ifdef __cplusplus
18316 extern "C"
18317 #endif
18318 char rand ();
18320 main ()
18322 return rand ();
18324 return 0;
18326 _ACEOF
18327 if ac_fn_c_try_link "$LINENO"; then :
18328 ac_cv_lib_c_rand=yes
18329 else
18330 ac_cv_lib_c_rand=no
18332 rm -f core conftest.err conftest.$ac_objext \
18333 conftest$ac_exeext conftest.$ac_ext
18334 LIBS=$ac_check_lib_save_LIBS
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_rand" >&5
18337 $as_echo "$ac_cv_lib_c_rand" >&6; }
18338 if test "x$ac_cv_lib_c_rand" = xyes; then :
18340 $as_echo "#define HAVE_RAND 1" >>confdefs.h
18342 else
18344 $as_echo "#undef HAVE_RAND" >>confdefs.h
18348 else
18349 if test "x$ac_cv_lib_c_rand" = xyes; then
18351 $as_echo "#define HAVE_RAND 1" >>confdefs.h
18353 elif test "x$ac_cv_func_rand" = xyes; then
18355 $as_echo "#define HAVE_RAND 1" >>confdefs.h
18357 else
18359 $as_echo "#undef HAVE_RAND" >>confdefs.h
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for read" >&5
18366 $as_echo_n "checking m2 front end checking c library for read... " >&6; }
18367 if test x$gcc_no_link != xyes; then
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for read in -lc" >&5
18369 $as_echo_n "checking for read in -lc... " >&6; }
18370 if ${ac_cv_lib_c_read+:} false; then :
18371 $as_echo_n "(cached) " >&6
18372 else
18373 ac_check_lib_save_LIBS=$LIBS
18374 LIBS="-lc $LIBS"
18375 if test x$gcc_no_link = xyes; then
18376 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18379 /* end confdefs.h. */
18381 /* Override any GCC internal prototype to avoid an error.
18382 Use char because int might match the return type of a GCC
18383 builtin and then its argument prototype would still apply. */
18384 #ifdef __cplusplus
18385 extern "C"
18386 #endif
18387 char read ();
18389 main ()
18391 return read ();
18393 return 0;
18395 _ACEOF
18396 if ac_fn_c_try_link "$LINENO"; then :
18397 ac_cv_lib_c_read=yes
18398 else
18399 ac_cv_lib_c_read=no
18401 rm -f core conftest.err conftest.$ac_objext \
18402 conftest$ac_exeext conftest.$ac_ext
18403 LIBS=$ac_check_lib_save_LIBS
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_read" >&5
18406 $as_echo "$ac_cv_lib_c_read" >&6; }
18407 if test "x$ac_cv_lib_c_read" = xyes; then :
18409 $as_echo "#define HAVE_READ 1" >>confdefs.h
18411 else
18413 $as_echo "#undef HAVE_READ" >>confdefs.h
18417 else
18418 if test "x$ac_cv_lib_c_read" = xyes; then
18420 $as_echo "#define HAVE_READ 1" >>confdefs.h
18422 elif test "x$ac_cv_func_read" = xyes; then
18424 $as_echo "#define HAVE_READ 1" >>confdefs.h
18426 else
18428 $as_echo "#undef HAVE_READ" >>confdefs.h
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for select" >&5
18435 $as_echo_n "checking m2 front end checking c library for select... " >&6; }
18436 if test x$gcc_no_link != xyes; then
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select in -lc" >&5
18438 $as_echo_n "checking for select in -lc... " >&6; }
18439 if ${ac_cv_lib_c_select+:} false; then :
18440 $as_echo_n "(cached) " >&6
18441 else
18442 ac_check_lib_save_LIBS=$LIBS
18443 LIBS="-lc $LIBS"
18444 if test x$gcc_no_link = xyes; then
18445 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18448 /* end confdefs.h. */
18450 /* Override any GCC internal prototype to avoid an error.
18451 Use char because int might match the return type of a GCC
18452 builtin and then its argument prototype would still apply. */
18453 #ifdef __cplusplus
18454 extern "C"
18455 #endif
18456 char select ();
18458 main ()
18460 return select ();
18462 return 0;
18464 _ACEOF
18465 if ac_fn_c_try_link "$LINENO"; then :
18466 ac_cv_lib_c_select=yes
18467 else
18468 ac_cv_lib_c_select=no
18470 rm -f core conftest.err conftest.$ac_objext \
18471 conftest$ac_exeext conftest.$ac_ext
18472 LIBS=$ac_check_lib_save_LIBS
18474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_select" >&5
18475 $as_echo "$ac_cv_lib_c_select" >&6; }
18476 if test "x$ac_cv_lib_c_select" = xyes; then :
18478 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
18480 else
18482 $as_echo "#undef HAVE_SELECT" >>confdefs.h
18486 else
18487 if test "x$ac_cv_lib_c_select" = xyes; then
18489 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
18491 elif test "x$ac_cv_func_select" = xyes; then
18493 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
18495 else
18497 $as_echo "#undef HAVE_SELECT" >>confdefs.h
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setitimer" >&5
18504 $as_echo_n "checking m2 front end checking c library for setitimer... " >&6; }
18505 if test x$gcc_no_link != xyes; then
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setitimer in -lc" >&5
18507 $as_echo_n "checking for setitimer in -lc... " >&6; }
18508 if ${ac_cv_lib_c_setitimer+:} false; then :
18509 $as_echo_n "(cached) " >&6
18510 else
18511 ac_check_lib_save_LIBS=$LIBS
18512 LIBS="-lc $LIBS"
18513 if test x$gcc_no_link = xyes; then
18514 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18517 /* end confdefs.h. */
18519 /* Override any GCC internal prototype to avoid an error.
18520 Use char because int might match the return type of a GCC
18521 builtin and then its argument prototype would still apply. */
18522 #ifdef __cplusplus
18523 extern "C"
18524 #endif
18525 char setitimer ();
18527 main ()
18529 return setitimer ();
18531 return 0;
18533 _ACEOF
18534 if ac_fn_c_try_link "$LINENO"; then :
18535 ac_cv_lib_c_setitimer=yes
18536 else
18537 ac_cv_lib_c_setitimer=no
18539 rm -f core conftest.err conftest.$ac_objext \
18540 conftest$ac_exeext conftest.$ac_ext
18541 LIBS=$ac_check_lib_save_LIBS
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setitimer" >&5
18544 $as_echo "$ac_cv_lib_c_setitimer" >&6; }
18545 if test "x$ac_cv_lib_c_setitimer" = xyes; then :
18547 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
18549 else
18551 $as_echo "#undef HAVE_SETITIMER" >>confdefs.h
18555 else
18556 if test "x$ac_cv_lib_c_setitimer" = xyes; then
18558 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
18560 elif test "x$ac_cv_func_setitimer" = xyes; then
18562 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
18564 else
18566 $as_echo "#undef HAVE_SETITIMER" >>confdefs.h
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setgid" >&5
18573 $as_echo_n "checking m2 front end checking c library for setgid... " >&6; }
18574 if test x$gcc_no_link != xyes; then
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgid in -lc" >&5
18576 $as_echo_n "checking for setgid in -lc... " >&6; }
18577 if ${ac_cv_lib_c_setgid+:} false; then :
18578 $as_echo_n "(cached) " >&6
18579 else
18580 ac_check_lib_save_LIBS=$LIBS
18581 LIBS="-lc $LIBS"
18582 if test x$gcc_no_link = xyes; then
18583 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18586 /* end confdefs.h. */
18588 /* Override any GCC internal prototype to avoid an error.
18589 Use char because int might match the return type of a GCC
18590 builtin and then its argument prototype would still apply. */
18591 #ifdef __cplusplus
18592 extern "C"
18593 #endif
18594 char setgid ();
18596 main ()
18598 return setgid ();
18600 return 0;
18602 _ACEOF
18603 if ac_fn_c_try_link "$LINENO"; then :
18604 ac_cv_lib_c_setgid=yes
18605 else
18606 ac_cv_lib_c_setgid=no
18608 rm -f core conftest.err conftest.$ac_objext \
18609 conftest$ac_exeext conftest.$ac_ext
18610 LIBS=$ac_check_lib_save_LIBS
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setgid" >&5
18613 $as_echo "$ac_cv_lib_c_setgid" >&6; }
18614 if test "x$ac_cv_lib_c_setgid" = xyes; then :
18616 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
18618 else
18620 $as_echo "#undef HAVE_SETGID" >>confdefs.h
18624 else
18625 if test "x$ac_cv_lib_c_setgid" = xyes; then
18627 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
18629 elif test "x$ac_cv_func_setgid" = xyes; then
18631 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
18633 else
18635 $as_echo "#undef HAVE_SETGID" >>confdefs.h
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setuid" >&5
18642 $as_echo_n "checking m2 front end checking c library for setuid... " >&6; }
18643 if test x$gcc_no_link != xyes; then
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setuid in -lc" >&5
18645 $as_echo_n "checking for setuid in -lc... " >&6; }
18646 if ${ac_cv_lib_c_setuid+:} false; then :
18647 $as_echo_n "(cached) " >&6
18648 else
18649 ac_check_lib_save_LIBS=$LIBS
18650 LIBS="-lc $LIBS"
18651 if test x$gcc_no_link = xyes; then
18652 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18655 /* end confdefs.h. */
18657 /* Override any GCC internal prototype to avoid an error.
18658 Use char because int might match the return type of a GCC
18659 builtin and then its argument prototype would still apply. */
18660 #ifdef __cplusplus
18661 extern "C"
18662 #endif
18663 char setuid ();
18665 main ()
18667 return setuid ();
18669 return 0;
18671 _ACEOF
18672 if ac_fn_c_try_link "$LINENO"; then :
18673 ac_cv_lib_c_setuid=yes
18674 else
18675 ac_cv_lib_c_setuid=no
18677 rm -f core conftest.err conftest.$ac_objext \
18678 conftest$ac_exeext conftest.$ac_ext
18679 LIBS=$ac_check_lib_save_LIBS
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setuid" >&5
18682 $as_echo "$ac_cv_lib_c_setuid" >&6; }
18683 if test "x$ac_cv_lib_c_setuid" = xyes; then :
18685 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
18687 else
18689 $as_echo "#undef HAVE_SETUID" >>confdefs.h
18693 else
18694 if test "x$ac_cv_lib_c_setuid" = xyes; then
18696 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
18698 elif test "x$ac_cv_func_setuid" = xyes; then
18700 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
18702 else
18704 $as_echo "#undef HAVE_SETUID" >>confdefs.h
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for stat" >&5
18711 $as_echo_n "checking m2 front end checking c library for stat... " >&6; }
18712 if test x$gcc_no_link != xyes; then
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stat in -lc" >&5
18714 $as_echo_n "checking for stat in -lc... " >&6; }
18715 if ${ac_cv_lib_c_stat+:} false; then :
18716 $as_echo_n "(cached) " >&6
18717 else
18718 ac_check_lib_save_LIBS=$LIBS
18719 LIBS="-lc $LIBS"
18720 if test x$gcc_no_link = xyes; then
18721 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18724 /* end confdefs.h. */
18726 /* Override any GCC internal prototype to avoid an error.
18727 Use char because int might match the return type of a GCC
18728 builtin and then its argument prototype would still apply. */
18729 #ifdef __cplusplus
18730 extern "C"
18731 #endif
18732 char stat ();
18734 main ()
18736 return stat ();
18738 return 0;
18740 _ACEOF
18741 if ac_fn_c_try_link "$LINENO"; then :
18742 ac_cv_lib_c_stat=yes
18743 else
18744 ac_cv_lib_c_stat=no
18746 rm -f core conftest.err conftest.$ac_objext \
18747 conftest$ac_exeext conftest.$ac_ext
18748 LIBS=$ac_check_lib_save_LIBS
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_stat" >&5
18751 $as_echo "$ac_cv_lib_c_stat" >&6; }
18752 if test "x$ac_cv_lib_c_stat" = xyes; then :
18754 $as_echo "#define HAVE_STAT 1" >>confdefs.h
18756 else
18758 $as_echo "#undef HAVE_STAT" >>confdefs.h
18762 else
18763 if test "x$ac_cv_lib_c_stat" = xyes; then
18765 $as_echo "#define HAVE_STAT 1" >>confdefs.h
18767 elif test "x$ac_cv_func_stat" = xyes; then
18769 $as_echo "#define HAVE_STAT 1" >>confdefs.h
18771 else
18773 $as_echo "#undef HAVE_STAT" >>confdefs.h
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strsignal" >&5
18780 $as_echo_n "checking m2 front end checking c library for strsignal... " >&6; }
18781 if test x$gcc_no_link != xyes; then
18782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strsignal in -lc" >&5
18783 $as_echo_n "checking for strsignal in -lc... " >&6; }
18784 if ${ac_cv_lib_c_strsignal+:} false; then :
18785 $as_echo_n "(cached) " >&6
18786 else
18787 ac_check_lib_save_LIBS=$LIBS
18788 LIBS="-lc $LIBS"
18789 if test x$gcc_no_link = xyes; then
18790 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18793 /* end confdefs.h. */
18795 /* Override any GCC internal prototype to avoid an error.
18796 Use char because int might match the return type of a GCC
18797 builtin and then its argument prototype would still apply. */
18798 #ifdef __cplusplus
18799 extern "C"
18800 #endif
18801 char strsignal ();
18803 main ()
18805 return strsignal ();
18807 return 0;
18809 _ACEOF
18810 if ac_fn_c_try_link "$LINENO"; then :
18811 ac_cv_lib_c_strsignal=yes
18812 else
18813 ac_cv_lib_c_strsignal=no
18815 rm -f core conftest.err conftest.$ac_objext \
18816 conftest$ac_exeext conftest.$ac_ext
18817 LIBS=$ac_check_lib_save_LIBS
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strsignal" >&5
18820 $as_echo "$ac_cv_lib_c_strsignal" >&6; }
18821 if test "x$ac_cv_lib_c_strsignal" = xyes; then :
18823 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
18825 else
18827 $as_echo "#undef HAVE_STRSIGNAL" >>confdefs.h
18831 else
18832 if test "x$ac_cv_lib_c_strsignal" = xyes; then
18834 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
18836 elif test "x$ac_cv_func_strsignal" = xyes; then
18838 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
18840 else
18842 $as_echo "#undef HAVE_STRSIGNAL" >>confdefs.h
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strtod" >&5
18849 $as_echo_n "checking m2 front end checking c library for strtod... " >&6; }
18850 if test x$gcc_no_link != xyes; then
18851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lc" >&5
18852 $as_echo_n "checking for strtod in -lc... " >&6; }
18853 if ${ac_cv_lib_c_strtod+:} false; then :
18854 $as_echo_n "(cached) " >&6
18855 else
18856 ac_check_lib_save_LIBS=$LIBS
18857 LIBS="-lc $LIBS"
18858 if test x$gcc_no_link = xyes; then
18859 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18862 /* end confdefs.h. */
18864 /* Override any GCC internal prototype to avoid an error.
18865 Use char because int might match the return type of a GCC
18866 builtin and then its argument prototype would still apply. */
18867 #ifdef __cplusplus
18868 extern "C"
18869 #endif
18870 char strtod ();
18872 main ()
18874 return strtod ();
18876 return 0;
18878 _ACEOF
18879 if ac_fn_c_try_link "$LINENO"; then :
18880 ac_cv_lib_c_strtod=yes
18881 else
18882 ac_cv_lib_c_strtod=no
18884 rm -f core conftest.err conftest.$ac_objext \
18885 conftest$ac_exeext conftest.$ac_ext
18886 LIBS=$ac_check_lib_save_LIBS
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtod" >&5
18889 $as_echo "$ac_cv_lib_c_strtod" >&6; }
18890 if test "x$ac_cv_lib_c_strtod" = xyes; then :
18892 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
18894 else
18896 $as_echo "#undef HAVE_STRTOD" >>confdefs.h
18900 else
18901 if test "x$ac_cv_lib_c_strtod" = xyes; then
18903 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
18905 elif test "x$ac_cv_func_strtod" = xyes; then
18907 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
18909 else
18911 $as_echo "#undef HAVE_STRTOD" >>confdefs.h
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strtold" >&5
18918 $as_echo_n "checking m2 front end checking c library for strtold... " >&6; }
18919 if test x$gcc_no_link != xyes; then
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold in -lc" >&5
18921 $as_echo_n "checking for strtold in -lc... " >&6; }
18922 if ${ac_cv_lib_c_strtold+:} false; then :
18923 $as_echo_n "(cached) " >&6
18924 else
18925 ac_check_lib_save_LIBS=$LIBS
18926 LIBS="-lc $LIBS"
18927 if test x$gcc_no_link = xyes; then
18928 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18931 /* end confdefs.h. */
18933 /* Override any GCC internal prototype to avoid an error.
18934 Use char because int might match the return type of a GCC
18935 builtin and then its argument prototype would still apply. */
18936 #ifdef __cplusplus
18937 extern "C"
18938 #endif
18939 char strtold ();
18941 main ()
18943 return strtold ();
18945 return 0;
18947 _ACEOF
18948 if ac_fn_c_try_link "$LINENO"; then :
18949 ac_cv_lib_c_strtold=yes
18950 else
18951 ac_cv_lib_c_strtold=no
18953 rm -f core conftest.err conftest.$ac_objext \
18954 conftest$ac_exeext conftest.$ac_ext
18955 LIBS=$ac_check_lib_save_LIBS
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtold" >&5
18958 $as_echo "$ac_cv_lib_c_strtold" >&6; }
18959 if test "x$ac_cv_lib_c_strtold" = xyes; then :
18961 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
18963 else
18965 $as_echo "#undef HAVE_STRTOLD" >>confdefs.h
18969 else
18970 if test "x$ac_cv_lib_c_strtold" = xyes; then
18972 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
18974 elif test "x$ac_cv_func_strtold" = xyes; then
18976 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
18978 else
18980 $as_echo "#undef HAVE_STRTOLD" >>confdefs.h
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for times" >&5
18987 $as_echo_n "checking m2 front end checking c library for times... " >&6; }
18988 if test x$gcc_no_link != xyes; then
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for times in -lc" >&5
18990 $as_echo_n "checking for times in -lc... " >&6; }
18991 if ${ac_cv_lib_c_times+:} false; then :
18992 $as_echo_n "(cached) " >&6
18993 else
18994 ac_check_lib_save_LIBS=$LIBS
18995 LIBS="-lc $LIBS"
18996 if test x$gcc_no_link = xyes; then
18997 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19000 /* end confdefs.h. */
19002 /* Override any GCC internal prototype to avoid an error.
19003 Use char because int might match the return type of a GCC
19004 builtin and then its argument prototype would still apply. */
19005 #ifdef __cplusplus
19006 extern "C"
19007 #endif
19008 char times ();
19010 main ()
19012 return times ();
19014 return 0;
19016 _ACEOF
19017 if ac_fn_c_try_link "$LINENO"; then :
19018 ac_cv_lib_c_times=yes
19019 else
19020 ac_cv_lib_c_times=no
19022 rm -f core conftest.err conftest.$ac_objext \
19023 conftest$ac_exeext conftest.$ac_ext
19024 LIBS=$ac_check_lib_save_LIBS
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_times" >&5
19027 $as_echo "$ac_cv_lib_c_times" >&6; }
19028 if test "x$ac_cv_lib_c_times" = xyes; then :
19030 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
19032 else
19034 $as_echo "#undef HAVE_TIMES" >>confdefs.h
19038 else
19039 if test "x$ac_cv_lib_c_times" = xyes; then
19041 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
19043 elif test "x$ac_cv_func_times" = xyes; then
19045 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
19047 else
19049 $as_echo "#undef HAVE_TIMES" >>confdefs.h
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for unlink" >&5
19056 $as_echo_n "checking m2 front end checking c library for unlink... " >&6; }
19057 if test x$gcc_no_link != xyes; then
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unlink in -lc" >&5
19059 $as_echo_n "checking for unlink in -lc... " >&6; }
19060 if ${ac_cv_lib_c_unlink+:} false; then :
19061 $as_echo_n "(cached) " >&6
19062 else
19063 ac_check_lib_save_LIBS=$LIBS
19064 LIBS="-lc $LIBS"
19065 if test x$gcc_no_link = xyes; then
19066 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19069 /* end confdefs.h. */
19071 /* Override any GCC internal prototype to avoid an error.
19072 Use char because int might match the return type of a GCC
19073 builtin and then its argument prototype would still apply. */
19074 #ifdef __cplusplus
19075 extern "C"
19076 #endif
19077 char unlink ();
19079 main ()
19081 return unlink ();
19083 return 0;
19085 _ACEOF
19086 if ac_fn_c_try_link "$LINENO"; then :
19087 ac_cv_lib_c_unlink=yes
19088 else
19089 ac_cv_lib_c_unlink=no
19091 rm -f core conftest.err conftest.$ac_objext \
19092 conftest$ac_exeext conftest.$ac_ext
19093 LIBS=$ac_check_lib_save_LIBS
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_unlink" >&5
19096 $as_echo "$ac_cv_lib_c_unlink" >&6; }
19097 if test "x$ac_cv_lib_c_unlink" = xyes; then :
19099 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
19101 else
19103 $as_echo "#undef HAVE_UNLINK" >>confdefs.h
19107 else
19108 if test "x$ac_cv_lib_c_unlink" = xyes; then
19110 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
19112 elif test "x$ac_cv_func_unlink" = xyes; then
19114 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
19116 else
19118 $as_echo "#undef HAVE_UNLINK" >>confdefs.h
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for wait" >&5
19125 $as_echo_n "checking m2 front end checking c library for wait... " >&6; }
19126 if test x$gcc_no_link != xyes; then
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait in -lc" >&5
19128 $as_echo_n "checking for wait in -lc... " >&6; }
19129 if ${ac_cv_lib_c_wait+:} false; then :
19130 $as_echo_n "(cached) " >&6
19131 else
19132 ac_check_lib_save_LIBS=$LIBS
19133 LIBS="-lc $LIBS"
19134 if test x$gcc_no_link = xyes; then
19135 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19138 /* end confdefs.h. */
19140 /* Override any GCC internal prototype to avoid an error.
19141 Use char because int might match the return type of a GCC
19142 builtin and then its argument prototype would still apply. */
19143 #ifdef __cplusplus
19144 extern "C"
19145 #endif
19146 char wait ();
19148 main ()
19150 return wait ();
19152 return 0;
19154 _ACEOF
19155 if ac_fn_c_try_link "$LINENO"; then :
19156 ac_cv_lib_c_wait=yes
19157 else
19158 ac_cv_lib_c_wait=no
19160 rm -f core conftest.err conftest.$ac_objext \
19161 conftest$ac_exeext conftest.$ac_ext
19162 LIBS=$ac_check_lib_save_LIBS
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_wait" >&5
19165 $as_echo "$ac_cv_lib_c_wait" >&6; }
19166 if test "x$ac_cv_lib_c_wait" = xyes; then :
19168 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
19170 else
19172 $as_echo "#undef HAVE_WAIT" >>confdefs.h
19176 else
19177 if test "x$ac_cv_lib_c_wait" = xyes; then
19179 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
19181 elif test "x$ac_cv_func_wait" = xyes; then
19183 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
19185 else
19187 $as_echo "#undef HAVE_WAIT" >>confdefs.h
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for write" >&5
19194 $as_echo_n "checking m2 front end checking c library for write... " >&6; }
19195 if test x$gcc_no_link != xyes; then
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for write in -lc" >&5
19197 $as_echo_n "checking for write in -lc... " >&6; }
19198 if ${ac_cv_lib_c_write+:} false; then :
19199 $as_echo_n "(cached) " >&6
19200 else
19201 ac_check_lib_save_LIBS=$LIBS
19202 LIBS="-lc $LIBS"
19203 if test x$gcc_no_link = xyes; then
19204 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19207 /* end confdefs.h. */
19209 /* Override any GCC internal prototype to avoid an error.
19210 Use char because int might match the return type of a GCC
19211 builtin and then its argument prototype would still apply. */
19212 #ifdef __cplusplus
19213 extern "C"
19214 #endif
19215 char write ();
19217 main ()
19219 return write ();
19221 return 0;
19223 _ACEOF
19224 if ac_fn_c_try_link "$LINENO"; then :
19225 ac_cv_lib_c_write=yes
19226 else
19227 ac_cv_lib_c_write=no
19229 rm -f core conftest.err conftest.$ac_objext \
19230 conftest$ac_exeext conftest.$ac_ext
19231 LIBS=$ac_check_lib_save_LIBS
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_write" >&5
19234 $as_echo "$ac_cv_lib_c_write" >&6; }
19235 if test "x$ac_cv_lib_c_write" = xyes; then :
19237 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
19239 else
19241 $as_echo "#undef HAVE_WRITE" >>confdefs.h
19245 else
19246 if test "x$ac_cv_lib_c_write" = xyes; then
19248 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
19250 elif test "x$ac_cv_func_write" = xyes; then
19252 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
19254 else
19256 $as_echo "#undef HAVE_WRITE" >>confdefs.h
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbit" >&5
19264 $as_echo_n "checking m2 front end checking m library for signbit... " >&6; }
19265 if test x$gcc_no_link != xyes; then
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit in -lm" >&5
19267 $as_echo_n "checking for signbit in -lm... " >&6; }
19268 if ${ac_cv_lib_m_signbit+:} false; then :
19269 $as_echo_n "(cached) " >&6
19270 else
19271 ac_check_lib_save_LIBS=$LIBS
19272 LIBS="-lm $LIBS"
19273 if test x$gcc_no_link = xyes; then
19274 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19277 /* end confdefs.h. */
19279 /* Override any GCC internal prototype to avoid an error.
19280 Use char because int might match the return type of a GCC
19281 builtin and then its argument prototype would still apply. */
19282 #ifdef __cplusplus
19283 extern "C"
19284 #endif
19285 char signbit ();
19287 main ()
19289 return signbit ();
19291 return 0;
19293 _ACEOF
19294 if ac_fn_c_try_link "$LINENO"; then :
19295 ac_cv_lib_m_signbit=yes
19296 else
19297 ac_cv_lib_m_signbit=no
19299 rm -f core conftest.err conftest.$ac_objext \
19300 conftest$ac_exeext conftest.$ac_ext
19301 LIBS=$ac_check_lib_save_LIBS
19303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbit" >&5
19304 $as_echo "$ac_cv_lib_m_signbit" >&6; }
19305 if test "x$ac_cv_lib_m_signbit" = xyes; then :
19307 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
19309 else
19311 $as_echo "#undef HAVE_SIGNBIT" >>confdefs.h
19315 else
19316 if test "x$ac_cv_lib_m_signbit" = xyes; then
19318 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
19320 elif test "x$ac_cv_func_signbit" = xyes; then
19322 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
19324 else
19326 $as_echo "#undef HAVE_SIGNBIT" >>confdefs.h
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbitf" >&5
19333 $as_echo_n "checking m2 front end checking m library for signbitf... " >&6; }
19334 if test x$gcc_no_link != xyes; then
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitf in -lm" >&5
19336 $as_echo_n "checking for signbitf in -lm... " >&6; }
19337 if ${ac_cv_lib_m_signbitf+:} false; then :
19338 $as_echo_n "(cached) " >&6
19339 else
19340 ac_check_lib_save_LIBS=$LIBS
19341 LIBS="-lm $LIBS"
19342 if test x$gcc_no_link = xyes; then
19343 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19346 /* end confdefs.h. */
19348 /* Override any GCC internal prototype to avoid an error.
19349 Use char because int might match the return type of a GCC
19350 builtin and then its argument prototype would still apply. */
19351 #ifdef __cplusplus
19352 extern "C"
19353 #endif
19354 char signbitf ();
19356 main ()
19358 return signbitf ();
19360 return 0;
19362 _ACEOF
19363 if ac_fn_c_try_link "$LINENO"; then :
19364 ac_cv_lib_m_signbitf=yes
19365 else
19366 ac_cv_lib_m_signbitf=no
19368 rm -f core conftest.err conftest.$ac_objext \
19369 conftest$ac_exeext conftest.$ac_ext
19370 LIBS=$ac_check_lib_save_LIBS
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitf" >&5
19373 $as_echo "$ac_cv_lib_m_signbitf" >&6; }
19374 if test "x$ac_cv_lib_m_signbitf" = xyes; then :
19376 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
19378 else
19380 $as_echo "#undef HAVE_SIGNBITF" >>confdefs.h
19384 else
19385 if test "x$ac_cv_lib_m_signbitf" = xyes; then
19387 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
19389 elif test "x$ac_cv_func_signbitf" = xyes; then
19391 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
19393 else
19395 $as_echo "#undef HAVE_SIGNBITF" >>confdefs.h
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbitl" >&5
19402 $as_echo_n "checking m2 front end checking m library for signbitl... " >&6; }
19403 if test x$gcc_no_link != xyes; then
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitl in -lm" >&5
19405 $as_echo_n "checking for signbitl in -lm... " >&6; }
19406 if ${ac_cv_lib_m_signbitl+:} false; then :
19407 $as_echo_n "(cached) " >&6
19408 else
19409 ac_check_lib_save_LIBS=$LIBS
19410 LIBS="-lm $LIBS"
19411 if test x$gcc_no_link = xyes; then
19412 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19415 /* end confdefs.h. */
19417 /* Override any GCC internal prototype to avoid an error.
19418 Use char because int might match the return type of a GCC
19419 builtin and then its argument prototype would still apply. */
19420 #ifdef __cplusplus
19421 extern "C"
19422 #endif
19423 char signbitl ();
19425 main ()
19427 return signbitl ();
19429 return 0;
19431 _ACEOF
19432 if ac_fn_c_try_link "$LINENO"; then :
19433 ac_cv_lib_m_signbitl=yes
19434 else
19435 ac_cv_lib_m_signbitl=no
19437 rm -f core conftest.err conftest.$ac_objext \
19438 conftest$ac_exeext conftest.$ac_ext
19439 LIBS=$ac_check_lib_save_LIBS
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitl" >&5
19442 $as_echo "$ac_cv_lib_m_signbitl" >&6; }
19443 if test "x$ac_cv_lib_m_signbitl" = xyes; then :
19445 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
19447 else
19449 $as_echo "#undef HAVE_SIGNBITL" >>confdefs.h
19453 else
19454 if test "x$ac_cv_lib_m_signbitl" = xyes; then
19456 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
19458 elif test "x$ac_cv_func_signbitl" = xyes; then
19460 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
19462 else
19464 $as_echo "#undef HAVE_SIGNBITL" >>confdefs.h
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: libgm2 has finished checking target libc and libm contents." >&5
19471 $as_echo "$as_me: libgm2 has finished checking target libc and libm contents." >&6;}
19473 # We test the host here and later on check the target.
19475 # All known M2_HOST_OS values. This is the union of all host operating systems
19476 # supported by gm2.
19478 M2_SUPPORTED_HOST_OS="aix freebsd hurd linux netbsd openbsd solaris windows darwin"
19480 M2_HOST_OS=unknown
19482 case ${host} in
19483 *-*-darwin*) M2_HOST_OS=darwin ;;
19484 *-*-freebsd*) M2_HOST_OS=freebsd ;;
19485 *-*-linux*) M2_HOST_OS=linux ;;
19486 *-*-netbsd*) M2_HOST_OS=netbsd ;;
19487 *-*-openbsd*) M2_HOST_OS=openbsd ;;
19488 *-*-solaris2*) M2_HOST_OS=solaris ;;
19489 *-*-aix*) M2_HOST_OS=aix ;;
19490 *-*-gnu*) M2_HOST_OS=hurd ;;
19491 esac
19493 M2_TARGET_OS=unknown
19495 case ${target} in
19496 *-*-darwin*) M2_TARGET_OS=darwin ;;
19497 *-*-freebsd*) M2_TARGET_OS=freebsd ;;
19498 *-*-linux*) M2_TARGET_OS=linux ;;
19499 *-*-netbsd*) M2_TARGET_OS=netbsd ;;
19500 *-*-openbsd*) M2_TARGET_OS=openbsd ;;
19501 *-*-solaris2*) M2_TARGET_OS=solaris ;;
19502 *-*-aix*) M2_TARGET_OS=aix ;;
19503 *-*-gnu*) M2_TARGET_OS=hurd ;;
19504 esac
19506 # M2_HOST_OS=unknown
19507 if test x${M2_HOST_OS} = xunknown; then
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: unsupported host, will build a minimal m2 library" >&5
19509 $as_echo "$as_me: unsupported host, will build a minimal m2 library" >&6;}
19510 BUILD_PIMLIB=false
19511 BUILD_ISOLIB=false
19512 BUILD_CORLIB=false
19513 BUILD_LOGLIB=false
19514 else
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 library will be built on ${M2_HOST_OS}" >&5
19516 $as_echo "$as_me: m2 library will be built on ${M2_HOST_OS}" >&6;}
19517 BUILD_PIMLIB=true
19518 BUILD_ISOLIB=true
19519 BUILD_CORLIB=true
19520 BUILD_LOGLIB=true
19523 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
19526 # Propagate GM2_FOR_TARGET into Makefiles
19527 GM2_FOR_TARGET=${GM2_FOR_TARGET:-gcc}
19530 # Now we check the target as long as it is a supported host.
19531 # For some embedded targets we choose minimal runtime system which is
19532 # just enough to satisfy the linker targetting raw metal.
19533 if test x${M2_HOST_OS} != xunknown; then
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 library building for target ${target}" >&5
19535 $as_echo "$as_me: m2 library building for target ${target}" >&6;}
19536 case "$target" in
19538 avr25*-*-* | avr31*-*-* | avr35*-*-* | avr4*-*-* | avr5*-*-* | avr51*-*-* | avr6*-*-*)
19539 BUILD_PIMLIB=false
19540 BUILD_ISOLIB=false
19541 BUILD_CORLIB=false
19542 BUILD_LOGLIB=false
19545 avrxmega2*-*-* | avrxmega4*-*-* | avrxmega5*-*-* | avrxmega6*-*-* | avrxmega7*-*-*)
19546 BUILD_PIMLIB=false
19547 BUILD_ISOLIB=false
19548 BUILD_CORLIB=false
19549 BUILD_LOGLIB=false
19552 avr3-*-*)
19553 BUILD_PIMLIB=true
19554 BUILD_ISOLIB=true
19555 BUILD_CORLIB=true
19556 BUILD_LOGLIB=true
19558 esp32-*-*)
19559 BUILD_PIMLIB=false
19560 BUILD_ISOLIB=false
19561 BUILD_CORLIB=false
19562 BUILD_LOGLIB=false
19565 esac
19568 # GM2_MSG_RESULT issue a query message from the first parameter and a boolean result
19569 # in the second parameter is printed as a "yes" or "no".
19573 if test x${M2_HOST_OS} = xunknown; then
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 front end will only build minimal Modula-2 runtime library on this host" >&5
19575 $as_echo "$as_me: m2 front end will only build minimal Modula-2 runtime library on this host" >&6;}
19576 else
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build PIM libraries:" >&5
19579 $as_echo_n "checking m2 front end will build PIM libraries:... " >&6; }
19580 if test x${BUILD_PIMLIB} = xtrue; then
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19582 $as_echo "yes" >&6; }
19583 else
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19585 $as_echo "no" >&6; }
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build ISO libraries:" >&5
19590 $as_echo_n "checking m2 front end will build ISO libraries:... " >&6; }
19591 if test x${BUILD_ISOLIB} = xtrue; then
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19593 $as_echo "yes" >&6; }
19594 else
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19596 $as_echo "no" >&6; }
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build coroutine libraries:" >&5
19601 $as_echo_n "checking m2 front end will build coroutine libraries:... " >&6; }
19602 if test x${BUILD_CORLIB} = xtrue; then
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19604 $as_echo "yes" >&6; }
19605 else
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19607 $as_echo "no" >&6; }
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build Logitech compatability libraries:" >&5
19612 $as_echo_n "checking m2 front end will build Logitech compatability libraries:... " >&6; }
19613 if test x${BUILD_LOGLIB} = xtrue; then
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19615 $as_echo "yes" >&6; }
19616 else
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19618 $as_echo "no" >&6; }
19623 if test x$BUILD_PIMLIB = xtrue; then
19624 BUILD_PIMLIB_TRUE=
19625 BUILD_PIMLIB_FALSE='#'
19626 else
19627 BUILD_PIMLIB_TRUE='#'
19628 BUILD_PIMLIB_FALSE=
19631 if test x$BUILD_ISOLIB = xtrue; then
19632 BUILD_ISOLIB_TRUE=
19633 BUILD_ISOLIB_FALSE='#'
19634 else
19635 BUILD_ISOLIB_TRUE='#'
19636 BUILD_ISOLIB_FALSE=
19639 if test x$BUILD_CORLIB = xtrue; then
19640 BUILD_CORLIB_TRUE=
19641 BUILD_CORLIB_FALSE='#'
19642 else
19643 BUILD_CORLIB_TRUE='#'
19644 BUILD_CORLIB_FALSE=
19647 if test x$BUILD_LOGLIB = xtrue; then
19648 BUILD_LOGLIB_TRUE=
19649 BUILD_LOGLIB_FALSE='#'
19650 else
19651 BUILD_LOGLIB_TRUE='#'
19652 BUILD_LOGLIB_FALSE=
19655 if test x$M2_TARGET_OS = xdarwin; then
19656 TARGET_DARWIN_TRUE=
19657 TARGET_DARWIN_FALSE='#'
19658 else
19659 TARGET_DARWIN_TRUE='#'
19660 TARGET_DARWIN_FALSE=
19664 # Determine what GCC version number to use in filesystem paths.
19666 get_gcc_base_ver="cat"
19668 # Check whether --with-gcc-major-version-only was given.
19669 if test "${with_gcc_major_version_only+set}" = set; then :
19670 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
19671 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
19680 ac_config_files="$ac_config_files Makefile"
19683 ac_config_files="$ac_config_files libm2min/Makefile libm2pim/Makefile libm2iso/Makefile libm2cor/Makefile libm2log/Makefile"
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: libgm2 has been configured." >&5
19687 $as_echo "$as_me: libgm2 has been configured." >&6;}
19689 cat >confcache <<\_ACEOF
19690 # This file is a shell script that caches the results of configure
19691 # tests run on this system so they can be shared between configure
19692 # scripts and configure runs, see configure's option --config-cache.
19693 # It is not useful on other systems. If it contains results you don't
19694 # want to keep, you may remove or edit it.
19696 # config.status only pays attention to the cache file if you give it
19697 # the --recheck option to rerun configure.
19699 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19700 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19701 # following values.
19703 _ACEOF
19705 # The following way of writing the cache mishandles newlines in values,
19706 # but we know of no workaround that is simple, portable, and efficient.
19707 # So, we kill variables containing newlines.
19708 # Ultrix sh set writes to stderr and can't be redirected directly,
19709 # and sets the high bit in the cache file unless we assign to the vars.
19711 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19712 eval ac_val=\$$ac_var
19713 case $ac_val in #(
19714 *${as_nl}*)
19715 case $ac_var in #(
19716 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19717 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19718 esac
19719 case $ac_var in #(
19720 _ | IFS | as_nl) ;; #(
19721 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19722 *) { eval $ac_var=; unset $ac_var;} ;;
19723 esac ;;
19724 esac
19725 done
19727 (set) 2>&1 |
19728 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19729 *${as_nl}ac_space=\ *)
19730 # `set' does not quote correctly, so add quotes: double-quote
19731 # substitution turns \\\\ into \\, and sed turns \\ into \.
19732 sed -n \
19733 "s/'/'\\\\''/g;
19734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19735 ;; #(
19737 # `set' quotes correctly as required by POSIX, so do not add quotes.
19738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19740 esac |
19741 sort
19743 sed '
19744 /^ac_cv_env_/b end
19745 t clear
19746 :clear
19747 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19748 t end
19749 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19750 :end' >>confcache
19751 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19752 if test -w "$cache_file"; then
19753 if test "x$cache_file" != "x/dev/null"; then
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19755 $as_echo "$as_me: updating cache $cache_file" >&6;}
19756 if test ! -f "$cache_file" || test -h "$cache_file"; then
19757 cat confcache >"$cache_file"
19758 else
19759 case $cache_file in #(
19760 */* | ?:*)
19761 mv -f confcache "$cache_file"$$ &&
19762 mv -f "$cache_file"$$ "$cache_file" ;; #(
19764 mv -f confcache "$cache_file" ;;
19765 esac
19768 else
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19770 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19773 rm -f confcache
19775 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19776 # Let make expand exec_prefix.
19777 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19779 DEFS=-DHAVE_CONFIG_H
19781 ac_libobjs=
19782 ac_ltlibobjs=
19784 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19785 # 1. Remove the extension, and $U if already installed.
19786 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19787 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19788 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19789 # will be set to the directory where LIBOBJS objects are built.
19790 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19791 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19792 done
19793 LIBOBJS=$ac_libobjs
19795 LTLIBOBJS=$ac_ltlibobjs
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19799 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19800 if test -n "$am_sleep_pid"; then
19801 # Hide warnings about reused PIDs.
19802 wait $am_sleep_pid 2>/dev/null
19804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19805 $as_echo "done" >&6; }
19806 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19807 as_fn_error $? "conditional \"AMDEP\" was never defined.
19808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19810 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19811 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19814 if test -n "$EXEEXT"; then
19815 am__EXEEXT_TRUE=
19816 am__EXEEXT_FALSE='#'
19817 else
19818 am__EXEEXT_TRUE='#'
19819 am__EXEEXT_FALSE=
19822 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19823 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19826 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19827 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19830 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
19831 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
19832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19834 if test -z "${BUILD_PIMLIB_TRUE}" && test -z "${BUILD_PIMLIB_FALSE}"; then
19835 as_fn_error $? "conditional \"BUILD_PIMLIB\" was never defined.
19836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19838 if test -z "${BUILD_ISOLIB_TRUE}" && test -z "${BUILD_ISOLIB_FALSE}"; then
19839 as_fn_error $? "conditional \"BUILD_ISOLIB\" was never defined.
19840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19842 if test -z "${BUILD_CORLIB_TRUE}" && test -z "${BUILD_CORLIB_FALSE}"; then
19843 as_fn_error $? "conditional \"BUILD_CORLIB\" was never defined.
19844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19846 if test -z "${BUILD_LOGLIB_TRUE}" && test -z "${BUILD_LOGLIB_FALSE}"; then
19847 as_fn_error $? "conditional \"BUILD_LOGLIB\" was never defined.
19848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19850 if test -z "${TARGET_DARWIN_TRUE}" && test -z "${TARGET_DARWIN_FALSE}"; then
19851 as_fn_error $? "conditional \"TARGET_DARWIN\" was never defined.
19852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19855 : "${CONFIG_STATUS=./config.status}"
19856 ac_write_fail=0
19857 ac_clean_files_save=$ac_clean_files
19858 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19860 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19861 as_write_fail=0
19862 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19863 #! $SHELL
19864 # Generated by $as_me.
19865 # Run this file to recreate the current configuration.
19866 # Compiler output produced by configure, useful for debugging
19867 # configure, is in config.log if it exists.
19869 debug=false
19870 ac_cs_recheck=false
19871 ac_cs_silent=false
19873 SHELL=\${CONFIG_SHELL-$SHELL}
19874 export SHELL
19875 _ASEOF
19876 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19877 ## -------------------- ##
19878 ## M4sh Initialization. ##
19879 ## -------------------- ##
19881 # Be more Bourne compatible
19882 DUALCASE=1; export DUALCASE # for MKS sh
19883 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19884 emulate sh
19885 NULLCMD=:
19886 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19887 # is contrary to our usage. Disable this feature.
19888 alias -g '${1+"$@"}'='"$@"'
19889 setopt NO_GLOB_SUBST
19890 else
19891 case `(set -o) 2>/dev/null` in #(
19892 *posix*) :
19893 set -o posix ;; #(
19894 *) :
19896 esac
19900 as_nl='
19902 export as_nl
19903 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19904 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19905 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19906 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19907 # Prefer a ksh shell builtin over an external printf program on Solaris,
19908 # but without wasting forks for bash or zsh.
19909 if test -z "$BASH_VERSION$ZSH_VERSION" \
19910 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19911 as_echo='print -r --'
19912 as_echo_n='print -rn --'
19913 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19914 as_echo='printf %s\n'
19915 as_echo_n='printf %s'
19916 else
19917 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19918 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19919 as_echo_n='/usr/ucb/echo -n'
19920 else
19921 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19922 as_echo_n_body='eval
19923 arg=$1;
19924 case $arg in #(
19925 *"$as_nl"*)
19926 expr "X$arg" : "X\\(.*\\)$as_nl";
19927 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19928 esac;
19929 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19931 export as_echo_n_body
19932 as_echo_n='sh -c $as_echo_n_body as_echo'
19934 export as_echo_body
19935 as_echo='sh -c $as_echo_body as_echo'
19938 # The user is always right.
19939 if test "${PATH_SEPARATOR+set}" != set; then
19940 PATH_SEPARATOR=:
19941 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19942 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19943 PATH_SEPARATOR=';'
19948 # IFS
19949 # We need space, tab and new line, in precisely that order. Quoting is
19950 # there to prevent editors from complaining about space-tab.
19951 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19952 # splitting by setting IFS to empty value.)
19953 IFS=" "" $as_nl"
19955 # Find who we are. Look in the path if we contain no directory separator.
19956 as_myself=
19957 case $0 in #((
19958 *[\\/]* ) as_myself=$0 ;;
19959 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19960 for as_dir in $PATH
19962 IFS=$as_save_IFS
19963 test -z "$as_dir" && as_dir=.
19964 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19965 done
19966 IFS=$as_save_IFS
19969 esac
19970 # We did not find ourselves, most probably we were run as `sh COMMAND'
19971 # in which case we are not to be found in the path.
19972 if test "x$as_myself" = x; then
19973 as_myself=$0
19975 if test ! -f "$as_myself"; then
19976 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19977 exit 1
19980 # Unset variables that we do not need and which cause bugs (e.g. in
19981 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19982 # suppresses any "Segmentation fault" message there. '((' could
19983 # trigger a bug in pdksh 5.2.14.
19984 for as_var in BASH_ENV ENV MAIL MAILPATH
19985 do eval test x\${$as_var+set} = xset \
19986 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19987 done
19988 PS1='$ '
19989 PS2='> '
19990 PS4='+ '
19992 # NLS nuisances.
19993 LC_ALL=C
19994 export LC_ALL
19995 LANGUAGE=C
19996 export LANGUAGE
19998 # CDPATH.
19999 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20002 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20003 # ----------------------------------------
20004 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20005 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20006 # script with STATUS, using 1 if that was 0.
20007 as_fn_error ()
20009 as_status=$1; test $as_status -eq 0 && as_status=1
20010 if test "$4"; then
20011 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20012 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20014 $as_echo "$as_me: error: $2" >&2
20015 as_fn_exit $as_status
20016 } # as_fn_error
20019 # as_fn_set_status STATUS
20020 # -----------------------
20021 # Set $? to STATUS, without forking.
20022 as_fn_set_status ()
20024 return $1
20025 } # as_fn_set_status
20027 # as_fn_exit STATUS
20028 # -----------------
20029 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20030 as_fn_exit ()
20032 set +e
20033 as_fn_set_status $1
20034 exit $1
20035 } # as_fn_exit
20037 # as_fn_unset VAR
20038 # ---------------
20039 # Portably unset VAR.
20040 as_fn_unset ()
20042 { eval $1=; unset $1;}
20044 as_unset=as_fn_unset
20045 # as_fn_append VAR VALUE
20046 # ----------------------
20047 # Append the text in VALUE to the end of the definition contained in VAR. Take
20048 # advantage of any shell optimizations that allow amortized linear growth over
20049 # repeated appends, instead of the typical quadratic growth present in naive
20050 # implementations.
20051 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20052 eval 'as_fn_append ()
20054 eval $1+=\$2
20056 else
20057 as_fn_append ()
20059 eval $1=\$$1\$2
20061 fi # as_fn_append
20063 # as_fn_arith ARG...
20064 # ------------------
20065 # Perform arithmetic evaluation on the ARGs, and store the result in the
20066 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20067 # must be portable across $(()) and expr.
20068 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20069 eval 'as_fn_arith ()
20071 as_val=$(( $* ))
20073 else
20074 as_fn_arith ()
20076 as_val=`expr "$@" || test $? -eq 1`
20078 fi # as_fn_arith
20081 if expr a : '\(a\)' >/dev/null 2>&1 &&
20082 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20083 as_expr=expr
20084 else
20085 as_expr=false
20088 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20089 as_basename=basename
20090 else
20091 as_basename=false
20094 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20095 as_dirname=dirname
20096 else
20097 as_dirname=false
20100 as_me=`$as_basename -- "$0" ||
20101 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20102 X"$0" : 'X\(//\)$' \| \
20103 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20104 $as_echo X/"$0" |
20105 sed '/^.*\/\([^/][^/]*\)\/*$/{
20106 s//\1/
20109 /^X\/\(\/\/\)$/{
20110 s//\1/
20113 /^X\/\(\/\).*/{
20114 s//\1/
20117 s/.*/./; q'`
20119 # Avoid depending upon Character Ranges.
20120 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20121 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20122 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20123 as_cr_digits='0123456789'
20124 as_cr_alnum=$as_cr_Letters$as_cr_digits
20126 ECHO_C= ECHO_N= ECHO_T=
20127 case `echo -n x` in #(((((
20128 -n*)
20129 case `echo 'xy\c'` in
20130 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20131 xy) ECHO_C='\c';;
20132 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20133 ECHO_T=' ';;
20134 esac;;
20136 ECHO_N='-n';;
20137 esac
20139 rm -f conf$$ conf$$.exe conf$$.file
20140 if test -d conf$$.dir; then
20141 rm -f conf$$.dir/conf$$.file
20142 else
20143 rm -f conf$$.dir
20144 mkdir conf$$.dir 2>/dev/null
20146 if (echo >conf$$.file) 2>/dev/null; then
20147 if ln -s conf$$.file conf$$ 2>/dev/null; then
20148 as_ln_s='ln -s'
20149 # ... but there are two gotchas:
20150 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20151 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20152 # In both cases, we have to default to `cp -pR'.
20153 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20154 as_ln_s='cp -pR'
20155 elif ln conf$$.file conf$$ 2>/dev/null; then
20156 as_ln_s=ln
20157 else
20158 as_ln_s='cp -pR'
20160 else
20161 as_ln_s='cp -pR'
20163 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20164 rmdir conf$$.dir 2>/dev/null
20167 # as_fn_mkdir_p
20168 # -------------
20169 # Create "$as_dir" as a directory, including parents if necessary.
20170 as_fn_mkdir_p ()
20173 case $as_dir in #(
20174 -*) as_dir=./$as_dir;;
20175 esac
20176 test -d "$as_dir" || eval $as_mkdir_p || {
20177 as_dirs=
20178 while :; do
20179 case $as_dir in #(
20180 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20181 *) as_qdir=$as_dir;;
20182 esac
20183 as_dirs="'$as_qdir' $as_dirs"
20184 as_dir=`$as_dirname -- "$as_dir" ||
20185 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20186 X"$as_dir" : 'X\(//\)[^/]' \| \
20187 X"$as_dir" : 'X\(//\)$' \| \
20188 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20189 $as_echo X"$as_dir" |
20190 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20191 s//\1/
20194 /^X\(\/\/\)[^/].*/{
20195 s//\1/
20198 /^X\(\/\/\)$/{
20199 s//\1/
20202 /^X\(\/\).*/{
20203 s//\1/
20206 s/.*/./; q'`
20207 test -d "$as_dir" && break
20208 done
20209 test -z "$as_dirs" || eval "mkdir $as_dirs"
20210 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20213 } # as_fn_mkdir_p
20214 if mkdir -p . 2>/dev/null; then
20215 as_mkdir_p='mkdir -p "$as_dir"'
20216 else
20217 test -d ./-p && rmdir ./-p
20218 as_mkdir_p=false
20222 # as_fn_executable_p FILE
20223 # -----------------------
20224 # Test if FILE is an executable regular file.
20225 as_fn_executable_p ()
20227 test -f "$1" && test -x "$1"
20228 } # as_fn_executable_p
20229 as_test_x='test -x'
20230 as_executable_p=as_fn_executable_p
20232 # Sed expression to map a string onto a valid CPP name.
20233 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20235 # Sed expression to map a string onto a valid variable name.
20236 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20239 exec 6>&1
20240 ## ----------------------------------- ##
20241 ## Main body of $CONFIG_STATUS script. ##
20242 ## ----------------------------------- ##
20243 _ASEOF
20244 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20247 # Save the log message, to keep $0 and so on meaningful, and to
20248 # report actual input values of CONFIG_FILES etc. instead of their
20249 # values after options handling.
20250 ac_log="
20251 This file was extended by package-unused $as_me version-unused, which was
20252 generated by GNU Autoconf 2.69. Invocation command line was
20254 CONFIG_FILES = $CONFIG_FILES
20255 CONFIG_HEADERS = $CONFIG_HEADERS
20256 CONFIG_LINKS = $CONFIG_LINKS
20257 CONFIG_COMMANDS = $CONFIG_COMMANDS
20258 $ $0 $@
20260 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20263 _ACEOF
20265 case $ac_config_files in *"
20266 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20267 esac
20269 case $ac_config_headers in *"
20270 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20271 esac
20274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20275 # Files that config.status was made for.
20276 config_files="$ac_config_files"
20277 config_headers="$ac_config_headers"
20278 config_commands="$ac_config_commands"
20280 _ACEOF
20282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20283 ac_cs_usage="\
20284 \`$as_me' instantiates files and other configuration actions
20285 from templates according to the current configuration. Unless the files
20286 and actions are specified as TAGs, all are instantiated by default.
20288 Usage: $0 [OPTION]... [TAG]...
20290 -h, --help print this help, then exit
20291 -V, --version print version number and configuration settings, then exit
20292 --config print configuration, then exit
20293 -q, --quiet, --silent
20294 do not print progress messages
20295 -d, --debug don't remove temporary files
20296 --recheck update $as_me by reconfiguring in the same conditions
20297 --file=FILE[:TEMPLATE]
20298 instantiate the configuration file FILE
20299 --header=FILE[:TEMPLATE]
20300 instantiate the configuration header FILE
20302 Configuration files:
20303 $config_files
20305 Configuration headers:
20306 $config_headers
20308 Configuration commands:
20309 $config_commands
20311 Report bugs to the package provider."
20313 _ACEOF
20314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20315 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20316 ac_cs_version="\\
20317 package-unused config.status version-unused
20318 configured by $0, generated by GNU Autoconf 2.69,
20319 with options \\"\$ac_cs_config\\"
20321 Copyright (C) 2012 Free Software Foundation, Inc.
20322 This config.status script is free software; the Free Software Foundation
20323 gives unlimited permission to copy, distribute and modify it."
20325 ac_pwd='$ac_pwd'
20326 srcdir='$srcdir'
20327 INSTALL='$INSTALL'
20328 MKDIR_P='$MKDIR_P'
20329 AWK='$AWK'
20330 test -n "\$AWK" || AWK=awk
20331 _ACEOF
20333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20334 # The default lists apply if the user does not specify any file.
20335 ac_need_defaults=:
20336 while test $# != 0
20338 case $1 in
20339 --*=?*)
20340 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20341 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20342 ac_shift=:
20344 --*=)
20345 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20346 ac_optarg=
20347 ac_shift=:
20350 ac_option=$1
20351 ac_optarg=$2
20352 ac_shift=shift
20354 esac
20356 case $ac_option in
20357 # Handling of the options.
20358 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20359 ac_cs_recheck=: ;;
20360 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20361 $as_echo "$ac_cs_version"; exit ;;
20362 --config | --confi | --conf | --con | --co | --c )
20363 $as_echo "$ac_cs_config"; exit ;;
20364 --debug | --debu | --deb | --de | --d | -d )
20365 debug=: ;;
20366 --file | --fil | --fi | --f )
20367 $ac_shift
20368 case $ac_optarg in
20369 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20370 '') as_fn_error $? "missing file argument" ;;
20371 esac
20372 as_fn_append CONFIG_FILES " '$ac_optarg'"
20373 ac_need_defaults=false;;
20374 --header | --heade | --head | --hea )
20375 $ac_shift
20376 case $ac_optarg in
20377 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20378 esac
20379 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20380 ac_need_defaults=false;;
20381 --he | --h)
20382 # Conflict between --help and --header
20383 as_fn_error $? "ambiguous option: \`$1'
20384 Try \`$0 --help' for more information.";;
20385 --help | --hel | -h )
20386 $as_echo "$ac_cs_usage"; exit ;;
20387 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20388 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20389 ac_cs_silent=: ;;
20391 # This is an error.
20392 -*) as_fn_error $? "unrecognized option: \`$1'
20393 Try \`$0 --help' for more information." ;;
20395 *) as_fn_append ac_config_targets " $1"
20396 ac_need_defaults=false ;;
20398 esac
20399 shift
20400 done
20402 ac_configure_extra_args=
20404 if $ac_cs_silent; then
20405 exec 6>/dev/null
20406 ac_configure_extra_args="$ac_configure_extra_args --silent"
20409 _ACEOF
20410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20411 if \$ac_cs_recheck; then
20412 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20413 shift
20414 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20415 CONFIG_SHELL='$SHELL'
20416 export CONFIG_SHELL
20417 exec "\$@"
20420 _ACEOF
20421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20422 exec 5>>config.log
20424 echo
20425 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20426 ## Running $as_me. ##
20427 _ASBOX
20428 $as_echo "$ac_log"
20429 } >&5
20431 _ACEOF
20432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20434 # INIT-COMMANDS
20437 srcdir="$srcdir"
20438 host="$host"
20439 target="$target"
20440 with_multisubdir="$with_multisubdir"
20441 with_multisrctop="$with_multisrctop"
20442 with_target_subdir="$with_target_subdir"
20443 ac_configure_args="${multilib_arg} ${ac_configure_args}"
20444 multi_basedir="$multi_basedir"
20445 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
20446 CC="$CC"
20447 CXX="$CXX"
20448 GFORTRAN="$GFORTRAN"
20449 GDC="$GDC"
20450 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20453 # The HP-UX ksh and POSIX shell print the target directory to stdout
20454 # if CDPATH is set.
20455 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20457 sed_quote_subst='$sed_quote_subst'
20458 double_quote_subst='$double_quote_subst'
20459 delay_variable_subst='$delay_variable_subst'
20460 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20461 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20462 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20463 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20464 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20465 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20466 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20467 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20468 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20469 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20470 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20471 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20472 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20473 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20474 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20475 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20476 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20477 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20478 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20479 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20480 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20481 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20482 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20483 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20484 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20485 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20486 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20487 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20488 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20489 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20490 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20491 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20492 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20493 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20494 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20495 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20496 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20497 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20498 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20499 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20500 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20501 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20502 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20503 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20504 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20505 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20506 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20507 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20508 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"`'
20509 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20510 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20511 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20512 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20513 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20514 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20515 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20516 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20517 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20518 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20519 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20520 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20521 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20522 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20523 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20524 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20525 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20526 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20527 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20528 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20529 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20530 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20531 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20532 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20533 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20534 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20535 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20536 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20537 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20538 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20539 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20540 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20541 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20542 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20543 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20544 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20545 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20546 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20547 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20548 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20549 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
20550 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20551 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20552 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20553 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20554 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20555 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20556 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20557 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20558 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20559 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20560 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20561 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20562 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20563 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20564 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20565 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20566 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20567 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20568 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20569 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20570 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20571 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20572 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20573 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20574 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20575 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20576 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20577 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20578 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20579 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20580 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20581 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20582 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20583 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20584 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20585 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20586 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20587 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20588 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20589 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20590 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20591 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20592 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20593 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20594 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20595 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20596 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20597 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20598 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20599 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20600 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20601 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20602 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20603 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20604 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20605 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20606 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20607 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20608 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20609 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20610 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20611 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20612 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
20613 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20614 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20615 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20616 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20617 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20618 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20619 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20620 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20621 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
20622 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20623 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20624 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20625 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20626 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20627 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20628 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20629 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20630 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20631 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20632 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20633 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20634 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20636 LTCC='$LTCC'
20637 LTCFLAGS='$LTCFLAGS'
20638 compiler='$compiler_DEFAULT'
20640 # A function that is used when there is no print builtin or printf.
20641 func_fallback_echo ()
20643 eval 'cat <<_LTECHO_EOF
20645 _LTECHO_EOF'
20648 # Quote evaled strings.
20649 for var in SHELL \
20650 ECHO \
20651 SED \
20652 GREP \
20653 EGREP \
20654 FGREP \
20655 LD \
20656 NM \
20657 LN_S \
20658 lt_SP2NL \
20659 lt_NL2SP \
20660 reload_flag \
20661 OBJDUMP \
20662 deplibs_check_method \
20663 file_magic_cmd \
20664 AR \
20665 AR_FLAGS \
20666 STRIP \
20667 RANLIB \
20668 CC \
20669 CFLAGS \
20670 compiler \
20671 lt_cv_sys_global_symbol_pipe \
20672 lt_cv_sys_global_symbol_to_cdecl \
20673 lt_cv_sys_global_symbol_to_c_name_address \
20674 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20675 lt_prog_compiler_no_builtin_flag \
20676 lt_prog_compiler_wl \
20677 lt_prog_compiler_pic \
20678 lt_prog_compiler_static \
20679 lt_cv_prog_compiler_c_o \
20680 need_locks \
20681 DSYMUTIL \
20682 NMEDIT \
20683 LIPO \
20684 OTOOL \
20685 OTOOL64 \
20686 shrext_cmds \
20687 export_dynamic_flag_spec \
20688 whole_archive_flag_spec \
20689 compiler_needs_object \
20690 with_gnu_ld \
20691 allow_undefined_flag \
20692 no_undefined_flag \
20693 hardcode_libdir_flag_spec \
20694 hardcode_libdir_flag_spec_ld \
20695 hardcode_libdir_separator \
20696 fix_srcfile_path \
20697 exclude_expsyms \
20698 include_expsyms \
20699 file_list_spec \
20700 variables_saved_for_relink \
20701 libname_spec \
20702 library_names_spec \
20703 soname_spec \
20704 install_override_mode \
20705 finish_eval \
20706 old_striplib \
20707 striplib \
20708 compiler_lib_search_dirs \
20709 predep_objects \
20710 postdep_objects \
20711 predeps \
20712 postdeps \
20713 compiler_lib_search_path \
20714 LD_CXX \
20715 reload_flag_CXX \
20716 compiler_CXX \
20717 lt_prog_compiler_no_builtin_flag_CXX \
20718 lt_prog_compiler_wl_CXX \
20719 lt_prog_compiler_pic_CXX \
20720 lt_prog_compiler_static_CXX \
20721 lt_cv_prog_compiler_c_o_CXX \
20722 export_dynamic_flag_spec_CXX \
20723 whole_archive_flag_spec_CXX \
20724 compiler_needs_object_CXX \
20725 with_gnu_ld_CXX \
20726 allow_undefined_flag_CXX \
20727 no_undefined_flag_CXX \
20728 hardcode_libdir_flag_spec_CXX \
20729 hardcode_libdir_flag_spec_ld_CXX \
20730 hardcode_libdir_separator_CXX \
20731 fix_srcfile_path_CXX \
20732 exclude_expsyms_CXX \
20733 include_expsyms_CXX \
20734 file_list_spec_CXX \
20735 compiler_lib_search_dirs_CXX \
20736 predep_objects_CXX \
20737 postdep_objects_CXX \
20738 predeps_CXX \
20739 postdeps_CXX \
20740 compiler_lib_search_path_CXX; do
20741 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20742 *[\\\\\\\`\\"\\\$]*)
20743 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20746 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20748 esac
20749 done
20751 # Double-quote double-evaled strings.
20752 for var in reload_cmds \
20753 old_postinstall_cmds \
20754 old_postuninstall_cmds \
20755 old_archive_cmds \
20756 extract_expsyms_cmds \
20757 old_archive_from_new_cmds \
20758 old_archive_from_expsyms_cmds \
20759 archive_cmds \
20760 archive_expsym_cmds \
20761 module_cmds \
20762 module_expsym_cmds \
20763 export_symbols_cmds \
20764 prelink_cmds \
20765 postinstall_cmds \
20766 postuninstall_cmds \
20767 finish_cmds \
20768 sys_lib_search_path_spec \
20769 sys_lib_dlsearch_path_spec \
20770 reload_cmds_CXX \
20771 old_archive_cmds_CXX \
20772 old_archive_from_new_cmds_CXX \
20773 old_archive_from_expsyms_cmds_CXX \
20774 archive_cmds_CXX \
20775 archive_expsym_cmds_CXX \
20776 module_cmds_CXX \
20777 module_expsym_cmds_CXX \
20778 export_symbols_cmds_CXX \
20779 prelink_cmds_CXX; do
20780 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20781 *[\\\\\\\`\\"\\\$]*)
20782 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20785 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20787 esac
20788 done
20790 ac_aux_dir='$ac_aux_dir'
20791 xsi_shell='$xsi_shell'
20792 lt_shell_append='$lt_shell_append'
20794 # See if we are running on zsh, and set the options which allow our
20795 # commands through without removal of \ escapes INIT.
20796 if test -n "\${ZSH_VERSION+set}" ; then
20797 setopt NO_GLOB_SUBST
20801 PACKAGE='$PACKAGE'
20802 VERSION='$VERSION'
20803 TIMESTAMP='$TIMESTAMP'
20804 RM='$RM'
20805 ofile='$ofile'
20812 _ACEOF
20814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20816 # Handling of arguments.
20817 for ac_config_target in $ac_config_targets
20819 case $ac_config_target in
20820 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20821 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
20822 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20823 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20824 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20825 "libm2min/Makefile") CONFIG_FILES="$CONFIG_FILES libm2min/Makefile" ;;
20826 "libm2pim/Makefile") CONFIG_FILES="$CONFIG_FILES libm2pim/Makefile" ;;
20827 "libm2iso/Makefile") CONFIG_FILES="$CONFIG_FILES libm2iso/Makefile" ;;
20828 "libm2cor/Makefile") CONFIG_FILES="$CONFIG_FILES libm2cor/Makefile" ;;
20829 "libm2log/Makefile") CONFIG_FILES="$CONFIG_FILES libm2log/Makefile" ;;
20831 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20832 esac
20833 done
20836 # If the user did not use the arguments to specify the items to instantiate,
20837 # then the envvar interface is used. Set only those that are not.
20838 # We use the long form for the default assignment because of an extremely
20839 # bizarre bug on SunOS 4.1.3.
20840 if $ac_need_defaults; then
20841 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20842 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20843 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20846 # Have a temporary directory for convenience. Make it in the build tree
20847 # simply because there is no reason against having it here, and in addition,
20848 # creating and moving files from /tmp can sometimes cause problems.
20849 # Hook for its removal unless debugging.
20850 # Note that there is a small window in which the directory will not be cleaned:
20851 # after its creation but before its name has been assigned to `$tmp'.
20852 $debug ||
20854 tmp= ac_tmp=
20855 trap 'exit_status=$?
20856 : "${ac_tmp:=$tmp}"
20857 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20859 trap 'as_fn_exit 1' 1 2 13 15
20861 # Create a (secure) tmp directory for tmp files.
20864 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20865 test -d "$tmp"
20866 } ||
20868 tmp=./conf$$-$RANDOM
20869 (umask 077 && mkdir "$tmp")
20870 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20871 ac_tmp=$tmp
20873 # Set up the scripts for CONFIG_FILES section.
20874 # No need to generate them if there are no CONFIG_FILES.
20875 # This happens for instance with `./config.status config.h'.
20876 if test -n "$CONFIG_FILES"; then
20879 ac_cr=`echo X | tr X '\015'`
20880 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20881 # But we know of no other shell where ac_cr would be empty at this
20882 # point, so we can use a bashism as a fallback.
20883 if test "x$ac_cr" = x; then
20884 eval ac_cr=\$\'\\r\'
20886 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20887 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20888 ac_cs_awk_cr='\\r'
20889 else
20890 ac_cs_awk_cr=$ac_cr
20893 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20894 _ACEOF
20898 echo "cat >conf$$subs.awk <<_ACEOF" &&
20899 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20900 echo "_ACEOF"
20901 } >conf$$subs.sh ||
20902 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20903 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20904 ac_delim='%!_!# '
20905 for ac_last_try in false false false false false :; do
20906 . ./conf$$subs.sh ||
20907 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20909 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20910 if test $ac_delim_n = $ac_delim_num; then
20911 break
20912 elif $ac_last_try; then
20913 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20914 else
20915 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20917 done
20918 rm -f conf$$subs.sh
20920 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20921 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20922 _ACEOF
20923 sed -n '
20925 s/^/S["/; s/!.*/"]=/
20928 s/^[^!]*!//
20929 :repl
20930 t repl
20931 s/'"$ac_delim"'$//
20932 t delim
20935 s/\(.\{148\}\)..*/\1/
20936 t more1
20937 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20940 b repl
20941 :more1
20942 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20945 s/.\{148\}//
20946 t nl
20947 :delim
20949 s/\(.\{148\}\)..*/\1/
20950 t more2
20951 s/["\\]/\\&/g; s/^/"/; s/$/"/
20954 :more2
20955 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20958 s/.\{148\}//
20959 t delim
20960 ' <conf$$subs.awk | sed '
20961 /^[^""]/{
20963 s/\n//
20965 ' >>$CONFIG_STATUS || ac_write_fail=1
20966 rm -f conf$$subs.awk
20967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20968 _ACAWK
20969 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20970 for (key in S) S_is_set[key] = 1
20971 FS = "\a"
20975 line = $ 0
20976 nfields = split(line, field, "@")
20977 substed = 0
20978 len = length(field[1])
20979 for (i = 2; i < nfields; i++) {
20980 key = field[i]
20981 keylen = length(key)
20982 if (S_is_set[key]) {
20983 value = S[key]
20984 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20985 len += length(value) + length(field[++i])
20986 substed = 1
20987 } else
20988 len += 1 + keylen
20991 print line
20994 _ACAWK
20995 _ACEOF
20996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20997 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20998 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20999 else
21001 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21002 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21003 _ACEOF
21005 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21006 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21007 # trailing colons and then remove the whole line if VPATH becomes empty
21008 # (actually we leave an empty line to preserve line numbers).
21009 if test "x$srcdir" = x.; then
21010 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21012 s///
21013 s/^/:/
21014 s/[ ]*$/:/
21015 s/:\$(srcdir):/:/g
21016 s/:\${srcdir}:/:/g
21017 s/:@srcdir@:/:/g
21018 s/^:*//
21019 s/:*$//
21021 s/\(=[ ]*\).*/\1/
21023 s/\n//
21024 s/^[^=]*=[ ]*$//
21028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21029 fi # test -n "$CONFIG_FILES"
21031 # Set up the scripts for CONFIG_HEADERS section.
21032 # No need to generate them if there are no CONFIG_HEADERS.
21033 # This happens for instance with `./config.status Makefile'.
21034 if test -n "$CONFIG_HEADERS"; then
21035 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21036 BEGIN {
21037 _ACEOF
21039 # Transform confdefs.h into an awk script `defines.awk', embedded as
21040 # here-document in config.status, that substitutes the proper values into
21041 # config.h.in to produce config.h.
21043 # Create a delimiter string that does not exist in confdefs.h, to ease
21044 # handling of long lines.
21045 ac_delim='%!_!# '
21046 for ac_last_try in false false :; do
21047 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21048 if test -z "$ac_tt"; then
21049 break
21050 elif $ac_last_try; then
21051 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21052 else
21053 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21055 done
21057 # For the awk script, D is an array of macro values keyed by name,
21058 # likewise P contains macro parameters if any. Preserve backslash
21059 # newline sequences.
21061 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21062 sed -n '
21063 s/.\{148\}/&'"$ac_delim"'/g
21064 t rset
21065 :rset
21066 s/^[ ]*#[ ]*define[ ][ ]*/ /
21067 t def
21069 :def
21070 s/\\$//
21071 t bsnl
21072 s/["\\]/\\&/g
21073 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21074 D["\1"]=" \3"/p
21075 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21077 :bsnl
21078 s/["\\]/\\&/g
21079 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21080 D["\1"]=" \3\\\\\\n"\\/p
21081 t cont
21082 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21083 t cont
21085 :cont
21087 s/.\{148\}/&'"$ac_delim"'/g
21088 t clear
21089 :clear
21090 s/\\$//
21091 t bsnlc
21092 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21094 :bsnlc
21095 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21096 b cont
21097 ' <confdefs.h | sed '
21098 s/'"$ac_delim"'/"\\\
21099 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21102 for (key in D) D_is_set[key] = 1
21103 FS = "\a"
21105 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21106 line = \$ 0
21107 split(line, arg, " ")
21108 if (arg[1] == "#") {
21109 defundef = arg[2]
21110 mac1 = arg[3]
21111 } else {
21112 defundef = substr(arg[1], 2)
21113 mac1 = arg[2]
21115 split(mac1, mac2, "(") #)
21116 macro = mac2[1]
21117 prefix = substr(line, 1, index(line, defundef) - 1)
21118 if (D_is_set[macro]) {
21119 # Preserve the white space surrounding the "#".
21120 print prefix "define", macro P[macro] D[macro]
21121 next
21122 } else {
21123 # Replace #undef with comments. This is necessary, for example,
21124 # in the case of _POSIX_SOURCE, which is predefined and required
21125 # on some systems where configure will not decide to define it.
21126 if (defundef == "undef") {
21127 print "/*", prefix defundef, macro, "*/"
21128 next
21132 { print }
21133 _ACAWK
21134 _ACEOF
21135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21136 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21137 fi # test -n "$CONFIG_HEADERS"
21140 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21141 shift
21142 for ac_tag
21144 case $ac_tag in
21145 :[FHLC]) ac_mode=$ac_tag; continue;;
21146 esac
21147 case $ac_mode$ac_tag in
21148 :[FHL]*:*);;
21149 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21150 :[FH]-) ac_tag=-:-;;
21151 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21152 esac
21153 ac_save_IFS=$IFS
21154 IFS=:
21155 set x $ac_tag
21156 IFS=$ac_save_IFS
21157 shift
21158 ac_file=$1
21159 shift
21161 case $ac_mode in
21162 :L) ac_source=$1;;
21163 :[FH])
21164 ac_file_inputs=
21165 for ac_f
21167 case $ac_f in
21168 -) ac_f="$ac_tmp/stdin";;
21169 *) # Look for the file first in the build tree, then in the source tree
21170 # (if the path is not absolute). The absolute path cannot be DOS-style,
21171 # because $ac_f cannot contain `:'.
21172 test -f "$ac_f" ||
21173 case $ac_f in
21174 [\\/$]*) false;;
21175 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21176 esac ||
21177 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21178 esac
21179 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21180 as_fn_append ac_file_inputs " '$ac_f'"
21181 done
21183 # Let's still pretend it is `configure' which instantiates (i.e., don't
21184 # use $as_me), people would be surprised to read:
21185 # /* config.h. Generated by config.status. */
21186 configure_input='Generated from '`
21187 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21188 `' by configure.'
21189 if test x"$ac_file" != x-; then
21190 configure_input="$ac_file. $configure_input"
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21192 $as_echo "$as_me: creating $ac_file" >&6;}
21194 # Neutralize special characters interpreted by sed in replacement strings.
21195 case $configure_input in #(
21196 *\&* | *\|* | *\\* )
21197 ac_sed_conf_input=`$as_echo "$configure_input" |
21198 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21199 *) ac_sed_conf_input=$configure_input;;
21200 esac
21202 case $ac_tag in
21203 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21204 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21205 esac
21207 esac
21209 ac_dir=`$as_dirname -- "$ac_file" ||
21210 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21211 X"$ac_file" : 'X\(//\)[^/]' \| \
21212 X"$ac_file" : 'X\(//\)$' \| \
21213 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21214 $as_echo X"$ac_file" |
21215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21216 s//\1/
21219 /^X\(\/\/\)[^/].*/{
21220 s//\1/
21223 /^X\(\/\/\)$/{
21224 s//\1/
21227 /^X\(\/\).*/{
21228 s//\1/
21231 s/.*/./; q'`
21232 as_dir="$ac_dir"; as_fn_mkdir_p
21233 ac_builddir=.
21235 case "$ac_dir" in
21236 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21238 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21239 # A ".." for each directory in $ac_dir_suffix.
21240 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21241 case $ac_top_builddir_sub in
21242 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21243 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21244 esac ;;
21245 esac
21246 ac_abs_top_builddir=$ac_pwd
21247 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21248 # for backward compatibility:
21249 ac_top_builddir=$ac_top_build_prefix
21251 case $srcdir in
21252 .) # We are building in place.
21253 ac_srcdir=.
21254 ac_top_srcdir=$ac_top_builddir_sub
21255 ac_abs_top_srcdir=$ac_pwd ;;
21256 [\\/]* | ?:[\\/]* ) # Absolute name.
21257 ac_srcdir=$srcdir$ac_dir_suffix;
21258 ac_top_srcdir=$srcdir
21259 ac_abs_top_srcdir=$srcdir ;;
21260 *) # Relative name.
21261 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21262 ac_top_srcdir=$ac_top_build_prefix$srcdir
21263 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21264 esac
21265 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21268 case $ac_mode in
21271 # CONFIG_FILE
21274 case $INSTALL in
21275 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21276 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21277 esac
21278 ac_MKDIR_P=$MKDIR_P
21279 case $MKDIR_P in
21280 [\\/$]* | ?:[\\/]* ) ;;
21281 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21282 esac
21283 _ACEOF
21285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21286 # If the template does not know about datarootdir, expand it.
21287 # FIXME: This hack should be removed a few years after 2.60.
21288 ac_datarootdir_hack=; ac_datarootdir_seen=
21289 ac_sed_dataroot='
21290 /datarootdir/ {
21294 /@datadir@/p
21295 /@docdir@/p
21296 /@infodir@/p
21297 /@localedir@/p
21298 /@mandir@/p'
21299 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21300 *datarootdir*) ac_datarootdir_seen=yes;;
21301 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21303 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21304 _ACEOF
21305 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21306 ac_datarootdir_hack='
21307 s&@datadir@&$datadir&g
21308 s&@docdir@&$docdir&g
21309 s&@infodir@&$infodir&g
21310 s&@localedir@&$localedir&g
21311 s&@mandir@&$mandir&g
21312 s&\\\${datarootdir}&$datarootdir&g' ;;
21313 esac
21314 _ACEOF
21316 # Neutralize VPATH when `$srcdir' = `.'.
21317 # Shell code in configure.ac might set extrasub.
21318 # FIXME: do we really want to maintain this feature?
21319 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21320 ac_sed_extra="$ac_vpsub
21321 $extrasub
21322 _ACEOF
21323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21325 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21326 s|@configure_input@|$ac_sed_conf_input|;t t
21327 s&@top_builddir@&$ac_top_builddir_sub&;t t
21328 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21329 s&@srcdir@&$ac_srcdir&;t t
21330 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21331 s&@top_srcdir@&$ac_top_srcdir&;t t
21332 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21333 s&@builddir@&$ac_builddir&;t t
21334 s&@abs_builddir@&$ac_abs_builddir&;t t
21335 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21336 s&@INSTALL@&$ac_INSTALL&;t t
21337 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21338 $ac_datarootdir_hack
21340 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21341 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21343 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21344 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21345 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21346 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21348 which seems to be undefined. Please make sure it is defined" >&5
21349 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21350 which seems to be undefined. Please make sure it is defined" >&2;}
21352 rm -f "$ac_tmp/stdin"
21353 case $ac_file in
21354 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21355 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21356 esac \
21357 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21361 # CONFIG_HEADER
21363 if test x"$ac_file" != x-; then
21365 $as_echo "/* $configure_input */" \
21366 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21367 } >"$ac_tmp/config.h" \
21368 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21369 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21370 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21371 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21372 else
21373 rm -f "$ac_file"
21374 mv "$ac_tmp/config.h" "$ac_file" \
21375 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21377 else
21378 $as_echo "/* $configure_input */" \
21379 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21380 || as_fn_error $? "could not create -" "$LINENO" 5
21382 # Compute "$ac_file"'s index in $config_headers.
21383 _am_arg="$ac_file"
21384 _am_stamp_count=1
21385 for _am_header in $config_headers :; do
21386 case $_am_header in
21387 $_am_arg | $_am_arg:* )
21388 break ;;
21390 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21391 esac
21392 done
21393 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21394 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21395 X"$_am_arg" : 'X\(//\)[^/]' \| \
21396 X"$_am_arg" : 'X\(//\)$' \| \
21397 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21398 $as_echo X"$_am_arg" |
21399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21400 s//\1/
21403 /^X\(\/\/\)[^/].*/{
21404 s//\1/
21407 /^X\(\/\/\)$/{
21408 s//\1/
21411 /^X\(\/\).*/{
21412 s//\1/
21415 s/.*/./; q'`/stamp-h$_am_stamp_count
21418 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21419 $as_echo "$as_me: executing $ac_file commands" >&6;}
21421 esac
21424 case $ac_file$ac_mode in
21425 "default-1":C)
21426 # Only add multilib support code if we just rebuilt the top-level
21427 # Makefile.
21428 case " $CONFIG_FILES " in
21429 *" Makefile "*)
21430 ac_file=Makefile . ${multi_basedir}/config-ml.in
21432 esac ;;
21433 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21434 # Older Autoconf quotes --file arguments for eval, but not when files
21435 # are listed without --file. Let's play safe and only enable the eval
21436 # if we detect the quoting.
21437 case $CONFIG_FILES in
21438 *\'*) eval set x "$CONFIG_FILES" ;;
21439 *) set x $CONFIG_FILES ;;
21440 esac
21441 shift
21442 for mf
21444 # Strip MF so we end up with the name of the file.
21445 mf=`echo "$mf" | sed -e 's/:.*$//'`
21446 # Check whether this is an Automake generated Makefile or not.
21447 # We used to match only the files named 'Makefile.in', but
21448 # some people rename them; so instead we look at the file content.
21449 # Grep'ing the first line is not enough: some people post-process
21450 # each Makefile.in and add a new line on top of each file to say so.
21451 # Grep'ing the whole file is not good either: AIX grep has a line
21452 # limit of 2048, but all sed's we know have understand at least 4000.
21453 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21454 dirpart=`$as_dirname -- "$mf" ||
21455 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21456 X"$mf" : 'X\(//\)[^/]' \| \
21457 X"$mf" : 'X\(//\)$' \| \
21458 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21459 $as_echo X"$mf" |
21460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21461 s//\1/
21464 /^X\(\/\/\)[^/].*/{
21465 s//\1/
21468 /^X\(\/\/\)$/{
21469 s//\1/
21472 /^X\(\/\).*/{
21473 s//\1/
21476 s/.*/./; q'`
21477 else
21478 continue
21480 # Extract the definition of DEPDIR, am__include, and am__quote
21481 # from the Makefile without running 'make'.
21482 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21483 test -z "$DEPDIR" && continue
21484 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21485 test -z "$am__include" && continue
21486 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21487 # Find all dependency output files, they are included files with
21488 # $(DEPDIR) in their names. We invoke sed twice because it is the
21489 # simplest approach to changing $(DEPDIR) to its actual value in the
21490 # expansion.
21491 for file in `sed -n "
21492 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21493 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21494 # Make sure the directory exists.
21495 test -f "$dirpart/$file" && continue
21496 fdir=`$as_dirname -- "$file" ||
21497 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21498 X"$file" : 'X\(//\)[^/]' \| \
21499 X"$file" : 'X\(//\)$' \| \
21500 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21501 $as_echo X"$file" |
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 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21520 # echo "creating $dirpart/$file"
21521 echo '# dummy' > "$dirpart/$file"
21522 done
21523 done
21526 "libtool":C)
21528 # See if we are running on zsh, and set the options which allow our
21529 # commands through without removal of \ escapes.
21530 if test -n "${ZSH_VERSION+set}" ; then
21531 setopt NO_GLOB_SUBST
21534 cfgfile="${ofile}T"
21535 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21536 $RM "$cfgfile"
21538 cat <<_LT_EOF >> "$cfgfile"
21539 #! $SHELL
21541 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21542 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21543 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21544 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21546 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21547 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
21548 # Written by Gordon Matzigkeit, 1996
21550 # This file is part of GNU Libtool.
21552 # GNU Libtool is free software; you can redistribute it and/or
21553 # modify it under the terms of the GNU General Public License as
21554 # published by the Free Software Foundation; either version 2 of
21555 # the License, or (at your option) any later version.
21557 # As a special exception to the GNU General Public License,
21558 # if you distribute this file as part of a program or library that
21559 # is built using GNU Libtool, you may include this file under the
21560 # same distribution terms that you use for the rest of that program.
21562 # GNU Libtool is distributed in the hope that it will be useful,
21563 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21564 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21565 # GNU General Public License for more details.
21567 # You should have received a copy of the GNU General Public License
21568 # along with GNU Libtool; see the file COPYING. If not, a copy
21569 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21570 # obtained by writing to the Free Software Foundation, Inc.,
21571 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21574 # The names of the tagged configurations supported by this script.
21575 available_tags="CXX "
21577 # ### BEGIN LIBTOOL CONFIG
21579 # Which release of libtool.m4 was used?
21580 macro_version=$macro_version
21581 macro_revision=$macro_revision
21583 # Whether or not to build shared libraries.
21584 build_libtool_libs=$enable_shared
21586 # Whether or not to build static libraries.
21587 build_old_libs=$enable_static
21589 # What type of objects to build.
21590 pic_mode=$pic_mode
21592 # Whether or not to optimize for fast installation.
21593 fast_install=$enable_fast_install
21595 # Shell to use when invoking shell scripts.
21596 SHELL=$lt_SHELL
21598 # An echo program that protects backslashes.
21599 ECHO=$lt_ECHO
21601 # The host system.
21602 host_alias=$host_alias
21603 host=$host
21604 host_os=$host_os
21606 # The build system.
21607 build_alias=$build_alias
21608 build=$build
21609 build_os=$build_os
21611 # A sed program that does not truncate output.
21612 SED=$lt_SED
21614 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21615 Xsed="\$SED -e 1s/^X//"
21617 # A grep program that handles long lines.
21618 GREP=$lt_GREP
21620 # An ERE matcher.
21621 EGREP=$lt_EGREP
21623 # A literal string matcher.
21624 FGREP=$lt_FGREP
21626 # A BSD- or MS-compatible name lister.
21627 NM=$lt_NM
21629 # Whether we need soft or hard links.
21630 LN_S=$lt_LN_S
21632 # What is the maximum length of a command?
21633 max_cmd_len=$max_cmd_len
21635 # Object file suffix (normally "o").
21636 objext=$ac_objext
21638 # Executable file suffix (normally "").
21639 exeext=$exeext
21641 # whether the shell understands "unset".
21642 lt_unset=$lt_unset
21644 # turn spaces into newlines.
21645 SP2NL=$lt_lt_SP2NL
21647 # turn newlines into spaces.
21648 NL2SP=$lt_lt_NL2SP
21650 # An object symbol dumper.
21651 OBJDUMP=$lt_OBJDUMP
21653 # Method to check whether dependent libraries are shared objects.
21654 deplibs_check_method=$lt_deplibs_check_method
21656 # Command to use when deplibs_check_method == "file_magic".
21657 file_magic_cmd=$lt_file_magic_cmd
21659 # The archiver.
21660 AR=$lt_AR
21661 AR_FLAGS=$lt_AR_FLAGS
21663 # A symbol stripping program.
21664 STRIP=$lt_STRIP
21666 # Commands used to install an old-style archive.
21667 RANLIB=$lt_RANLIB
21668 old_postinstall_cmds=$lt_old_postinstall_cmds
21669 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21671 # Whether to use a lock for old archive extraction.
21672 lock_old_archive_extraction=$lock_old_archive_extraction
21674 # A C compiler.
21675 LTCC=$lt_CC
21677 # LTCC compiler flags.
21678 LTCFLAGS=$lt_CFLAGS
21680 # Take the output of nm and produce a listing of raw symbols and C names.
21681 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21683 # Transform the output of nm in a proper C declaration.
21684 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21686 # Transform the output of nm in a C name address pair.
21687 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21689 # Transform the output of nm in a C name address pair when lib prefix is needed.
21690 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21692 # The name of the directory that contains temporary libtool files.
21693 objdir=$objdir
21695 # Used to examine libraries when file_magic_cmd begins with "file".
21696 MAGIC_CMD=$MAGIC_CMD
21698 # Must we lock files when doing compilation?
21699 need_locks=$lt_need_locks
21701 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21702 DSYMUTIL=$lt_DSYMUTIL
21704 # Tool to change global to local symbols on Mac OS X.
21705 NMEDIT=$lt_NMEDIT
21707 # Tool to manipulate fat objects and archives on Mac OS X.
21708 LIPO=$lt_LIPO
21710 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21711 OTOOL=$lt_OTOOL
21713 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21714 OTOOL64=$lt_OTOOL64
21716 # Old archive suffix (normally "a").
21717 libext=$libext
21719 # Shared library suffix (normally ".so").
21720 shrext_cmds=$lt_shrext_cmds
21722 # The commands to extract the exported symbol list from a shared archive.
21723 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21725 # Variables whose values should be saved in libtool wrapper scripts and
21726 # restored at link time.
21727 variables_saved_for_relink=$lt_variables_saved_for_relink
21729 # Do we need the "lib" prefix for modules?
21730 need_lib_prefix=$need_lib_prefix
21732 # Do we need a version for libraries?
21733 need_version=$need_version
21735 # Library versioning type.
21736 version_type=$version_type
21738 # Shared library runtime path variable.
21739 runpath_var=$runpath_var
21741 # Shared library path variable.
21742 shlibpath_var=$shlibpath_var
21744 # Is shlibpath searched before the hard-coded library search path?
21745 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21747 # Format of library name prefix.
21748 libname_spec=$lt_libname_spec
21750 # List of archive names. First name is the real one, the rest are links.
21751 # The last name is the one that the linker finds with -lNAME
21752 library_names_spec=$lt_library_names_spec
21754 # The coded name of the library, if different from the real name.
21755 soname_spec=$lt_soname_spec
21757 # Permission mode override for installation of shared libraries.
21758 install_override_mode=$lt_install_override_mode
21760 # Command to use after installation of a shared archive.
21761 postinstall_cmds=$lt_postinstall_cmds
21763 # Command to use after uninstallation of a shared archive.
21764 postuninstall_cmds=$lt_postuninstall_cmds
21766 # Commands used to finish a libtool library installation in a directory.
21767 finish_cmds=$lt_finish_cmds
21769 # As "finish_cmds", except a single script fragment to be evaled but
21770 # not shown.
21771 finish_eval=$lt_finish_eval
21773 # Whether we should hardcode library paths into libraries.
21774 hardcode_into_libs=$hardcode_into_libs
21776 # Compile-time system search path for libraries.
21777 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21779 # Run-time system search path for libraries.
21780 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21782 # Whether dlopen is supported.
21783 dlopen_support=$enable_dlopen
21785 # Whether dlopen of programs is supported.
21786 dlopen_self=$enable_dlopen_self
21788 # Whether dlopen of statically linked programs is supported.
21789 dlopen_self_static=$enable_dlopen_self_static
21791 # Commands to strip libraries.
21792 old_striplib=$lt_old_striplib
21793 striplib=$lt_striplib
21796 # The linker used to build libraries.
21797 LD=$lt_LD
21799 # How to create reloadable object files.
21800 reload_flag=$lt_reload_flag
21801 reload_cmds=$lt_reload_cmds
21803 # Commands used to build an old-style archive.
21804 old_archive_cmds=$lt_old_archive_cmds
21806 # A language specific compiler.
21807 CC=$lt_compiler
21809 # Is the compiler the GNU compiler?
21810 with_gcc=$GCC
21812 # Compiler flag to turn off builtin functions.
21813 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21815 # How to pass a linker flag through the compiler.
21816 wl=$lt_lt_prog_compiler_wl
21818 # Additional compiler flags for building library objects.
21819 pic_flag=$lt_lt_prog_compiler_pic
21821 # Compiler flag to prevent dynamic linking.
21822 link_static_flag=$lt_lt_prog_compiler_static
21824 # Does compiler simultaneously support -c and -o options?
21825 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21827 # Whether or not to add -lc for building shared libraries.
21828 build_libtool_need_lc=$archive_cmds_need_lc
21830 # Whether or not to disallow shared libs when runtime libs are static.
21831 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21833 # Compiler flag to allow reflexive dlopens.
21834 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21836 # Compiler flag to generate shared objects directly from archives.
21837 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21839 # Whether the compiler copes with passing no objects directly.
21840 compiler_needs_object=$lt_compiler_needs_object
21842 # Create an old-style archive from a shared archive.
21843 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21845 # Create a temporary old-style archive to link instead of a shared archive.
21846 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21848 # Commands used to build a shared archive.
21849 archive_cmds=$lt_archive_cmds
21850 archive_expsym_cmds=$lt_archive_expsym_cmds
21852 # Commands used to build a loadable module if different from building
21853 # a shared archive.
21854 module_cmds=$lt_module_cmds
21855 module_expsym_cmds=$lt_module_expsym_cmds
21857 # Whether we are building with GNU ld or not.
21858 with_gnu_ld=$lt_with_gnu_ld
21860 # Flag that allows shared libraries with undefined symbols to be built.
21861 allow_undefined_flag=$lt_allow_undefined_flag
21863 # Flag that enforces no undefined symbols.
21864 no_undefined_flag=$lt_no_undefined_flag
21866 # Flag to hardcode \$libdir into a binary during linking.
21867 # This must work even if \$libdir does not exist
21868 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21870 # If ld is used when linking, flag to hardcode \$libdir into a binary
21871 # during linking. This must work even if \$libdir does not exist.
21872 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
21874 # Whether we need a single "-rpath" flag with a separated argument.
21875 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21877 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21878 # DIR into the resulting binary.
21879 hardcode_direct=$hardcode_direct
21881 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21882 # DIR into the resulting binary and the resulting library dependency is
21883 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21884 # library is relocated.
21885 hardcode_direct_absolute=$hardcode_direct_absolute
21887 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21888 # into the resulting binary.
21889 hardcode_minus_L=$hardcode_minus_L
21891 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21892 # into the resulting binary.
21893 hardcode_shlibpath_var=$hardcode_shlibpath_var
21895 # Set to "yes" if building a shared library automatically hardcodes DIR
21896 # into the library and all subsequent libraries and executables linked
21897 # against it.
21898 hardcode_automatic=$hardcode_automatic
21900 # Set to yes if linker adds runtime paths of dependent libraries
21901 # to runtime path list.
21902 inherit_rpath=$inherit_rpath
21904 # Whether libtool must link a program against all its dependency libraries.
21905 link_all_deplibs=$link_all_deplibs
21907 # Fix the shell variable \$srcfile for the compiler.
21908 fix_srcfile_path=$lt_fix_srcfile_path
21910 # Set to "yes" if exported symbols are required.
21911 always_export_symbols=$always_export_symbols
21913 # The commands to list exported symbols.
21914 export_symbols_cmds=$lt_export_symbols_cmds
21916 # Symbols that should not be listed in the preloaded symbols.
21917 exclude_expsyms=$lt_exclude_expsyms
21919 # Symbols that must always be exported.
21920 include_expsyms=$lt_include_expsyms
21922 # Commands necessary for linking programs (against libraries) with templates.
21923 prelink_cmds=$lt_prelink_cmds
21925 # Specify filename containing input files.
21926 file_list_spec=$lt_file_list_spec
21928 # How to hardcode a shared library path into an executable.
21929 hardcode_action=$hardcode_action
21931 # The directories searched by this compiler when creating a shared library.
21932 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21934 # Dependencies to place before and after the objects being linked to
21935 # create a shared library.
21936 predep_objects=$lt_predep_objects
21937 postdep_objects=$lt_postdep_objects
21938 predeps=$lt_predeps
21939 postdeps=$lt_postdeps
21941 # The library search path used internally by the compiler when linking
21942 # a shared library.
21943 compiler_lib_search_path=$lt_compiler_lib_search_path
21945 # ### END LIBTOOL CONFIG
21947 _LT_EOF
21949 case $host_os in
21950 aix3*)
21951 cat <<\_LT_EOF >> "$cfgfile"
21952 # AIX sometimes has problems with the GCC collect2 program. For some
21953 # reason, if we set the COLLECT_NAMES environment variable, the problems
21954 # vanish in a puff of smoke.
21955 if test "X${COLLECT_NAMES+set}" != Xset; then
21956 COLLECT_NAMES=
21957 export COLLECT_NAMES
21959 _LT_EOF
21961 esac
21964 ltmain="$ac_aux_dir/ltmain.sh"
21967 # We use sed instead of cat because bash on DJGPP gets confused if
21968 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21969 # text mode, it properly converts lines to CR/LF. This bash problem
21970 # is reportedly fixed, but why not run on old versions too?
21971 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
21972 || (rm -f "$cfgfile"; exit 1)
21974 case $xsi_shell in
21975 yes)
21976 cat << \_LT_EOF >> "$cfgfile"
21978 # func_dirname file append nondir_replacement
21979 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
21980 # otherwise set result to NONDIR_REPLACEMENT.
21981 func_dirname ()
21983 case ${1} in
21984 */*) func_dirname_result="${1%/*}${2}" ;;
21985 * ) func_dirname_result="${3}" ;;
21986 esac
21989 # func_basename file
21990 func_basename ()
21992 func_basename_result="${1##*/}"
21995 # func_dirname_and_basename file append nondir_replacement
21996 # perform func_basename and func_dirname in a single function
21997 # call:
21998 # dirname: Compute the dirname of FILE. If nonempty,
21999 # add APPEND to the result, otherwise set result
22000 # to NONDIR_REPLACEMENT.
22001 # value returned in "$func_dirname_result"
22002 # basename: Compute filename of FILE.
22003 # value retuned in "$func_basename_result"
22004 # Implementation must be kept synchronized with func_dirname
22005 # and func_basename. For efficiency, we do not delegate to
22006 # those functions but instead duplicate the functionality here.
22007 func_dirname_and_basename ()
22009 case ${1} in
22010 */*) func_dirname_result="${1%/*}${2}" ;;
22011 * ) func_dirname_result="${3}" ;;
22012 esac
22013 func_basename_result="${1##*/}"
22016 # func_stripname prefix suffix name
22017 # strip PREFIX and SUFFIX off of NAME.
22018 # PREFIX and SUFFIX must not contain globbing or regex special
22019 # characters, hashes, percent signs, but SUFFIX may contain a leading
22020 # dot (in which case that matches only a dot).
22021 func_stripname ()
22023 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22024 # positional parameters, so assign one to ordinary parameter first.
22025 func_stripname_result=${3}
22026 func_stripname_result=${func_stripname_result#"${1}"}
22027 func_stripname_result=${func_stripname_result%"${2}"}
22030 # func_opt_split
22031 func_opt_split ()
22033 func_opt_split_opt=${1%%=*}
22034 func_opt_split_arg=${1#*=}
22037 # func_lo2o object
22038 func_lo2o ()
22040 case ${1} in
22041 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22042 *) func_lo2o_result=${1} ;;
22043 esac
22046 # func_xform libobj-or-source
22047 func_xform ()
22049 func_xform_result=${1%.*}.lo
22052 # func_arith arithmetic-term...
22053 func_arith ()
22055 func_arith_result=$(( $* ))
22058 # func_len string
22059 # STRING may not start with a hyphen.
22060 func_len ()
22062 func_len_result=${#1}
22065 _LT_EOF
22067 *) # Bourne compatible functions.
22068 cat << \_LT_EOF >> "$cfgfile"
22070 # func_dirname file append nondir_replacement
22071 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22072 # otherwise set result to NONDIR_REPLACEMENT.
22073 func_dirname ()
22075 # Extract subdirectory from the argument.
22076 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
22077 if test "X$func_dirname_result" = "X${1}"; then
22078 func_dirname_result="${3}"
22079 else
22080 func_dirname_result="$func_dirname_result${2}"
22084 # func_basename file
22085 func_basename ()
22087 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
22091 # func_stripname prefix suffix name
22092 # strip PREFIX and SUFFIX off of NAME.
22093 # PREFIX and SUFFIX must not contain globbing or regex special
22094 # characters, hashes, percent signs, but SUFFIX may contain a leading
22095 # dot (in which case that matches only a dot).
22096 # func_strip_suffix prefix name
22097 func_stripname ()
22099 case ${2} in
22100 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
22101 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
22102 esac
22105 # sed scripts:
22106 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22107 my_sed_long_arg='1s/^-[^=]*=//'
22109 # func_opt_split
22110 func_opt_split ()
22112 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
22113 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
22116 # func_lo2o object
22117 func_lo2o ()
22119 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
22122 # func_xform libobj-or-source
22123 func_xform ()
22125 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
22128 # func_arith arithmetic-term...
22129 func_arith ()
22131 func_arith_result=`expr "$@"`
22134 # func_len string
22135 # STRING may not start with a hyphen.
22136 func_len ()
22138 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22141 _LT_EOF
22142 esac
22144 case $lt_shell_append in
22145 yes)
22146 cat << \_LT_EOF >> "$cfgfile"
22148 # func_append var value
22149 # Append VALUE to the end of shell variable VAR.
22150 func_append ()
22152 eval "$1+=\$2"
22154 _LT_EOF
22157 cat << \_LT_EOF >> "$cfgfile"
22159 # func_append var value
22160 # Append VALUE to the end of shell variable VAR.
22161 func_append ()
22163 eval "$1=\$$1\$2"
22166 _LT_EOF
22168 esac
22171 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22172 || (rm -f "$cfgfile"; exit 1)
22174 mv -f "$cfgfile" "$ofile" ||
22175 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22176 chmod +x "$ofile"
22179 cat <<_LT_EOF >> "$ofile"
22181 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22183 # The linker used to build libraries.
22184 LD=$lt_LD_CXX
22186 # How to create reloadable object files.
22187 reload_flag=$lt_reload_flag_CXX
22188 reload_cmds=$lt_reload_cmds_CXX
22190 # Commands used to build an old-style archive.
22191 old_archive_cmds=$lt_old_archive_cmds_CXX
22193 # A language specific compiler.
22194 CC=$lt_compiler_CXX
22196 # Is the compiler the GNU compiler?
22197 with_gcc=$GCC_CXX
22199 # Compiler flag to turn off builtin functions.
22200 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22202 # How to pass a linker flag through the compiler.
22203 wl=$lt_lt_prog_compiler_wl_CXX
22205 # Additional compiler flags for building library objects.
22206 pic_flag=$lt_lt_prog_compiler_pic_CXX
22208 # Compiler flag to prevent dynamic linking.
22209 link_static_flag=$lt_lt_prog_compiler_static_CXX
22211 # Does compiler simultaneously support -c and -o options?
22212 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22214 # Whether or not to add -lc for building shared libraries.
22215 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22217 # Whether or not to disallow shared libs when runtime libs are static.
22218 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22220 # Compiler flag to allow reflexive dlopens.
22221 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22223 # Compiler flag to generate shared objects directly from archives.
22224 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22226 # Whether the compiler copes with passing no objects directly.
22227 compiler_needs_object=$lt_compiler_needs_object_CXX
22229 # Create an old-style archive from a shared archive.
22230 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22232 # Create a temporary old-style archive to link instead of a shared archive.
22233 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22235 # Commands used to build a shared archive.
22236 archive_cmds=$lt_archive_cmds_CXX
22237 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22239 # Commands used to build a loadable module if different from building
22240 # a shared archive.
22241 module_cmds=$lt_module_cmds_CXX
22242 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22244 # Whether we are building with GNU ld or not.
22245 with_gnu_ld=$lt_with_gnu_ld_CXX
22247 # Flag that allows shared libraries with undefined symbols to be built.
22248 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22250 # Flag that enforces no undefined symbols.
22251 no_undefined_flag=$lt_no_undefined_flag_CXX
22253 # Flag to hardcode \$libdir into a binary during linking.
22254 # This must work even if \$libdir does not exist
22255 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22257 # If ld is used when linking, flag to hardcode \$libdir into a binary
22258 # during linking. This must work even if \$libdir does not exist.
22259 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22261 # Whether we need a single "-rpath" flag with a separated argument.
22262 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22264 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22265 # DIR into the resulting binary.
22266 hardcode_direct=$hardcode_direct_CXX
22268 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22269 # DIR into the resulting binary and the resulting library dependency is
22270 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22271 # library is relocated.
22272 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22274 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22275 # into the resulting binary.
22276 hardcode_minus_L=$hardcode_minus_L_CXX
22278 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22279 # into the resulting binary.
22280 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22282 # Set to "yes" if building a shared library automatically hardcodes DIR
22283 # into the library and all subsequent libraries and executables linked
22284 # against it.
22285 hardcode_automatic=$hardcode_automatic_CXX
22287 # Set to yes if linker adds runtime paths of dependent libraries
22288 # to runtime path list.
22289 inherit_rpath=$inherit_rpath_CXX
22291 # Whether libtool must link a program against all its dependency libraries.
22292 link_all_deplibs=$link_all_deplibs_CXX
22294 # Fix the shell variable \$srcfile for the compiler.
22295 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22297 # Set to "yes" if exported symbols are required.
22298 always_export_symbols=$always_export_symbols_CXX
22300 # The commands to list exported symbols.
22301 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22303 # Symbols that should not be listed in the preloaded symbols.
22304 exclude_expsyms=$lt_exclude_expsyms_CXX
22306 # Symbols that must always be exported.
22307 include_expsyms=$lt_include_expsyms_CXX
22309 # Commands necessary for linking programs (against libraries) with templates.
22310 prelink_cmds=$lt_prelink_cmds_CXX
22312 # Specify filename containing input files.
22313 file_list_spec=$lt_file_list_spec_CXX
22315 # How to hardcode a shared library path into an executable.
22316 hardcode_action=$hardcode_action_CXX
22318 # The directories searched by this compiler when creating a shared library.
22319 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22321 # Dependencies to place before and after the objects being linked to
22322 # create a shared library.
22323 predep_objects=$lt_predep_objects_CXX
22324 postdep_objects=$lt_postdep_objects_CXX
22325 predeps=$lt_predeps_CXX
22326 postdeps=$lt_postdeps_CXX
22328 # The library search path used internally by the compiler when linking
22329 # a shared library.
22330 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22332 # ### END LIBTOOL TAG CONFIG: CXX
22333 _LT_EOF
22336 "libm2min/Makefile":F) cat > vpsed$$ << \_EOF
22337 s!`test -f '$<' || echo '$(srcdir)/'`!!
22338 _EOF
22339 sed -f vpsed$$ $ac_file > tmp$$
22340 mv tmp$$ $ac_file
22341 rm vpsed$$
22342 echo 'MULTISUBDIR =' >> $ac_file
22343 ml_norecursion=yes
22344 . ${multi_basedir}/config-ml.in
22345 { ml_norecursion=; unset ml_norecursion;}
22347 "libm2pim/Makefile":F) cat > vpsed$$ << \_EOF
22348 s!`test -f '$<' || echo '$(srcdir)/'`!!
22349 _EOF
22350 sed -f vpsed$$ $ac_file > tmp$$
22351 mv tmp$$ $ac_file
22352 rm vpsed$$
22353 echo 'MULTISUBDIR =' >> $ac_file
22354 ml_norecursion=yes
22355 . ${multi_basedir}/config-ml.in
22356 { ml_norecursion=; unset ml_norecursion;}
22358 "libm2iso/Makefile":F) cat > vpsed$$ << \_EOF
22359 s!`test -f '$<' || echo '$(srcdir)/'`!!
22360 _EOF
22361 sed -f vpsed$$ $ac_file > tmp$$
22362 mv tmp$$ $ac_file
22363 rm vpsed$$
22364 echo 'MULTISUBDIR =' >> $ac_file
22365 ml_norecursion=yes
22366 . ${multi_basedir}/config-ml.in
22367 { ml_norecursion=; unset ml_norecursion;}
22369 "libm2cor/Makefile":F) cat > vpsed$$ << \_EOF
22370 s!`test -f '$<' || echo '$(srcdir)/'`!!
22371 _EOF
22372 sed -f vpsed$$ $ac_file > tmp$$
22373 mv tmp$$ $ac_file
22374 rm vpsed$$
22375 echo 'MULTISUBDIR =' >> $ac_file
22376 ml_norecursion=yes
22377 . ${multi_basedir}/config-ml.in
22378 { ml_norecursion=; unset ml_norecursion;}
22380 "libm2log/Makefile":F) cat > vpsed$$ << \_EOF
22381 s!`test -f '$<' || echo '$(srcdir)/'`!!
22382 _EOF
22383 sed -f vpsed$$ $ac_file > tmp$$
22384 mv tmp$$ $ac_file
22385 rm vpsed$$
22386 echo 'MULTISUBDIR =' >> $ac_file
22387 ml_norecursion=yes
22388 . ${multi_basedir}/config-ml.in
22389 { ml_norecursion=; unset ml_norecursion;}
22392 esac
22393 done # for ac_tag
22396 as_fn_exit 0
22397 _ACEOF
22398 ac_clean_files=$ac_clean_files_save
22400 test $ac_write_fail = 0 ||
22401 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22404 # configure is writing to config.log, and then calls config.status.
22405 # config.status does its own redirection, appending to config.log.
22406 # Unfortunately, on DOS this fails, as config.log is still kept open
22407 # by configure, so config.status won't be able to write to it; its
22408 # output is simply discarded. So we exec the FD to /dev/null,
22409 # effectively closing config.log, so it can be properly (re)opened and
22410 # appended to by config.status. When coming back to configure, we
22411 # need to make the FD available again.
22412 if test "$no_create" != yes; then
22413 ac_cs_success=:
22414 ac_config_status_args=
22415 test "$silent" = yes &&
22416 ac_config_status_args="$ac_config_status_args --quiet"
22417 exec 5>/dev/null
22418 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22419 exec 5>>config.log
22420 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22421 # would make configure fail if this is the last instruction.
22422 $ac_cs_success || as_fn_exit 1
22424 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22426 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}