Import GNU Classpath (20121202).
[official-gcc.git] / libjava / classpath / configure
blobe42cde6410298d4f62ce879f392af3130fd7bbb0
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Classpath 0.99.1-pre.
5 # Report bugs to <classpath@gnu.org>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185 else
186 as_have_required=no
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190 else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
210 done;;
211 esac
212 as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and classpath@gnu.org
240 $0: about your system, including any error possibly output
241 $0: before this message. Then install a modern shell, or
242 $0: manually run the script under such a shell if you do
243 $0: have one."
245 exit 1
249 SHELL=${CONFIG_SHELL-/bin/sh}
250 export SHELL
251 # Unset more variables known to interfere with behavior of common tools.
252 CLICOLOR_FORCE= GREP_OPTIONS=
253 unset CLICOLOR_FORCE GREP_OPTIONS
255 ## --------------------- ##
256 ## M4sh Shell Functions. ##
257 ## --------------------- ##
258 # as_fn_unset VAR
259 # ---------------
260 # Portably unset VAR.
261 as_fn_unset ()
263 { eval $1=; unset $1;}
265 as_unset=as_fn_unset
267 # as_fn_set_status STATUS
268 # -----------------------
269 # Set $? to STATUS, without forking.
270 as_fn_set_status ()
272 return $1
273 } # as_fn_set_status
275 # as_fn_exit STATUS
276 # -----------------
277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 as_fn_exit ()
280 set +e
281 as_fn_set_status $1
282 exit $1
283 } # as_fn_exit
285 # as_fn_mkdir_p
286 # -------------
287 # Create "$as_dir" as a directory, including parents if necessary.
288 as_fn_mkdir_p ()
291 case $as_dir in #(
292 -*) as_dir=./$as_dir;;
293 esac
294 test -d "$as_dir" || eval $as_mkdir_p || {
295 as_dirs=
296 while :; do
297 case $as_dir in #(
298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299 *) as_qdir=$as_dir;;
300 esac
301 as_dirs="'$as_qdir' $as_dirs"
302 as_dir=`$as_dirname -- "$as_dir" ||
303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304 X"$as_dir" : 'X\(//\)[^/]' \| \
305 X"$as_dir" : 'X\(//\)$' \| \
306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307 $as_echo X"$as_dir" |
308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
309 s//\1/
312 /^X\(\/\/\)[^/].*/{
313 s//\1/
316 /^X\(\/\/\)$/{
317 s//\1/
320 /^X\(\/\).*/{
321 s//\1/
324 s/.*/./; q'`
325 test -d "$as_dir" && break
326 done
327 test -z "$as_dirs" || eval "mkdir $as_dirs"
328 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331 } # as_fn_mkdir_p
332 # as_fn_append VAR VALUE
333 # ----------------------
334 # Append the text in VALUE to the end of the definition contained in VAR. Take
335 # advantage of any shell optimizations that allow amortized linear growth over
336 # repeated appends, instead of the typical quadratic growth present in naive
337 # implementations.
338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339 eval 'as_fn_append ()
341 eval $1+=\$2
343 else
344 as_fn_append ()
346 eval $1=\$$1\$2
348 fi # as_fn_append
350 # as_fn_arith ARG...
351 # ------------------
352 # Perform arithmetic evaluation on the ARGs, and store the result in the
353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
354 # must be portable across $(()) and expr.
355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356 eval 'as_fn_arith ()
358 as_val=$(( $* ))
360 else
361 as_fn_arith ()
363 as_val=`expr "$@" || test $? -eq 1`
365 fi # as_fn_arith
368 # as_fn_error ERROR [LINENO LOG_FD]
369 # ---------------------------------
370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372 # script with status $?, using 1 if that was 0.
373 as_fn_error ()
375 as_status=$?; test $as_status -eq 0 && as_status=1
376 if test "$3"; then
377 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
380 $as_echo "$as_me: error: $1" >&2
381 as_fn_exit $as_status
382 } # as_fn_error
384 if expr a : '\(a\)' >/dev/null 2>&1 &&
385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
386 as_expr=expr
387 else
388 as_expr=false
391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 as_basename=basename
393 else
394 as_basename=false
397 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_dirname=dirname
399 else
400 as_dirname=false
403 as_me=`$as_basename -- "$0" ||
404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405 X"$0" : 'X\(//\)$' \| \
406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 $as_echo X/"$0" |
408 sed '/^.*\/\([^/][^/]*\)\/*$/{
409 s//\1/
412 /^X\/\(\/\/\)$/{
413 s//\1/
416 /^X\/\(\/\).*/{
417 s//\1/
420 s/.*/./; q'`
422 # Avoid depending upon Character Ranges.
423 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426 as_cr_digits='0123456789'
427 as_cr_alnum=$as_cr_Letters$as_cr_digits
430 as_lineno_1=$LINENO as_lineno_1a=$LINENO
431 as_lineno_2=$LINENO as_lineno_2a=$LINENO
432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
437 /[$]LINENO/=
438 ' <$as_myself |
439 sed '
440 s/[$]LINENO.*/&-/
441 t lineno
443 :lineno
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 t loop
448 s/-\n.*//
449 ' >$as_me.lineno &&
450 chmod +x "$as_me.lineno" ||
451 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
461 ECHO_C= ECHO_N= ECHO_T=
462 case `echo -n x` in #(((((
463 -n*)
464 case `echo 'xy\c'` in
465 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 xy) ECHO_C='\c';;
467 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 ECHO_T=' ';;
469 esac;;
471 ECHO_N='-n';;
472 esac
474 rm -f conf$$ conf$$.exe conf$$.file
475 if test -d conf$$.dir; then
476 rm -f conf$$.dir/conf$$.file
477 else
478 rm -f conf$$.dir
479 mkdir conf$$.dir 2>/dev/null
481 if (echo >conf$$.file) 2>/dev/null; then
482 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s='ln -s'
484 # ... but there are two gotchas:
485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487 # In both cases, we have to default to `cp -p'.
488 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 as_ln_s='cp -p'
490 elif ln conf$$.file conf$$ 2>/dev/null; then
491 as_ln_s=ln
492 else
493 as_ln_s='cp -p'
495 else
496 as_ln_s='cp -p'
498 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499 rmdir conf$$.dir 2>/dev/null
501 if mkdir -p . 2>/dev/null; then
502 as_mkdir_p='mkdir -p "$as_dir"'
503 else
504 test -d ./-p && rmdir ./-p
505 as_mkdir_p=false
508 if test -x / >/dev/null 2>&1; then
509 as_test_x='test -x'
510 else
511 if ls -dL / >/dev/null 2>&1; then
512 as_ls_L_option=L
513 else
514 as_ls_L_option=
516 as_test_x='
517 eval sh -c '\''
518 if test -d "$1"; then
519 test -d "$1/.";
520 else
521 case $1 in #(
522 -*)set "./$1";;
523 esac;
524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525 ???[sx]*):;;*)false;;esac;fi
526 '\'' sh
529 as_executable_p=$as_test_x
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 SHELL=${CONFIG_SHELL-/bin/sh}
540 exec 7<&0 </dev/null 6>&1
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 # Initializations.
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
559 # Identity of this package.
560 PACKAGE_NAME='GNU Classpath'
561 PACKAGE_TARNAME='classpath'
562 PACKAGE_VERSION='0.99.1-pre'
563 PACKAGE_STRING='GNU Classpath 0.99.1-pre'
564 PACKAGE_BUGREPORT='classpath@gnu.org'
565 PACKAGE_URL='http://www.gnu.org/software/classpath/'
567 ac_unique_file="java/lang/System.java"
568 ac_default_prefix=/usr/local/classpath
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 # include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 # include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 CREATE_GMPBI_LIBRARY_FALSE
610 CREATE_GMPBI_LIBRARY_TRUE
611 WANT_NATIVE_BIG_INTEGER
612 DEFAULT_PREFS_PEER
613 ENABLE_LOCAL_SOCKETS_FALSE
614 ENABLE_LOCAL_SOCKETS_TRUE
615 PATH_TO_ESCHER
616 USE_ESCHER_FALSE
617 USE_ESCHER_TRUE
618 JAVAC_MEM_OPT
619 ac_ct_ANTLR
620 ANTLR
621 ANTLR_JAR
622 GCJ_JAVAC_FALSE
623 GCJ_JAVAC_TRUE
624 JAVAC_IS_GCJ
625 JAVAC
626 uudecode
627 JAVA
628 PATH_TO_GLIBJ_ZIP
629 USE_PREBUILT_GLIBJ_ZIP_FALSE
630 USE_PREBUILT_GLIBJ_ZIP_TRUE
631 REGEN_PARSERS_FALSE
632 REGEN_PARSERS_TRUE
633 JAY_SKELETON
635 CREATE_API_DOCS_FALSE
636 CREATE_API_DOCS_TRUE
637 GJDOC
638 TOOLSDIR
639 EXAMPLESDIR
640 BUILD_CLASS_FILES_FALSE
641 BUILD_CLASS_FILES_TRUE
642 INSTALL_CLASS_FILES_FALSE
643 INSTALL_CLASS_FILES_TRUE
644 INSTALL_GLIBJ_ZIP_FALSE
645 INSTALL_GLIBJ_ZIP_TRUE
646 WITH_JAR_FALSE
647 WITH_JAR_TRUE
650 FIND
651 DATE
653 MKDIR
654 REMOVE
655 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION
656 ECJ_JAR
657 INIT_LOAD_LIBRARY
658 LIBDEBUG
659 MAINT
660 MAINTAINER_MODE_FALSE
661 MAINTAINER_MODE_TRUE
662 vm_classes
663 CLASSPATH_INCLUDES
664 USER_JAVAH
665 GMP_LIBS
666 GMP_CFLAGS
667 PLUGIN_DIR
668 GLIB_LIBS
669 GLIB_CFLAGS
670 MOZILLA_LIBS
671 MOZILLA_CFLAGS
672 MOC4
674 QT_LIBS
675 QT_CFLAGS
676 GSTREAMER_MIXER_PROVIDER
677 GSTREAMER_FILE_READER
678 GST_PLUGIN_LDFLAGS
679 GSTREAMER_PLUGINS_BASE_LIBS
680 GSTREAMER_PLUGINS_BASE_CFLAGS
681 GSTREAMER_BASE_LIBS
682 GSTREAMER_BASE_CFLAGS
683 GSTREAMER_LIBS
684 GSTREAMER_CFLAGS
685 GDK_LIBS
686 GDK_CFLAGS
687 GCONF_LIBS
688 GCONF_CFLAGS
689 XTEST_LIBS
690 CAIRO_LIBS
691 CAIRO_CFLAGS
692 PANGOFT2_LIBS
693 PANGOFT2_CFLAGS
694 FREETYPE2_LIBS
695 FREETYPE2_CFLAGS
696 GTK_LIBS
697 GTK_CFLAGS
698 X_EXTRA_LIBS
699 X_LIBS
700 X_PRE_LIBS
701 X_CFLAGS
702 XMKMF
703 XSLT_LIBS
704 XSLT_CFLAGS
705 XML_LIBS
706 XML_CFLAGS
707 PKG_CONFIG
708 ERROR_CFLAGS
709 STRICT_WARNING_CFLAGS
710 EXTRA_CFLAGS
711 WARNING_CFLAGS
712 LTLIBICONV
713 LIBICONV
714 LIBMAGIC
715 COLLECTIONS_PREFIX
716 PERL
717 CXXCPP
718 am__fastdepCXX_FALSE
719 am__fastdepCXX_TRUE
720 CXXDEPMODE
721 ac_ct_CXX
722 CXXFLAGS
724 OTOOL64
725 OTOOL
726 LIPO
727 NMEDIT
728 DSYMUTIL
729 RANLIB
731 OBJDUMP
733 ac_ct_DUMPBIN
734 DUMPBIN
736 FGREP
738 LIBTOOL
739 LN_S
740 CREATE_WRAPPERS_FALSE
741 CREATE_WRAPPERS_TRUE
742 CREATE_GJDOC_PARSER_FALSE
743 CREATE_GJDOC_PARSER_TRUE
744 CREATE_JNI_HEADERS_FALSE
745 CREATE_JNI_HEADERS_TRUE
746 glibjdir
747 nativeexeclibdir
748 toolexeclibdir
749 CREATE_GJDOC_FALSE
750 CREATE_GJDOC_TRUE
751 CREATE_PLUGIN_FALSE
752 CREATE_PLUGIN_TRUE
753 CREATE_QT_PEER_LIBRARIES_FALSE
754 CREATE_QT_PEER_LIBRARIES_TRUE
755 CREATE_GTK_PEER_LIBRARIES_FALSE
756 CREATE_GTK_PEER_LIBRARIES_TRUE
757 CREATE_DSSI_LIBRARIES_FALSE
758 CREATE_DSSI_LIBRARIES_TRUE
759 CREATE_ALSA_LIBRARIES_FALSE
760 CREATE_ALSA_LIBRARIES_TRUE
761 EGREP
762 GREP
764 am__fastdepCC_FALSE
765 am__fastdepCC_TRUE
766 CCDEPMODE
767 AMDEPBACKSLASH
768 AMDEP_FALSE
769 AMDEP_TRUE
770 am__quote
771 am__include
772 DEPDIR
773 OBJEXT
774 EXEEXT
775 ac_ct_CC
776 CPPFLAGS
777 LDFLAGS
778 CFLAGS
780 CREATE_XMLJ_LIBRARY_FALSE
781 CREATE_XMLJ_LIBRARY_TRUE
782 default_toolkit
783 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE
784 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE
785 CREATE_GCONF_PEER_LIBRARIES_FALSE
786 CREATE_GCONF_PEER_LIBRARIES_TRUE
787 CREATE_CORE_JNI_LIBRARIES_FALSE
788 CREATE_CORE_JNI_LIBRARIES_TRUE
789 CREATE_JNI_LIBRARIES_FALSE
790 CREATE_JNI_LIBRARIES_TRUE
791 CREATE_COLLECTIONS_FALSE
792 CREATE_COLLECTIONS_TRUE
793 am__untar
794 am__tar
795 AMTAR
796 am__leading_dot
797 SET_MAKE
799 mkdir_p
800 MKDIR_P
801 INSTALL_STRIP_PROGRAM
802 STRIP
803 install_sh
804 MAKEINFO
805 AUTOHEADER
806 AUTOMAKE
807 AUTOCONF
808 ACLOCAL
809 VERSION
810 PACKAGE
811 CYGPATH_W
812 am__isrc
813 INSTALL_DATA
814 INSTALL_SCRIPT
815 INSTALL_PROGRAM
816 CLASSPATH_CONVENIENCE
817 CLASSPATH_MODULE
818 LIBVERSION
819 INSTALL_BINARIES_FALSE
820 INSTALL_BINARIES_TRUE
821 multi_basedir
822 GENINSRC_FALSE
823 GENINSRC_TRUE
824 JAVA_MAINTAINER_MODE_FALSE
825 JAVA_MAINTAINER_MODE_TRUE
826 target_os
827 target_vendor
828 target_cpu
829 target
830 host_os
831 host_vendor
832 host_cpu
833 host
834 build_os
835 build_vendor
836 build_cpu
837 build
838 target_alias
839 host_alias
840 build_alias
841 LIBS
842 ECHO_T
843 ECHO_N
844 ECHO_C
845 DEFS
846 mandir
847 localedir
848 libdir
849 psdir
850 pdfdir
851 dvidir
852 htmldir
853 infodir
854 docdir
855 oldincludedir
856 includedir
857 localstatedir
858 sharedstatedir
859 sysconfdir
860 datadir
861 datarootdir
862 libexecdir
863 sbindir
864 bindir
865 program_transform_name
866 prefix
867 exec_prefix
868 PACKAGE_URL
869 PACKAGE_BUGREPORT
870 PACKAGE_STRING
871 PACKAGE_VERSION
872 PACKAGE_TARNAME
873 PACKAGE_NAME
874 PATH_SEPARATOR
875 SHELL'
876 ac_subst_files=''
877 ac_user_opts='
878 enable_option_checking
879 enable_java_maintainer_mode
880 enable_generated_files_in_srcdir
881 enable_multilib
882 enable_collections
883 enable_jni
884 enable_core_jni
885 enable_default_preferences_peer
886 enable_gconf_peer
887 enable_gconf_peers
888 enable_gstreamer_peer
889 enable_gstreamer_peers
890 enable_Werror
891 enable_default_toolkit
892 enable_xmlj
893 enable_alsa
894 enable_dependency_tracking
895 enable_dssi
896 enable_gtk_peer
897 enable_gtk_peers
898 enable_qt_peer
899 enable_plugin
900 enable_gmp
901 enable_gjdoc
902 with_native_libdir
903 with_glibj_dir
904 with_antlr_jar
905 enable_regen_headers
906 enable_regen_gjdoc_parser
907 enable_tool_wrappers
908 enable_static
909 enable_shared
910 with_pic
911 enable_fast_install
912 with_gnu_ld
913 enable_libtool_lock
914 enable_rpath
915 with_libiconv_prefix
916 with_x
917 with_qt4dir
918 with_gmp
919 with_gmp_include
920 with_gmp_lib
921 with_javah
922 with_vm_classes
923 enable_maintainer_mode
924 enable_debug
925 enable_load_library
926 with_ecj_jar
927 enable_java_lang_system_explicit_initialization
928 with_jar
929 with_glibj
930 enable_examples
931 enable_tools
932 with_gjdoc
933 with_jay
934 enable_portable_native_sync
935 with_glibj_zip
936 with_escher
937 enable_local_sockets
939 ac_precious_vars='build_alias
940 host_alias
941 target_alias
943 CFLAGS
944 LDFLAGS
945 LIBS
946 CPPFLAGS
949 CXXFLAGS
951 CXXCPP
952 XMKMF'
955 # Initialize some variables set by options.
956 ac_init_help=
957 ac_init_version=false
958 ac_unrecognized_opts=
959 ac_unrecognized_sep=
960 # The variables have the same names as the options, with
961 # dashes changed to underlines.
962 cache_file=/dev/null
963 exec_prefix=NONE
964 no_create=
965 no_recursion=
966 prefix=NONE
967 program_prefix=NONE
968 program_suffix=NONE
969 program_transform_name=s,x,x,
970 silent=
971 site=
972 srcdir=
973 verbose=
974 x_includes=NONE
975 x_libraries=NONE
977 # Installation directory options.
978 # These are left unexpanded so users can "make install exec_prefix=/foo"
979 # and all the variables that are supposed to be based on exec_prefix
980 # by default will actually change.
981 # Use braces instead of parens because sh, perl, etc. also accept them.
982 # (The list follows the same order as the GNU Coding Standards.)
983 bindir='${exec_prefix}/bin'
984 sbindir='${exec_prefix}/sbin'
985 libexecdir='${exec_prefix}/libexec'
986 datarootdir='${prefix}/share'
987 datadir='${datarootdir}'
988 sysconfdir='${prefix}/etc'
989 sharedstatedir='${prefix}/com'
990 localstatedir='${prefix}/var'
991 includedir='${prefix}/include'
992 oldincludedir='/usr/include'
993 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
994 infodir='${datarootdir}/info'
995 htmldir='${docdir}'
996 dvidir='${docdir}'
997 pdfdir='${docdir}'
998 psdir='${docdir}'
999 libdir='${exec_prefix}/lib'
1000 localedir='${datarootdir}/locale'
1001 mandir='${datarootdir}/man'
1003 ac_prev=
1004 ac_dashdash=
1005 for ac_option
1007 # If the previous option needs an argument, assign it.
1008 if test -n "$ac_prev"; then
1009 eval $ac_prev=\$ac_option
1010 ac_prev=
1011 continue
1014 case $ac_option in
1015 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1016 *) ac_optarg=yes ;;
1017 esac
1019 # Accept the important Cygnus configure options, so we can diagnose typos.
1021 case $ac_dashdash$ac_option in
1023 ac_dashdash=yes ;;
1025 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1026 ac_prev=bindir ;;
1027 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1028 bindir=$ac_optarg ;;
1030 -build | --build | --buil | --bui | --bu)
1031 ac_prev=build_alias ;;
1032 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1033 build_alias=$ac_optarg ;;
1035 -cache-file | --cache-file | --cache-fil | --cache-fi \
1036 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1037 ac_prev=cache_file ;;
1038 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1039 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1040 cache_file=$ac_optarg ;;
1042 --config-cache | -C)
1043 cache_file=config.cache ;;
1045 -datadir | --datadir | --datadi | --datad)
1046 ac_prev=datadir ;;
1047 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1048 datadir=$ac_optarg ;;
1050 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1051 | --dataroo | --dataro | --datar)
1052 ac_prev=datarootdir ;;
1053 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1054 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1055 datarootdir=$ac_optarg ;;
1057 -disable-* | --disable-*)
1058 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061 as_fn_error "invalid feature name: $ac_useropt"
1062 ac_useropt_orig=$ac_useropt
1063 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064 case $ac_user_opts in
1066 "enable_$ac_useropt"
1067 "*) ;;
1068 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1069 ac_unrecognized_sep=', ';;
1070 esac
1071 eval enable_$ac_useropt=no ;;
1073 -docdir | --docdir | --docdi | --doc | --do)
1074 ac_prev=docdir ;;
1075 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1076 docdir=$ac_optarg ;;
1078 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1079 ac_prev=dvidir ;;
1080 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1081 dvidir=$ac_optarg ;;
1083 -enable-* | --enable-*)
1084 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1085 # Reject names that are not valid shell variable names.
1086 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087 as_fn_error "invalid feature name: $ac_useropt"
1088 ac_useropt_orig=$ac_useropt
1089 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090 case $ac_user_opts in
1092 "enable_$ac_useropt"
1093 "*) ;;
1094 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1095 ac_unrecognized_sep=', ';;
1096 esac
1097 eval enable_$ac_useropt=\$ac_optarg ;;
1099 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1100 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1101 | --exec | --exe | --ex)
1102 ac_prev=exec_prefix ;;
1103 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1104 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1105 | --exec=* | --exe=* | --ex=*)
1106 exec_prefix=$ac_optarg ;;
1108 -gas | --gas | --ga | --g)
1109 # Obsolete; use --with-gas.
1110 with_gas=yes ;;
1112 -help | --help | --hel | --he | -h)
1113 ac_init_help=long ;;
1114 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1115 ac_init_help=recursive ;;
1116 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1117 ac_init_help=short ;;
1119 -host | --host | --hos | --ho)
1120 ac_prev=host_alias ;;
1121 -host=* | --host=* | --hos=* | --ho=*)
1122 host_alias=$ac_optarg ;;
1124 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1125 ac_prev=htmldir ;;
1126 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1127 | --ht=*)
1128 htmldir=$ac_optarg ;;
1130 -includedir | --includedir | --includedi | --included | --include \
1131 | --includ | --inclu | --incl | --inc)
1132 ac_prev=includedir ;;
1133 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1134 | --includ=* | --inclu=* | --incl=* | --inc=*)
1135 includedir=$ac_optarg ;;
1137 -infodir | --infodir | --infodi | --infod | --info | --inf)
1138 ac_prev=infodir ;;
1139 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1140 infodir=$ac_optarg ;;
1142 -libdir | --libdir | --libdi | --libd)
1143 ac_prev=libdir ;;
1144 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1145 libdir=$ac_optarg ;;
1147 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1148 | --libexe | --libex | --libe)
1149 ac_prev=libexecdir ;;
1150 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1151 | --libexe=* | --libex=* | --libe=*)
1152 libexecdir=$ac_optarg ;;
1154 -localedir | --localedir | --localedi | --localed | --locale)
1155 ac_prev=localedir ;;
1156 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1157 localedir=$ac_optarg ;;
1159 -localstatedir | --localstatedir | --localstatedi | --localstated \
1160 | --localstate | --localstat | --localsta | --localst | --locals)
1161 ac_prev=localstatedir ;;
1162 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1163 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1164 localstatedir=$ac_optarg ;;
1166 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1167 ac_prev=mandir ;;
1168 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1169 mandir=$ac_optarg ;;
1171 -nfp | --nfp | --nf)
1172 # Obsolete; use --without-fp.
1173 with_fp=no ;;
1175 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1176 | --no-cr | --no-c | -n)
1177 no_create=yes ;;
1179 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1180 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1181 no_recursion=yes ;;
1183 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1184 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1185 | --oldin | --oldi | --old | --ol | --o)
1186 ac_prev=oldincludedir ;;
1187 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1188 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1189 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1190 oldincludedir=$ac_optarg ;;
1192 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1193 ac_prev=prefix ;;
1194 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1195 prefix=$ac_optarg ;;
1197 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1198 | --program-pre | --program-pr | --program-p)
1199 ac_prev=program_prefix ;;
1200 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1201 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1202 program_prefix=$ac_optarg ;;
1204 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1205 | --program-suf | --program-su | --program-s)
1206 ac_prev=program_suffix ;;
1207 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1208 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1209 program_suffix=$ac_optarg ;;
1211 -program-transform-name | --program-transform-name \
1212 | --program-transform-nam | --program-transform-na \
1213 | --program-transform-n | --program-transform- \
1214 | --program-transform | --program-transfor \
1215 | --program-transfo | --program-transf \
1216 | --program-trans | --program-tran \
1217 | --progr-tra | --program-tr | --program-t)
1218 ac_prev=program_transform_name ;;
1219 -program-transform-name=* | --program-transform-name=* \
1220 | --program-transform-nam=* | --program-transform-na=* \
1221 | --program-transform-n=* | --program-transform-=* \
1222 | --program-transform=* | --program-transfor=* \
1223 | --program-transfo=* | --program-transf=* \
1224 | --program-trans=* | --program-tran=* \
1225 | --progr-tra=* | --program-tr=* | --program-t=*)
1226 program_transform_name=$ac_optarg ;;
1228 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1229 ac_prev=pdfdir ;;
1230 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1231 pdfdir=$ac_optarg ;;
1233 -psdir | --psdir | --psdi | --psd | --ps)
1234 ac_prev=psdir ;;
1235 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1236 psdir=$ac_optarg ;;
1238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239 | -silent | --silent | --silen | --sile | --sil)
1240 silent=yes ;;
1242 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1243 ac_prev=sbindir ;;
1244 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1245 | --sbi=* | --sb=*)
1246 sbindir=$ac_optarg ;;
1248 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1249 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1250 | --sharedst | --shareds | --shared | --share | --shar \
1251 | --sha | --sh)
1252 ac_prev=sharedstatedir ;;
1253 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1254 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1255 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1256 | --sha=* | --sh=*)
1257 sharedstatedir=$ac_optarg ;;
1259 -site | --site | --sit)
1260 ac_prev=site ;;
1261 -site=* | --site=* | --sit=*)
1262 site=$ac_optarg ;;
1264 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1265 ac_prev=srcdir ;;
1266 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1267 srcdir=$ac_optarg ;;
1269 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1270 | --syscon | --sysco | --sysc | --sys | --sy)
1271 ac_prev=sysconfdir ;;
1272 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1273 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1274 sysconfdir=$ac_optarg ;;
1276 -target | --target | --targe | --targ | --tar | --ta | --t)
1277 ac_prev=target_alias ;;
1278 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1279 target_alias=$ac_optarg ;;
1281 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1282 verbose=yes ;;
1284 -version | --version | --versio | --versi | --vers | -V)
1285 ac_init_version=: ;;
1287 -with-* | --with-*)
1288 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 as_fn_error "invalid package name: $ac_useropt"
1292 ac_useropt_orig=$ac_useropt
1293 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294 case $ac_user_opts in
1296 "with_$ac_useropt"
1297 "*) ;;
1298 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1299 ac_unrecognized_sep=', ';;
1300 esac
1301 eval with_$ac_useropt=\$ac_optarg ;;
1303 -without-* | --without-*)
1304 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1305 # Reject names that are not valid shell variable names.
1306 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307 as_fn_error "invalid package name: $ac_useropt"
1308 ac_useropt_orig=$ac_useropt
1309 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310 case $ac_user_opts in
1312 "with_$ac_useropt"
1313 "*) ;;
1314 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1315 ac_unrecognized_sep=', ';;
1316 esac
1317 eval with_$ac_useropt=no ;;
1319 --x)
1320 # Obsolete; use --with-x.
1321 with_x=yes ;;
1323 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1324 | --x-incl | --x-inc | --x-in | --x-i)
1325 ac_prev=x_includes ;;
1326 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1327 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1328 x_includes=$ac_optarg ;;
1330 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1331 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1332 ac_prev=x_libraries ;;
1333 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1334 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1335 x_libraries=$ac_optarg ;;
1337 -*) as_fn_error "unrecognized option: \`$ac_option'
1338 Try \`$0 --help' for more information."
1341 *=*)
1342 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1343 # Reject names that are not valid shell variable names.
1344 case $ac_envvar in #(
1345 '' | [0-9]* | *[!_$as_cr_alnum]* )
1346 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1347 esac
1348 eval $ac_envvar=\$ac_optarg
1349 export $ac_envvar ;;
1352 # FIXME: should be removed in autoconf 3.0.
1353 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1354 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1355 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1356 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1359 esac
1360 done
1362 if test -n "$ac_prev"; then
1363 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1364 as_fn_error "missing argument to $ac_option"
1367 if test -n "$ac_unrecognized_opts"; then
1368 case $enable_option_checking in
1369 no) ;;
1370 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1371 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1372 esac
1375 # Check all directory arguments for consistency.
1376 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1377 datadir sysconfdir sharedstatedir localstatedir includedir \
1378 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1379 libdir localedir mandir
1381 eval ac_val=\$$ac_var
1382 # Remove trailing slashes.
1383 case $ac_val in
1384 */ )
1385 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1386 eval $ac_var=\$ac_val;;
1387 esac
1388 # Be sure to have absolute directory names.
1389 case $ac_val in
1390 [\\/$]* | ?:[\\/]* ) continue;;
1391 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1392 esac
1393 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1394 done
1396 # There might be people who depend on the old broken behavior: `$host'
1397 # used to hold the argument of --host etc.
1398 # FIXME: To remove some day.
1399 build=$build_alias
1400 host=$host_alias
1401 target=$target_alias
1403 # FIXME: To remove some day.
1404 if test "x$host_alias" != x; then
1405 if test "x$build_alias" = x; then
1406 cross_compiling=maybe
1407 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1408 If a cross compiler is detected then cross compile mode will be used." >&2
1409 elif test "x$build_alias" != "x$host_alias"; then
1410 cross_compiling=yes
1414 ac_tool_prefix=
1415 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1417 test "$silent" = yes && exec 6>/dev/null
1420 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1421 ac_ls_di=`ls -di .` &&
1422 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1423 as_fn_error "working directory cannot be determined"
1424 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1425 as_fn_error "pwd does not report name of working directory"
1428 # Find the source files, if location was not specified.
1429 if test -z "$srcdir"; then
1430 ac_srcdir_defaulted=yes
1431 # Try the directory containing this script, then the parent directory.
1432 ac_confdir=`$as_dirname -- "$as_myself" ||
1433 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1434 X"$as_myself" : 'X\(//\)[^/]' \| \
1435 X"$as_myself" : 'X\(//\)$' \| \
1436 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1437 $as_echo X"$as_myself" |
1438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439 s//\1/
1442 /^X\(\/\/\)[^/].*/{
1443 s//\1/
1446 /^X\(\/\/\)$/{
1447 s//\1/
1450 /^X\(\/\).*/{
1451 s//\1/
1454 s/.*/./; q'`
1455 srcdir=$ac_confdir
1456 if test ! -r "$srcdir/$ac_unique_file"; then
1457 srcdir=..
1459 else
1460 ac_srcdir_defaulted=no
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1464 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1466 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1467 ac_abs_confdir=`(
1468 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1469 pwd)`
1470 # When building in place, set srcdir=.
1471 if test "$ac_abs_confdir" = "$ac_pwd"; then
1472 srcdir=.
1474 # Remove unnecessary trailing slashes from srcdir.
1475 # Double slashes in file names in object file debugging info
1476 # mess up M-x gdb in Emacs.
1477 case $srcdir in
1478 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1479 esac
1480 for ac_var in $ac_precious_vars; do
1481 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_env_${ac_var}_value=\$${ac_var}
1483 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1484 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1485 done
1488 # Report the --help message.
1490 if test "$ac_init_help" = "long"; then
1491 # Omit some internal or obsolete options to make the list less imposing.
1492 # This message is too long to be a string in the A/UX 3.1 sh.
1493 cat <<_ACEOF
1494 \`configure' configures GNU Classpath 0.99.1-pre to adapt to many kinds of systems.
1496 Usage: $0 [OPTION]... [VAR=VALUE]...
1498 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1499 VAR=VALUE. See below for descriptions of some of the useful variables.
1501 Defaults for the options are specified in brackets.
1503 Configuration:
1504 -h, --help display this help and exit
1505 --help=short display options specific to this package
1506 --help=recursive display the short help of all the included packages
1507 -V, --version display version information and exit
1508 -q, --quiet, --silent do not print \`checking...' messages
1509 --cache-file=FILE cache test results in FILE [disabled]
1510 -C, --config-cache alias for \`--cache-file=config.cache'
1511 -n, --no-create do not create output files
1512 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1514 Installation directories:
1515 --prefix=PREFIX install architecture-independent files in PREFIX
1516 [$ac_default_prefix]
1517 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1518 [PREFIX]
1520 By default, \`make install' will install all the files in
1521 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1522 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1523 for instance \`--prefix=\$HOME'.
1525 For better control, use the options below.
1527 Fine tuning of the installation directories:
1528 --bindir=DIR user executables [EPREFIX/bin]
1529 --sbindir=DIR system admin executables [EPREFIX/sbin]
1530 --libexecdir=DIR program executables [EPREFIX/libexec]
1531 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1532 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1533 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1534 --libdir=DIR object code libraries [EPREFIX/lib]
1535 --includedir=DIR C header files [PREFIX/include]
1536 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1537 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1538 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1539 --infodir=DIR info documentation [DATAROOTDIR/info]
1540 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1541 --mandir=DIR man documentation [DATAROOTDIR/man]
1542 --docdir=DIR documentation root [DATAROOTDIR/doc/classpath]
1543 --htmldir=DIR html documentation [DOCDIR]
1544 --dvidir=DIR dvi documentation [DOCDIR]
1545 --pdfdir=DIR pdf documentation [DOCDIR]
1546 --psdir=DIR ps documentation [DOCDIR]
1547 _ACEOF
1549 cat <<\_ACEOF
1551 Program names:
1552 --program-prefix=PREFIX prepend PREFIX to installed program names
1553 --program-suffix=SUFFIX append SUFFIX to installed program names
1554 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1556 X features:
1557 --x-includes=DIR X include files are in DIR
1558 --x-libraries=DIR X library files are in DIR
1560 System types:
1561 --build=BUILD configure for building on BUILD [guessed]
1562 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1563 --target=TARGET configure for building compilers for TARGET [HOST]
1564 _ACEOF
1567 if test -n "$ac_init_help"; then
1568 case $ac_init_help in
1569 short | recursive ) echo "Configuration of GNU Classpath 0.99.1-pre:";;
1570 esac
1571 cat <<\_ACEOF
1573 Optional Features:
1574 --disable-option-checking ignore unrecognized --enable/--with options
1575 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1576 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1577 --enable-java-maintainer-mode
1578 allow rebuilding of .class and .h files
1579 --enable-generated-files-in-srcdir
1580 put copies of generated files in source dir
1581 intended for creating source tarballs for users
1582 without texinfo, perl, bison or flex.
1583 --enable-multilib build many library versions (default)
1584 --enable-collections create collections.jar default=no
1585 --enable-jni compile JNI source default=yes
1586 --enable-core-jni compile JNI sources for core default=yes
1587 --enable-default-preferences-peer[=peer type or class name]
1588 specify one of: "gconf" [default] for a GConf based
1589 backend, "file" for a file based one, "memory" for a
1590 transient one, or a fully qualified class name
1591 implementing java.util.prefs.PreferencesFactory
1592 --disable-gconf-peer compile GConf native peers (disabled by
1593 --disable-jni) default=yes
1595 --enable-gstreamer-peer compile GStreamer native peers (disabled by
1596 --disable-jni) default=no
1597 --enable-Werror whether to compile C code with -Werror which turns
1598 any compiler warning into a compilation failure
1599 default=no
1600 --enable-default-toolkit
1601 fully qualified class name of default AWT toolkit
1602 --enable-xmlj compile native libxml/xslt library default=no
1603 --disable-alsa compile ALSA providers (enable by --enable-alsa)
1604 default=yes
1605 --disable-dependency-tracking speeds up one-time build
1606 --enable-dependency-tracking do not reject slow dependency extractors
1607 --disable-dssi compile DSSI providers (enable by --enable-dssi)
1608 default=yes
1609 --disable-gtk-peer compile GTK native peers (disabled by --disable-jni)
1610 default=yes
1611 --enable-qt-peer compile Qt4 native peers (disabled by --disable-jni)
1612 default=no
1613 --disable-plugin compile gcjwebplugin (disabled by --disable-plugin)
1614 default=yes
1615 --enable-gmp compile native java.math.BigInteger library
1616 (disabled by --disable-gmp) default=yes
1617 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1618 default=yes
1619 --enable-regen-headers automatically regenerate JNI headers default=yes if
1620 headers don't exist
1621 --enable-regen-gjdoc-parser
1622 automatically regenerate the GJDoc parser
1623 default=yes if generated source doesn't exist
1624 --enable-tool-wrappers create tool wrapper binaries default=no
1625 --enable-static[=PKGS] build static libraries [default=no]
1626 --enable-shared[=PKGS] build shared libraries [default=yes]
1627 --enable-fast-install[=PKGS]
1628 optimize for fast installation [default=yes]
1629 --disable-libtool-lock avoid locking (might break parallel builds)
1630 --disable-rpath do not hardcode runtime library paths
1631 --enable-maintainer-mode enable make rules and dependencies not useful
1632 (and sometimes confusing) to the casual installer
1633 --enable-debug enable runtime debugging code
1634 --enable-load-library enable to use JNI native methods default=yes
1635 --enable-java-lang-system-explicit-initialization
1636 will the VM explicitly invoke java.lang.System's
1637 static initialization methods default=no
1638 --enable-examples enable build of the examples default=yes
1639 --enable-tools enable build of the tools default=yes
1640 --enable-portable-native-sync
1641 synchronize VM threads portably
1642 --enable-local-sockets enables local (AF_LOCAL) socket API default: no
1644 Optional Packages:
1645 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1646 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1647 --with-native-libdir sets the installation directory for native libraries
1648 default='${libdir}/${PACKAGE}'
1649 --with-glibj-dir sets the installation directory for glibj.zip
1650 default='${libdir}/${PACKAGE}'
1651 --with-antlr-jar=file Use ANTLR from the specified jar file
1652 --with-pic try to use only PIC/non-PIC objects [default=use
1653 both]
1654 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1655 --with-gnu-ld assume the C compiler uses GNU ld default=no
1656 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1657 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1658 --with-x use the X Window System
1659 --with-qt4dir=DIR Qt4 installation directory used for OS-X. For other
1660 systems use pkg-config.
1661 --with-gmp=PATH specify prefix directory for the installed GMP package.
1662 Equivalent to --with-gmp-include=PATH/include
1663 plus --with-gmp-lib=PATH/lib
1664 --with-gmp-include=PATH specify directory for installed GMP include files
1665 --with-gmp-lib=PATH specify directory for the installed GMP library
1666 --with-javah specify path or name of a javah-like program
1667 --with-vm-classes specify path to VM override source files
1668 --with-ecj-jar=ABS.PATH specify jar file containing the Eclipse Java
1669 Compiler
1670 --with-jar=PATH define to use a jar style tool
1671 --with-glibj define what to install (zip|flat|both|none|build)
1672 [default=zip]
1673 --with-gjdoc generate documentation using gjdoc (default is NO)
1674 --with-jay=DIR|PATH Regenerate the parsers with jay
1675 --with-glibj-zip=ABS.PATH
1676 use prebuilt glibj.zip class library
1677 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1679 Some influential environment variables:
1680 CC C compiler command
1681 CFLAGS C compiler flags
1682 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1683 nonstandard directory <lib dir>
1684 LIBS libraries to pass to the linker, e.g. -l<library>
1685 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1686 you have headers in a nonstandard directory <include dir>
1687 CPP C preprocessor
1688 CXX C++ compiler command
1689 CXXFLAGS C++ compiler flags
1690 CXXCPP C++ preprocessor
1691 XMKMF Path to xmkmf, Makefile generator for X Window System
1693 Use these variables to override the choices made by `configure' or to help
1694 it to find libraries and programs with nonstandard names/locations.
1696 Report bugs to <classpath@gnu.org>.
1697 GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
1698 General help using GNU software: <http://www.gnu.org/gethelp/>.
1699 _ACEOF
1700 ac_status=$?
1703 if test "$ac_init_help" = "recursive"; then
1704 # If there are subdirs, report their specific --help.
1705 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1706 test -d "$ac_dir" ||
1707 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1708 continue
1709 ac_builddir=.
1711 case "$ac_dir" in
1712 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1714 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1715 # A ".." for each directory in $ac_dir_suffix.
1716 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1717 case $ac_top_builddir_sub in
1718 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1719 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1720 esac ;;
1721 esac
1722 ac_abs_top_builddir=$ac_pwd
1723 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1724 # for backward compatibility:
1725 ac_top_builddir=$ac_top_build_prefix
1727 case $srcdir in
1728 .) # We are building in place.
1729 ac_srcdir=.
1730 ac_top_srcdir=$ac_top_builddir_sub
1731 ac_abs_top_srcdir=$ac_pwd ;;
1732 [\\/]* | ?:[\\/]* ) # Absolute name.
1733 ac_srcdir=$srcdir$ac_dir_suffix;
1734 ac_top_srcdir=$srcdir
1735 ac_abs_top_srcdir=$srcdir ;;
1736 *) # Relative name.
1737 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1738 ac_top_srcdir=$ac_top_build_prefix$srcdir
1739 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1740 esac
1741 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1743 cd "$ac_dir" || { ac_status=$?; continue; }
1744 # Check for guested configure.
1745 if test -f "$ac_srcdir/configure.gnu"; then
1746 echo &&
1747 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1748 elif test -f "$ac_srcdir/configure"; then
1749 echo &&
1750 $SHELL "$ac_srcdir/configure" --help=recursive
1751 else
1752 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1753 fi || ac_status=$?
1754 cd "$ac_pwd" || { ac_status=$?; break; }
1755 done
1758 test -n "$ac_init_help" && exit $ac_status
1759 if $ac_init_version; then
1760 cat <<\_ACEOF
1761 GNU Classpath configure 0.99.1-pre
1762 generated by GNU Autoconf 2.64
1764 Copyright (C) 2009 Free Software Foundation, Inc.
1765 This configure script is free software; the Free Software Foundation
1766 gives unlimited permission to copy, distribute and modify it.
1767 _ACEOF
1768 exit
1771 ## ------------------------ ##
1772 ## Autoconf initialization. ##
1773 ## ------------------------ ##
1775 # ac_fn_c_try_compile LINENO
1776 # --------------------------
1777 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_compile ()
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext
1782 if { { ac_try="$ac_compile"
1783 case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_compile") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest.$ac_objext; then :
1801 ac_retval=0
1802 else
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1806 ac_retval=1
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 return $ac_retval
1811 } # ac_fn_c_try_compile
1813 # ac_fn_c_try_cpp LINENO
1814 # ----------------------
1815 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1816 ac_fn_c_try_cpp ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 if { { ac_try="$ac_cpp conftest.$ac_ext"
1820 case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1827 ac_status=$?
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } >/dev/null && {
1835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1836 test ! -s conftest.err
1837 }; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1843 ac_retval=1
1845 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846 return $ac_retval
1848 } # ac_fn_c_try_cpp
1850 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1851 # -------------------------------------------------------
1852 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1853 # the include files in INCLUDES and setting the cache variable VAR
1854 # accordingly.
1855 ac_fn_c_check_header_mongrel ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1862 $as_echo_n "(cached) " >&6
1864 eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 else
1868 # Is the header compilable?
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1870 $as_echo_n "checking $2 usability... " >&6; }
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h. */
1874 #include <$2>
1875 _ACEOF
1876 if ac_fn_c_try_compile "$LINENO"; then :
1877 ac_header_compiler=yes
1878 else
1879 ac_header_compiler=no
1881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1883 $as_echo "$ac_header_compiler" >&6; }
1885 # Is the header present?
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1887 $as_echo_n "checking $2 presence... " >&6; }
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h. */
1890 #include <$2>
1891 _ACEOF
1892 if ac_fn_c_try_cpp "$LINENO"; then :
1893 ac_header_preproc=yes
1894 else
1895 ac_header_preproc=no
1897 rm -f conftest.err conftest.$ac_ext
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1899 $as_echo "$ac_header_preproc" >&6; }
1901 # So? What about this header?
1902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1903 yes:no: )
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1905 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1907 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1909 no:yes:* )
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1911 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1913 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1915 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1917 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1919 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1920 ( cat <<\_ASBOX
1921 ## -------------------------------- ##
1922 ## Report this to classpath@gnu.org ##
1923 ## -------------------------------- ##
1924 _ASBOX
1925 ) | sed "s/^/$as_me: WARNING: /" >&2
1927 esac
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931 $as_echo_n "(cached) " >&6
1932 else
1933 eval "$3=\$ac_header_compiler"
1935 eval ac_res=\$$3
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1939 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941 } # ac_fn_c_check_header_mongrel
1943 # ac_fn_c_try_run LINENO
1944 # ----------------------
1945 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1946 # that executables *can* be run.
1947 ac_fn_c_try_run ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { { ac_try="$ac_link"
1951 case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954 esac
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_link") 2>&5
1958 ac_status=$?
1959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1961 { { case "(($ac_try" in
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1964 esac
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_try") 2>&5
1968 ac_status=$?
1969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970 test $ac_status = 0; }; }; then :
1971 ac_retval=0
1972 else
1973 $as_echo "$as_me: program exited with status $ac_status" >&5
1974 $as_echo "$as_me: failed program was:" >&5
1975 sed 's/^/| /' conftest.$ac_ext >&5
1977 ac_retval=$ac_status
1979 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1980 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981 return $ac_retval
1983 } # ac_fn_c_try_run
1985 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1986 # -------------------------------------------------------
1987 # Tests whether HEADER exists and can be compiled using the include files in
1988 # INCLUDES, setting the cache variable VAR accordingly.
1989 ac_fn_c_check_header_compile ()
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1995 $as_echo_n "(cached) " >&6
1996 else
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2000 #include <$2>
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 eval "$3=yes"
2004 else
2005 eval "$3=no"
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014 } # ac_fn_c_check_header_compile
2016 # ac_fn_c_try_link LINENO
2017 # -----------------------
2018 # Try to link conftest.$ac_ext, and return whether this succeeded.
2019 ac_fn_c_try_link ()
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 rm -f conftest.$ac_objext conftest$ac_exeext
2023 if { { ac_try="$ac_link"
2024 case "(($ac_try" in
2025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026 *) ac_try_echo=$ac_try;;
2027 esac
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 $as_echo "$ac_try_echo"; } >&5
2030 (eval "$ac_link") 2>conftest.err
2031 ac_status=$?
2032 if test -s conftest.err; then
2033 grep -v '^ *+' conftest.err >conftest.er1
2034 cat conftest.er1 >&5
2035 mv -f conftest.er1 conftest.err
2037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038 test $ac_status = 0; } && {
2039 test -z "$ac_c_werror_flag" ||
2040 test ! -s conftest.err
2041 } && test -s conftest$ac_exeext && {
2042 test "$cross_compiling" = yes ||
2043 $as_test_x conftest$ac_exeext
2044 }; then :
2045 ac_retval=0
2046 else
2047 $as_echo "$as_me: failed program was:" >&5
2048 sed 's/^/| /' conftest.$ac_ext >&5
2050 ac_retval=1
2052 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2053 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2054 # interfere with the next link command; also delete a directory that is
2055 # left behind by Apple's compiler. We do this before executing the actions.
2056 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2057 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058 return $ac_retval
2060 } # ac_fn_c_try_link
2062 # ac_fn_c_check_func LINENO FUNC VAR
2063 # ----------------------------------
2064 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2065 ac_fn_c_check_func ()
2067 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2071 $as_echo_n "(cached) " >&6
2072 else
2073 if test x$gcc_no_link = xyes; then
2074 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2080 #define $2 innocuous_$2
2082 /* System header to define __stub macros and hopefully few prototypes,
2083 which can conflict with char $2 (); below.
2084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2085 <limits.h> exists even on freestanding compilers. */
2087 #ifdef __STDC__
2088 # include <limits.h>
2089 #else
2090 # include <assert.h>
2091 #endif
2093 #undef $2
2095 /* Override any GCC internal prototype to avoid an error.
2096 Use char because int might match the return type of a GCC
2097 builtin and then its argument prototype would still apply. */
2098 #ifdef __cplusplus
2099 extern "C"
2100 #endif
2101 char $2 ();
2102 /* The GNU C library defines this for functions which it implements
2103 to always fail with ENOSYS. Some functions are actually named
2104 something starting with __ and the normal name is an alias. */
2105 #if defined __stub_$2 || defined __stub___$2
2106 choke me
2107 #endif
2110 main ()
2112 return $2 ();
2114 return 0;
2116 _ACEOF
2117 if ac_fn_c_try_link "$LINENO"; then :
2118 eval "$3=yes"
2119 else
2120 eval "$3=no"
2122 rm -f core conftest.err conftest.$ac_objext \
2123 conftest$ac_exeext conftest.$ac_ext
2125 eval ac_res=\$$3
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127 $as_echo "$ac_res" >&6; }
2128 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2130 } # ac_fn_c_check_func
2132 # ac_fn_cxx_try_compile LINENO
2133 # ----------------------------
2134 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2135 ac_fn_cxx_try_compile ()
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138 rm -f conftest.$ac_objext
2139 if { { ac_try="$ac_compile"
2140 case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_compile") 2>conftest.err
2147 ac_status=$?
2148 if test -s conftest.err; then
2149 grep -v '^ *+' conftest.err >conftest.er1
2150 cat conftest.er1 >&5
2151 mv -f conftest.er1 conftest.err
2153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154 test $ac_status = 0; } && {
2155 test -z "$ac_cxx_werror_flag" ||
2156 test ! -s conftest.err
2157 } && test -s conftest.$ac_objext; then :
2158 ac_retval=0
2159 else
2160 $as_echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2163 ac_retval=1
2165 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2166 return $ac_retval
2168 } # ac_fn_cxx_try_compile
2170 # ac_fn_cxx_try_cpp LINENO
2171 # ------------------------
2172 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2173 ac_fn_cxx_try_cpp ()
2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176 if { { ac_try="$ac_cpp conftest.$ac_ext"
2177 case "(($ac_try" in
2178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179 *) ac_try_echo=$ac_try;;
2180 esac
2181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182 $as_echo "$ac_try_echo"; } >&5
2183 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2184 ac_status=$?
2185 if test -s conftest.err; then
2186 grep -v '^ *+' conftest.err >conftest.er1
2187 cat conftest.er1 >&5
2188 mv -f conftest.er1 conftest.err
2190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2191 test $ac_status = 0; } >/dev/null && {
2192 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2193 test ! -s conftest.err
2194 }; then :
2195 ac_retval=0
2196 else
2197 $as_echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2200 ac_retval=1
2202 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2203 return $ac_retval
2205 } # ac_fn_cxx_try_cpp
2207 # ac_fn_cxx_try_link LINENO
2208 # -------------------------
2209 # Try to link conftest.$ac_ext, and return whether this succeeded.
2210 ac_fn_cxx_try_link ()
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 rm -f conftest.$ac_objext conftest$ac_exeext
2214 if { { ac_try="$ac_link"
2215 case "(($ac_try" in
2216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217 *) ac_try_echo=$ac_try;;
2218 esac
2219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2220 $as_echo "$ac_try_echo"; } >&5
2221 (eval "$ac_link") 2>conftest.err
2222 ac_status=$?
2223 if test -s conftest.err; then
2224 grep -v '^ *+' conftest.err >conftest.er1
2225 cat conftest.er1 >&5
2226 mv -f conftest.er1 conftest.err
2228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2229 test $ac_status = 0; } && {
2230 test -z "$ac_cxx_werror_flag" ||
2231 test ! -s conftest.err
2232 } && test -s conftest$ac_exeext && {
2233 test "$cross_compiling" = yes ||
2234 $as_test_x conftest$ac_exeext
2235 }; then :
2236 ac_retval=0
2237 else
2238 $as_echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2241 ac_retval=1
2243 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2244 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2245 # interfere with the next link command; also delete a directory that is
2246 # left behind by Apple's compiler. We do this before executing the actions.
2247 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249 return $ac_retval
2251 } # ac_fn_cxx_try_link
2253 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2254 # ----------------------------------------------------
2255 # Tries to find if the field MEMBER exists in type AGGR, after including
2256 # INCLUDES, setting cache variable VAR accordingly.
2257 ac_fn_c_check_member ()
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2261 $as_echo_n "checking for $2.$3... " >&6; }
2262 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2263 $as_echo_n "(cached) " >&6
2264 else
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2269 main ()
2271 static $2 ac_aggr;
2272 if (ac_aggr.$3)
2273 return 0;
2275 return 0;
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279 eval "$4=yes"
2280 else
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2285 main ()
2287 static $2 ac_aggr;
2288 if (sizeof ac_aggr.$3)
2289 return 0;
2291 return 0;
2293 _ACEOF
2294 if ac_fn_c_try_compile "$LINENO"; then :
2295 eval "$4=yes"
2296 else
2297 eval "$4=no"
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 eval ac_res=\$$4
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305 $as_echo "$ac_res" >&6; }
2306 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2308 } # ac_fn_c_check_member
2310 # ac_fn_c_check_decl LINENO SYMBOL VAR
2311 # ------------------------------------
2312 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2313 ac_fn_c_check_decl ()
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 as_decl_name=`echo $2|sed 's/ *(.*//'`
2317 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2319 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2320 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2321 $as_echo_n "(cached) " >&6
2322 else
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2327 main ()
2329 #ifndef $as_decl_name
2330 #ifdef __cplusplus
2331 (void) $as_decl_use;
2332 #else
2333 (void) $as_decl_name;
2334 #endif
2335 #endif
2338 return 0;
2340 _ACEOF
2341 if ac_fn_c_try_compile "$LINENO"; then :
2342 eval "$3=yes"
2343 else
2344 eval "$3=no"
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2348 eval ac_res=\$$3
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2351 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2353 } # ac_fn_c_check_decl
2355 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2356 # -------------------------------------------
2357 # Tests whether TYPE exists after having included INCLUDES, setting cache
2358 # variable VAR accordingly.
2359 ac_fn_c_check_type ()
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2363 $as_echo_n "checking for $2... " >&6; }
2364 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2365 $as_echo_n "(cached) " >&6
2366 else
2367 eval "$3=no"
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h. */
2372 main ()
2374 if (sizeof ($2))
2375 return 0;
2377 return 0;
2379 _ACEOF
2380 if ac_fn_c_try_compile "$LINENO"; then :
2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h. */
2385 main ()
2387 if (sizeof (($2)))
2388 return 0;
2390 return 0;
2392 _ACEOF
2393 if ac_fn_c_try_compile "$LINENO"; then :
2395 else
2396 eval "$3=yes"
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 eval ac_res=\$$3
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2407 } # ac_fn_c_check_type
2409 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2410 # --------------------------------------------
2411 # Tries to find the compile-time value of EXPR in a program that includes
2412 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2413 # computed
2414 ac_fn_c_compute_int ()
2416 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2417 if test "$cross_compiling" = yes; then
2418 # Depending upon the size, compute the lo and hi bounds.
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2423 main ()
2425 static int test_array [1 - 2 * !(($2) >= 0)];
2426 test_array [0] = 0
2429 return 0;
2431 _ACEOF
2432 if ac_fn_c_try_compile "$LINENO"; then :
2433 ac_lo=0 ac_mid=0
2434 while :; do
2435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2436 /* end confdefs.h. */
2439 main ()
2441 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2442 test_array [0] = 0
2445 return 0;
2447 _ACEOF
2448 if ac_fn_c_try_compile "$LINENO"; then :
2449 ac_hi=$ac_mid; break
2450 else
2451 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2452 if test $ac_lo -le $ac_mid; then
2453 ac_lo= ac_hi=
2454 break
2456 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 done
2460 else
2461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h. */
2465 main ()
2467 static int test_array [1 - 2 * !(($2) < 0)];
2468 test_array [0] = 0
2471 return 0;
2473 _ACEOF
2474 if ac_fn_c_try_compile "$LINENO"; then :
2475 ac_hi=-1 ac_mid=-1
2476 while :; do
2477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h. */
2481 main ()
2483 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2484 test_array [0] = 0
2487 return 0;
2489 _ACEOF
2490 if ac_fn_c_try_compile "$LINENO"; then :
2491 ac_lo=$ac_mid; break
2492 else
2493 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2494 if test $ac_mid -le $ac_hi; then
2495 ac_lo= ac_hi=
2496 break
2498 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2501 done
2502 else
2503 ac_lo= ac_hi=
2505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2508 # Binary search between lo and hi bounds.
2509 while test "x$ac_lo" != "x$ac_hi"; do
2510 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512 /* end confdefs.h. */
2515 main ()
2517 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2518 test_array [0] = 0
2521 return 0;
2523 _ACEOF
2524 if ac_fn_c_try_compile "$LINENO"; then :
2525 ac_hi=$ac_mid
2526 else
2527 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2530 done
2531 case $ac_lo in #((
2532 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2533 '') ac_retval=1 ;;
2534 esac
2535 else
2536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2537 /* end confdefs.h. */
2539 static long int longval () { return $2; }
2540 static unsigned long int ulongval () { return $2; }
2541 #include <stdio.h>
2542 #include <stdlib.h>
2544 main ()
2547 FILE *f = fopen ("conftest.val", "w");
2548 if (! f)
2549 return 1;
2550 if (($2) < 0)
2552 long int i = longval ();
2553 if (i != ($2))
2554 return 1;
2555 fprintf (f, "%ld", i);
2557 else
2559 unsigned long int i = ulongval ();
2560 if (i != ($2))
2561 return 1;
2562 fprintf (f, "%lu", i);
2564 /* Do not output a trailing newline, as this causes \r\n confusion
2565 on some platforms. */
2566 return ferror (f) || fclose (f) != 0;
2569 return 0;
2571 _ACEOF
2572 if ac_fn_c_try_run "$LINENO"; then :
2573 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2574 else
2575 ac_retval=1
2577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2578 conftest.$ac_objext conftest.beam conftest.$ac_ext
2579 rm -f conftest.val
2582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2583 return $ac_retval
2585 } # ac_fn_c_compute_int
2586 cat >config.log <<_ACEOF
2587 This file contains any messages produced by compilers while
2588 running configure, to aid debugging if configure makes a mistake.
2590 It was created by GNU Classpath $as_me 0.99.1-pre, which was
2591 generated by GNU Autoconf 2.64. Invocation command line was
2593 $ $0 $@
2595 _ACEOF
2596 exec 5>>config.log
2598 cat <<_ASUNAME
2599 ## --------- ##
2600 ## Platform. ##
2601 ## --------- ##
2603 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2604 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2605 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2606 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2607 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2609 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2610 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2612 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2613 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2614 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2615 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2616 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2617 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2618 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2620 _ASUNAME
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 $as_echo "PATH: $as_dir"
2628 done
2629 IFS=$as_save_IFS
2631 } >&5
2633 cat >&5 <<_ACEOF
2636 ## ----------- ##
2637 ## Core tests. ##
2638 ## ----------- ##
2640 _ACEOF
2643 # Keep a trace of the command line.
2644 # Strip out --no-create and --no-recursion so they do not pile up.
2645 # Strip out --silent because we don't want to record it for future runs.
2646 # Also quote any args containing shell meta-characters.
2647 # Make two passes to allow for proper duplicate-argument suppression.
2648 ac_configure_args=
2649 ac_configure_args0=
2650 ac_configure_args1=
2651 ac_must_keep_next=false
2652 for ac_pass in 1 2
2654 for ac_arg
2656 case $ac_arg in
2657 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2659 | -silent | --silent | --silen | --sile | --sil)
2660 continue ;;
2661 *\'*)
2662 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2663 esac
2664 case $ac_pass in
2665 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2667 as_fn_append ac_configure_args1 " '$ac_arg'"
2668 if test $ac_must_keep_next = true; then
2669 ac_must_keep_next=false # Got value, back to normal.
2670 else
2671 case $ac_arg in
2672 *=* | --config-cache | -C | -disable-* | --disable-* \
2673 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2674 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2675 | -with-* | --with-* | -without-* | --without-* | --x)
2676 case "$ac_configure_args0 " in
2677 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2678 esac
2680 -* ) ac_must_keep_next=true ;;
2681 esac
2683 as_fn_append ac_configure_args " '$ac_arg'"
2685 esac
2686 done
2687 done
2688 { ac_configure_args0=; unset ac_configure_args0;}
2689 { ac_configure_args1=; unset ac_configure_args1;}
2691 # When interrupted or exit'd, cleanup temporary files, and complete
2692 # config.log. We remove comments because anyway the quotes in there
2693 # would cause problems or look ugly.
2694 # WARNING: Use '\'' to represent an apostrophe within the trap.
2695 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2696 trap 'exit_status=$?
2697 # Save into config.log some information that might help in debugging.
2699 echo
2701 cat <<\_ASBOX
2702 ## ---------------- ##
2703 ## Cache variables. ##
2704 ## ---------------- ##
2705 _ASBOX
2706 echo
2707 # The following way of writing the cache mishandles newlines in values,
2709 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2710 eval ac_val=\$$ac_var
2711 case $ac_val in #(
2712 *${as_nl}*)
2713 case $ac_var in #(
2714 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2715 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2716 esac
2717 case $ac_var in #(
2718 _ | IFS | as_nl) ;; #(
2719 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2720 *) { eval $ac_var=; unset $ac_var;} ;;
2721 esac ;;
2722 esac
2723 done
2724 (set) 2>&1 |
2725 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2726 *${as_nl}ac_space=\ *)
2727 sed -n \
2728 "s/'\''/'\''\\\\'\'''\''/g;
2729 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2730 ;; #(
2732 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2734 esac |
2735 sort
2737 echo
2739 cat <<\_ASBOX
2740 ## ----------------- ##
2741 ## Output variables. ##
2742 ## ----------------- ##
2743 _ASBOX
2744 echo
2745 for ac_var in $ac_subst_vars
2747 eval ac_val=\$$ac_var
2748 case $ac_val in
2749 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2750 esac
2751 $as_echo "$ac_var='\''$ac_val'\''"
2752 done | sort
2753 echo
2755 if test -n "$ac_subst_files"; then
2756 cat <<\_ASBOX
2757 ## ------------------- ##
2758 ## File substitutions. ##
2759 ## ------------------- ##
2760 _ASBOX
2761 echo
2762 for ac_var in $ac_subst_files
2764 eval ac_val=\$$ac_var
2765 case $ac_val in
2766 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2767 esac
2768 $as_echo "$ac_var='\''$ac_val'\''"
2769 done | sort
2770 echo
2773 if test -s confdefs.h; then
2774 cat <<\_ASBOX
2775 ## ----------- ##
2776 ## confdefs.h. ##
2777 ## ----------- ##
2778 _ASBOX
2779 echo
2780 cat confdefs.h
2781 echo
2783 test "$ac_signal" != 0 &&
2784 $as_echo "$as_me: caught signal $ac_signal"
2785 $as_echo "$as_me: exit $exit_status"
2786 } >&5
2787 rm -f core *.core core.conftest.* &&
2788 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2789 exit $exit_status
2791 for ac_signal in 1 2 13 15; do
2792 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2793 done
2794 ac_signal=0
2796 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2797 rm -f -r conftest* confdefs.h
2799 $as_echo "/* confdefs.h */" > confdefs.h
2801 # Predefined preprocessor variables.
2803 cat >>confdefs.h <<_ACEOF
2804 #define PACKAGE_NAME "$PACKAGE_NAME"
2805 _ACEOF
2807 cat >>confdefs.h <<_ACEOF
2808 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2809 _ACEOF
2811 cat >>confdefs.h <<_ACEOF
2812 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2813 _ACEOF
2815 cat >>confdefs.h <<_ACEOF
2816 #define PACKAGE_STRING "$PACKAGE_STRING"
2817 _ACEOF
2819 cat >>confdefs.h <<_ACEOF
2820 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2821 _ACEOF
2823 cat >>confdefs.h <<_ACEOF
2824 #define PACKAGE_URL "$PACKAGE_URL"
2825 _ACEOF
2828 # Let the site file select an alternate cache file if it wants to.
2829 # Prefer an explicitly selected file to automatically selected ones.
2830 ac_site_file1=NONE
2831 ac_site_file2=NONE
2832 if test -n "$CONFIG_SITE"; then
2833 ac_site_file1=$CONFIG_SITE
2834 elif test "x$prefix" != xNONE; then
2835 ac_site_file1=$prefix/share/config.site
2836 ac_site_file2=$prefix/etc/config.site
2837 else
2838 ac_site_file1=$ac_default_prefix/share/config.site
2839 ac_site_file2=$ac_default_prefix/etc/config.site
2841 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2843 test "x$ac_site_file" = xNONE && continue
2844 if test -r "$ac_site_file"; then
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2846 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2847 sed 's/^/| /' "$ac_site_file" >&5
2848 . "$ac_site_file"
2850 done
2852 if test -r "$cache_file"; then
2853 # Some versions of bash will fail to source /dev/null (special
2854 # files actually), so we avoid doing that.
2855 if test -f "$cache_file"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2857 $as_echo "$as_me: loading cache $cache_file" >&6;}
2858 case $cache_file in
2859 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2860 *) . "./$cache_file";;
2861 esac
2863 else
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2865 $as_echo "$as_me: creating cache $cache_file" >&6;}
2866 >$cache_file
2869 # Check that the precious variables saved in the cache have kept the same
2870 # value.
2871 ac_cache_corrupted=false
2872 for ac_var in $ac_precious_vars; do
2873 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2874 eval ac_new_set=\$ac_env_${ac_var}_set
2875 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2876 eval ac_new_val=\$ac_env_${ac_var}_value
2877 case $ac_old_set,$ac_new_set in
2878 set,)
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2880 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2881 ac_cache_corrupted=: ;;
2882 ,set)
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2884 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2885 ac_cache_corrupted=: ;;
2886 ,);;
2888 if test "x$ac_old_val" != "x$ac_new_val"; then
2889 # differences in whitespace do not lead to failure.
2890 ac_old_val_w=`echo x $ac_old_val`
2891 ac_new_val_w=`echo x $ac_new_val`
2892 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2894 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2895 ac_cache_corrupted=:
2896 else
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2898 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2899 eval $ac_var=\$ac_old_val
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2902 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2904 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2905 fi;;
2906 esac
2907 # Pass precious variables to config.status.
2908 if test "$ac_new_set" = set; then
2909 case $ac_new_val in
2910 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2911 *) ac_arg=$ac_var=$ac_new_val ;;
2912 esac
2913 case " $ac_configure_args " in
2914 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2915 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2916 esac
2918 done
2919 if $ac_cache_corrupted; then
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2923 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2924 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2926 ## -------------------- ##
2927 ## Main body of script. ##
2928 ## -------------------- ##
2930 ac_ext=c
2931 ac_cpp='$CPP $CPPFLAGS'
2932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2943 ac_aux_dir=
2944 for ac_dir in ../.. "$srcdir"/../..; do
2945 for ac_t in install-sh install.sh shtool; do
2946 if test -f "$ac_dir/$ac_t"; then
2947 ac_aux_dir=$ac_dir
2948 ac_install_sh="$ac_aux_dir/$ac_t -c"
2949 break 2
2951 done
2952 done
2953 if test -z "$ac_aux_dir"; then
2954 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2957 # These three variables are undocumented and unsupported,
2958 # and are intended to be withdrawn in a future Autoconf release.
2959 # They can cause serious problems if a builder's source tree is in a directory
2960 # whose full name contains unusual characters.
2961 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2962 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2963 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2967 # Make sure we can run config.sub.
2968 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2969 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2972 $as_echo_n "checking build system type... " >&6; }
2973 if test "${ac_cv_build+set}" = set; then :
2974 $as_echo_n "(cached) " >&6
2975 else
2976 ac_build_alias=$build_alias
2977 test "x$ac_build_alias" = x &&
2978 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2979 test "x$ac_build_alias" = x &&
2980 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2981 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2982 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2986 $as_echo "$ac_cv_build" >&6; }
2987 case $ac_cv_build in
2988 *-*-*) ;;
2989 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2990 esac
2991 build=$ac_cv_build
2992 ac_save_IFS=$IFS; IFS='-'
2993 set x $ac_cv_build
2994 shift
2995 build_cpu=$1
2996 build_vendor=$2
2997 shift; shift
2998 # Remember, the first character of IFS is used to create $*,
2999 # except with old shells:
3000 build_os=$*
3001 IFS=$ac_save_IFS
3002 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3006 $as_echo_n "checking host system type... " >&6; }
3007 if test "${ac_cv_host+set}" = set; then :
3008 $as_echo_n "(cached) " >&6
3009 else
3010 if test "x$host_alias" = x; then
3011 ac_cv_host=$ac_cv_build
3012 else
3013 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3014 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3019 $as_echo "$ac_cv_host" >&6; }
3020 case $ac_cv_host in
3021 *-*-*) ;;
3022 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3023 esac
3024 host=$ac_cv_host
3025 ac_save_IFS=$IFS; IFS='-'
3026 set x $ac_cv_host
3027 shift
3028 host_cpu=$1
3029 host_vendor=$2
3030 shift; shift
3031 # Remember, the first character of IFS is used to create $*,
3032 # except with old shells:
3033 host_os=$*
3034 IFS=$ac_save_IFS
3035 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3039 $as_echo_n "checking target system type... " >&6; }
3040 if test "${ac_cv_target+set}" = set; then :
3041 $as_echo_n "(cached) " >&6
3042 else
3043 if test "x$target_alias" = x; then
3044 ac_cv_target=$ac_cv_host
3045 else
3046 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3047 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3052 $as_echo "$ac_cv_target" >&6; }
3053 case $ac_cv_target in
3054 *-*-*) ;;
3055 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3056 esac
3057 target=$ac_cv_target
3058 ac_save_IFS=$IFS; IFS='-'
3059 set x $ac_cv_target
3060 shift
3061 target_cpu=$1
3062 target_vendor=$2
3063 shift; shift
3064 # Remember, the first character of IFS is used to create $*,
3065 # except with old shells:
3066 target_os=$*
3067 IFS=$ac_save_IFS
3068 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3071 # The aliases save the names the user supplied, while $host etc.
3072 # will get canonicalized.
3073 test -n "$target_alias" &&
3074 test "$program_prefix$program_suffix$program_transform_name" = \
3075 NONENONEs,x,x, &&
3076 program_prefix=${target_alias}-
3078 # Check whether --enable-java-maintainer-mode was given.
3079 if test "${enable_java_maintainer_mode+set}" = set; then :
3080 enableval=$enable_java_maintainer_mode;
3083 if test "$enable_java_maintainer_mode" = yes; then
3084 JAVA_MAINTAINER_MODE_TRUE=
3085 JAVA_MAINTAINER_MODE_FALSE='#'
3086 else
3087 JAVA_MAINTAINER_MODE_TRUE='#'
3088 JAVA_MAINTAINER_MODE_FALSE=
3092 # We would like to our source tree to be readonly. However when releases or
3093 # pre-releases are generated, the man pages need to be included as they are
3094 # converted from the texi files via perl which we don't require end users to
3095 # have installed.
3096 # Therefore we have --enable-generated-files-in-srcdir to do just that.
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3099 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3100 # Check whether --enable-generated-files-in-srcdir was given.
3101 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3102 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3103 else
3104 generated_files_in_srcdir=no
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3109 $as_echo "$generated_files_in_srcdir" >&6; }
3110 if test x$generated_files_in_srcdir = xyes; then
3111 GENINSRC_TRUE=
3112 GENINSRC_FALSE='#'
3113 else
3114 GENINSRC_TRUE='#'
3115 GENINSRC_FALSE=
3119 # Find the rest of the source tree framework.
3120 # Default to --enable-multilib
3121 # Check whether --enable-multilib was given.
3122 if test "${enable_multilib+set}" = set; then :
3123 enableval=$enable_multilib; case "$enableval" in
3124 yes) multilib=yes ;;
3125 no) multilib=no ;;
3126 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3127 esac
3128 else
3129 multilib=yes
3133 # We may get other options which we leave undocumented:
3134 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3135 # See config-ml.in if you want the gory details.
3137 if test "$srcdir" = "."; then
3138 if test "$with_target_subdir" != "."; then
3139 multi_basedir="$srcdir/$with_multisrctop../../.."
3140 else
3141 multi_basedir="$srcdir/$with_multisrctop../.."
3143 else
3144 multi_basedir="$srcdir/../.."
3148 # Even if the default multilib is not a cross compilation,
3149 # it may be that some of the other multilibs are.
3150 if test $cross_compiling = no && test $multilib = yes \
3151 && test "x${with_multisubdir}" != x ; then
3152 cross_compiling=maybe
3155 ac_config_commands="$ac_config_commands default-1"
3158 if test -z "${with_multisubdir}"; then
3159 INSTALL_BINARIES_TRUE=
3160 INSTALL_BINARIES_FALSE='#'
3161 else
3162 INSTALL_BINARIES_TRUE='#'
3163 INSTALL_BINARIES_FALSE=
3167 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
3169 LIBVERSION="0:0:0"
3171 case "$host_os" in
3172 darwin*)
3173 cp_module=""
3176 cp_module="-module"
3178 esac
3180 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
3183 CLASSPATH_CONVENIENCE="-no-undefined"
3187 am__api_version='1.11'
3189 # Find a good install program. We prefer a C program (faster),
3190 # so one script is as good as another. But avoid the broken or
3191 # incompatible versions:
3192 # SysV /etc/install, /usr/sbin/install
3193 # SunOS /usr/etc/install
3194 # IRIX /sbin/install
3195 # AIX /bin/install
3196 # AmigaOS /C/install, which installs bootblocks on floppy discs
3197 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3198 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3199 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3200 # OS/2's system install, which has a completely different semantic
3201 # ./install, which can be erroneously created by make from ./install.sh.
3202 # Reject install programs that cannot install multiple files.
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3204 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3205 if test -z "$INSTALL"; then
3206 if test "${ac_cv_path_install+set}" = set; then :
3207 $as_echo_n "(cached) " >&6
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 # Account for people who put trailing slashes in PATH elements.
3215 case $as_dir/ in #((
3216 ./ | .// | /[cC]/* | \
3217 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3218 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3219 /usr/ucb/* ) ;;
3221 # OSF1 and SCO ODT 3.0 have their own names for install.
3222 # Don't use installbsd from OSF since it installs stuff as root
3223 # by default.
3224 for ac_prog in ginstall scoinst install; do
3225 for ac_exec_ext in '' $ac_executable_extensions; do
3226 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3227 if test $ac_prog = install &&
3228 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3229 # AIX install. It has an incompatible calling convention.
3231 elif test $ac_prog = install &&
3232 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3233 # program-specific install script used by HP pwplus--don't use.
3235 else
3236 rm -rf conftest.one conftest.two conftest.dir
3237 echo one > conftest.one
3238 echo two > conftest.two
3239 mkdir conftest.dir
3240 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3241 test -s conftest.one && test -s conftest.two &&
3242 test -s conftest.dir/conftest.one &&
3243 test -s conftest.dir/conftest.two
3244 then
3245 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3246 break 3
3250 done
3251 done
3253 esac
3255 done
3256 IFS=$as_save_IFS
3258 rm -rf conftest.one conftest.two conftest.dir
3261 if test "${ac_cv_path_install+set}" = set; then
3262 INSTALL=$ac_cv_path_install
3263 else
3264 # As a last resort, use the slow shell script. Don't cache a
3265 # value for INSTALL within a source directory, because that will
3266 # break other packages using the cache if that directory is
3267 # removed, or if the value is a relative name.
3268 INSTALL=$ac_install_sh
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3272 $as_echo "$INSTALL" >&6; }
3274 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3275 # It thinks the first close brace ends the variable substitution.
3276 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3278 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3280 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3283 $as_echo_n "checking whether build environment is sane... " >&6; }
3284 # Just in case
3285 sleep 1
3286 echo timestamp > conftest.file
3287 # Reject unsafe characters in $srcdir or the absolute working directory
3288 # name. Accept space and tab only in the latter.
3289 am_lf='
3291 case `pwd` in
3292 *[\\\"\#\$\&\'\`$am_lf]*)
3293 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3294 esac
3295 case $srcdir in
3296 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3297 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3298 esac
3300 # Do `set' in a subshell so we don't clobber the current shell's
3301 # arguments. Must try -L first in case configure is actually a
3302 # symlink; some systems play weird games with the mod time of symlinks
3303 # (eg FreeBSD returns the mod time of the symlink's containing
3304 # directory).
3305 if (
3306 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3307 if test "$*" = "X"; then
3308 # -L didn't work.
3309 set X `ls -t "$srcdir/configure" conftest.file`
3311 rm -f conftest.file
3312 if test "$*" != "X $srcdir/configure conftest.file" \
3313 && test "$*" != "X conftest.file $srcdir/configure"; then
3315 # If neither matched, then we have a broken ls. This can happen
3316 # if, for instance, CONFIG_SHELL is bash and it inherits a
3317 # broken ls alias from the environment. This has actually
3318 # happened. Such a system could not be considered "sane".
3319 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3320 alias in your environment" "$LINENO" 5
3323 test "$2" = conftest.file
3325 then
3326 # Ok.
3328 else
3329 as_fn_error "newly created file is older than distributed files!
3330 Check your system clock" "$LINENO" 5
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333 $as_echo "yes" >&6; }
3334 test "$program_prefix" != NONE &&
3335 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3336 # Use a double $ so make ignores it.
3337 test "$program_suffix" != NONE &&
3338 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3339 # Double any \ or $.
3340 # By default was `s,x,x', remove it if useless.
3341 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3342 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3344 # expand $ac_aux_dir to an absolute path
3345 am_aux_dir=`cd $ac_aux_dir && pwd`
3347 if test x"${MISSING+set}" != xset; then
3348 case $am_aux_dir in
3349 *\ * | *\ *)
3350 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3352 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3353 esac
3355 # Use eval to expand $SHELL
3356 if eval "$MISSING --run true"; then
3357 am_missing_run="$MISSING --run "
3358 else
3359 am_missing_run=
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3361 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3364 if test x"${install_sh}" != xset; then
3365 case $am_aux_dir in
3366 *\ * | *\ *)
3367 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3369 install_sh="\${SHELL} $am_aux_dir/install-sh"
3370 esac
3373 # Installed binaries are usually stripped using `strip' when the user
3374 # run `make install-strip'. However `strip' might not be the right
3375 # tool to use in cross-compilation environments, therefore Automake
3376 # will honor the `STRIP' environment variable to overrule this program.
3377 if test "$cross_compiling" != no; then
3378 if test -n "$ac_tool_prefix"; then
3379 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3380 set dummy ${ac_tool_prefix}strip; ac_word=$2
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3382 $as_echo_n "checking for $ac_word... " >&6; }
3383 if test "${ac_cv_prog_STRIP+set}" = set; then :
3384 $as_echo_n "(cached) " >&6
3385 else
3386 if test -n "$STRIP"; then
3387 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3388 else
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3392 IFS=$as_save_IFS
3393 test -z "$as_dir" && as_dir=.
3394 for ac_exec_ext in '' $ac_executable_extensions; do
3395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3396 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 break 2
3400 done
3401 done
3402 IFS=$as_save_IFS
3406 STRIP=$ac_cv_prog_STRIP
3407 if test -n "$STRIP"; then
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3409 $as_echo "$STRIP" >&6; }
3410 else
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3417 if test -z "$ac_cv_prog_STRIP"; then
3418 ac_ct_STRIP=$STRIP
3419 # Extract the first word of "strip", so it can be a program name with args.
3420 set dummy strip; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3424 $as_echo_n "(cached) " >&6
3425 else
3426 if test -n "$ac_ct_STRIP"; then
3427 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3428 else
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 for as_dir in $PATH
3432 IFS=$as_save_IFS
3433 test -z "$as_dir" && as_dir=.
3434 for ac_exec_ext in '' $ac_executable_extensions; do
3435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436 ac_cv_prog_ac_ct_STRIP="strip"
3437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438 break 2
3440 done
3441 done
3442 IFS=$as_save_IFS
3446 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3447 if test -n "$ac_ct_STRIP"; then
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3449 $as_echo "$ac_ct_STRIP" >&6; }
3450 else
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3455 if test "x$ac_ct_STRIP" = x; then
3456 STRIP=":"
3457 else
3458 case $cross_compiling:$ac_tool_warned in
3459 yes:)
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3462 ac_tool_warned=yes ;;
3463 esac
3464 STRIP=$ac_ct_STRIP
3466 else
3467 STRIP="$ac_cv_prog_STRIP"
3471 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3474 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3475 if test -z "$MKDIR_P"; then
3476 if test "${ac_cv_path_mkdir+set}" = set; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3482 IFS=$as_save_IFS
3483 test -z "$as_dir" && as_dir=.
3484 for ac_prog in mkdir gmkdir; do
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3487 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3488 'mkdir (GNU coreutils) '* | \
3489 'mkdir (coreutils) '* | \
3490 'mkdir (fileutils) '4.1*)
3491 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3492 break 3;;
3493 esac
3494 done
3495 done
3496 done
3497 IFS=$as_save_IFS
3501 if test "${ac_cv_path_mkdir+set}" = set; then
3502 MKDIR_P="$ac_cv_path_mkdir -p"
3503 else
3504 # As a last resort, use the slow shell script. Don't cache a
3505 # value for MKDIR_P within a source directory, because that will
3506 # break other packages using the cache if that directory is
3507 # removed, or if the value is a relative name.
3508 test -d ./--version && rmdir ./--version
3509 MKDIR_P="$ac_install_sh -d"
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3513 $as_echo "$MKDIR_P" >&6; }
3515 mkdir_p="$MKDIR_P"
3516 case $mkdir_p in
3517 [\\/$]* | ?:[\\/]*) ;;
3518 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3519 esac
3521 for ac_prog in gawk mawk nawk awk
3523 # Extract the first word of "$ac_prog", so it can be a program name with args.
3524 set dummy $ac_prog; ac_word=$2
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526 $as_echo_n "checking for $ac_word... " >&6; }
3527 if test "${ac_cv_prog_AWK+set}" = set; then :
3528 $as_echo_n "(cached) " >&6
3529 else
3530 if test -n "$AWK"; then
3531 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3532 else
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3536 IFS=$as_save_IFS
3537 test -z "$as_dir" && as_dir=.
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3540 ac_cv_prog_AWK="$ac_prog"
3541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 break 2
3544 done
3545 done
3546 IFS=$as_save_IFS
3550 AWK=$ac_cv_prog_AWK
3551 if test -n "$AWK"; then
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3553 $as_echo "$AWK" >&6; }
3554 else
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556 $as_echo "no" >&6; }
3560 test -n "$AWK" && break
3561 done
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3564 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3565 set x ${MAKE-make}
3566 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3567 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3568 $as_echo_n "(cached) " >&6
3569 else
3570 cat >conftest.make <<\_ACEOF
3571 SHELL = /bin/sh
3572 all:
3573 @echo '@@@%%%=$(MAKE)=@@@%%%'
3574 _ACEOF
3575 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3576 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3577 *@@@%%%=?*=@@@%%%*)
3578 eval ac_cv_prog_make_${ac_make}_set=yes;;
3580 eval ac_cv_prog_make_${ac_make}_set=no;;
3581 esac
3582 rm -f conftest.make
3584 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3586 $as_echo "yes" >&6; }
3587 SET_MAKE=
3588 else
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590 $as_echo "no" >&6; }
3591 SET_MAKE="MAKE=${MAKE-make}"
3594 rm -rf .tst 2>/dev/null
3595 mkdir .tst 2>/dev/null
3596 if test -d .tst; then
3597 am__leading_dot=.
3598 else
3599 am__leading_dot=_
3601 rmdir .tst 2>/dev/null
3603 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3604 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3605 # is not polluted with repeated "-I."
3606 am__isrc=' -I$(srcdir)'
3607 # test to see if srcdir already configured
3608 if test -f $srcdir/config.status; then
3609 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3613 # test whether we have cygpath
3614 if test -z "$CYGPATH_W"; then
3615 if (cygpath --version) >/dev/null 2>/dev/null; then
3616 CYGPATH_W='cygpath -w'
3617 else
3618 CYGPATH_W=echo
3623 # Define the identity of the package.
3624 PACKAGE='classpath'
3625 VERSION='0.99.1-pre'
3628 cat >>confdefs.h <<_ACEOF
3629 #define PACKAGE "$PACKAGE"
3630 _ACEOF
3633 cat >>confdefs.h <<_ACEOF
3634 #define VERSION "$VERSION"
3635 _ACEOF
3637 # Some tools Automake needs.
3639 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3642 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3645 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3648 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3651 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3653 # We need awk for the "check" target. The system "awk" is bad on
3654 # some platforms.
3655 # Always define AMTAR for backward compatibility.
3657 AMTAR=${AMTAR-"${am_missing_run}tar"}
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3661 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3662 # Loop over all known methods to create a tar archive until one works.
3663 _am_tools='gnutar plaintar pax cpio none'
3664 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3665 # Do not fold the above two line into one, because Tru64 sh and
3666 # Solaris sh will not grok spaces in the rhs of `-'.
3667 for _am_tool in $_am_tools
3669 case $_am_tool in
3670 gnutar)
3671 for _am_tar in tar gnutar gtar;
3673 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3674 ($_am_tar --version) >&5 2>&5
3675 ac_status=$?
3676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677 (exit $ac_status); } && break
3678 done
3679 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3680 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3681 am__untar="$_am_tar -xf -"
3683 plaintar)
3684 # Must skip GNU tar: if it does not support --format= it doesn't create
3685 # ustar tarball either.
3686 (tar --version) >/dev/null 2>&1 && continue
3687 am__tar='tar chf - "$$tardir"'
3688 am__tar_='tar chf - "$tardir"'
3689 am__untar='tar xf -'
3691 pax)
3692 am__tar='pax -L -x ustar -w "$$tardir"'
3693 am__tar_='pax -L -x ustar -w "$tardir"'
3694 am__untar='pax -r'
3696 cpio)
3697 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3698 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3699 am__untar='cpio -i -H ustar -d'
3701 none)
3702 am__tar=false
3703 am__tar_=false
3704 am__untar=false
3706 esac
3708 # If the value was cached, stop now. We just wanted to have am__tar
3709 # and am__untar set.
3710 test -n "${am_cv_prog_tar_ustar}" && break
3712 # tar/untar a dummy directory, and stop if the command works
3713 rm -rf conftest.dir
3714 mkdir conftest.dir
3715 echo GrepMe > conftest.dir/file
3716 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3717 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3718 ac_status=$?
3719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720 (exit $ac_status); }
3721 rm -rf conftest.dir
3722 if test -s conftest.tar; then
3723 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3724 ($am__untar <conftest.tar) >&5 2>&5
3725 ac_status=$?
3726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727 (exit $ac_status); }
3728 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3730 done
3731 rm -rf conftest.dir
3733 if test "${am_cv_prog_tar_ustar+set}" = set; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 am_cv_prog_tar_ustar=$_am_tool
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3740 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3746 ac_config_headers="$ac_config_headers include/config.h"
3752 # Check whether --enable-collections was given.
3753 if test "${enable_collections+set}" = set; then :
3754 enableval=$enable_collections; case x"${enableval}" in
3755 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
3756 xno) COMPILE_COLLECTIONS=no ;;
3757 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
3758 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
3759 esac
3760 else
3761 COMPILE_COLLECTIONS=no
3764 if test "x${COMPILE_COLLECTIONS}" = xyes; then
3765 CREATE_COLLECTIONS_TRUE=
3766 CREATE_COLLECTIONS_FALSE='#'
3767 else
3768 CREATE_COLLECTIONS_TRUE='#'
3769 CREATE_COLLECTIONS_FALSE=
3773 # Check whether --enable-jni was given.
3774 if test "${enable_jni+set}" = set; then :
3775 enableval=$enable_jni; case "${enableval}" in
3776 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
3777 no) COMPILE_JNI=no ;;
3778 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
3779 esac
3780 else
3781 COMPILE_JNI=yes
3784 if test "x${COMPILE_JNI}" = xyes; then
3785 CREATE_JNI_LIBRARIES_TRUE=
3786 CREATE_JNI_LIBRARIES_FALSE='#'
3787 else
3788 CREATE_JNI_LIBRARIES_TRUE='#'
3789 CREATE_JNI_LIBRARIES_FALSE=
3793 # Check whether --enable-core-jni was given.
3794 if test "${enable_core_jni+set}" = set; then :
3795 enableval=$enable_core_jni; case "${enableval}" in
3796 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
3797 no) COMPILE_CORE_JNI=no ;;
3798 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
3799 esac
3800 else
3801 COMPILE_CORE_JNI=yes
3804 if test "x${COMPILE_CORE_JNI}" = xyes; then
3805 CREATE_CORE_JNI_LIBRARIES_TRUE=
3806 CREATE_CORE_JNI_LIBRARIES_FALSE='#'
3807 else
3808 CREATE_CORE_JNI_LIBRARIES_TRUE='#'
3809 CREATE_CORE_JNI_LIBRARIES_FALSE=
3813 # Check whether --enable-default-preferences-peer was given.
3814 if test "${enable_default_preferences_peer+set}" = set; then :
3815 enableval=$enable_default_preferences_peer; case "${enableval}" in
3816 file) DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory ;;
3817 gconf|yes|true) DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory ;;
3818 memory) DEFAULT_PREFS_PEER=gnu.java.util.prefs.MemoryBasedFactory ;;
3819 no|false) as_fn_error "bad value '${enableval}' for --enable-default-preferences-peer" "$LINENO" 5 ;;
3820 *) DEFAULT_PREFS_PEER=${enableval} ;;
3821 esac
3822 else
3823 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
3827 # Check whether --enable-gconf-peer was given.
3828 if test "${enable_gconf_peer+set}" = set; then :
3829 enableval=$enable_gconf_peer; case "${enableval}" in
3830 yes) COMPILE_GCONF_PEER=yes ;;
3831 no) COMPILE_GCONF_PEER=no ;;
3832 *) COMPILE_GCONF_PEER=yes ;;
3833 esac
3834 else
3835 COMPILE_GCONF_PEER=yes
3838 if test "x${COMPILE_GCONF_PEER}" = xyes; then
3839 CREATE_GCONF_PEER_LIBRARIES_TRUE=
3840 CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
3841 else
3842 CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
3843 CREATE_GCONF_PEER_LIBRARIES_FALSE=
3847 # Check whether --enable-gconf-peers was given.
3848 if test "${enable_gconf_peers+set}" = set; then :
3849 enableval=$enable_gconf_peers; as_fn_error "No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" "$LINENO" 5
3853 # Check whether --enable-gstreamer-peer was given.
3854 if test "${enable_gstreamer_peer+set}" = set; then :
3855 enableval=$enable_gstreamer_peer; case "${enableval}" in
3856 yes) COMPILE_GSTREAMER_PEER=yes ;;
3857 no) COMPILE_GSTREAMER_PEER=no ;;
3858 *) COMPILE_GSTREAMER_PEER=default ;;
3859 esac
3860 else
3861 COMPILE_GSTREAMER_PEER=default
3864 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
3865 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE=
3866 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE='#'
3867 else
3868 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE='#'
3869 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE=
3873 # Check whether --enable-gstreamer-peers was given.
3874 if test "${enable_gstreamer_peers+set}" = set; then :
3875 enableval=$enable_gstreamer_peers; as_fn_error "No --enable-gstreamer-peers (or --disable-gstreamer-peers) option; you want --enable-gstreamer-peer" "$LINENO" 5
3879 # Check whether --enable-Werror was given.
3880 if test "${enable_Werror+set}" = set; then :
3881 enableval=$enable_Werror; case "${enableval}" in
3882 yes) ENABLE_WERROR=yes ;;
3883 no) ENABLE_WERROR=no ;;
3884 *) ENABLE_WERROR=no ;;
3885 esac
3886 else
3887 ENABLE_WERROR=no
3891 # Check whether --enable-default-toolkit was given.
3892 if test "${enable_default_toolkit+set}" = set; then :
3893 enableval=$enable_default_toolkit;
3896 default_toolkit=$enable_default_toolkit
3897 if test "$default_toolkit" = ""; then
3898 default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
3902 # Check whether --enable-xmlj was given.
3903 if test "${enable_xmlj+set}" = set; then :
3904 enableval=$enable_xmlj; case "${enableval}" in
3905 yes) COMPILE_XMLJ=yes ;;
3906 no) COMPILE_XMLJ=no ;;
3907 *) COMPILE_XMLJ=no ;;
3908 esac
3909 else
3910 COMPILE_XMLJ=no
3913 if test "x${COMPILE_XMLJ}" = xyes; then
3914 CREATE_XMLJ_LIBRARY_TRUE=
3915 CREATE_XMLJ_LIBRARY_FALSE='#'
3916 else
3917 CREATE_XMLJ_LIBRARY_TRUE='#'
3918 CREATE_XMLJ_LIBRARY_FALSE=
3922 DEPDIR="${am__leading_dot}deps"
3924 ac_config_commands="$ac_config_commands depfiles"
3927 am_make=${MAKE-make}
3928 cat > confinc << 'END'
3929 am__doit:
3930 @echo this is the am__doit target
3931 .PHONY: am__doit
3933 # If we don't find an include directive, just comment out the code.
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3935 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3936 am__include="#"
3937 am__quote=
3938 _am_result=none
3939 # First try GNU make style include.
3940 echo "include confinc" > confmf
3941 # Ignore all kinds of additional output from `make'.
3942 case `$am_make -s -f confmf 2> /dev/null` in #(
3943 *the\ am__doit\ target*)
3944 am__include=include
3945 am__quote=
3946 _am_result=GNU
3948 esac
3949 # Now try BSD make style include.
3950 if test "$am__include" = "#"; then
3951 echo '.include "confinc"' > confmf
3952 case `$am_make -s -f confmf 2> /dev/null` in #(
3953 *the\ am__doit\ target*)
3954 am__include=.include
3955 am__quote="\""
3956 _am_result=BSD
3958 esac
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3963 $as_echo "$_am_result" >&6; }
3964 rm -f confinc confmf
3966 # Check whether --enable-dependency-tracking was given.
3967 if test "${enable_dependency_tracking+set}" = set; then :
3968 enableval=$enable_dependency_tracking;
3971 if test "x$enable_dependency_tracking" != xno; then
3972 am_depcomp="$ac_aux_dir/depcomp"
3973 AMDEPBACKSLASH='\'
3975 if test "x$enable_dependency_tracking" != xno; then
3976 AMDEP_TRUE=
3977 AMDEP_FALSE='#'
3978 else
3979 AMDEP_TRUE='#'
3980 AMDEP_FALSE=
3984 ac_ext=c
3985 ac_cpp='$CPP $CPPFLAGS'
3986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989 if test -n "$ac_tool_prefix"; then
3990 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3991 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993 $as_echo_n "checking for $ac_word... " >&6; }
3994 if test "${ac_cv_prog_CC+set}" = set; then :
3995 $as_echo_n "(cached) " >&6
3996 else
3997 if test -n "$CC"; then
3998 ac_cv_prog_CC="$CC" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4003 IFS=$as_save_IFS
4004 test -z "$as_dir" && as_dir=.
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 break 2
4011 done
4012 done
4013 IFS=$as_save_IFS
4017 CC=$ac_cv_prog_CC
4018 if test -n "$CC"; then
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4020 $as_echo "$CC" >&6; }
4021 else
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4028 if test -z "$ac_cv_prog_CC"; then
4029 ac_ct_CC=$CC
4030 # Extract the first word of "gcc", so it can be a program name with args.
4031 set dummy gcc; ac_word=$2
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4033 $as_echo_n "checking for $ac_word... " >&6; }
4034 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4035 $as_echo_n "(cached) " >&6
4036 else
4037 if test -n "$ac_ct_CC"; then
4038 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4039 else
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4043 IFS=$as_save_IFS
4044 test -z "$as_dir" && as_dir=.
4045 for ac_exec_ext in '' $ac_executable_extensions; do
4046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4047 ac_cv_prog_ac_ct_CC="gcc"
4048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 break 2
4051 done
4052 done
4053 IFS=$as_save_IFS
4057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4058 if test -n "$ac_ct_CC"; then
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4060 $as_echo "$ac_ct_CC" >&6; }
4061 else
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063 $as_echo "no" >&6; }
4066 if test "x$ac_ct_CC" = x; then
4067 CC=""
4068 else
4069 case $cross_compiling:$ac_tool_warned in
4070 yes:)
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4073 ac_tool_warned=yes ;;
4074 esac
4075 CC=$ac_ct_CC
4077 else
4078 CC="$ac_cv_prog_CC"
4081 if test -z "$CC"; then
4082 if test -n "$ac_tool_prefix"; then
4083 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4084 set dummy ${ac_tool_prefix}cc; ac_word=$2
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086 $as_echo_n "checking for $ac_word... " >&6; }
4087 if test "${ac_cv_prog_CC+set}" = set; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 if test -n "$CC"; then
4091 ac_cv_prog_CC="$CC" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4096 IFS=$as_save_IFS
4097 test -z "$as_dir" && as_dir=.
4098 for ac_exec_ext in '' $ac_executable_extensions; do
4099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4100 ac_cv_prog_CC="${ac_tool_prefix}cc"
4101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 break 2
4104 done
4105 done
4106 IFS=$as_save_IFS
4110 CC=$ac_cv_prog_CC
4111 if test -n "$CC"; then
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4113 $as_echo "$CC" >&6; }
4114 else
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4122 if test -z "$CC"; then
4123 # Extract the first word of "cc", so it can be a program name with args.
4124 set dummy cc; ac_word=$2
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126 $as_echo_n "checking for $ac_word... " >&6; }
4127 if test "${ac_cv_prog_CC+set}" = set; then :
4128 $as_echo_n "(cached) " >&6
4129 else
4130 if test -n "$CC"; then
4131 ac_cv_prog_CC="$CC" # Let the user override the test.
4132 else
4133 ac_prog_rejected=no
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4141 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4142 ac_prog_rejected=yes
4143 continue
4145 ac_cv_prog_CC="cc"
4146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147 break 2
4149 done
4150 done
4151 IFS=$as_save_IFS
4153 if test $ac_prog_rejected = yes; then
4154 # We found a bogon in the path, so make sure we never use it.
4155 set dummy $ac_cv_prog_CC
4156 shift
4157 if test $# != 0; then
4158 # We chose a different compiler from the bogus one.
4159 # However, it has the same basename, so the bogon will be chosen
4160 # first if we set CC to just the basename; use the full file name.
4161 shift
4162 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4167 CC=$ac_cv_prog_CC
4168 if test -n "$CC"; then
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4170 $as_echo "$CC" >&6; }
4171 else
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4178 if test -z "$CC"; then
4179 if test -n "$ac_tool_prefix"; then
4180 for ac_prog in cl.exe
4182 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185 $as_echo_n "checking for $ac_word... " >&6; }
4186 if test "${ac_cv_prog_CC+set}" = set; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 if test -n "$CC"; then
4190 ac_cv_prog_CC="$CC" # Let the user override the test.
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4195 IFS=$as_save_IFS
4196 test -z "$as_dir" && as_dir=.
4197 for ac_exec_ext in '' $ac_executable_extensions; do
4198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4199 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201 break 2
4203 done
4204 done
4205 IFS=$as_save_IFS
4209 CC=$ac_cv_prog_CC
4210 if test -n "$CC"; then
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4212 $as_echo "$CC" >&6; }
4213 else
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4219 test -n "$CC" && break
4220 done
4222 if test -z "$CC"; then
4223 ac_ct_CC=$CC
4224 for ac_prog in cl.exe
4226 # Extract the first word of "$ac_prog", so it can be a program name with args.
4227 set dummy $ac_prog; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4231 $as_echo_n "(cached) " >&6
4232 else
4233 if test -n "$ac_ct_CC"; then
4234 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4239 IFS=$as_save_IFS
4240 test -z "$as_dir" && as_dir=.
4241 for ac_exec_ext in '' $ac_executable_extensions; do
4242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4243 ac_cv_prog_ac_ct_CC="$ac_prog"
4244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 break 2
4247 done
4248 done
4249 IFS=$as_save_IFS
4253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4254 if test -n "$ac_ct_CC"; then
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4256 $as_echo "$ac_ct_CC" >&6; }
4257 else
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4263 test -n "$ac_ct_CC" && break
4264 done
4266 if test "x$ac_ct_CC" = x; then
4267 CC=""
4268 else
4269 case $cross_compiling:$ac_tool_warned in
4270 yes:)
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4273 ac_tool_warned=yes ;;
4274 esac
4275 CC=$ac_ct_CC
4282 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4284 as_fn_error "no acceptable C compiler found in \$PATH
4285 See \`config.log' for more details." "$LINENO" 5; }
4287 # Provide some information about the compiler.
4288 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4289 set X $ac_compile
4290 ac_compiler=$2
4291 for ac_option in --version -v -V -qversion; do
4292 { { ac_try="$ac_compiler $ac_option >&5"
4293 case "(($ac_try" in
4294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4296 esac
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4300 ac_status=$?
4301 if test -s conftest.err; then
4302 sed '10a\
4303 ... rest of stderr output deleted ...
4304 10q' conftest.err >conftest.er1
4305 cat conftest.er1 >&5
4306 rm -f conftest.er1 conftest.err
4308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4309 test $ac_status = 0; }
4310 done
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h. */
4316 main ()
4320 return 0;
4322 _ACEOF
4323 # FIXME: Cleanup?
4324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4325 (eval $ac_link) 2>&5
4326 ac_status=$?
4327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328 test $ac_status = 0; }; then :
4329 gcc_no_link=no
4330 else
4331 gcc_no_link=yes
4333 if test x$gcc_no_link = xyes; then
4334 # Setting cross_compile will disable run tests; it will
4335 # also disable AC_CHECK_FILE but that's generally
4336 # correct if we can't link.
4337 cross_compiling=yes
4338 EXEEXT=
4339 else
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4344 main ()
4348 return 0;
4350 _ACEOF
4351 ac_clean_files_save=$ac_clean_files
4352 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4353 # Try to create an executable without -o first, disregard a.out.
4354 # It will help us diagnose broken compilers, and finding out an intuition
4355 # of exeext.
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4357 $as_echo_n "checking for C compiler default output file name... " >&6; }
4358 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4360 # The possible output files:
4361 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4363 ac_rmfiles=
4364 for ac_file in $ac_files
4366 case $ac_file in
4367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4368 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4369 esac
4370 done
4371 rm -f $ac_rmfiles
4373 if { { ac_try="$ac_link_default"
4374 case "(($ac_try" in
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4377 esac
4378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379 $as_echo "$ac_try_echo"; } >&5
4380 (eval "$ac_link_default") 2>&5
4381 ac_status=$?
4382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4383 test $ac_status = 0; }; then :
4384 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4385 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4386 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4387 # so that the user can short-circuit this test for compilers unknown to
4388 # Autoconf.
4389 for ac_file in $ac_files ''
4391 test -f "$ac_file" || continue
4392 case $ac_file in
4393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4395 [ab].out )
4396 # We found the default executable, but exeext='' is most
4397 # certainly right.
4398 break;;
4399 *.* )
4400 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4401 then :; else
4402 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4404 # We set ac_cv_exeext here because the later test for it is not
4405 # safe: cross compilers may not add the suffix if given an `-o'
4406 # argument, so we may need to know it at that point already.
4407 # Even if this section looks crufty: it has the advantage of
4408 # actually working.
4409 break;;
4411 break;;
4412 esac
4413 done
4414 test "$ac_cv_exeext" = no && ac_cv_exeext=
4416 else
4417 ac_file=''
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4420 $as_echo "$ac_file" >&6; }
4421 if test -z "$ac_file"; then :
4422 $as_echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.$ac_ext >&5
4425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427 { as_fn_set_status 77
4428 as_fn_error "C compiler cannot create executables
4429 See \`config.log' for more details." "$LINENO" 5; }; }
4431 ac_exeext=$ac_cv_exeext
4433 # Check that the compiler produces executables we can run. If not, either
4434 # the compiler is broken, or we cross compile.
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4436 $as_echo_n "checking whether the C compiler works... " >&6; }
4437 # If not cross compiling, check that we can run a simple program.
4438 if test "$cross_compiling" != yes; then
4439 if { ac_try='./$ac_file'
4440 { { case "(($ac_try" in
4441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442 *) ac_try_echo=$ac_try;;
4443 esac
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 $as_echo "$ac_try_echo"; } >&5
4446 (eval "$ac_try") 2>&5
4447 ac_status=$?
4448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449 test $ac_status = 0; }; }; then
4450 cross_compiling=no
4451 else
4452 if test "$cross_compiling" = maybe; then
4453 cross_compiling=yes
4454 else
4455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4457 as_fn_error "cannot run C compiled programs.
4458 If you meant to cross compile, use \`--host'.
4459 See \`config.log' for more details." "$LINENO" 5; }
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4464 $as_echo "yes" >&6; }
4466 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4467 ac_clean_files=$ac_clean_files_save
4468 # Check that the compiler produces executables we can run. If not, either
4469 # the compiler is broken, or we cross compile.
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4471 $as_echo_n "checking whether we are cross compiling... " >&6; }
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4473 $as_echo "$cross_compiling" >&6; }
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4476 $as_echo_n "checking for suffix of executables... " >&6; }
4477 if { { ac_try="$ac_link"
4478 case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4481 esac
4482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4483 $as_echo "$ac_try_echo"; } >&5
4484 (eval "$ac_link") 2>&5
4485 ac_status=$?
4486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4487 test $ac_status = 0; }; then :
4488 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4489 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4490 # work properly (i.e., refer to `conftest.exe'), while it won't with
4491 # `rm'.
4492 for ac_file in conftest.exe conftest conftest.*; do
4493 test -f "$ac_file" || continue
4494 case $ac_file in
4495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4496 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4497 break;;
4498 * ) break;;
4499 esac
4500 done
4501 else
4502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4504 as_fn_error "cannot compute suffix of executables: cannot compile and link
4505 See \`config.log' for more details." "$LINENO" 5; }
4507 rm -f conftest$ac_cv_exeext
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4509 $as_echo "$ac_cv_exeext" >&6; }
4511 rm -f conftest.$ac_ext
4512 EXEEXT=$ac_cv_exeext
4513 ac_exeext=$EXEEXT
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4516 $as_echo_n "checking for suffix of object files... " >&6; }
4517 if test "${ac_cv_objext+set}" = set; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4524 main ()
4528 return 0;
4530 _ACEOF
4531 rm -f conftest.o conftest.obj
4532 if { { ac_try="$ac_compile"
4533 case "(($ac_try" in
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4536 esac
4537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4538 $as_echo "$ac_try_echo"; } >&5
4539 (eval "$ac_compile") 2>&5
4540 ac_status=$?
4541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4542 test $ac_status = 0; }; then :
4543 for ac_file in conftest.o conftest.obj conftest.*; do
4544 test -f "$ac_file" || continue;
4545 case $ac_file in
4546 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4547 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4548 break;;
4549 esac
4550 done
4551 else
4552 $as_echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4557 as_fn_error "cannot compute suffix of object files: cannot compile
4558 See \`config.log' for more details." "$LINENO" 5; }
4560 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4563 $as_echo "$ac_cv_objext" >&6; }
4564 OBJEXT=$ac_cv_objext
4565 ac_objext=$OBJEXT
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4567 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4568 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4569 $as_echo_n "(cached) " >&6
4570 else
4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h. */
4575 main ()
4577 #ifndef __GNUC__
4578 choke me
4579 #endif
4582 return 0;
4584 _ACEOF
4585 if ac_fn_c_try_compile "$LINENO"; then :
4586 ac_compiler_gnu=yes
4587 else
4588 ac_compiler_gnu=no
4590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4595 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4596 if test $ac_compiler_gnu = yes; then
4597 GCC=yes
4598 else
4599 GCC=
4601 ac_test_CFLAGS=${CFLAGS+set}
4602 ac_save_CFLAGS=$CFLAGS
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4604 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4605 if test "${ac_cv_prog_cc_g+set}" = set; then :
4606 $as_echo_n "(cached) " >&6
4607 else
4608 ac_save_c_werror_flag=$ac_c_werror_flag
4609 ac_c_werror_flag=yes
4610 ac_cv_prog_cc_g=no
4611 CFLAGS="-g"
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4616 main ()
4620 return 0;
4622 _ACEOF
4623 if ac_fn_c_try_compile "$LINENO"; then :
4624 ac_cv_prog_cc_g=yes
4625 else
4626 CFLAGS=""
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h. */
4631 main ()
4635 return 0;
4637 _ACEOF
4638 if ac_fn_c_try_compile "$LINENO"; then :
4640 else
4641 ac_c_werror_flag=$ac_save_c_werror_flag
4642 CFLAGS="-g"
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4647 main ()
4651 return 0;
4653 _ACEOF
4654 if ac_fn_c_try_compile "$LINENO"; then :
4655 ac_cv_prog_cc_g=yes
4657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 ac_c_werror_flag=$ac_save_c_werror_flag
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4665 $as_echo "$ac_cv_prog_cc_g" >&6; }
4666 if test "$ac_test_CFLAGS" = set; then
4667 CFLAGS=$ac_save_CFLAGS
4668 elif test $ac_cv_prog_cc_g = yes; then
4669 if test "$GCC" = yes; then
4670 CFLAGS="-g -O2"
4671 else
4672 CFLAGS="-g"
4674 else
4675 if test "$GCC" = yes; then
4676 CFLAGS="-O2"
4677 else
4678 CFLAGS=
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4682 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4683 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4684 $as_echo_n "(cached) " >&6
4685 else
4686 ac_cv_prog_cc_c89=no
4687 ac_save_CC=$CC
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h. */
4690 #include <stdarg.h>
4691 #include <stdio.h>
4692 #include <sys/types.h>
4693 #include <sys/stat.h>
4694 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4695 struct buf { int x; };
4696 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4697 static char *e (p, i)
4698 char **p;
4699 int i;
4701 return p[i];
4703 static char *f (char * (*g) (char **, int), char **p, ...)
4705 char *s;
4706 va_list v;
4707 va_start (v,p);
4708 s = g (p, va_arg (v,int));
4709 va_end (v);
4710 return s;
4713 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4714 function prototypes and stuff, but not '\xHH' hex character constants.
4715 These don't provoke an error unfortunately, instead are silently treated
4716 as 'x'. The following induces an error, until -std is added to get
4717 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4718 array size at least. It's necessary to write '\x00'==0 to get something
4719 that's true only with -std. */
4720 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4722 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4723 inside strings and character constants. */
4724 #define FOO(x) 'x'
4725 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4727 int test (int i, double x);
4728 struct s1 {int (*f) (int a);};
4729 struct s2 {int (*f) (double a);};
4730 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4731 int argc;
4732 char **argv;
4734 main ()
4736 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4738 return 0;
4740 _ACEOF
4741 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4742 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4744 CC="$ac_save_CC $ac_arg"
4745 if ac_fn_c_try_compile "$LINENO"; then :
4746 ac_cv_prog_cc_c89=$ac_arg
4748 rm -f core conftest.err conftest.$ac_objext
4749 test "x$ac_cv_prog_cc_c89" != "xno" && break
4750 done
4751 rm -f conftest.$ac_ext
4752 CC=$ac_save_CC
4755 # AC_CACHE_VAL
4756 case "x$ac_cv_prog_cc_c89" in
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4759 $as_echo "none needed" >&6; } ;;
4760 xno)
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4762 $as_echo "unsupported" >&6; } ;;
4764 CC="$CC $ac_cv_prog_cc_c89"
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4766 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4767 esac
4768 if test "x$ac_cv_prog_cc_c89" != xno; then :
4772 ac_ext=c
4773 ac_cpp='$CPP $CPPFLAGS'
4774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4778 depcc="$CC" am_compiler_list=
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4781 $as_echo_n "checking dependency style of $depcc... " >&6; }
4782 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4786 # We make a subdir and do the tests there. Otherwise we can end up
4787 # making bogus files that we don't know about and never remove. For
4788 # instance it was reported that on HP-UX the gcc test will end up
4789 # making a dummy file named `D' -- because `-MD' means `put the output
4790 # in D'.
4791 mkdir conftest.dir
4792 # Copy depcomp to subdir because otherwise we won't find it if we're
4793 # using a relative directory.
4794 cp "$am_depcomp" conftest.dir
4795 cd conftest.dir
4796 # We will build objects and dependencies in a subdirectory because
4797 # it helps to detect inapplicable dependency modes. For instance
4798 # both Tru64's cc and ICC support -MD to output dependencies as a
4799 # side effect of compilation, but ICC will put the dependencies in
4800 # the current directory while Tru64 will put them in the object
4801 # directory.
4802 mkdir sub
4804 am_cv_CC_dependencies_compiler_type=none
4805 if test "$am_compiler_list" = ""; then
4806 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4808 am__universal=false
4809 case " $depcc " in #(
4810 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4811 esac
4813 for depmode in $am_compiler_list; do
4814 # Setup a source with many dependencies, because some compilers
4815 # like to wrap large dependency lists on column 80 (with \), and
4816 # we should not choose a depcomp mode which is confused by this.
4818 # We need to recreate these files for each test, as the compiler may
4819 # overwrite some of them when testing with obscure command lines.
4820 # This happens at least with the AIX C compiler.
4821 : > sub/conftest.c
4822 for i in 1 2 3 4 5 6; do
4823 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4824 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4825 # Solaris 8's {/usr,}/bin/sh.
4826 touch sub/conftst$i.h
4827 done
4828 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4830 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4831 # mode. It turns out that the SunPro C++ compiler does not properly
4832 # handle `-M -o', and we need to detect this. Also, some Intel
4833 # versions had trouble with output in subdirs
4834 am__obj=sub/conftest.${OBJEXT-o}
4835 am__minus_obj="-o $am__obj"
4836 case $depmode in
4837 gcc)
4838 # This depmode causes a compiler race in universal mode.
4839 test "$am__universal" = false || continue
4841 nosideeffect)
4842 # after this tag, mechanisms are not by side-effect, so they'll
4843 # only be used when explicitly requested
4844 if test "x$enable_dependency_tracking" = xyes; then
4845 continue
4846 else
4847 break
4850 msvisualcpp | msvcmsys)
4851 # This compiler won't grok `-c -o', but also, the minuso test has
4852 # not run yet. These depmodes are late enough in the game, and
4853 # so weak that their functioning should not be impacted.
4854 am__obj=conftest.${OBJEXT-o}
4855 am__minus_obj=
4857 none) break ;;
4858 esac
4859 if depmode=$depmode \
4860 source=sub/conftest.c object=$am__obj \
4861 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4862 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4863 >/dev/null 2>conftest.err &&
4864 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4865 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4866 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4867 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4868 # icc doesn't choke on unknown options, it will just issue warnings
4869 # or remarks (even with -Werror). So we grep stderr for any message
4870 # that says an option was ignored or not supported.
4871 # When given -MP, icc 7.0 and 7.1 complain thusly:
4872 # icc: Command line warning: ignoring option '-M'; no argument required
4873 # The diagnosis changed in icc 8.0:
4874 # icc: Command line remark: option '-MP' not supported
4875 if (grep 'ignoring option' conftest.err ||
4876 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4877 am_cv_CC_dependencies_compiler_type=$depmode
4878 break
4881 done
4883 cd ..
4884 rm -rf conftest.dir
4885 else
4886 am_cv_CC_dependencies_compiler_type=none
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4891 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4892 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4895 test "x$enable_dependency_tracking" != xno \
4896 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4897 am__fastdepCC_TRUE=
4898 am__fastdepCC_FALSE='#'
4899 else
4900 am__fastdepCC_TRUE='#'
4901 am__fastdepCC_FALSE=
4906 ac_ext=c
4907 ac_cpp='$CPP $CPPFLAGS'
4908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4912 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4913 # On Suns, sometimes $CPP names a directory.
4914 if test -n "$CPP" && test -d "$CPP"; then
4915 CPP=
4917 if test -z "$CPP"; then
4918 if test "${ac_cv_prog_CPP+set}" = set; then :
4919 $as_echo_n "(cached) " >&6
4920 else
4921 # Double quotes because CPP needs to be expanded
4922 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4924 ac_preproc_ok=false
4925 for ac_c_preproc_warn_flag in '' yes
4927 # Use a header file that comes with gcc, so configuring glibc
4928 # with a fresh cross-compiler works.
4929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 # <limits.h> exists even on freestanding compilers.
4931 # On the NeXT, cc -E runs the code through the compiler's parser,
4932 # not just through cpp. "Syntax error" is here to catch this case.
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4935 #ifdef __STDC__
4936 # include <limits.h>
4937 #else
4938 # include <assert.h>
4939 #endif
4940 Syntax error
4941 _ACEOF
4942 if ac_fn_c_try_cpp "$LINENO"; then :
4944 else
4945 # Broken: fails on valid input.
4946 continue
4948 rm -f conftest.err conftest.$ac_ext
4950 # OK, works on sane cases. Now check whether nonexistent headers
4951 # can be detected and how.
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4954 #include <ac_nonexistent.h>
4955 _ACEOF
4956 if ac_fn_c_try_cpp "$LINENO"; then :
4957 # Broken: success on invalid input.
4958 continue
4959 else
4960 # Passes both tests.
4961 ac_preproc_ok=:
4962 break
4964 rm -f conftest.err conftest.$ac_ext
4966 done
4967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4968 rm -f conftest.err conftest.$ac_ext
4969 if $ac_preproc_ok; then :
4970 break
4973 done
4974 ac_cv_prog_CPP=$CPP
4977 CPP=$ac_cv_prog_CPP
4978 else
4979 ac_cv_prog_CPP=$CPP
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4982 $as_echo "$CPP" >&6; }
4983 ac_preproc_ok=false
4984 for ac_c_preproc_warn_flag in '' yes
4986 # Use a header file that comes with gcc, so configuring glibc
4987 # with a fresh cross-compiler works.
4988 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4989 # <limits.h> exists even on freestanding compilers.
4990 # On the NeXT, cc -E runs the code through the compiler's parser,
4991 # not just through cpp. "Syntax error" is here to catch this case.
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4994 #ifdef __STDC__
4995 # include <limits.h>
4996 #else
4997 # include <assert.h>
4998 #endif
4999 Syntax error
5000 _ACEOF
5001 if ac_fn_c_try_cpp "$LINENO"; then :
5003 else
5004 # Broken: fails on valid input.
5005 continue
5007 rm -f conftest.err conftest.$ac_ext
5009 # OK, works on sane cases. Now check whether nonexistent headers
5010 # can be detected and how.
5011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h. */
5013 #include <ac_nonexistent.h>
5014 _ACEOF
5015 if ac_fn_c_try_cpp "$LINENO"; then :
5016 # Broken: success on invalid input.
5017 continue
5018 else
5019 # Passes both tests.
5020 ac_preproc_ok=:
5021 break
5023 rm -f conftest.err conftest.$ac_ext
5025 done
5026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5027 rm -f conftest.err conftest.$ac_ext
5028 if $ac_preproc_ok; then :
5030 else
5031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5033 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5034 See \`config.log' for more details." "$LINENO" 5; }
5037 ac_ext=c
5038 ac_cpp='$CPP $CPPFLAGS'
5039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5045 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5046 if test "${ac_cv_path_GREP+set}" = set; then :
5047 $as_echo_n "(cached) " >&6
5048 else
5049 if test -z "$GREP"; then
5050 ac_path_GREP_found=false
5051 # Loop through the user's path and test for each of PROGNAME-LIST
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_prog in grep ggrep; do
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5060 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5061 # Check for GNU ac_path_GREP and select it if it is found.
5062 # Check for GNU $ac_path_GREP
5063 case `"$ac_path_GREP" --version 2>&1` in
5064 *GNU*)
5065 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5067 ac_count=0
5068 $as_echo_n 0123456789 >"conftest.in"
5069 while :
5071 cat "conftest.in" "conftest.in" >"conftest.tmp"
5072 mv "conftest.tmp" "conftest.in"
5073 cp "conftest.in" "conftest.nl"
5074 $as_echo 'GREP' >> "conftest.nl"
5075 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5076 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5077 as_fn_arith $ac_count + 1 && ac_count=$as_val
5078 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5079 # Best one so far, save it but keep looking for a better one
5080 ac_cv_path_GREP="$ac_path_GREP"
5081 ac_path_GREP_max=$ac_count
5083 # 10*(2^10) chars as input seems more than enough
5084 test $ac_count -gt 10 && break
5085 done
5086 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5087 esac
5089 $ac_path_GREP_found && break 3
5090 done
5091 done
5092 done
5093 IFS=$as_save_IFS
5094 if test -z "$ac_cv_path_GREP"; then
5095 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5097 else
5098 ac_cv_path_GREP=$GREP
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5103 $as_echo "$ac_cv_path_GREP" >&6; }
5104 GREP="$ac_cv_path_GREP"
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5108 $as_echo_n "checking for egrep... " >&6; }
5109 if test "${ac_cv_path_EGREP+set}" = set; then :
5110 $as_echo_n "(cached) " >&6
5111 else
5112 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5113 then ac_cv_path_EGREP="$GREP -E"
5114 else
5115 if test -z "$EGREP"; then
5116 ac_path_EGREP_found=false
5117 # Loop through the user's path and test for each of PROGNAME-LIST
5118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_prog in egrep; do
5124 for ac_exec_ext in '' $ac_executable_extensions; do
5125 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5126 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5127 # Check for GNU ac_path_EGREP and select it if it is found.
5128 # Check for GNU $ac_path_EGREP
5129 case `"$ac_path_EGREP" --version 2>&1` in
5130 *GNU*)
5131 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5133 ac_count=0
5134 $as_echo_n 0123456789 >"conftest.in"
5135 while :
5137 cat "conftest.in" "conftest.in" >"conftest.tmp"
5138 mv "conftest.tmp" "conftest.in"
5139 cp "conftest.in" "conftest.nl"
5140 $as_echo 'EGREP' >> "conftest.nl"
5141 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5142 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5143 as_fn_arith $ac_count + 1 && ac_count=$as_val
5144 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5145 # Best one so far, save it but keep looking for a better one
5146 ac_cv_path_EGREP="$ac_path_EGREP"
5147 ac_path_EGREP_max=$ac_count
5149 # 10*(2^10) chars as input seems more than enough
5150 test $ac_count -gt 10 && break
5151 done
5152 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5153 esac
5155 $ac_path_EGREP_found && break 3
5156 done
5157 done
5158 done
5159 IFS=$as_save_IFS
5160 if test -z "$ac_cv_path_EGREP"; then
5161 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5163 else
5164 ac_cv_path_EGREP=$EGREP
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5170 $as_echo "$ac_cv_path_EGREP" >&6; }
5171 EGREP="$ac_cv_path_EGREP"
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5175 $as_echo_n "checking for ANSI C header files... " >&6; }
5176 if test "${ac_cv_header_stdc+set}" = set; then :
5177 $as_echo_n "(cached) " >&6
5178 else
5179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h. */
5181 #include <stdlib.h>
5182 #include <stdarg.h>
5183 #include <string.h>
5184 #include <float.h>
5187 main ()
5191 return 0;
5193 _ACEOF
5194 if ac_fn_c_try_compile "$LINENO"; then :
5195 ac_cv_header_stdc=yes
5196 else
5197 ac_cv_header_stdc=no
5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5201 if test $ac_cv_header_stdc = yes; then
5202 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205 #include <string.h>
5207 _ACEOF
5208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5209 $EGREP "memchr" >/dev/null 2>&1; then :
5211 else
5212 ac_cv_header_stdc=no
5214 rm -f conftest*
5218 if test $ac_cv_header_stdc = yes; then
5219 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h. */
5222 #include <stdlib.h>
5224 _ACEOF
5225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5226 $EGREP "free" >/dev/null 2>&1; then :
5228 else
5229 ac_cv_header_stdc=no
5231 rm -f conftest*
5235 if test $ac_cv_header_stdc = yes; then
5236 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5237 if test "$cross_compiling" = yes; then :
5239 else
5240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h. */
5242 #include <ctype.h>
5243 #include <stdlib.h>
5244 #if ((' ' & 0x0FF) == 0x020)
5245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5247 #else
5248 # define ISLOWER(c) \
5249 (('a' <= (c) && (c) <= 'i') \
5250 || ('j' <= (c) && (c) <= 'r') \
5251 || ('s' <= (c) && (c) <= 'z'))
5252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5253 #endif
5255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5257 main ()
5259 int i;
5260 for (i = 0; i < 256; i++)
5261 if (XOR (islower (i), ISLOWER (i))
5262 || toupper (i) != TOUPPER (i))
5263 return 2;
5264 return 0;
5266 _ACEOF
5267 if ac_fn_c_try_run "$LINENO"; then :
5269 else
5270 ac_cv_header_stdc=no
5272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5273 conftest.$ac_objext conftest.beam conftest.$ac_ext
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5279 $as_echo "$ac_cv_header_stdc" >&6; }
5280 if test $ac_cv_header_stdc = yes; then
5282 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5286 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5287 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5288 inttypes.h stdint.h unistd.h
5289 do :
5290 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5291 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5293 eval as_val=\$$as_ac_Header
5294 if test "x$as_val" = x""yes; then :
5295 cat >>confdefs.h <<_ACEOF
5296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5297 _ACEOF
5301 done
5304 # Check whether --enable-alsa was given.
5305 if test "${enable_alsa+set}" = set; then :
5306 enableval=$enable_alsa; case "${enableval}" in
5307 yes) COMPILE_ALSA=yes ;;
5308 no) COMPILE_ALSA=no ;;
5309 *) COMPILE_ALSA=yes ;;
5310 esac
5311 else
5312 for ac_header in alsa/asoundlib.h
5313 do :
5314 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
5315 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
5316 cat >>confdefs.h <<_ACEOF
5317 #define HAVE_ALSA_ASOUNDLIB_H 1
5318 _ACEOF
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_seq_open in -lasound" >&5
5320 $as_echo_n "checking for snd_seq_open in -lasound... " >&6; }
5321 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then :
5322 $as_echo_n "(cached) " >&6
5323 else
5324 ac_check_lib_save_LIBS=$LIBS
5325 LIBS="-lasound $LIBS"
5326 if test x$gcc_no_link = xyes; then
5327 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h. */
5332 /* Override any GCC internal prototype to avoid an error.
5333 Use char because int might match the return type of a GCC
5334 builtin and then its argument prototype would still apply. */
5335 #ifdef __cplusplus
5336 extern "C"
5337 #endif
5338 char snd_seq_open ();
5340 main ()
5342 return snd_seq_open ();
5344 return 0;
5346 _ACEOF
5347 if ac_fn_c_try_link "$LINENO"; then :
5348 ac_cv_lib_asound_snd_seq_open=yes
5349 else
5350 ac_cv_lib_asound_snd_seq_open=no
5352 rm -f core conftest.err conftest.$ac_objext \
5353 conftest$ac_exeext conftest.$ac_ext
5354 LIBS=$ac_check_lib_save_LIBS
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_seq_open" >&5
5357 $as_echo "$ac_cv_lib_asound_snd_seq_open" >&6; }
5358 if test "x$ac_cv_lib_asound_snd_seq_open" = x""yes; then :
5359 COMPILE_ALSA=yes
5360 else
5361 COMPILE_ALSA=no
5364 else
5365 COMPILE_ALSA=no
5368 done
5372 if test "x${COMPILE_ALSA}" = xyes; then
5373 CREATE_ALSA_LIBRARIES_TRUE=
5374 CREATE_ALSA_LIBRARIES_FALSE='#'
5375 else
5376 CREATE_ALSA_LIBRARIES_TRUE='#'
5377 CREATE_ALSA_LIBRARIES_FALSE=
5381 # Check whether --enable-dssi was given.
5382 if test "${enable_dssi+set}" = set; then :
5383 enableval=$enable_dssi; case "${enableval}" in
5384 yes) COMPILE_DSSI=yes ;;
5385 no) COMPILE_DSSI=no ;;
5386 *) COMPILE_DSSI=yes ;;
5387 esac
5388 else
5389 COMPILE_DSSI=no
5390 for ac_header in dssi.h
5391 do :
5392 ac_fn_c_check_header_mongrel "$LINENO" "dssi.h" "ac_cv_header_dssi_h" "$ac_includes_default"
5393 if test "x$ac_cv_header_dssi_h" = x""yes; then :
5394 cat >>confdefs.h <<_ACEOF
5395 #define HAVE_DSSI_H 1
5396 _ACEOF
5398 for ac_header in jack/jack.h
5399 do :
5400 ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
5401 if test "x$ac_cv_header_jack_jack_h" = x""yes; then :
5402 cat >>confdefs.h <<_ACEOF
5403 #define HAVE_JACK_JACK_H 1
5404 _ACEOF
5405 COMPILE_DSSI=yes
5408 done
5412 done
5416 if test "x${COMPILE_DSSI}" = xyes; then
5417 CREATE_DSSI_LIBRARIES_TRUE=
5418 CREATE_DSSI_LIBRARIES_FALSE='#'
5419 else
5420 CREATE_DSSI_LIBRARIES_TRUE='#'
5421 CREATE_DSSI_LIBRARIES_FALSE=
5425 # Check whether --enable-gtk-peer was given.
5426 if test "${enable_gtk_peer+set}" = set; then :
5427 enableval=$enable_gtk_peer; case "${enableval}" in
5428 yes) COMPILE_GTK_PEER=yes ;;
5429 no) COMPILE_GTK_PEER=no ;;
5430 *) COMPILE_GTK_PEER=yes ;;
5431 esac
5432 else
5433 COMPILE_GTK_PEER=yes
5436 if test "x${COMPILE_GTK_PEER}" = xyes; then
5437 CREATE_GTK_PEER_LIBRARIES_TRUE=
5438 CREATE_GTK_PEER_LIBRARIES_FALSE='#'
5439 else
5440 CREATE_GTK_PEER_LIBRARIES_TRUE='#'
5441 CREATE_GTK_PEER_LIBRARIES_FALSE=
5445 # Check whether --enable-gtk-peers was given.
5446 if test "${enable_gtk_peers+set}" = set; then :
5447 enableval=$enable_gtk_peers; as_fn_error "No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" "$LINENO" 5
5451 # Check whether --enable-qt-peer was given.
5452 if test "${enable_qt_peer+set}" = set; then :
5453 enableval=$enable_qt_peer; case "${enableval}" in
5454 yes) COMPILE_QT_PEER=yes ;;
5455 no) COMPILE_QT_PEER=no ;;
5456 *) COMPILE_QT_PEER=yes ;;
5457 esac
5458 else
5459 COMPILE_QT_PEER=no
5462 if test "x${COMPILE_QT_PEER}" = xyes; then
5463 CREATE_QT_PEER_LIBRARIES_TRUE=
5464 CREATE_QT_PEER_LIBRARIES_FALSE='#'
5465 else
5466 CREATE_QT_PEER_LIBRARIES_TRUE='#'
5467 CREATE_QT_PEER_LIBRARIES_FALSE=
5471 # Check whether --enable-plugin was given.
5472 if test "${enable_plugin+set}" = set; then :
5473 enableval=$enable_plugin; case "${enableval}" in
5474 yes) COMPILE_PLUGIN=yes ;;
5475 no) COMPILE_PLUGIN=no ;;
5476 *) COMPILE_PLUGIN=yes ;;
5477 esac
5478 else
5479 COMPILE_PLUGIN=no
5482 if test "x${COMPILE_PLUGIN}" = xyes; then
5483 CREATE_PLUGIN_TRUE=
5484 CREATE_PLUGIN_FALSE='#'
5485 else
5486 CREATE_PLUGIN_TRUE='#'
5487 CREATE_PLUGIN_FALSE=
5491 # Check whether --enable-gmp was given.
5492 if test "${enable_gmp+set}" = set; then :
5493 enableval=$enable_gmp; case "${enableval}" in
5494 yes|true) COMPILE_GMP=yes ;;
5495 no|false) COMPILE_GMP=no ;;
5496 *) COMPILE_GMP=yes ;;
5497 esac
5498 else
5499 COMPILE_GMP=yes
5503 # Check whether --enable-gjdoc was given.
5504 if test "${enable_gjdoc+set}" = set; then :
5505 enableval=$enable_gjdoc; case "${enableval}" in
5506 yes) COMPILE_GJDOC=yes ;;
5507 no) COMPILE_GJDOC=no ;;
5508 *) COMPILE_GJDOC=yes ;;
5509 esac
5510 else
5511 COMPILE_GJDOC=yes
5514 if test "x${COMPILE_GJDOC}" = xyes; then
5515 CREATE_GJDOC_TRUE=
5516 CREATE_GJDOC_FALSE='#'
5517 else
5518 CREATE_GJDOC_TRUE='#'
5519 CREATE_GJDOC_FALSE=
5524 multi_os_directory=`$CC -print-multi-os-directory`
5525 case $multi_os_directory in
5526 .) toolexeclibdir=${libdir} ;; # Avoid trailing /.
5527 *) toolexeclibdir=${libdir}/${multi_os_directory} ;;
5528 esac
5533 # Check whether --with-native-libdir was given.
5534 if test "${with_native_libdir+set}" = set; then :
5535 withval=$with_native_libdir;
5536 nativeexeclibdir=${withval}
5538 else
5540 nativeexeclibdir='${toolexeclibdir}/gcj-'`cat ${srcdir}/../../gcc/BASE-VER`-`awk -F: '/^[^#].*:/ { print $1 }' ${srcdir}/../libtool-version`
5548 # Check whether --with-glibj-dir was given.
5549 if test "${with_glibj_dir+set}" = set; then :
5550 withval=$with_glibj_dir;
5551 glibjdir=${withval}
5553 else
5555 glibjdir='${datadir}/${PACKAGE}'
5563 # Check whether --with-antlr-jar was given.
5564 if test "${with_antlr_jar+set}" = set; then :
5565 withval=$with_antlr_jar;
5566 ANTLR_JAR=$withval
5568 else
5570 ANTLR_JAR="$ANTLR_JAR"
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the headers" >&5
5576 $as_echo_n "checking whether to regenerate the headers... " >&6; }
5577 # Check whether --enable-regen-headers was given.
5578 if test "${enable_regen_headers+set}" = set; then :
5579 enableval=$enable_regen_headers; case "${enableval}" in
5580 yes) REGENERATE_JNI_HEADERS=yes ;;
5581 no) REGENERATE_JNI_HEADERS=no ;;
5582 *) REGENERATE_JNI_HEADERS=yes ;;
5583 esac
5584 else
5585 if test -e ${srcdir}/include/java_lang_VMSystem.h; then
5586 REGENERATE_JNI_HEADERS=no ;
5587 else
5588 REGENERATE_JNI_HEADERS=yes ;
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_JNI_HEADERS}" >&5
5593 $as_echo "${REGENERATE_JNI_HEADERS}" >&6; }
5594 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
5595 CREATE_JNI_HEADERS_TRUE=
5596 CREATE_JNI_HEADERS_FALSE='#'
5597 else
5598 CREATE_JNI_HEADERS_TRUE='#'
5599 CREATE_JNI_HEADERS_FALSE=
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the GJDoc parser" >&5
5604 $as_echo_n "checking whether to regenerate the GJDoc parser... " >&6; }
5605 # Check whether --enable-regen-gjdoc-parser was given.
5606 if test "${enable_regen_gjdoc_parser+set}" = set; then :
5607 enableval=$enable_regen_gjdoc_parser; case "${enableval}" in
5608 yes) REGENERATE_GJDOC_PARSER=yes ;;
5609 no) REGENERATE_GJDOC_PARSER=no ;;
5610 *) REGENERATE_GJDOC_PARSER=yes ;;
5611 esac
5612 else
5613 if test -e ${srcdir}/tools/generated/gnu/classpath/tools/gjdoc/expr/JavaLexer.java; then
5614 REGENERATE_GJDOC_PARSER=no ;
5615 else
5616 REGENERATE_GJDOC_PARSER=yes ;
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_GJDOC_PARSER}" >&5
5621 $as_echo "${REGENERATE_GJDOC_PARSER}" >&6; }
5622 if test "x${REGENERATE_GJDOC_PARSER}" = xyes; then
5623 CREATE_GJDOC_PARSER_TRUE=
5624 CREATE_GJDOC_PARSER_FALSE='#'
5625 else
5626 CREATE_GJDOC_PARSER_TRUE='#'
5627 CREATE_GJDOC_PARSER_FALSE=
5631 # Check whether --enable-tool-wrappers was given.
5632 if test "${enable_tool_wrappers+set}" = set; then :
5633 enableval=$enable_tool_wrappers; case x"${enableval}" in
5634 xyes)
5635 COMPILE_WRAPPERS=yes;
5636 for ac_header in ltdl.h
5637 do :
5638 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
5639 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
5640 cat >>confdefs.h <<_ACEOF
5641 #define HAVE_LTDL_H 1
5642 _ACEOF
5644 else
5645 as_fn_error "cannot find ltdl.h" "$LINENO" 5
5648 done
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
5651 $as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
5652 if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
5653 $as_echo_n "(cached) " >&6
5654 else
5655 ac_check_lib_save_LIBS=$LIBS
5656 LIBS="-lltdl $LIBS"
5657 if test x$gcc_no_link = xyes; then
5658 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h. */
5663 /* Override any GCC internal prototype to avoid an error.
5664 Use char because int might match the return type of a GCC
5665 builtin and then its argument prototype would still apply. */
5666 #ifdef __cplusplus
5667 extern "C"
5668 #endif
5669 char lt_dlopen ();
5671 main ()
5673 return lt_dlopen ();
5675 return 0;
5677 _ACEOF
5678 if ac_fn_c_try_link "$LINENO"; then :
5679 ac_cv_lib_ltdl_lt_dlopen=yes
5680 else
5681 ac_cv_lib_ltdl_lt_dlopen=no
5683 rm -f core conftest.err conftest.$ac_objext \
5684 conftest$ac_exeext conftest.$ac_ext
5685 LIBS=$ac_check_lib_save_LIBS
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
5688 $as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
5689 if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
5690 cat >>confdefs.h <<_ACEOF
5691 #define HAVE_LIBLTDL 1
5692 _ACEOF
5694 LIBS="-lltdl $LIBS"
5696 else
5697 as_fn_error "cannot find libltdl" "$LINENO" 5
5701 xno) COMPILE_WRAPPERS=no ;;
5702 x) COMPILE_WRAPPERS=yes ;;
5703 *) COMPILE_WRAPPERS=yes ;;
5704 esac
5705 else
5706 COMPILE_WRAPPERS=no
5709 if test "x${COMPILE_WRAPPERS}" = xyes; then
5710 CREATE_WRAPPERS_TRUE=
5711 CREATE_WRAPPERS_FALSE='#'
5712 else
5713 CREATE_WRAPPERS_TRUE='#'
5714 CREATE_WRAPPERS_FALSE=
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5719 $as_echo_n "checking whether ln -s works... " >&6; }
5720 LN_S=$as_ln_s
5721 if test "$LN_S" = "ln -s"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5723 $as_echo "yes" >&6; }
5724 else
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5726 $as_echo "no, using $LN_S" >&6; }
5732 # Check whether --enable-static was given.
5733 if test "${enable_static+set}" = set; then :
5734 enableval=$enable_static; p=${PACKAGE-default}
5735 case $enableval in
5736 yes) enable_static=yes ;;
5737 no) enable_static=no ;;
5739 enable_static=no
5740 # Look at the argument we got. We use all the common list separators.
5741 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5742 for pkg in $enableval; do
5743 IFS="$lt_save_ifs"
5744 if test "X$pkg" = "X$p"; then
5745 enable_static=yes
5747 done
5748 IFS="$lt_save_ifs"
5750 esac
5751 else
5752 enable_static=no
5763 case `pwd` in
5764 *\ * | *\ *)
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5766 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5767 esac
5771 macro_version='2.2.7a'
5772 macro_revision='1.3134'
5786 ltmain="$ac_aux_dir/ltmain.sh"
5788 # Backslashify metacharacters that are still active within
5789 # double-quoted strings.
5790 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5792 # Same as above, but do not quote variable references.
5793 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5795 # Sed substitution to delay expansion of an escaped shell variable in a
5796 # double_quote_subst'ed string.
5797 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5799 # Sed substitution to delay expansion of an escaped single quote.
5800 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5802 # Sed substitution to avoid accidental globbing in evaled expressions
5803 no_glob_subst='s/\*/\\\*/g'
5805 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5806 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5807 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5810 $as_echo_n "checking how to print strings... " >&6; }
5811 # Test print first, because it will be a builtin if present.
5812 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5813 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5814 ECHO='print -r --'
5815 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5816 ECHO='printf %s\n'
5817 else
5818 # Use this function as a fallback that always works.
5819 func_fallback_echo ()
5821 eval 'cat <<_LTECHO_EOF
5823 _LTECHO_EOF'
5825 ECHO='func_fallback_echo'
5828 # func_echo_all arg...
5829 # Invoke $ECHO with all args, space-separated.
5830 func_echo_all ()
5832 $ECHO ""
5835 case "$ECHO" in
5836 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5837 $as_echo "printf" >&6; } ;;
5838 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5839 $as_echo "print -r" >&6; } ;;
5840 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5841 $as_echo "cat" >&6; } ;;
5842 esac
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5858 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5859 if test "${ac_cv_path_SED+set}" = set; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5863 for ac_i in 1 2 3 4 5 6 7; do
5864 ac_script="$ac_script$as_nl$ac_script"
5865 done
5866 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5867 { ac_script=; unset ac_script;}
5868 if test -z "$SED"; then
5869 ac_path_SED_found=false
5870 # Loop through the user's path and test for each of PROGNAME-LIST
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_prog in sed gsed; do
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5879 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5880 # Check for GNU ac_path_SED and select it if it is found.
5881 # Check for GNU $ac_path_SED
5882 case `"$ac_path_SED" --version 2>&1` in
5883 *GNU*)
5884 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5886 ac_count=0
5887 $as_echo_n 0123456789 >"conftest.in"
5888 while :
5890 cat "conftest.in" "conftest.in" >"conftest.tmp"
5891 mv "conftest.tmp" "conftest.in"
5892 cp "conftest.in" "conftest.nl"
5893 $as_echo '' >> "conftest.nl"
5894 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5895 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5896 as_fn_arith $ac_count + 1 && ac_count=$as_val
5897 if test $ac_count -gt ${ac_path_SED_max-0}; then
5898 # Best one so far, save it but keep looking for a better one
5899 ac_cv_path_SED="$ac_path_SED"
5900 ac_path_SED_max=$ac_count
5902 # 10*(2^10) chars as input seems more than enough
5903 test $ac_count -gt 10 && break
5904 done
5905 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5906 esac
5908 $ac_path_SED_found && break 3
5909 done
5910 done
5911 done
5912 IFS=$as_save_IFS
5913 if test -z "$ac_cv_path_SED"; then
5914 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5916 else
5917 ac_cv_path_SED=$SED
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5922 $as_echo "$ac_cv_path_SED" >&6; }
5923 SED="$ac_cv_path_SED"
5924 rm -f conftest.sed
5926 test -z "$SED" && SED=sed
5927 Xsed="$SED -e 1s/^X//"
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5940 $as_echo_n "checking for fgrep... " >&6; }
5941 if test "${ac_cv_path_FGREP+set}" = set; then :
5942 $as_echo_n "(cached) " >&6
5943 else
5944 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5945 then ac_cv_path_FGREP="$GREP -F"
5946 else
5947 if test -z "$FGREP"; then
5948 ac_path_FGREP_found=false
5949 # Loop through the user's path and test for each of PROGNAME-LIST
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5953 IFS=$as_save_IFS
5954 test -z "$as_dir" && as_dir=.
5955 for ac_prog in fgrep; do
5956 for ac_exec_ext in '' $ac_executable_extensions; do
5957 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5958 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5959 # Check for GNU ac_path_FGREP and select it if it is found.
5960 # Check for GNU $ac_path_FGREP
5961 case `"$ac_path_FGREP" --version 2>&1` in
5962 *GNU*)
5963 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5965 ac_count=0
5966 $as_echo_n 0123456789 >"conftest.in"
5967 while :
5969 cat "conftest.in" "conftest.in" >"conftest.tmp"
5970 mv "conftest.tmp" "conftest.in"
5971 cp "conftest.in" "conftest.nl"
5972 $as_echo 'FGREP' >> "conftest.nl"
5973 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5974 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5975 as_fn_arith $ac_count + 1 && ac_count=$as_val
5976 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5977 # Best one so far, save it but keep looking for a better one
5978 ac_cv_path_FGREP="$ac_path_FGREP"
5979 ac_path_FGREP_max=$ac_count
5981 # 10*(2^10) chars as input seems more than enough
5982 test $ac_count -gt 10 && break
5983 done
5984 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5985 esac
5987 $ac_path_FGREP_found && break 3
5988 done
5989 done
5990 done
5991 IFS=$as_save_IFS
5992 if test -z "$ac_cv_path_FGREP"; then
5993 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5995 else
5996 ac_cv_path_FGREP=$FGREP
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6002 $as_echo "$ac_cv_path_FGREP" >&6; }
6003 FGREP="$ac_cv_path_FGREP"
6006 test -z "$GREP" && GREP=grep
6026 # Check whether --with-gnu-ld was given.
6027 if test "${with_gnu_ld+set}" = set; then :
6028 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6029 else
6030 with_gnu_ld=no
6033 ac_prog=ld
6034 if test "$GCC" = yes; then
6035 # Check if gcc -print-prog-name=ld gives a path.
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6037 $as_echo_n "checking for ld used by $CC... " >&6; }
6038 case $host in
6039 *-*-mingw*)
6040 # gcc leaves a trailing carriage return which upsets mingw
6041 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6043 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6044 esac
6045 case $ac_prog in
6046 # Accept absolute paths.
6047 [\\/]* | ?:[\\/]*)
6048 re_direlt='/[^/][^/]*/\.\./'
6049 # Canonicalize the pathname of ld
6050 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6051 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6052 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6053 done
6054 test -z "$LD" && LD="$ac_prog"
6057 # If it fails, then pretend we aren't using GCC.
6058 ac_prog=ld
6061 # If it is relative, then search for the first ld in PATH.
6062 with_gnu_ld=unknown
6064 esac
6065 elif test "$with_gnu_ld" = yes; then
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6067 $as_echo_n "checking for GNU ld... " >&6; }
6068 else
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6070 $as_echo_n "checking for non-GNU ld... " >&6; }
6072 if test "${lt_cv_path_LD+set}" = set; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 if test -z "$LD"; then
6076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6077 for ac_dir in $PATH; do
6078 IFS="$lt_save_ifs"
6079 test -z "$ac_dir" && ac_dir=.
6080 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6081 lt_cv_path_LD="$ac_dir/$ac_prog"
6082 # Check to see if the program is GNU ld. I'd rather use --version,
6083 # but apparently some variants of GNU ld only accept -v.
6084 # Break only if it was the GNU/non-GNU ld that we prefer.
6085 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6086 *GNU* | *'with BFD'*)
6087 test "$with_gnu_ld" != no && break
6090 test "$with_gnu_ld" != yes && break
6092 esac
6094 done
6095 IFS="$lt_save_ifs"
6096 else
6097 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6101 LD="$lt_cv_path_LD"
6102 if test -n "$LD"; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6104 $as_echo "$LD" >&6; }
6105 else
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6109 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6111 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6112 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6113 $as_echo_n "(cached) " >&6
6114 else
6115 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6116 case `$LD -v 2>&1 </dev/null` in
6117 *GNU* | *'with BFD'*)
6118 lt_cv_prog_gnu_ld=yes
6121 lt_cv_prog_gnu_ld=no
6123 esac
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6126 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6127 with_gnu_ld=$lt_cv_prog_gnu_ld
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6138 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6139 if test "${lt_cv_path_NM+set}" = set; then :
6140 $as_echo_n "(cached) " >&6
6141 else
6142 if test -n "$NM"; then
6143 # Let the user override the test.
6144 lt_cv_path_NM="$NM"
6145 else
6146 lt_nm_to_check="${ac_tool_prefix}nm"
6147 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6148 lt_nm_to_check="$lt_nm_to_check nm"
6150 for lt_tmp_nm in $lt_nm_to_check; do
6151 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6152 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6153 IFS="$lt_save_ifs"
6154 test -z "$ac_dir" && ac_dir=.
6155 tmp_nm="$ac_dir/$lt_tmp_nm"
6156 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6157 # Check to see if the nm accepts a BSD-compat flag.
6158 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6159 # nm: unknown option "B" ignored
6160 # Tru64's nm complains that /dev/null is an invalid object file
6161 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6162 */dev/null* | *'Invalid file or object type'*)
6163 lt_cv_path_NM="$tmp_nm -B"
6164 break
6167 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6168 */dev/null*)
6169 lt_cv_path_NM="$tmp_nm -p"
6170 break
6173 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6174 continue # so that we can try to find one that supports BSD flags
6176 esac
6178 esac
6180 done
6181 IFS="$lt_save_ifs"
6182 done
6183 : ${lt_cv_path_NM=no}
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6187 $as_echo "$lt_cv_path_NM" >&6; }
6188 if test "$lt_cv_path_NM" != "no"; then
6189 NM="$lt_cv_path_NM"
6190 else
6191 # Didn't find any BSD compatible name lister, look for dumpbin.
6192 if test -n "$DUMPBIN"; then :
6193 # Let the user override the test.
6194 else
6195 if test -n "$ac_tool_prefix"; then
6196 for ac_prog in dumpbin "link -dump"
6198 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6199 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 if test -n "$DUMPBIN"; then
6206 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6211 IFS=$as_save_IFS
6212 test -z "$as_dir" && as_dir=.
6213 for ac_exec_ext in '' $ac_executable_extensions; do
6214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217 break 2
6219 done
6220 done
6221 IFS=$as_save_IFS
6225 DUMPBIN=$ac_cv_prog_DUMPBIN
6226 if test -n "$DUMPBIN"; then
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6228 $as_echo "$DUMPBIN" >&6; }
6229 else
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6235 test -n "$DUMPBIN" && break
6236 done
6238 if test -z "$DUMPBIN"; then
6239 ac_ct_DUMPBIN=$DUMPBIN
6240 for ac_prog in dumpbin "link -dump"
6242 # Extract the first word of "$ac_prog", so it can be a program name with args.
6243 set dummy $ac_prog; ac_word=$2
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 $as_echo_n "checking for $ac_word... " >&6; }
6246 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6247 $as_echo_n "(cached) " >&6
6248 else
6249 if test -n "$ac_ct_DUMPBIN"; then
6250 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6251 else
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH
6255 IFS=$as_save_IFS
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6259 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 break 2
6263 done
6264 done
6265 IFS=$as_save_IFS
6269 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6270 if test -n "$ac_ct_DUMPBIN"; then
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6272 $as_echo "$ac_ct_DUMPBIN" >&6; }
6273 else
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6279 test -n "$ac_ct_DUMPBIN" && break
6280 done
6282 if test "x$ac_ct_DUMPBIN" = x; then
6283 DUMPBIN=":"
6284 else
6285 case $cross_compiling:$ac_tool_warned in
6286 yes:)
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6289 ac_tool_warned=yes ;;
6290 esac
6291 DUMPBIN=$ac_ct_DUMPBIN
6295 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6296 *COFF*)
6297 DUMPBIN="$DUMPBIN -symbols"
6300 DUMPBIN=:
6302 esac
6305 if test "$DUMPBIN" != ":"; then
6306 NM="$DUMPBIN"
6309 test -z "$NM" && NM=nm
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6317 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6318 if test "${lt_cv_nm_interface+set}" = set; then :
6319 $as_echo_n "(cached) " >&6
6320 else
6321 lt_cv_nm_interface="BSD nm"
6322 echo "int some_variable = 0;" > conftest.$ac_ext
6323 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6324 (eval "$ac_compile" 2>conftest.err)
6325 cat conftest.err >&5
6326 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6327 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6328 cat conftest.err >&5
6329 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6330 cat conftest.out >&5
6331 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6332 lt_cv_nm_interface="MS dumpbin"
6334 rm -f conftest*
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6337 $as_echo "$lt_cv_nm_interface" >&6; }
6339 # find the maximum length of command line arguments
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6341 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6342 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6343 $as_echo_n "(cached) " >&6
6344 else
6346 teststring="ABCD"
6348 case $build_os in
6349 msdosdjgpp*)
6350 # On DJGPP, this test can blow up pretty badly due to problems in libc
6351 # (any single argument exceeding 2000 bytes causes a buffer overrun
6352 # during glob expansion). Even if it were fixed, the result of this
6353 # check would be larger than it should be.
6354 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6357 gnu*)
6358 # Under GNU Hurd, this test is not required because there is
6359 # no limit to the length of command line arguments.
6360 # Libtool will interpret -1 as no limit whatsoever
6361 lt_cv_sys_max_cmd_len=-1;
6364 cygwin* | mingw* | cegcc*)
6365 # On Win9x/ME, this test blows up -- it succeeds, but takes
6366 # about 5 minutes as the teststring grows exponentially.
6367 # Worse, since 9x/ME are not pre-emptively multitasking,
6368 # you end up with a "frozen" computer, even though with patience
6369 # the test eventually succeeds (with a max line length of 256k).
6370 # Instead, let's just punt: use the minimum linelength reported by
6371 # all of the supported platforms: 8192 (on NT/2K/XP).
6372 lt_cv_sys_max_cmd_len=8192;
6375 mint*)
6376 # On MiNT this can take a long time and run out of memory.
6377 lt_cv_sys_max_cmd_len=8192;
6380 amigaos*)
6381 # On AmigaOS with pdksh, this test takes hours, literally.
6382 # So we just punt and use a minimum line length of 8192.
6383 lt_cv_sys_max_cmd_len=8192;
6386 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6387 # This has been around since 386BSD, at least. Likely further.
6388 if test -x /sbin/sysctl; then
6389 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6390 elif test -x /usr/sbin/sysctl; then
6391 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6392 else
6393 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6395 # And add a safety zone
6396 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6397 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6400 interix*)
6401 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6402 lt_cv_sys_max_cmd_len=196608
6405 osf*)
6406 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6407 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6408 # nice to cause kernel panics so lets avoid the loop below.
6409 # First set a reasonable default.
6410 lt_cv_sys_max_cmd_len=16384
6412 if test -x /sbin/sysconfig; then
6413 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6414 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6415 esac
6418 sco3.2v5*)
6419 lt_cv_sys_max_cmd_len=102400
6421 sysv5* | sco5v6* | sysv4.2uw2*)
6422 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6423 if test -n "$kargmax"; then
6424 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6425 else
6426 lt_cv_sys_max_cmd_len=32768
6430 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6431 if test -n "$lt_cv_sys_max_cmd_len"; then
6432 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6433 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6434 else
6435 # Make teststring a little bigger before we do anything with it.
6436 # a 1K string should be a reasonable start.
6437 for i in 1 2 3 4 5 6 7 8 ; do
6438 teststring=$teststring$teststring
6439 done
6440 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6441 # If test is not a shell built-in, we'll probably end up computing a
6442 # maximum length that is only half of the actual maximum length, but
6443 # we can't tell.
6444 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6445 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6446 test $i != 17 # 1/2 MB should be enough
6448 i=`expr $i + 1`
6449 teststring=$teststring$teststring
6450 done
6451 # Only check the string length outside the loop.
6452 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6453 teststring=
6454 # Add a significant safety factor because C++ compilers can tack on
6455 # massive amounts of additional arguments before passing them to the
6456 # linker. It appears as though 1/2 is a usable value.
6457 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6460 esac
6464 if test -n $lt_cv_sys_max_cmd_len ; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6466 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6467 else
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6469 $as_echo "none" >&6; }
6471 max_cmd_len=$lt_cv_sys_max_cmd_len
6478 : ${CP="cp -f"}
6479 : ${MV="mv -f"}
6480 : ${RM="rm -f"}
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6483 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6484 # Try some XSI features
6485 xsi_shell=no
6486 ( _lt_dummy="a/b/c"
6487 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6488 = c,a/b,, \
6489 && eval 'test $(( 1 + 1 )) -eq 2 \
6490 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6491 && xsi_shell=yes
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6493 $as_echo "$xsi_shell" >&6; }
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6497 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6498 lt_shell_append=no
6499 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6500 >/dev/null 2>&1 \
6501 && lt_shell_append=yes
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6503 $as_echo "$lt_shell_append" >&6; }
6506 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6507 lt_unset=unset
6508 else
6509 lt_unset=false
6516 # test EBCDIC or ASCII
6517 case `echo X|tr X '\101'` in
6518 A) # ASCII based system
6519 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6520 lt_SP2NL='tr \040 \012'
6521 lt_NL2SP='tr \015\012 \040\040'
6523 *) # EBCDIC based system
6524 lt_SP2NL='tr \100 \n'
6525 lt_NL2SP='tr \r\n \100\100'
6527 esac
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6538 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6539 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6542 lt_cv_ld_reload_flag='-r'
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6545 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6546 reload_flag=$lt_cv_ld_reload_flag
6547 case $reload_flag in
6548 "" | " "*) ;;
6549 *) reload_flag=" $reload_flag" ;;
6550 esac
6551 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6552 case $host_os in
6553 darwin*)
6554 if test "$GCC" = yes; then
6555 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6556 else
6557 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6560 esac
6570 if test -n "$ac_tool_prefix"; then
6571 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6572 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6576 $as_echo_n "(cached) " >&6
6577 else
6578 if test -n "$OBJDUMP"; then
6579 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6584 IFS=$as_save_IFS
6585 test -z "$as_dir" && as_dir=.
6586 for ac_exec_ext in '' $ac_executable_extensions; do
6587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590 break 2
6592 done
6593 done
6594 IFS=$as_save_IFS
6598 OBJDUMP=$ac_cv_prog_OBJDUMP
6599 if test -n "$OBJDUMP"; then
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6601 $as_echo "$OBJDUMP" >&6; }
6602 else
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6609 if test -z "$ac_cv_prog_OBJDUMP"; then
6610 ac_ct_OBJDUMP=$OBJDUMP
6611 # Extract the first word of "objdump", so it can be a program name with args.
6612 set dummy objdump; ac_word=$2
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614 $as_echo_n "checking for $ac_word... " >&6; }
6615 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6616 $as_echo_n "(cached) " >&6
6617 else
6618 if test -n "$ac_ct_OBJDUMP"; then
6619 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6620 else
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6624 IFS=$as_save_IFS
6625 test -z "$as_dir" && as_dir=.
6626 for ac_exec_ext in '' $ac_executable_extensions; do
6627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6628 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630 break 2
6632 done
6633 done
6634 IFS=$as_save_IFS
6638 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6639 if test -n "$ac_ct_OBJDUMP"; then
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6641 $as_echo "$ac_ct_OBJDUMP" >&6; }
6642 else
6643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 $as_echo "no" >&6; }
6647 if test "x$ac_ct_OBJDUMP" = x; then
6648 OBJDUMP="false"
6649 else
6650 case $cross_compiling:$ac_tool_warned in
6651 yes:)
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6654 ac_tool_warned=yes ;;
6655 esac
6656 OBJDUMP=$ac_ct_OBJDUMP
6658 else
6659 OBJDUMP="$ac_cv_prog_OBJDUMP"
6662 test -z "$OBJDUMP" && OBJDUMP=objdump
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6673 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6674 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 lt_cv_file_magic_cmd='$MAGIC_CMD'
6678 lt_cv_file_magic_test_file=
6679 lt_cv_deplibs_check_method='unknown'
6680 # Need to set the preceding variable on all platforms that support
6681 # interlibrary dependencies.
6682 # 'none' -- dependencies not supported.
6683 # `unknown' -- same as none, but documents that we really don't know.
6684 # 'pass_all' -- all dependencies passed with no checks.
6685 # 'test_compile' -- check by making test program.
6686 # 'file_magic [[regex]]' -- check by looking for files in library path
6687 # which responds to the $file_magic_cmd with a given extended regex.
6688 # If you have `file' or equivalent on your system and you're not sure
6689 # whether `pass_all' will *always* work, you probably want this one.
6691 case $host_os in
6692 aix[4-9]*)
6693 lt_cv_deplibs_check_method=pass_all
6696 beos*)
6697 lt_cv_deplibs_check_method=pass_all
6700 bsdi[45]*)
6701 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6702 lt_cv_file_magic_cmd='/usr/bin/file -L'
6703 lt_cv_file_magic_test_file=/shlib/libc.so
6706 cygwin*)
6707 # func_win32_libid is a shell function defined in ltmain.sh
6708 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6709 lt_cv_file_magic_cmd='func_win32_libid'
6712 mingw* | pw32*)
6713 # Base MSYS/MinGW do not provide the 'file' command needed by
6714 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6715 # unless we find 'file', for example because we are cross-compiling.
6716 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6717 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6718 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6719 lt_cv_file_magic_cmd='func_win32_libid'
6720 else
6721 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6722 lt_cv_file_magic_cmd='$OBJDUMP -f'
6726 cegcc*)
6727 # use the weaker test based on 'objdump'. See mingw*.
6728 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6729 lt_cv_file_magic_cmd='$OBJDUMP -f'
6732 darwin* | rhapsody*)
6733 lt_cv_deplibs_check_method=pass_all
6736 freebsd* | dragonfly*)
6737 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6738 case $host_cpu in
6739 i*86 )
6740 # Not sure whether the presence of OpenBSD here was a mistake.
6741 # Let's accept both of them until this is cleared up.
6742 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6743 lt_cv_file_magic_cmd=/usr/bin/file
6744 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6746 esac
6747 else
6748 lt_cv_deplibs_check_method=pass_all
6752 gnu*)
6753 lt_cv_deplibs_check_method=pass_all
6756 haiku*)
6757 lt_cv_deplibs_check_method=pass_all
6760 hpux10.20* | hpux11*)
6761 lt_cv_file_magic_cmd=/usr/bin/file
6762 case $host_cpu in
6763 ia64*)
6764 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6765 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6767 hppa*64*)
6768 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]'
6769 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6772 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6773 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6775 esac
6778 interix[3-9]*)
6779 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6780 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6783 irix5* | irix6* | nonstopux*)
6784 case $LD in
6785 *-32|*"-32 ") libmagic=32-bit;;
6786 *-n32|*"-n32 ") libmagic=N32;;
6787 *-64|*"-64 ") libmagic=64-bit;;
6788 *) libmagic=never-match;;
6789 esac
6790 lt_cv_deplibs_check_method=pass_all
6793 # This must be Linux ELF.
6794 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6795 lt_cv_deplibs_check_method=pass_all
6798 netbsd*)
6799 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6800 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6801 else
6802 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6806 newos6*)
6807 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6808 lt_cv_file_magic_cmd=/usr/bin/file
6809 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6812 *nto* | *qnx*)
6813 lt_cv_deplibs_check_method=pass_all
6816 openbsd*)
6817 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6818 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6819 else
6820 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6824 osf3* | osf4* | osf5*)
6825 lt_cv_deplibs_check_method=pass_all
6828 rdos*)
6829 lt_cv_deplibs_check_method=pass_all
6832 solaris*)
6833 lt_cv_deplibs_check_method=pass_all
6836 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6837 lt_cv_deplibs_check_method=pass_all
6840 sysv4 | sysv4.3*)
6841 case $host_vendor in
6842 motorola)
6843 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]'
6844 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6846 ncr)
6847 lt_cv_deplibs_check_method=pass_all
6849 sequent)
6850 lt_cv_file_magic_cmd='/bin/file'
6851 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6853 sni)
6854 lt_cv_file_magic_cmd='/bin/file'
6855 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6856 lt_cv_file_magic_test_file=/lib/libc.so
6858 siemens)
6859 lt_cv_deplibs_check_method=pass_all
6862 lt_cv_deplibs_check_method=pass_all
6864 esac
6867 tpf*)
6868 lt_cv_deplibs_check_method=pass_all
6870 esac
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6874 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6875 file_magic_cmd=$lt_cv_file_magic_cmd
6876 deplibs_check_method=$lt_cv_deplibs_check_method
6877 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6890 if test -n "$ac_tool_prefix"; then
6891 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6892 set dummy ${ac_tool_prefix}ar; ac_word=$2
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894 $as_echo_n "checking for $ac_word... " >&6; }
6895 if test "${ac_cv_prog_AR+set}" = set; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 if test -n "$AR"; then
6899 ac_cv_prog_AR="$AR" # Let the user override the test.
6900 else
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6904 IFS=$as_save_IFS
6905 test -z "$as_dir" && as_dir=.
6906 for ac_exec_ext in '' $ac_executable_extensions; do
6907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6908 ac_cv_prog_AR="${ac_tool_prefix}ar"
6909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 break 2
6912 done
6913 done
6914 IFS=$as_save_IFS
6918 AR=$ac_cv_prog_AR
6919 if test -n "$AR"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6921 $as_echo "$AR" >&6; }
6922 else
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6929 if test -z "$ac_cv_prog_AR"; then
6930 ac_ct_AR=$AR
6931 # Extract the first word of "ar", so it can be a program name with args.
6932 set dummy ar; ac_word=$2
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934 $as_echo_n "checking for $ac_word... " >&6; }
6935 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 if test -n "$ac_ct_AR"; then
6939 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6940 else
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6948 ac_cv_prog_ac_ct_AR="ar"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6952 done
6953 done
6954 IFS=$as_save_IFS
6958 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6959 if test -n "$ac_ct_AR"; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6961 $as_echo "$ac_ct_AR" >&6; }
6962 else
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6967 if test "x$ac_ct_AR" = x; then
6968 AR="false"
6969 else
6970 case $cross_compiling:$ac_tool_warned in
6971 yes:)
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6974 ac_tool_warned=yes ;;
6975 esac
6976 AR=$ac_ct_AR
6978 else
6979 AR="$ac_cv_prog_AR"
6982 test -z "$AR" && AR=ar
6983 test -z "$AR_FLAGS" && AR_FLAGS=cru
6995 if test -n "$ac_tool_prefix"; then
6996 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6997 set dummy ${ac_tool_prefix}strip; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if test "${ac_cv_prog_STRIP+set}" = set; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 if test -n "$STRIP"; then
7004 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7013 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7017 done
7018 done
7019 IFS=$as_save_IFS
7023 STRIP=$ac_cv_prog_STRIP
7024 if test -n "$STRIP"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7026 $as_echo "$STRIP" >&6; }
7027 else
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7034 if test -z "$ac_cv_prog_STRIP"; then
7035 ac_ct_STRIP=$STRIP
7036 # Extract the first word of "strip", so it can be a program name with args.
7037 set dummy strip; ac_word=$2
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039 $as_echo_n "checking for $ac_word... " >&6; }
7040 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7041 $as_echo_n "(cached) " >&6
7042 else
7043 if test -n "$ac_ct_STRIP"; then
7044 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7045 else
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7053 ac_cv_prog_ac_ct_STRIP="strip"
7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 break 2
7057 done
7058 done
7059 IFS=$as_save_IFS
7063 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7064 if test -n "$ac_ct_STRIP"; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7066 $as_echo "$ac_ct_STRIP" >&6; }
7067 else
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7072 if test "x$ac_ct_STRIP" = x; then
7073 STRIP=":"
7074 else
7075 case $cross_compiling:$ac_tool_warned in
7076 yes:)
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7079 ac_tool_warned=yes ;;
7080 esac
7081 STRIP=$ac_ct_STRIP
7083 else
7084 STRIP="$ac_cv_prog_STRIP"
7087 test -z "$STRIP" && STRIP=:
7094 if test -n "$ac_tool_prefix"; then
7095 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7096 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7100 $as_echo_n "(cached) " >&6
7101 else
7102 if test -n "$RANLIB"; then
7103 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7104 else
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
7110 for ac_exec_ext in '' $ac_executable_extensions; do
7111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114 break 2
7116 done
7117 done
7118 IFS=$as_save_IFS
7122 RANLIB=$ac_cv_prog_RANLIB
7123 if test -n "$RANLIB"; then
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7125 $as_echo "$RANLIB" >&6; }
7126 else
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7133 if test -z "$ac_cv_prog_RANLIB"; then
7134 ac_ct_RANLIB=$RANLIB
7135 # Extract the first word of "ranlib", so it can be a program name with args.
7136 set dummy ranlib; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7140 $as_echo_n "(cached) " >&6
7141 else
7142 if test -n "$ac_ct_RANLIB"; then
7143 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7144 else
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7148 IFS=$as_save_IFS
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152 ac_cv_prog_ac_ct_RANLIB="ranlib"
7153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 break 2
7156 done
7157 done
7158 IFS=$as_save_IFS
7162 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7163 if test -n "$ac_ct_RANLIB"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7165 $as_echo "$ac_ct_RANLIB" >&6; }
7166 else
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7171 if test "x$ac_ct_RANLIB" = x; then
7172 RANLIB=":"
7173 else
7174 case $cross_compiling:$ac_tool_warned in
7175 yes:)
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178 ac_tool_warned=yes ;;
7179 esac
7180 RANLIB=$ac_ct_RANLIB
7182 else
7183 RANLIB="$ac_cv_prog_RANLIB"
7186 test -z "$RANLIB" && RANLIB=:
7193 # Determine commands to create old-style static archives.
7194 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7195 old_postinstall_cmds='chmod 644 $oldlib'
7196 old_postuninstall_cmds=
7198 if test -n "$RANLIB"; then
7199 case $host_os in
7200 openbsd*)
7201 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7204 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7206 esac
7207 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7210 case $host_os in
7211 darwin*)
7212 lock_old_archive_extraction=yes ;;
7214 lock_old_archive_extraction=no ;;
7215 esac
7255 # If no C compiler was specified, use CC.
7256 LTCC=${LTCC-"$CC"}
7258 # If no C compiler flags were specified, use CFLAGS.
7259 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7261 # Allow CC to be a program name with arguments.
7262 compiler=$CC
7265 # Check for command to grab the raw symbol name followed by C symbol from nm.
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7267 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7268 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7269 $as_echo_n "(cached) " >&6
7270 else
7272 # These are sane defaults that work on at least a few old systems.
7273 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7275 # Character class describing NM global symbol codes.
7276 symcode='[BCDEGRST]'
7278 # Regexp to match symbols that can be accessed directly from C.
7279 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7281 # Define system-specific variables.
7282 case $host_os in
7283 aix*)
7284 symcode='[BCDT]'
7286 cygwin* | mingw* | pw32* | cegcc*)
7287 symcode='[ABCDGISTW]'
7289 hpux*)
7290 if test "$host_cpu" = ia64; then
7291 symcode='[ABCDEGRST]'
7294 irix* | nonstopux*)
7295 symcode='[BCDEGRST]'
7297 osf*)
7298 symcode='[BCDEGQRST]'
7300 solaris*)
7301 symcode='[BDRT]'
7303 sco3.2v5*)
7304 symcode='[DT]'
7306 sysv4.2uw2*)
7307 symcode='[DT]'
7309 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7310 symcode='[ABDT]'
7312 sysv4)
7313 symcode='[DFNSTU]'
7315 esac
7317 # If we're using GNU nm, then use its standard symbol codes.
7318 case `$NM -V 2>&1` in
7319 *GNU* | *'with BFD'*)
7320 symcode='[ABCDGIRSTW]' ;;
7321 esac
7323 # Transform an extracted symbol line into a proper C declaration.
7324 # Some systems (esp. on ia64) link data and code symbols differently,
7325 # so use this general approach.
7326 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7328 # Transform an extracted symbol line into symbol name and symbol address
7329 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7330 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'"
7332 # Handle CRLF in mingw tool chain
7333 opt_cr=
7334 case $build_os in
7335 mingw*)
7336 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7338 esac
7340 # Try without a prefix underscore, then with it.
7341 for ac_symprfx in "" "_"; do
7343 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7344 symxfrm="\\1 $ac_symprfx\\2 \\2"
7346 # Write the raw and C identifiers.
7347 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7348 # Fake it for dumpbin and say T for any non-static function
7349 # and D for any global variable.
7350 # Also find C++ and __fastcall symbols from MSVC++,
7351 # which start with @ or ?.
7352 lt_cv_sys_global_symbol_pipe="$AWK '"\
7353 " {last_section=section; section=\$ 3};"\
7354 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7355 " \$ 0!~/External *\|/{next};"\
7356 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7357 " {if(hide[section]) next};"\
7358 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7359 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7360 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7361 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7362 " ' prfx=^$ac_symprfx"
7363 else
7364 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7367 # Check to see that the pipe works correctly.
7368 pipe_works=no
7370 rm -f conftest*
7371 cat > conftest.$ac_ext <<_LT_EOF
7372 #ifdef __cplusplus
7373 extern "C" {
7374 #endif
7375 char nm_test_var;
7376 void nm_test_func(void);
7377 void nm_test_func(void){}
7378 #ifdef __cplusplus
7380 #endif
7381 int main(){nm_test_var='a';nm_test_func();return(0);}
7382 _LT_EOF
7384 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7385 (eval $ac_compile) 2>&5
7386 ac_status=$?
7387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7388 test $ac_status = 0; }; then
7389 # Now try to grab the symbols.
7390 nlist=conftest.nm
7391 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7392 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7393 ac_status=$?
7394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7395 test $ac_status = 0; } && test -s "$nlist"; then
7396 # Try sorting and uniquifying the output.
7397 if sort "$nlist" | uniq > "$nlist"T; then
7398 mv -f "$nlist"T "$nlist"
7399 else
7400 rm -f "$nlist"T
7403 # Make sure that we snagged all the symbols we need.
7404 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7405 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7406 cat <<_LT_EOF > conftest.$ac_ext
7407 #ifdef __cplusplus
7408 extern "C" {
7409 #endif
7411 _LT_EOF
7412 # Now generate the symbol file.
7413 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7415 cat <<_LT_EOF >> conftest.$ac_ext
7417 /* The mapping between symbol names and symbols. */
7418 const struct {
7419 const char *name;
7420 void *address;
7422 lt__PROGRAM__LTX_preloaded_symbols[] =
7424 { "@PROGRAM@", (void *) 0 },
7425 _LT_EOF
7426 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7427 cat <<\_LT_EOF >> conftest.$ac_ext
7428 {0, (void *) 0}
7431 /* This works around a problem in FreeBSD linker */
7432 #ifdef FREEBSD_WORKAROUND
7433 static const void *lt_preloaded_setup() {
7434 return lt__PROGRAM__LTX_preloaded_symbols;
7436 #endif
7438 #ifdef __cplusplus
7440 #endif
7441 _LT_EOF
7442 # Now try linking the two files.
7443 mv conftest.$ac_objext conftstm.$ac_objext
7444 lt_save_LIBS="$LIBS"
7445 lt_save_CFLAGS="$CFLAGS"
7446 LIBS="conftstm.$ac_objext"
7447 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7449 (eval $ac_link) 2>&5
7450 ac_status=$?
7451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7452 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7453 pipe_works=yes
7455 LIBS="$lt_save_LIBS"
7456 CFLAGS="$lt_save_CFLAGS"
7457 else
7458 echo "cannot find nm_test_func in $nlist" >&5
7460 else
7461 echo "cannot find nm_test_var in $nlist" >&5
7463 else
7464 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7466 else
7467 echo "$progname: failed program was:" >&5
7468 cat conftest.$ac_ext >&5
7470 rm -rf conftest* conftst*
7472 # Do not use the global_symbol_pipe unless it works.
7473 if test "$pipe_works" = yes; then
7474 break
7475 else
7476 lt_cv_sys_global_symbol_pipe=
7478 done
7482 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7483 lt_cv_sys_global_symbol_to_cdecl=
7485 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7487 $as_echo "failed" >&6; }
7488 else
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7490 $as_echo "ok" >&6; }
7514 # Check whether --enable-libtool-lock was given.
7515 if test "${enable_libtool_lock+set}" = set; then :
7516 enableval=$enable_libtool_lock;
7519 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7521 # Some flags need to be propagated to the compiler or linker for good
7522 # libtool support.
7523 case $host in
7524 ia64-*-hpux*)
7525 # Find out which ABI we are using.
7526 echo 'int i;' > conftest.$ac_ext
7527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7528 (eval $ac_compile) 2>&5
7529 ac_status=$?
7530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7531 test $ac_status = 0; }; then
7532 case `/usr/bin/file conftest.$ac_objext` in
7533 *ELF-32*)
7534 HPUX_IA64_MODE="32"
7536 *ELF-64*)
7537 HPUX_IA64_MODE="64"
7539 esac
7541 rm -rf conftest*
7543 *-*-irix6*)
7544 # Find out which ABI we are using.
7545 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7547 (eval $ac_compile) 2>&5
7548 ac_status=$?
7549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7550 test $ac_status = 0; }; then
7551 if test "$lt_cv_prog_gnu_ld" = yes; then
7552 case `/usr/bin/file conftest.$ac_objext` in
7553 *32-bit*)
7554 LD="${LD-ld} -melf32bsmip"
7556 *N32*)
7557 LD="${LD-ld} -melf32bmipn32"
7559 *64-bit*)
7560 LD="${LD-ld} -melf64bmip"
7562 esac
7563 else
7564 case `/usr/bin/file conftest.$ac_objext` in
7565 *32-bit*)
7566 LD="${LD-ld} -32"
7568 *N32*)
7569 LD="${LD-ld} -n32"
7571 *64-bit*)
7572 LD="${LD-ld} -64"
7574 esac
7577 rm -rf conftest*
7580 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7581 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7582 # Find out which ABI we are using.
7583 echo 'int i;' > conftest.$ac_ext
7584 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7585 (eval $ac_compile) 2>&5
7586 ac_status=$?
7587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7588 test $ac_status = 0; }; then
7589 case `/usr/bin/file conftest.o` in
7590 *32-bit*)
7591 case $host in
7592 x86_64-*kfreebsd*-gnu)
7593 LD="${LD-ld} -m elf_i386_fbsd"
7595 x86_64-*linux*)
7596 case `/usr/bin/file conftest.o` in
7597 *x86-64*)
7598 LD="${LD-ld} -m elf32_x86_64"
7601 LD="${LD-ld} -m elf_i386"
7603 esac
7605 ppc64-*linux*|powerpc64-*linux*)
7606 LD="${LD-ld} -m elf32ppclinux"
7608 s390x-*linux*)
7609 LD="${LD-ld} -m elf_s390"
7611 sparc64-*linux*)
7612 LD="${LD-ld} -m elf32_sparc"
7614 esac
7616 *64-bit*)
7617 case $host in
7618 x86_64-*kfreebsd*-gnu)
7619 LD="${LD-ld} -m elf_x86_64_fbsd"
7621 x86_64-*linux*)
7622 LD="${LD-ld} -m elf_x86_64"
7624 ppc*-*linux*|powerpc*-*linux*)
7625 LD="${LD-ld} -m elf64ppc"
7627 s390*-*linux*|s390*-*tpf*)
7628 LD="${LD-ld} -m elf64_s390"
7630 sparc*-*linux*)
7631 LD="${LD-ld} -m elf64_sparc"
7633 esac
7635 esac
7637 rm -rf conftest*
7640 *-*-sco3.2v5*)
7641 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7642 SAVE_CFLAGS="$CFLAGS"
7643 CFLAGS="$CFLAGS -belf"
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7645 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7646 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7647 $as_echo_n "(cached) " >&6
7648 else
7649 ac_ext=c
7650 ac_cpp='$CPP $CPPFLAGS'
7651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7655 if test x$gcc_no_link = xyes; then
7656 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h. */
7662 main ()
7666 return 0;
7668 _ACEOF
7669 if ac_fn_c_try_link "$LINENO"; then :
7670 lt_cv_cc_needs_belf=yes
7671 else
7672 lt_cv_cc_needs_belf=no
7674 rm -f core conftest.err conftest.$ac_objext \
7675 conftest$ac_exeext conftest.$ac_ext
7676 ac_ext=c
7677 ac_cpp='$CPP $CPPFLAGS'
7678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7684 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7685 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7686 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7687 CFLAGS="$SAVE_CFLAGS"
7690 sparc*-*solaris*)
7691 # Find out which ABI we are using.
7692 echo 'int i;' > conftest.$ac_ext
7693 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7694 (eval $ac_compile) 2>&5
7695 ac_status=$?
7696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7697 test $ac_status = 0; }; then
7698 case `/usr/bin/file conftest.o` in
7699 *64-bit*)
7700 case $lt_cv_prog_gnu_ld in
7701 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7703 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7704 LD="${LD-ld} -64"
7707 esac
7709 esac
7711 rm -rf conftest*
7713 esac
7715 need_locks="$enable_libtool_lock"
7718 case $host_os in
7719 rhapsody* | darwin*)
7720 if test -n "$ac_tool_prefix"; then
7721 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7722 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724 $as_echo_n "checking for $ac_word... " >&6; }
7725 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7726 $as_echo_n "(cached) " >&6
7727 else
7728 if test -n "$DSYMUTIL"; then
7729 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7730 else
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 for as_dir in $PATH
7734 IFS=$as_save_IFS
7735 test -z "$as_dir" && as_dir=.
7736 for ac_exec_ext in '' $ac_executable_extensions; do
7737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7738 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 break 2
7742 done
7743 done
7744 IFS=$as_save_IFS
7748 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7749 if test -n "$DSYMUTIL"; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7751 $as_echo "$DSYMUTIL" >&6; }
7752 else
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7759 if test -z "$ac_cv_prog_DSYMUTIL"; then
7760 ac_ct_DSYMUTIL=$DSYMUTIL
7761 # Extract the first word of "dsymutil", so it can be a program name with args.
7762 set dummy dsymutil; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 if test -n "$ac_ct_DSYMUTIL"; then
7769 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7774 IFS=$as_save_IFS
7775 test -z "$as_dir" && as_dir=.
7776 for ac_exec_ext in '' $ac_executable_extensions; do
7777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780 break 2
7782 done
7783 done
7784 IFS=$as_save_IFS
7788 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7789 if test -n "$ac_ct_DSYMUTIL"; then
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7791 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7792 else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7797 if test "x$ac_ct_DSYMUTIL" = x; then
7798 DSYMUTIL=":"
7799 else
7800 case $cross_compiling:$ac_tool_warned in
7801 yes:)
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7804 ac_tool_warned=yes ;;
7805 esac
7806 DSYMUTIL=$ac_ct_DSYMUTIL
7808 else
7809 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7812 if test -n "$ac_tool_prefix"; then
7813 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7814 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816 $as_echo_n "checking for $ac_word... " >&6; }
7817 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7818 $as_echo_n "(cached) " >&6
7819 else
7820 if test -n "$NMEDIT"; then
7821 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7822 else
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7826 IFS=$as_save_IFS
7827 test -z "$as_dir" && as_dir=.
7828 for ac_exec_ext in '' $ac_executable_extensions; do
7829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7830 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7832 break 2
7834 done
7835 done
7836 IFS=$as_save_IFS
7840 NMEDIT=$ac_cv_prog_NMEDIT
7841 if test -n "$NMEDIT"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7843 $as_echo "$NMEDIT" >&6; }
7844 else
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7851 if test -z "$ac_cv_prog_NMEDIT"; then
7852 ac_ct_NMEDIT=$NMEDIT
7853 # Extract the first word of "nmedit", so it can be a program name with args.
7854 set dummy nmedit; ac_word=$2
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 $as_echo_n "checking for $ac_word... " >&6; }
7857 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7858 $as_echo_n "(cached) " >&6
7859 else
7860 if test -n "$ac_ct_NMEDIT"; then
7861 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7862 else
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 for as_dir in $PATH
7866 IFS=$as_save_IFS
7867 test -z "$as_dir" && as_dir=.
7868 for ac_exec_ext in '' $ac_executable_extensions; do
7869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7870 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872 break 2
7874 done
7875 done
7876 IFS=$as_save_IFS
7880 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7881 if test -n "$ac_ct_NMEDIT"; then
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7883 $as_echo "$ac_ct_NMEDIT" >&6; }
7884 else
7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7889 if test "x$ac_ct_NMEDIT" = x; then
7890 NMEDIT=":"
7891 else
7892 case $cross_compiling:$ac_tool_warned in
7893 yes:)
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7896 ac_tool_warned=yes ;;
7897 esac
7898 NMEDIT=$ac_ct_NMEDIT
7900 else
7901 NMEDIT="$ac_cv_prog_NMEDIT"
7904 if test -n "$ac_tool_prefix"; then
7905 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7906 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7908 $as_echo_n "checking for $ac_word... " >&6; }
7909 if test "${ac_cv_prog_LIPO+set}" = set; then :
7910 $as_echo_n "(cached) " >&6
7911 else
7912 if test -n "$LIPO"; then
7913 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7914 else
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 for as_dir in $PATH
7918 IFS=$as_save_IFS
7919 test -z "$as_dir" && as_dir=.
7920 for ac_exec_ext in '' $ac_executable_extensions; do
7921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7922 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7924 break 2
7926 done
7927 done
7928 IFS=$as_save_IFS
7932 LIPO=$ac_cv_prog_LIPO
7933 if test -n "$LIPO"; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7935 $as_echo "$LIPO" >&6; }
7936 else
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7943 if test -z "$ac_cv_prog_LIPO"; then
7944 ac_ct_LIPO=$LIPO
7945 # Extract the first word of "lipo", so it can be a program name with args.
7946 set dummy lipo; ac_word=$2
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7948 $as_echo_n "checking for $ac_word... " >&6; }
7949 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7950 $as_echo_n "(cached) " >&6
7951 else
7952 if test -n "$ac_ct_LIPO"; then
7953 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7958 IFS=$as_save_IFS
7959 test -z "$as_dir" && as_dir=.
7960 for ac_exec_ext in '' $ac_executable_extensions; do
7961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7962 ac_cv_prog_ac_ct_LIPO="lipo"
7963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964 break 2
7966 done
7967 done
7968 IFS=$as_save_IFS
7972 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7973 if test -n "$ac_ct_LIPO"; then
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7975 $as_echo "$ac_ct_LIPO" >&6; }
7976 else
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7981 if test "x$ac_ct_LIPO" = x; then
7982 LIPO=":"
7983 else
7984 case $cross_compiling:$ac_tool_warned in
7985 yes:)
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7988 ac_tool_warned=yes ;;
7989 esac
7990 LIPO=$ac_ct_LIPO
7992 else
7993 LIPO="$ac_cv_prog_LIPO"
7996 if test -n "$ac_tool_prefix"; then
7997 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7998 set dummy ${ac_tool_prefix}otool; ac_word=$2
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8000 $as_echo_n "checking for $ac_word... " >&6; }
8001 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8002 $as_echo_n "(cached) " >&6
8003 else
8004 if test -n "$OTOOL"; then
8005 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8006 else
8007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 for as_dir in $PATH
8010 IFS=$as_save_IFS
8011 test -z "$as_dir" && as_dir=.
8012 for ac_exec_ext in '' $ac_executable_extensions; do
8013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8014 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8016 break 2
8018 done
8019 done
8020 IFS=$as_save_IFS
8024 OTOOL=$ac_cv_prog_OTOOL
8025 if test -n "$OTOOL"; then
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8027 $as_echo "$OTOOL" >&6; }
8028 else
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030 $as_echo "no" >&6; }
8035 if test -z "$ac_cv_prog_OTOOL"; then
8036 ac_ct_OTOOL=$OTOOL
8037 # Extract the first word of "otool", so it can be a program name with args.
8038 set dummy otool; ac_word=$2
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040 $as_echo_n "checking for $ac_word... " >&6; }
8041 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8042 $as_echo_n "(cached) " >&6
8043 else
8044 if test -n "$ac_ct_OTOOL"; then
8045 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8046 else
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 for as_dir in $PATH
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8054 ac_cv_prog_ac_ct_OTOOL="otool"
8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 break 2
8058 done
8059 done
8060 IFS=$as_save_IFS
8064 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8065 if test -n "$ac_ct_OTOOL"; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8067 $as_echo "$ac_ct_OTOOL" >&6; }
8068 else
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }
8073 if test "x$ac_ct_OTOOL" = x; then
8074 OTOOL=":"
8075 else
8076 case $cross_compiling:$ac_tool_warned in
8077 yes:)
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8080 ac_tool_warned=yes ;;
8081 esac
8082 OTOOL=$ac_ct_OTOOL
8084 else
8085 OTOOL="$ac_cv_prog_OTOOL"
8088 if test -n "$ac_tool_prefix"; then
8089 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8090 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092 $as_echo_n "checking for $ac_word... " >&6; }
8093 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8094 $as_echo_n "(cached) " >&6
8095 else
8096 if test -n "$OTOOL64"; then
8097 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8098 else
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 for as_dir in $PATH
8102 IFS=$as_save_IFS
8103 test -z "$as_dir" && as_dir=.
8104 for ac_exec_ext in '' $ac_executable_extensions; do
8105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8106 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108 break 2
8110 done
8111 done
8112 IFS=$as_save_IFS
8116 OTOOL64=$ac_cv_prog_OTOOL64
8117 if test -n "$OTOOL64"; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8119 $as_echo "$OTOOL64" >&6; }
8120 else
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122 $as_echo "no" >&6; }
8127 if test -z "$ac_cv_prog_OTOOL64"; then
8128 ac_ct_OTOOL64=$OTOOL64
8129 # Extract the first word of "otool64", so it can be a program name with args.
8130 set dummy otool64; ac_word=$2
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132 $as_echo_n "checking for $ac_word... " >&6; }
8133 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8134 $as_echo_n "(cached) " >&6
8135 else
8136 if test -n "$ac_ct_OTOOL64"; then
8137 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8138 else
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 for as_dir in $PATH
8142 IFS=$as_save_IFS
8143 test -z "$as_dir" && as_dir=.
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8146 ac_cv_prog_ac_ct_OTOOL64="otool64"
8147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8148 break 2
8150 done
8151 done
8152 IFS=$as_save_IFS
8156 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8157 if test -n "$ac_ct_OTOOL64"; then
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8159 $as_echo "$ac_ct_OTOOL64" >&6; }
8160 else
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 $as_echo "no" >&6; }
8165 if test "x$ac_ct_OTOOL64" = x; then
8166 OTOOL64=":"
8167 else
8168 case $cross_compiling:$ac_tool_warned in
8169 yes:)
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8172 ac_tool_warned=yes ;;
8173 esac
8174 OTOOL64=$ac_ct_OTOOL64
8176 else
8177 OTOOL64="$ac_cv_prog_OTOOL64"
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8207 $as_echo_n "checking for -single_module linker flag... " >&6; }
8208 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
8210 else
8211 lt_cv_apple_cc_single_mod=no
8212 if test -z "${LT_MULTI_MODULE}"; then
8213 # By default we will add the -single_module flag. You can override
8214 # by either setting the environment variable LT_MULTI_MODULE
8215 # non-empty at configure time, or by adding -multi_module to the
8216 # link flags.
8217 rm -rf libconftest.dylib*
8218 echo "int foo(void){return 1;}" > conftest.c
8219 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8220 -dynamiclib -Wl,-single_module conftest.c" >&5
8221 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8222 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8223 _lt_result=$?
8224 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8225 lt_cv_apple_cc_single_mod=yes
8226 else
8227 cat conftest.err >&5
8229 rm -rf libconftest.dylib*
8230 rm -f conftest.*
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8234 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8236 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8237 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8238 $as_echo_n "(cached) " >&6
8239 else
8240 lt_cv_ld_exported_symbols_list=no
8241 save_LDFLAGS=$LDFLAGS
8242 echo "_main" > conftest.sym
8243 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8244 if test x$gcc_no_link = xyes; then
8245 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h. */
8251 main ()
8255 return 0;
8257 _ACEOF
8258 if ac_fn_c_try_link "$LINENO"; then :
8259 lt_cv_ld_exported_symbols_list=yes
8260 else
8261 lt_cv_ld_exported_symbols_list=no
8263 rm -f core conftest.err conftest.$ac_objext \
8264 conftest$ac_exeext conftest.$ac_ext
8265 LDFLAGS="$save_LDFLAGS"
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8269 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8271 $as_echo_n "checking for -force_load linker flag... " >&6; }
8272 if test "${lt_cv_ld_force_load+set}" = set; then :
8273 $as_echo_n "(cached) " >&6
8274 else
8275 lt_cv_ld_force_load=no
8276 cat > conftest.c << _LT_EOF
8277 int forced_loaded() { return 2;}
8278 _LT_EOF
8279 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8280 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8281 echo "$AR cru libconftest.a conftest.o" >&5
8282 $AR cru libconftest.a conftest.o 2>&5
8283 cat > conftest.c << _LT_EOF
8284 int main() { return 0;}
8285 _LT_EOF
8286 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8287 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8288 _lt_result=$?
8289 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8290 lt_cv_ld_force_load=yes
8291 else
8292 cat conftest.err >&5
8294 rm -f conftest.err libconftest.a conftest conftest.c
8295 rm -rf conftest.dSYM
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8299 $as_echo "$lt_cv_ld_force_load" >&6; }
8300 case $host_os in
8301 rhapsody* | darwin1.[012])
8302 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8303 darwin1.*)
8304 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8305 darwin*) # darwin 5.x on
8306 # if running on 10.5 or later, the deployment target defaults
8307 # to the OS version, if on x86, and 10.4, the deployment
8308 # target defaults to 10.4. Don't you love it?
8309 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8310 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8311 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8312 10.[012]*)
8313 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8314 10.*)
8315 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8316 esac
8318 esac
8319 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8320 _lt_dar_single_mod='$single_module'
8322 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8323 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8324 else
8325 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8327 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8328 _lt_dsymutil='~$DSYMUTIL $lib || :'
8329 else
8330 _lt_dsymutil=
8333 esac
8335 for ac_header in dlfcn.h
8336 do :
8337 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8339 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8340 cat >>confdefs.h <<_ACEOF
8341 #define HAVE_DLFCN_H 1
8342 _ACEOF
8346 done
8352 # Set options
8356 enable_dlopen=no
8359 enable_win32_dll=no
8362 # Check whether --enable-shared was given.
8363 if test "${enable_shared+set}" = set; then :
8364 enableval=$enable_shared; p=${PACKAGE-default}
8365 case $enableval in
8366 yes) enable_shared=yes ;;
8367 no) enable_shared=no ;;
8369 enable_shared=no
8370 # Look at the argument we got. We use all the common list separators.
8371 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8372 for pkg in $enableval; do
8373 IFS="$lt_save_ifs"
8374 if test "X$pkg" = "X$p"; then
8375 enable_shared=yes
8377 done
8378 IFS="$lt_save_ifs"
8380 esac
8381 else
8382 enable_shared=yes
8395 # Check whether --with-pic was given.
8396 if test "${with_pic+set}" = set; then :
8397 withval=$with_pic; pic_mode="$withval"
8398 else
8399 pic_mode=default
8403 test -z "$pic_mode" && pic_mode=default
8411 # Check whether --enable-fast-install was given.
8412 if test "${enable_fast_install+set}" = set; then :
8413 enableval=$enable_fast_install; p=${PACKAGE-default}
8414 case $enableval in
8415 yes) enable_fast_install=yes ;;
8416 no) enable_fast_install=no ;;
8418 enable_fast_install=no
8419 # Look at the argument we got. We use all the common list separators.
8420 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8421 for pkg in $enableval; do
8422 IFS="$lt_save_ifs"
8423 if test "X$pkg" = "X$p"; then
8424 enable_fast_install=yes
8426 done
8427 IFS="$lt_save_ifs"
8429 esac
8430 else
8431 enable_fast_install=yes
8444 # This can be used to rebuild libtool when needed
8445 LIBTOOL_DEPS="$ltmain"
8447 # Always use our own libtool.
8448 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8475 test -z "$LN_S" && LN_S="ln -s"
8490 if test -n "${ZSH_VERSION+set}" ; then
8491 setopt NO_GLOB_SUBST
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8495 $as_echo_n "checking for objdir... " >&6; }
8496 if test "${lt_cv_objdir+set}" = set; then :
8497 $as_echo_n "(cached) " >&6
8498 else
8499 rm -f .libs 2>/dev/null
8500 mkdir .libs 2>/dev/null
8501 if test -d .libs; then
8502 lt_cv_objdir=.libs
8503 else
8504 # MS-DOS does not allow filenames that begin with a dot.
8505 lt_cv_objdir=_libs
8507 rmdir .libs 2>/dev/null
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8510 $as_echo "$lt_cv_objdir" >&6; }
8511 objdir=$lt_cv_objdir
8517 cat >>confdefs.h <<_ACEOF
8518 #define LT_OBJDIR "$lt_cv_objdir/"
8519 _ACEOF
8524 case $host_os in
8525 aix3*)
8526 # AIX sometimes has problems with the GCC collect2 program. For some
8527 # reason, if we set the COLLECT_NAMES environment variable, the problems
8528 # vanish in a puff of smoke.
8529 if test "X${COLLECT_NAMES+set}" != Xset; then
8530 COLLECT_NAMES=
8531 export COLLECT_NAMES
8534 esac
8536 # Global variables:
8537 ofile=libtool
8538 can_build_shared=yes
8540 # All known linkers require a `.a' archive for static linking (except MSVC,
8541 # which needs '.lib').
8542 libext=a
8544 with_gnu_ld="$lt_cv_prog_gnu_ld"
8546 old_CC="$CC"
8547 old_CFLAGS="$CFLAGS"
8549 # Set sane defaults for various variables
8550 test -z "$CC" && CC=cc
8551 test -z "$LTCC" && LTCC=$CC
8552 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8553 test -z "$LD" && LD=ld
8554 test -z "$ac_objext" && ac_objext=o
8556 for cc_temp in $compiler""; do
8557 case $cc_temp in
8558 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8559 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8560 \-*) ;;
8561 *) break;;
8562 esac
8563 done
8564 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8567 # Only perform the check for file, if the check method requires it
8568 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8569 case $deplibs_check_method in
8570 file_magic*)
8571 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8573 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8574 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8575 $as_echo_n "(cached) " >&6
8576 else
8577 case $MAGIC_CMD in
8578 [\\/*] | ?:[\\/]*)
8579 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8582 lt_save_MAGIC_CMD="$MAGIC_CMD"
8583 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8584 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8585 for ac_dir in $ac_dummy; do
8586 IFS="$lt_save_ifs"
8587 test -z "$ac_dir" && ac_dir=.
8588 if test -f $ac_dir/${ac_tool_prefix}file; then
8589 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8590 if test -n "$file_magic_test_file"; then
8591 case $deplibs_check_method in
8592 "file_magic "*)
8593 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8594 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8595 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8596 $EGREP "$file_magic_regex" > /dev/null; then
8598 else
8599 cat <<_LT_EOF 1>&2
8601 *** Warning: the command libtool uses to detect shared libraries,
8602 *** $file_magic_cmd, produces output that libtool cannot recognize.
8603 *** The result is that libtool may fail to recognize shared libraries
8604 *** as such. This will affect the creation of libtool libraries that
8605 *** depend on shared libraries, but programs linked with such libtool
8606 *** libraries will work regardless of this problem. Nevertheless, you
8607 *** may want to report the problem to your system manager and/or to
8608 *** bug-libtool@gnu.org
8610 _LT_EOF
8611 fi ;;
8612 esac
8614 break
8616 done
8617 IFS="$lt_save_ifs"
8618 MAGIC_CMD="$lt_save_MAGIC_CMD"
8620 esac
8623 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8624 if test -n "$MAGIC_CMD"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8626 $as_echo "$MAGIC_CMD" >&6; }
8627 else
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
8636 if test -z "$lt_cv_path_MAGIC_CMD"; then
8637 if test -n "$ac_tool_prefix"; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8639 $as_echo_n "checking for file... " >&6; }
8640 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 case $MAGIC_CMD in
8644 [\\/*] | ?:[\\/]*)
8645 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8648 lt_save_MAGIC_CMD="$MAGIC_CMD"
8649 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8650 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8651 for ac_dir in $ac_dummy; do
8652 IFS="$lt_save_ifs"
8653 test -z "$ac_dir" && ac_dir=.
8654 if test -f $ac_dir/file; then
8655 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8656 if test -n "$file_magic_test_file"; then
8657 case $deplibs_check_method in
8658 "file_magic "*)
8659 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8660 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8661 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8662 $EGREP "$file_magic_regex" > /dev/null; then
8664 else
8665 cat <<_LT_EOF 1>&2
8667 *** Warning: the command libtool uses to detect shared libraries,
8668 *** $file_magic_cmd, produces output that libtool cannot recognize.
8669 *** The result is that libtool may fail to recognize shared libraries
8670 *** as such. This will affect the creation of libtool libraries that
8671 *** depend on shared libraries, but programs linked with such libtool
8672 *** libraries will work regardless of this problem. Nevertheless, you
8673 *** may want to report the problem to your system manager and/or to
8674 *** bug-libtool@gnu.org
8676 _LT_EOF
8677 fi ;;
8678 esac
8680 break
8682 done
8683 IFS="$lt_save_ifs"
8684 MAGIC_CMD="$lt_save_MAGIC_CMD"
8686 esac
8689 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8690 if test -n "$MAGIC_CMD"; then
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8692 $as_echo "$MAGIC_CMD" >&6; }
8693 else
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695 $as_echo "no" >&6; }
8699 else
8700 MAGIC_CMD=:
8706 esac
8708 # Use C for the default configuration in the libtool script
8710 lt_save_CC="$CC"
8711 ac_ext=c
8712 ac_cpp='$CPP $CPPFLAGS'
8713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8718 # Source file extension for C test sources.
8719 ac_ext=c
8721 # Object file extension for compiled C test sources.
8722 objext=o
8723 objext=$objext
8725 # Code to be used in simple compile tests
8726 lt_simple_compile_test_code="int some_variable = 0;"
8728 # Code to be used in simple link tests
8729 lt_simple_link_test_code='int main(){return(0);}'
8737 # If no C compiler was specified, use CC.
8738 LTCC=${LTCC-"$CC"}
8740 # If no C compiler flags were specified, use CFLAGS.
8741 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8743 # Allow CC to be a program name with arguments.
8744 compiler=$CC
8746 # Save the default compiler, since it gets overwritten when the other
8747 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8748 compiler_DEFAULT=$CC
8750 # save warnings/boilerplate of simple test code
8751 ac_outfile=conftest.$ac_objext
8752 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8753 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8754 _lt_compiler_boilerplate=`cat conftest.err`
8755 $RM conftest*
8757 ac_outfile=conftest.$ac_objext
8758 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8759 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8760 _lt_linker_boilerplate=`cat conftest.err`
8761 $RM -r conftest*
8764 ## CAVEAT EMPTOR:
8765 ## There is no encapsulation within the following macros, do not change
8766 ## the running order or otherwise move them around unless you know exactly
8767 ## what you are doing...
8768 if test -n "$compiler"; then
8770 lt_prog_compiler_no_builtin_flag=
8772 if test "$GCC" = yes; then
8773 case $cc_basename in
8774 nvcc*)
8775 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8777 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8778 esac
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8781 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8782 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8783 $as_echo_n "(cached) " >&6
8784 else
8785 lt_cv_prog_compiler_rtti_exceptions=no
8786 ac_outfile=conftest.$ac_objext
8787 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8788 lt_compiler_flag="-fno-rtti -fno-exceptions"
8789 # Insert the option either (1) after the last *FLAGS variable, or
8790 # (2) before a word containing "conftest.", or (3) at the end.
8791 # Note that $ac_compile itself does not contain backslashes and begins
8792 # with a dollar sign (not a hyphen), so the echo should work correctly.
8793 # The option is referenced via a variable to avoid confusing sed.
8794 lt_compile=`echo "$ac_compile" | $SED \
8795 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8797 -e 's:$: $lt_compiler_flag:'`
8798 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8799 (eval "$lt_compile" 2>conftest.err)
8800 ac_status=$?
8801 cat conftest.err >&5
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 if (exit $ac_status) && test -s "$ac_outfile"; then
8804 # The compiler can only warn and ignore the option if not recognized
8805 # So say no if there are warnings other than the usual output.
8806 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8808 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8809 lt_cv_prog_compiler_rtti_exceptions=yes
8812 $RM conftest*
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8816 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8818 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8819 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8820 else
8831 lt_prog_compiler_wl=
8832 lt_prog_compiler_pic=
8833 lt_prog_compiler_static=
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8836 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8838 if test "$GCC" = yes; then
8839 lt_prog_compiler_wl='-Wl,'
8840 lt_prog_compiler_static='-static'
8842 case $host_os in
8843 aix*)
8844 # All AIX code is PIC.
8845 if test "$host_cpu" = ia64; then
8846 # AIX 5 now supports IA64 processor
8847 lt_prog_compiler_static='-Bstatic'
8849 lt_prog_compiler_pic='-fPIC'
8852 amigaos*)
8853 case $host_cpu in
8854 powerpc)
8855 # see comment about AmigaOS4 .so support
8856 lt_prog_compiler_pic='-fPIC'
8858 m68k)
8859 # FIXME: we need at least 68020 code to build shared libraries, but
8860 # adding the `-m68020' flag to GCC prevents building anything better,
8861 # like `-m68040'.
8862 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8864 esac
8867 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8868 # PIC is the default for these OSes.
8871 mingw* | cygwin* | pw32* | os2* | cegcc*)
8872 # This hack is so that the source file can tell whether it is being
8873 # built for inclusion in a dll (and should export symbols for example).
8874 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8875 # (--disable-auto-import) libraries
8876 lt_prog_compiler_pic='-DDLL_EXPORT'
8879 darwin* | rhapsody*)
8880 # PIC is the default on this platform
8881 # Common symbols not allowed in MH_DYLIB files
8882 lt_prog_compiler_pic='-fno-common'
8885 haiku*)
8886 # PIC is the default for Haiku.
8887 # The "-static" flag exists, but is broken.
8888 lt_prog_compiler_static=
8891 hpux*)
8892 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8893 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8894 # sets the default TLS model and affects inlining.
8895 case $host_cpu in
8896 hppa*64*)
8897 # +Z the default
8900 lt_prog_compiler_pic='-fPIC'
8902 esac
8905 interix[3-9]*)
8906 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8907 # Instead, we relocate shared libraries at runtime.
8910 msdosdjgpp*)
8911 # Just because we use GCC doesn't mean we suddenly get shared libraries
8912 # on systems that don't support them.
8913 lt_prog_compiler_can_build_shared=no
8914 enable_shared=no
8917 *nto* | *qnx*)
8918 # QNX uses GNU C++, but need to define -shared option too, otherwise
8919 # it will coredump.
8920 lt_prog_compiler_pic='-fPIC -shared'
8923 sysv4*MP*)
8924 if test -d /usr/nec; then
8925 lt_prog_compiler_pic=-Kconform_pic
8930 lt_prog_compiler_pic='-fPIC'
8932 esac
8934 case $cc_basename in
8935 nvcc*) # Cuda Compiler Driver 2.2
8936 lt_prog_compiler_wl='-Xlinker '
8937 lt_prog_compiler_pic='-Xcompiler -fPIC'
8939 esac
8940 else
8941 # PORTME Check for flag to pass linker flags through the system compiler.
8942 case $host_os in
8943 aix*)
8944 lt_prog_compiler_wl='-Wl,'
8945 if test "$host_cpu" = ia64; then
8946 # AIX 5 now supports IA64 processor
8947 lt_prog_compiler_static='-Bstatic'
8948 else
8949 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8953 mingw* | cygwin* | pw32* | os2* | cegcc*)
8954 # This hack is so that the source file can tell whether it is being
8955 # built for inclusion in a dll (and should export symbols for example).
8956 lt_prog_compiler_pic='-DDLL_EXPORT'
8959 hpux9* | hpux10* | hpux11*)
8960 lt_prog_compiler_wl='-Wl,'
8961 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8962 # not for PA HP-UX.
8963 case $host_cpu in
8964 hppa*64*|ia64*)
8965 # +Z the default
8968 lt_prog_compiler_pic='+Z'
8970 esac
8971 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8972 lt_prog_compiler_static='${wl}-a ${wl}archive'
8975 irix5* | irix6* | nonstopux*)
8976 lt_prog_compiler_wl='-Wl,'
8977 # PIC (with -KPIC) is the default.
8978 lt_prog_compiler_static='-non_shared'
8981 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8982 case $cc_basename in
8983 # old Intel for x86_64 which still supported -KPIC.
8984 ecc*)
8985 lt_prog_compiler_wl='-Wl,'
8986 lt_prog_compiler_pic='-KPIC'
8987 lt_prog_compiler_static='-static'
8989 # icc used to be incompatible with GCC.
8990 # ICC 10 doesn't accept -KPIC any more.
8991 icc* | ifort*)
8992 lt_prog_compiler_wl='-Wl,'
8993 lt_prog_compiler_pic='-fPIC'
8994 lt_prog_compiler_static='-static'
8996 # Lahey Fortran 8.1.
8997 lf95*)
8998 lt_prog_compiler_wl='-Wl,'
8999 lt_prog_compiler_pic='--shared'
9000 lt_prog_compiler_static='--static'
9002 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9003 # Portland Group compilers (*not* the Pentium gcc compiler,
9004 # which looks to be a dead project)
9005 lt_prog_compiler_wl='-Wl,'
9006 lt_prog_compiler_pic='-fpic'
9007 lt_prog_compiler_static='-Bstatic'
9009 ccc*)
9010 lt_prog_compiler_wl='-Wl,'
9011 # All Alpha code is PIC.
9012 lt_prog_compiler_static='-non_shared'
9014 xl* | bgxl* | bgf* | mpixl*)
9015 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9016 lt_prog_compiler_wl='-Wl,'
9017 lt_prog_compiler_pic='-qpic'
9018 lt_prog_compiler_static='-qstaticlink'
9021 case `$CC -V 2>&1 | sed 5q` in
9022 *Sun\ F* | *Sun*Fortran*)
9023 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9024 lt_prog_compiler_pic='-KPIC'
9025 lt_prog_compiler_static='-Bstatic'
9026 lt_prog_compiler_wl=''
9028 *Sun\ C*)
9029 # Sun C 5.9
9030 lt_prog_compiler_pic='-KPIC'
9031 lt_prog_compiler_static='-Bstatic'
9032 lt_prog_compiler_wl='-Wl,'
9034 esac
9036 esac
9039 newsos6)
9040 lt_prog_compiler_pic='-KPIC'
9041 lt_prog_compiler_static='-Bstatic'
9044 *nto* | *qnx*)
9045 # QNX uses GNU C++, but need to define -shared option too, otherwise
9046 # it will coredump.
9047 lt_prog_compiler_pic='-fPIC -shared'
9050 osf3* | osf4* | osf5*)
9051 lt_prog_compiler_wl='-Wl,'
9052 # All OSF/1 code is PIC.
9053 lt_prog_compiler_static='-non_shared'
9056 rdos*)
9057 lt_prog_compiler_static='-non_shared'
9060 solaris*)
9061 lt_prog_compiler_pic='-KPIC'
9062 lt_prog_compiler_static='-Bstatic'
9063 case $cc_basename in
9064 f77* | f90* | f95*)
9065 lt_prog_compiler_wl='-Qoption ld ';;
9067 lt_prog_compiler_wl='-Wl,';;
9068 esac
9071 sunos4*)
9072 lt_prog_compiler_wl='-Qoption ld '
9073 lt_prog_compiler_pic='-PIC'
9074 lt_prog_compiler_static='-Bstatic'
9077 sysv4 | sysv4.2uw2* | sysv4.3*)
9078 lt_prog_compiler_wl='-Wl,'
9079 lt_prog_compiler_pic='-KPIC'
9080 lt_prog_compiler_static='-Bstatic'
9083 sysv4*MP*)
9084 if test -d /usr/nec ;then
9085 lt_prog_compiler_pic='-Kconform_pic'
9086 lt_prog_compiler_static='-Bstatic'
9090 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9091 lt_prog_compiler_wl='-Wl,'
9092 lt_prog_compiler_pic='-KPIC'
9093 lt_prog_compiler_static='-Bstatic'
9096 unicos*)
9097 lt_prog_compiler_wl='-Wl,'
9098 lt_prog_compiler_can_build_shared=no
9101 uts4*)
9102 lt_prog_compiler_pic='-pic'
9103 lt_prog_compiler_static='-Bstatic'
9107 lt_prog_compiler_can_build_shared=no
9109 esac
9112 case $host_os in
9113 # For platforms which do not support PIC, -DPIC is meaningless:
9114 *djgpp*)
9115 lt_prog_compiler_pic=
9118 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9120 esac
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9122 $as_echo "$lt_prog_compiler_pic" >&6; }
9130 # Check to make sure the PIC flag actually works.
9132 if test -n "$lt_prog_compiler_pic"; then
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9134 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9135 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9136 $as_echo_n "(cached) " >&6
9137 else
9138 lt_cv_prog_compiler_pic_works=no
9139 ac_outfile=conftest.$ac_objext
9140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9141 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9142 # Insert the option either (1) after the last *FLAGS variable, or
9143 # (2) before a word containing "conftest.", or (3) at the end.
9144 # Note that $ac_compile itself does not contain backslashes and begins
9145 # with a dollar sign (not a hyphen), so the echo should work correctly.
9146 # The option is referenced via a variable to avoid confusing sed.
9147 lt_compile=`echo "$ac_compile" | $SED \
9148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9150 -e 's:$: $lt_compiler_flag:'`
9151 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9152 (eval "$lt_compile" 2>conftest.err)
9153 ac_status=$?
9154 cat conftest.err >&5
9155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156 if (exit $ac_status) && test -s "$ac_outfile"; then
9157 # The compiler can only warn and ignore the option if not recognized
9158 # So say no if there are warnings other than the usual output.
9159 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9160 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9161 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9162 lt_cv_prog_compiler_pic_works=yes
9165 $RM conftest*
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9169 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9171 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9172 case $lt_prog_compiler_pic in
9173 "" | " "*) ;;
9174 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9175 esac
9176 else
9177 lt_prog_compiler_pic=
9178 lt_prog_compiler_can_build_shared=no
9189 # Check to make sure the static flag actually works.
9191 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9193 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9194 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9195 $as_echo_n "(cached) " >&6
9196 else
9197 lt_cv_prog_compiler_static_works=no
9198 save_LDFLAGS="$LDFLAGS"
9199 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9200 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9201 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9202 # The linker can only warn and ignore the option if not recognized
9203 # So say no if there are warnings
9204 if test -s conftest.err; then
9205 # Append any errors to the config.log.
9206 cat conftest.err 1>&5
9207 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9208 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9209 if diff conftest.exp conftest.er2 >/dev/null; then
9210 lt_cv_prog_compiler_static_works=yes
9212 else
9213 lt_cv_prog_compiler_static_works=yes
9216 $RM -r conftest*
9217 LDFLAGS="$save_LDFLAGS"
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9221 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9223 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9225 else
9226 lt_prog_compiler_static=
9235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9236 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9237 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9238 $as_echo_n "(cached) " >&6
9239 else
9240 lt_cv_prog_compiler_c_o=no
9241 $RM -r conftest 2>/dev/null
9242 mkdir conftest
9243 cd conftest
9244 mkdir out
9245 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9247 lt_compiler_flag="-o out/conftest2.$ac_objext"
9248 # Insert the option either (1) after the last *FLAGS variable, or
9249 # (2) before a word containing "conftest.", or (3) at the end.
9250 # Note that $ac_compile itself does not contain backslashes and begins
9251 # with a dollar sign (not a hyphen), so the echo should work correctly.
9252 lt_compile=`echo "$ac_compile" | $SED \
9253 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9254 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9255 -e 's:$: $lt_compiler_flag:'`
9256 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9257 (eval "$lt_compile" 2>out/conftest.err)
9258 ac_status=$?
9259 cat out/conftest.err >&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9262 then
9263 # The compiler can only warn and ignore the option if not recognized
9264 # So say no if there are warnings
9265 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9266 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9267 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9268 lt_cv_prog_compiler_c_o=yes
9271 chmod u+w . 2>&5
9272 $RM conftest*
9273 # SGI C++ compiler will create directory out/ii_files/ for
9274 # template instantiation
9275 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9276 $RM out/* && rmdir out
9277 cd ..
9278 $RM -r conftest
9279 $RM conftest*
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9283 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9291 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9292 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9293 $as_echo_n "(cached) " >&6
9294 else
9295 lt_cv_prog_compiler_c_o=no
9296 $RM -r conftest 2>/dev/null
9297 mkdir conftest
9298 cd conftest
9299 mkdir out
9300 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9302 lt_compiler_flag="-o out/conftest2.$ac_objext"
9303 # Insert the option either (1) after the last *FLAGS variable, or
9304 # (2) before a word containing "conftest.", or (3) at the end.
9305 # Note that $ac_compile itself does not contain backslashes and begins
9306 # with a dollar sign (not a hyphen), so the echo should work correctly.
9307 lt_compile=`echo "$ac_compile" | $SED \
9308 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9309 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9310 -e 's:$: $lt_compiler_flag:'`
9311 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9312 (eval "$lt_compile" 2>out/conftest.err)
9313 ac_status=$?
9314 cat out/conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9317 then
9318 # The compiler can only warn and ignore the option if not recognized
9319 # So say no if there are warnings
9320 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9321 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9322 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9323 lt_cv_prog_compiler_c_o=yes
9326 chmod u+w . 2>&5
9327 $RM conftest*
9328 # SGI C++ compiler will create directory out/ii_files/ for
9329 # template instantiation
9330 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9331 $RM out/* && rmdir out
9332 cd ..
9333 $RM -r conftest
9334 $RM conftest*
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9338 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9343 hard_links="nottested"
9344 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9345 # do not overwrite the value of need_locks provided by the user
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9347 $as_echo_n "checking if we can lock with hard links... " >&6; }
9348 hard_links=yes
9349 $RM conftest*
9350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9351 touch conftest.a
9352 ln conftest.a conftest.b 2>&5 || hard_links=no
9353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9355 $as_echo "$hard_links" >&6; }
9356 if test "$hard_links" = no; then
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9358 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9359 need_locks=warn
9361 else
9362 need_locks=no
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9371 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9373 runpath_var=
9374 allow_undefined_flag=
9375 always_export_symbols=no
9376 archive_cmds=
9377 archive_expsym_cmds=
9378 compiler_needs_object=no
9379 enable_shared_with_static_runtimes=no
9380 export_dynamic_flag_spec=
9381 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9382 hardcode_automatic=no
9383 hardcode_direct=no
9384 hardcode_direct_absolute=no
9385 hardcode_libdir_flag_spec=
9386 hardcode_libdir_flag_spec_ld=
9387 hardcode_libdir_separator=
9388 hardcode_minus_L=no
9389 hardcode_shlibpath_var=unsupported
9390 inherit_rpath=no
9391 link_all_deplibs=unknown
9392 module_cmds=
9393 module_expsym_cmds=
9394 old_archive_from_new_cmds=
9395 old_archive_from_expsyms_cmds=
9396 thread_safe_flag_spec=
9397 whole_archive_flag_spec=
9398 # include_expsyms should be a list of space-separated symbols to be *always*
9399 # included in the symbol list
9400 include_expsyms=
9401 # exclude_expsyms can be an extended regexp of symbols to exclude
9402 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9403 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9404 # as well as any symbol that contains `d'.
9405 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9406 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9407 # platforms (ab)use it in PIC code, but their linkers get confused if
9408 # the symbol is explicitly referenced. Since portable code cannot
9409 # rely on this symbol name, it's probably fine to never include it in
9410 # preloaded symbol tables.
9411 # Exclude shared library initialization/finalization symbols.
9412 extract_expsyms_cmds=
9414 case $host_os in
9415 cygwin* | mingw* | pw32* | cegcc*)
9416 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9417 # When not using gcc, we currently assume that we are using
9418 # Microsoft Visual C++.
9419 if test "$GCC" != yes; then
9420 with_gnu_ld=no
9423 interix*)
9424 # we just hope/assume this is gcc and not c89 (= MSVC++)
9425 with_gnu_ld=yes
9427 openbsd*)
9428 with_gnu_ld=no
9430 esac
9432 ld_shlibs=yes
9434 # On some targets, GNU ld is compatible enough with the native linker
9435 # that we're better off using the native interface for both.
9436 lt_use_gnu_ld_interface=no
9437 if test "$with_gnu_ld" = yes; then
9438 case $host_os in
9439 aix*)
9440 # The AIX port of GNU ld has always aspired to compatibility
9441 # with the native linker. However, as the warning in the GNU ld
9442 # block says, versions before 2.19.5* couldn't really create working
9443 # shared libraries, regardless of the interface used.
9444 case `$LD -v 2>&1` in
9445 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9446 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9447 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9449 lt_use_gnu_ld_interface=yes
9451 esac
9454 lt_use_gnu_ld_interface=yes
9456 esac
9459 if test "$lt_use_gnu_ld_interface" = yes; then
9460 # If archive_cmds runs LD, not CC, wlarc should be empty
9461 wlarc='${wl}'
9463 # Set some defaults for GNU ld with shared library support. These
9464 # are reset later if shared libraries are not supported. Putting them
9465 # here allows them to be overridden if necessary.
9466 runpath_var=LD_RUN_PATH
9467 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9468 export_dynamic_flag_spec='${wl}--export-dynamic'
9469 # ancient GNU ld didn't support --whole-archive et. al.
9470 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9471 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9472 else
9473 whole_archive_flag_spec=
9475 supports_anon_versioning=no
9476 case `$LD -v 2>&1` in
9477 *GNU\ gold*) supports_anon_versioning=yes ;;
9478 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9479 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9480 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9481 *\ 2.11.*) ;; # other 2.11 versions
9482 *) supports_anon_versioning=yes ;;
9483 esac
9485 # See if GNU ld supports shared libraries.
9486 case $host_os in
9487 aix[3-9]*)
9488 # On AIX/PPC, the GNU linker is very broken
9489 if test "$host_cpu" != ia64; then
9490 ld_shlibs=no
9491 cat <<_LT_EOF 1>&2
9493 *** Warning: the GNU linker, at least up to release 2.19, is reported
9494 *** to be unable to reliably create shared libraries on AIX.
9495 *** Therefore, libtool is disabling shared libraries support. If you
9496 *** really care for shared libraries, you may want to install binutils
9497 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9498 *** You will then need to restart the configuration process.
9500 _LT_EOF
9504 amigaos*)
9505 case $host_cpu in
9506 powerpc)
9507 # see comment about AmigaOS4 .so support
9508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9509 archive_expsym_cmds=''
9511 m68k)
9512 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)'
9513 hardcode_libdir_flag_spec='-L$libdir'
9514 hardcode_minus_L=yes
9516 esac
9519 beos*)
9520 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9521 allow_undefined_flag=unsupported
9522 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9523 # support --undefined. This deserves some investigation. FIXME
9524 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9525 else
9526 ld_shlibs=no
9530 cygwin* | mingw* | pw32* | cegcc*)
9531 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9532 # as there is no search path for DLLs.
9533 hardcode_libdir_flag_spec='-L$libdir'
9534 export_dynamic_flag_spec='${wl}--export-all-symbols'
9535 allow_undefined_flag=unsupported
9536 always_export_symbols=no
9537 enable_shared_with_static_runtimes=yes
9538 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9540 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9541 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9542 # If the export-symbols file already is a .def file (1st line
9543 # is EXPORTS), use it as is; otherwise, prepend...
9544 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9545 cp $export_symbols $output_objdir/$soname.def;
9546 else
9547 echo EXPORTS > $output_objdir/$soname.def;
9548 cat $export_symbols >> $output_objdir/$soname.def;
9550 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9551 else
9552 ld_shlibs=no
9556 haiku*)
9557 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9558 link_all_deplibs=yes
9561 interix[3-9]*)
9562 hardcode_direct=no
9563 hardcode_shlibpath_var=no
9564 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9565 export_dynamic_flag_spec='${wl}-E'
9566 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9567 # Instead, shared libraries are loaded at an image base (0x10000000 by
9568 # default) and relocated if they conflict, which is a slow very memory
9569 # consuming and fragmenting process. To avoid this, we pick a random,
9570 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9571 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9572 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9573 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'
9576 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9577 tmp_diet=no
9578 if test "$host_os" = linux-dietlibc; then
9579 case $cc_basename in
9580 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9581 esac
9583 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9584 && test "$tmp_diet" = no
9585 then
9586 tmp_addflag=
9587 tmp_sharedflag='-shared'
9588 case $cc_basename,$host_cpu in
9589 pgcc*) # Portland Group C compiler
9590 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'
9591 tmp_addflag=' $pic_flag'
9593 pgf77* | pgf90* | pgf95* | pgfortran*)
9594 # Portland Group f77 and f90 compilers
9595 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'
9596 tmp_addflag=' $pic_flag -Mnomain' ;;
9597 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9598 tmp_addflag=' -i_dynamic' ;;
9599 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9600 tmp_addflag=' -i_dynamic -nofor_main' ;;
9601 ifc* | ifort*) # Intel Fortran compiler
9602 tmp_addflag=' -nofor_main' ;;
9603 lf95*) # Lahey Fortran 8.1
9604 whole_archive_flag_spec=
9605 tmp_sharedflag='--shared' ;;
9606 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9607 tmp_sharedflag='-qmkshrobj'
9608 tmp_addflag= ;;
9609 nvcc*) # Cuda Compiler Driver 2.2
9610 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'
9611 compiler_needs_object=yes
9613 esac
9614 case `$CC -V 2>&1 | sed 5q` in
9615 *Sun\ C*) # Sun C 5.9
9616 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'
9617 compiler_needs_object=yes
9618 tmp_sharedflag='-G' ;;
9619 *Sun\ F*) # Sun Fortran 8.3
9620 tmp_sharedflag='-G' ;;
9621 esac
9622 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9624 if test "x$supports_anon_versioning" = xyes; then
9625 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9626 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9627 echo "local: *; };" >> $output_objdir/$libname.ver~
9628 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9631 case $cc_basename in
9632 xlf* | bgf* | bgxlf* | mpixlf*)
9633 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9634 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9635 hardcode_libdir_flag_spec=
9636 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9637 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9638 if test "x$supports_anon_versioning" = xyes; then
9639 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9640 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9641 echo "local: *; };" >> $output_objdir/$libname.ver~
9642 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9645 esac
9646 else
9647 ld_shlibs=no
9651 netbsd*)
9652 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9653 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9654 wlarc=
9655 else
9656 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9657 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9661 solaris*)
9662 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9663 ld_shlibs=no
9664 cat <<_LT_EOF 1>&2
9666 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9667 *** create shared libraries on Solaris systems. Therefore, libtool
9668 *** is disabling shared libraries support. We urge you to upgrade GNU
9669 *** binutils to release 2.9.1 or newer. Another option is to modify
9670 *** your PATH or compiler configuration so that the native linker is
9671 *** used, and then restart.
9673 _LT_EOF
9674 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9676 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9677 else
9678 ld_shlibs=no
9682 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9683 case `$LD -v 2>&1` in
9684 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9685 ld_shlibs=no
9686 cat <<_LT_EOF 1>&2
9688 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9689 *** reliably create shared libraries on SCO systems. Therefore, libtool
9690 *** is disabling shared libraries support. We urge you to upgrade GNU
9691 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9692 *** your PATH or compiler configuration so that the native linker is
9693 *** used, and then restart.
9695 _LT_EOF
9698 # For security reasons, it is highly recommended that you always
9699 # use absolute paths for naming shared libraries, and exclude the
9700 # DT_RUNPATH tag from executables and libraries. But doing so
9701 # requires that you compile everything twice, which is a pain.
9702 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9703 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9704 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9705 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9706 else
9707 ld_shlibs=no
9710 esac
9713 sunos4*)
9714 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9715 wlarc=
9716 hardcode_direct=yes
9717 hardcode_shlibpath_var=no
9721 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9723 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9724 else
9725 ld_shlibs=no
9728 esac
9730 if test "$ld_shlibs" = no; then
9731 runpath_var=
9732 hardcode_libdir_flag_spec=
9733 export_dynamic_flag_spec=
9734 whole_archive_flag_spec=
9736 else
9737 # PORTME fill in a description of your system's linker (not GNU ld)
9738 case $host_os in
9739 aix3*)
9740 allow_undefined_flag=unsupported
9741 always_export_symbols=yes
9742 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'
9743 # Note: this linker hardcodes the directories in LIBPATH if there
9744 # are no directories specified by -L.
9745 hardcode_minus_L=yes
9746 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9747 # Neither direct hardcoding nor static linking is supported with a
9748 # broken collect2.
9749 hardcode_direct=unsupported
9753 aix[4-9]*)
9754 if test "$host_cpu" = ia64; then
9755 # On IA64, the linker does run time linking by default, so we don't
9756 # have to do anything special.
9757 aix_use_runtimelinking=no
9758 exp_sym_flag='-Bexport'
9759 no_entry_flag=""
9760 else
9761 # If we're using GNU nm, then we don't want the "-C" option.
9762 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9763 # Also, AIX nm treats weak defined symbols like other global
9764 # defined symbols, whereas GNU nm marks them as "W".
9765 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9766 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'
9767 else
9768 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9770 aix_use_runtimelinking=no
9772 # Test if we are trying to use run time linking or normal
9773 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9774 # need to do runtime linking.
9775 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9776 for ld_flag in $LDFLAGS; do
9777 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9778 aix_use_runtimelinking=yes
9779 break
9781 done
9783 esac
9785 exp_sym_flag='-bexport'
9786 no_entry_flag='-bnoentry'
9789 # When large executables or shared objects are built, AIX ld can
9790 # have problems creating the table of contents. If linking a library
9791 # or program results in "error TOC overflow" add -mminimal-toc to
9792 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9793 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9795 archive_cmds=''
9796 hardcode_direct=yes
9797 hardcode_direct_absolute=yes
9798 hardcode_libdir_separator=':'
9799 link_all_deplibs=yes
9800 file_list_spec='${wl}-f,'
9802 if test "$GCC" = yes; then
9803 case $host_os in aix4.[012]|aix4.[012].*)
9804 # We only want to do this on AIX 4.2 and lower, the check
9805 # below for broken collect2 doesn't work under 4.3+
9806 collect2name=`${CC} -print-prog-name=collect2`
9807 if test -f "$collect2name" &&
9808 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9809 then
9810 # We have reworked collect2
9812 else
9813 # We have old collect2
9814 hardcode_direct=unsupported
9815 # It fails to find uninstalled libraries when the uninstalled
9816 # path is not listed in the libpath. Setting hardcode_minus_L
9817 # to unsupported forces relinking
9818 hardcode_minus_L=yes
9819 hardcode_libdir_flag_spec='-L$libdir'
9820 hardcode_libdir_separator=
9823 esac
9824 shared_flag='-shared'
9825 if test "$aix_use_runtimelinking" = yes; then
9826 shared_flag="$shared_flag "'${wl}-G'
9828 else
9829 # not using gcc
9830 if test "$host_cpu" = ia64; then
9831 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9832 # chokes on -Wl,-G. The following line is correct:
9833 shared_flag='-G'
9834 else
9835 if test "$aix_use_runtimelinking" = yes; then
9836 shared_flag='${wl}-G'
9837 else
9838 shared_flag='${wl}-bM:SRE'
9843 export_dynamic_flag_spec='${wl}-bexpall'
9844 # It seems that -bexpall does not export symbols beginning with
9845 # underscore (_), so it is better to generate a list of symbols to export.
9846 always_export_symbols=yes
9847 if test "$aix_use_runtimelinking" = yes; then
9848 # Warning - without using the other runtime loading flags (-brtl),
9849 # -berok will link without error, but may produce a broken library.
9850 allow_undefined_flag='-berok'
9851 # Determine the default libpath from the value encoded in an
9852 # empty executable.
9853 if test x$gcc_no_link = xyes; then
9854 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h. */
9860 main ()
9864 return 0;
9866 _ACEOF
9867 if ac_fn_c_try_link "$LINENO"; then :
9869 lt_aix_libpath_sed='
9870 /Import File Strings/,/^$/ {
9871 /^0/ {
9872 s/^0 *\(.*\)$/\1/
9876 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9877 # Check for a 64-bit object if we didn't find anything.
9878 if test -z "$aix_libpath"; then
9879 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9882 rm -f core conftest.err conftest.$ac_objext \
9883 conftest$ac_exeext conftest.$ac_ext
9884 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9886 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9887 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"
9888 else
9889 if test "$host_cpu" = ia64; then
9890 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9891 allow_undefined_flag="-z nodefs"
9892 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"
9893 else
9894 # Determine the default libpath from the value encoded in an
9895 # empty executable.
9896 if test x$gcc_no_link = xyes; then
9897 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900 /* end confdefs.h. */
9903 main ()
9907 return 0;
9909 _ACEOF
9910 if ac_fn_c_try_link "$LINENO"; then :
9912 lt_aix_libpath_sed='
9913 /Import File Strings/,/^$/ {
9914 /^0/ {
9915 s/^0 *\(.*\)$/\1/
9919 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9920 # Check for a 64-bit object if we didn't find anything.
9921 if test -z "$aix_libpath"; then
9922 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9925 rm -f core conftest.err conftest.$ac_objext \
9926 conftest$ac_exeext conftest.$ac_ext
9927 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9929 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9930 # Warning - without using the other run time loading flags,
9931 # -berok will link without error, but may produce a broken library.
9932 no_undefined_flag=' ${wl}-bernotok'
9933 allow_undefined_flag=' ${wl}-berok'
9934 if test "$with_gnu_ld" = yes; then
9935 # We only use this code for GNU lds that support --whole-archive.
9936 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9937 else
9938 # Exported symbols can be pulled into shared objects from archives
9939 whole_archive_flag_spec='$convenience'
9941 archive_cmds_need_lc=yes
9942 # This is similar to how AIX traditionally builds its shared libraries.
9943 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'
9948 amigaos*)
9949 case $host_cpu in
9950 powerpc)
9951 # see comment about AmigaOS4 .so support
9952 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9953 archive_expsym_cmds=''
9955 m68k)
9956 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)'
9957 hardcode_libdir_flag_spec='-L$libdir'
9958 hardcode_minus_L=yes
9960 esac
9963 bsdi[45]*)
9964 export_dynamic_flag_spec=-rdynamic
9967 cygwin* | mingw* | pw32* | cegcc*)
9968 # When not using gcc, we currently assume that we are using
9969 # Microsoft Visual C++.
9970 # hardcode_libdir_flag_spec is actually meaningless, as there is
9971 # no search path for DLLs.
9972 hardcode_libdir_flag_spec=' '
9973 allow_undefined_flag=unsupported
9974 # Tell ltmain to make .lib files, not .a files.
9975 libext=lib
9976 # Tell ltmain to make .dll files, not .so files.
9977 shrext_cmds=".dll"
9978 # FIXME: Setting linknames here is a bad hack.
9979 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9980 # The linker will automatically build a .lib file if we build a DLL.
9981 old_archive_from_new_cmds='true'
9982 # FIXME: Should let the user specify the lib program.
9983 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9984 fix_srcfile_path='`cygpath -w "$srcfile"`'
9985 enable_shared_with_static_runtimes=yes
9988 darwin* | rhapsody*)
9991 archive_cmds_need_lc=no
9992 hardcode_direct=no
9993 hardcode_automatic=yes
9994 hardcode_shlibpath_var=unsupported
9995 if test "$lt_cv_ld_force_load" = "yes"; then
9996 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\"`'
9997 else
9998 whole_archive_flag_spec=''
10000 link_all_deplibs=yes
10001 allow_undefined_flag="$_lt_dar_allow_undefined"
10002 case $cc_basename in
10003 ifort*) _lt_dar_can_shared=yes ;;
10004 *) _lt_dar_can_shared=$GCC ;;
10005 esac
10006 if test "$_lt_dar_can_shared" = "yes"; then
10007 output_verbose_link_cmd=func_echo_all
10008 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10009 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10010 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}"
10011 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}"
10013 else
10014 ld_shlibs=no
10019 dgux*)
10020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10021 hardcode_libdir_flag_spec='-L$libdir'
10022 hardcode_shlibpath_var=no
10025 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10026 # support. Future versions do this automatically, but an explicit c++rt0.o
10027 # does not break anything, and helps significantly (at the cost of a little
10028 # extra space).
10029 freebsd2.2*)
10030 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10031 hardcode_libdir_flag_spec='-R$libdir'
10032 hardcode_direct=yes
10033 hardcode_shlibpath_var=no
10036 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10037 freebsd2.*)
10038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10039 hardcode_direct=yes
10040 hardcode_minus_L=yes
10041 hardcode_shlibpath_var=no
10044 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10045 freebsd* | dragonfly*)
10046 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10047 hardcode_libdir_flag_spec='-R$libdir'
10048 hardcode_direct=yes
10049 hardcode_shlibpath_var=no
10052 hpux9*)
10053 if test "$GCC" = yes; then
10054 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'
10055 else
10056 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'
10058 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10059 hardcode_libdir_separator=:
10060 hardcode_direct=yes
10062 # hardcode_minus_L: Not really in the search PATH,
10063 # but as the default location of the library.
10064 hardcode_minus_L=yes
10065 export_dynamic_flag_spec='${wl}-E'
10068 hpux10*)
10069 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10070 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10071 else
10072 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10074 if test "$with_gnu_ld" = no; then
10075 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10076 hardcode_libdir_flag_spec_ld='+b $libdir'
10077 hardcode_libdir_separator=:
10078 hardcode_direct=yes
10079 hardcode_direct_absolute=yes
10080 export_dynamic_flag_spec='${wl}-E'
10081 # hardcode_minus_L: Not really in the search PATH,
10082 # but as the default location of the library.
10083 hardcode_minus_L=yes
10087 hpux11*)
10088 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10089 case $host_cpu in
10090 hppa*64*)
10091 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10093 ia64*)
10094 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10097 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10099 esac
10100 else
10101 case $host_cpu in
10102 hppa*64*)
10103 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10105 ia64*)
10106 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10110 # Older versions of the 11.00 compiler do not understand -b yet
10111 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10113 $as_echo_n "checking if $CC understands -b... " >&6; }
10114 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10115 $as_echo_n "(cached) " >&6
10116 else
10117 lt_cv_prog_compiler__b=no
10118 save_LDFLAGS="$LDFLAGS"
10119 LDFLAGS="$LDFLAGS -b"
10120 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10121 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10122 # The linker can only warn and ignore the option if not recognized
10123 # So say no if there are warnings
10124 if test -s conftest.err; then
10125 # Append any errors to the config.log.
10126 cat conftest.err 1>&5
10127 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10128 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10129 if diff conftest.exp conftest.er2 >/dev/null; then
10130 lt_cv_prog_compiler__b=yes
10132 else
10133 lt_cv_prog_compiler__b=yes
10136 $RM -r conftest*
10137 LDFLAGS="$save_LDFLAGS"
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10141 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10143 if test x"$lt_cv_prog_compiler__b" = xyes; then
10144 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10145 else
10146 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10150 esac
10152 if test "$with_gnu_ld" = no; then
10153 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10154 hardcode_libdir_separator=:
10156 case $host_cpu in
10157 hppa*64*|ia64*)
10158 hardcode_direct=no
10159 hardcode_shlibpath_var=no
10162 hardcode_direct=yes
10163 hardcode_direct_absolute=yes
10164 export_dynamic_flag_spec='${wl}-E'
10166 # hardcode_minus_L: Not really in the search PATH,
10167 # but as the default location of the library.
10168 hardcode_minus_L=yes
10170 esac
10174 irix5* | irix6* | nonstopux*)
10175 if test "$GCC" = yes; then
10176 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'
10177 # Try to use the -exported_symbol ld option, if it does not
10178 # work, assume that -exports_file does not work either and
10179 # implicitly export all symbols.
10180 save_LDFLAGS="$LDFLAGS"
10181 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10182 if test x$gcc_no_link = xyes; then
10183 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10187 int foo(void) {}
10188 _ACEOF
10189 if ac_fn_c_try_link "$LINENO"; then :
10190 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'
10193 rm -f core conftest.err conftest.$ac_objext \
10194 conftest$ac_exeext conftest.$ac_ext
10195 LDFLAGS="$save_LDFLAGS"
10196 else
10197 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'
10198 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'
10200 archive_cmds_need_lc='no'
10201 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10202 hardcode_libdir_separator=:
10203 inherit_rpath=yes
10204 link_all_deplibs=yes
10207 netbsd*)
10208 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10209 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10210 else
10211 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10213 hardcode_libdir_flag_spec='-R$libdir'
10214 hardcode_direct=yes
10215 hardcode_shlibpath_var=no
10218 newsos6)
10219 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10220 hardcode_direct=yes
10221 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10222 hardcode_libdir_separator=:
10223 hardcode_shlibpath_var=no
10226 *nto* | *qnx*)
10229 openbsd*)
10230 if test -f /usr/libexec/ld.so; then
10231 hardcode_direct=yes
10232 hardcode_shlibpath_var=no
10233 hardcode_direct_absolute=yes
10234 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10235 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10236 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10237 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10238 export_dynamic_flag_spec='${wl}-E'
10239 else
10240 case $host_os in
10241 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10242 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10243 hardcode_libdir_flag_spec='-R$libdir'
10246 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10247 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10249 esac
10251 else
10252 ld_shlibs=no
10256 os2*)
10257 hardcode_libdir_flag_spec='-L$libdir'
10258 hardcode_minus_L=yes
10259 allow_undefined_flag=unsupported
10260 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'
10261 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10264 osf3*)
10265 if test "$GCC" = yes; then
10266 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10267 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'
10268 else
10269 allow_undefined_flag=' -expect_unresolved \*'
10270 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'
10272 archive_cmds_need_lc='no'
10273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10274 hardcode_libdir_separator=:
10277 osf4* | osf5*) # as osf3* with the addition of -msym flag
10278 if test "$GCC" = yes; then
10279 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10280 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'
10281 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10282 else
10283 allow_undefined_flag=' -expect_unresolved \*'
10284 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'
10285 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~
10286 $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'
10288 # Both c and cxx compiler support -rpath directly
10289 hardcode_libdir_flag_spec='-rpath $libdir'
10291 archive_cmds_need_lc='no'
10292 hardcode_libdir_separator=:
10295 solaris*)
10296 no_undefined_flag=' -z defs'
10297 if test "$GCC" = yes; then
10298 wlarc='${wl}'
10299 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10300 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10301 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10302 else
10303 case `$CC -V 2>&1` in
10304 *"Compilers 5.0"*)
10305 wlarc=''
10306 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10307 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10308 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10311 wlarc='${wl}'
10312 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10313 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10314 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10316 esac
10318 hardcode_libdir_flag_spec='-R$libdir'
10319 hardcode_shlibpath_var=no
10320 case $host_os in
10321 solaris2.[0-5] | solaris2.[0-5].*) ;;
10323 # The compiler driver will combine and reorder linker options,
10324 # but understands `-z linker_flag'. GCC discards it without `$wl',
10325 # but is careful enough not to reorder.
10326 # Supported since Solaris 2.6 (maybe 2.5.1?)
10327 if test "$GCC" = yes; then
10328 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10329 else
10330 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10333 esac
10334 link_all_deplibs=yes
10337 sunos4*)
10338 if test "x$host_vendor" = xsequent; then
10339 # Use $CC to link under sequent, because it throws in some extra .o
10340 # files that make .init and .fini sections work.
10341 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10342 else
10343 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10345 hardcode_libdir_flag_spec='-L$libdir'
10346 hardcode_direct=yes
10347 hardcode_minus_L=yes
10348 hardcode_shlibpath_var=no
10351 sysv4)
10352 case $host_vendor in
10353 sni)
10354 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10355 hardcode_direct=yes # is this really true???
10357 siemens)
10358 ## LD is ld it makes a PLAMLIB
10359 ## CC just makes a GrossModule.
10360 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10361 reload_cmds='$CC -r -o $output$reload_objs'
10362 hardcode_direct=no
10364 motorola)
10365 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10366 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10368 esac
10369 runpath_var='LD_RUN_PATH'
10370 hardcode_shlibpath_var=no
10373 sysv4.3*)
10374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10375 hardcode_shlibpath_var=no
10376 export_dynamic_flag_spec='-Bexport'
10379 sysv4*MP*)
10380 if test -d /usr/nec; then
10381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10382 hardcode_shlibpath_var=no
10383 runpath_var=LD_RUN_PATH
10384 hardcode_runpath_var=yes
10385 ld_shlibs=yes
10389 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10390 no_undefined_flag='${wl}-z,text'
10391 archive_cmds_need_lc=no
10392 hardcode_shlibpath_var=no
10393 runpath_var='LD_RUN_PATH'
10395 if test "$GCC" = yes; then
10396 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10397 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10398 else
10399 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10400 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10404 sysv5* | sco3.2v5* | sco5v6*)
10405 # Note: We can NOT use -z defs as we might desire, because we do not
10406 # link with -lc, and that would cause any symbols used from libc to
10407 # always be unresolved, which means just about no library would
10408 # ever link correctly. If we're not using GNU ld we use -z text
10409 # though, which does catch some bad symbols but isn't as heavy-handed
10410 # as -z defs.
10411 no_undefined_flag='${wl}-z,text'
10412 allow_undefined_flag='${wl}-z,nodefs'
10413 archive_cmds_need_lc=no
10414 hardcode_shlibpath_var=no
10415 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10416 hardcode_libdir_separator=':'
10417 link_all_deplibs=yes
10418 export_dynamic_flag_spec='${wl}-Bexport'
10419 runpath_var='LD_RUN_PATH'
10421 if test "$GCC" = yes; then
10422 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10423 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10424 else
10425 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10426 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10430 uts4*)
10431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10432 hardcode_libdir_flag_spec='-L$libdir'
10433 hardcode_shlibpath_var=no
10437 ld_shlibs=no
10439 esac
10441 if test x$host_vendor = xsni; then
10442 case $host in
10443 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10444 export_dynamic_flag_spec='${wl}-Blargedynsym'
10446 esac
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10451 $as_echo "$ld_shlibs" >&6; }
10452 test "$ld_shlibs" = no && can_build_shared=no
10454 with_gnu_ld=$with_gnu_ld
10471 # Do we need to explicitly link libc?
10473 case "x$archive_cmds_need_lc" in
10474 x|xyes)
10475 # Assume -lc should be added
10476 archive_cmds_need_lc=yes
10478 if test "$enable_shared" = yes && test "$GCC" = yes; then
10479 case $archive_cmds in
10480 *'~'*)
10481 # FIXME: we may have to deal with multi-command sequences.
10483 '$CC '*)
10484 # Test whether the compiler implicitly links with -lc since on some
10485 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10486 # to ld, don't add -lc before -lgcc.
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10488 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10489 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10490 $as_echo_n "(cached) " >&6
10491 else
10492 $RM conftest*
10493 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10496 (eval $ac_compile) 2>&5
10497 ac_status=$?
10498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10499 test $ac_status = 0; } 2>conftest.err; then
10500 soname=conftest
10501 lib=conftest
10502 libobjs=conftest.$ac_objext
10503 deplibs=
10504 wl=$lt_prog_compiler_wl
10505 pic_flag=$lt_prog_compiler_pic
10506 compiler_flags=-v
10507 linker_flags=-v
10508 verstring=
10509 output_objdir=.
10510 libname=conftest
10511 lt_save_allow_undefined_flag=$allow_undefined_flag
10512 allow_undefined_flag=
10513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10514 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10515 ac_status=$?
10516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10517 test $ac_status = 0; }
10518 then
10519 lt_cv_archive_cmds_need_lc=no
10520 else
10521 lt_cv_archive_cmds_need_lc=yes
10523 allow_undefined_flag=$lt_save_allow_undefined_flag
10524 else
10525 cat conftest.err 1>&5
10527 $RM conftest*
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10531 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10532 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10534 esac
10537 esac
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10696 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10698 if test "$GCC" = yes; then
10699 case $host_os in
10700 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10701 *) lt_awk_arg="/^libraries:/" ;;
10702 esac
10703 case $host_os in
10704 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10705 *) lt_sed_strip_eq="s,=/,/,g" ;;
10706 esac
10707 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10708 case $lt_search_path_spec in
10709 *\;*)
10710 # if the path contains ";" then we assume it to be the separator
10711 # otherwise default to the standard path separator (i.e. ":") - it is
10712 # assumed that no part of a normal pathname contains ";" but that should
10713 # okay in the real world where ";" in dirpaths is itself problematic.
10714 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10717 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10719 esac
10720 # Ok, now we have the path, separated by spaces, we can step through it
10721 # and add multilib dir if necessary.
10722 lt_tmp_lt_search_path_spec=
10723 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10724 for lt_sys_path in $lt_search_path_spec; do
10725 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10726 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10727 else
10728 test -d "$lt_sys_path" && \
10729 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10731 done
10732 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10733 BEGIN {RS=" "; FS="/|\n";} {
10734 lt_foo="";
10735 lt_count=0;
10736 for (lt_i = NF; lt_i > 0; lt_i--) {
10737 if ($lt_i != "" && $lt_i != ".") {
10738 if ($lt_i == "..") {
10739 lt_count++;
10740 } else {
10741 if (lt_count == 0) {
10742 lt_foo="/" $lt_i lt_foo;
10743 } else {
10744 lt_count--;
10749 if (lt_foo != "") { lt_freq[lt_foo]++; }
10750 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10752 # AWK program above erroneously prepends '/' to C:/dos/paths
10753 # for these hosts.
10754 case $host_os in
10755 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10756 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10757 esac
10758 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10759 else
10760 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10762 library_names_spec=
10763 libname_spec='lib$name'
10764 soname_spec=
10765 shrext_cmds=".so"
10766 postinstall_cmds=
10767 postuninstall_cmds=
10768 finish_cmds=
10769 finish_eval=
10770 shlibpath_var=
10771 shlibpath_overrides_runpath=unknown
10772 version_type=none
10773 dynamic_linker="$host_os ld.so"
10774 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10775 need_lib_prefix=unknown
10776 hardcode_into_libs=no
10778 # when you set need_version to no, make sure it does not cause -set_version
10779 # flags to be left without arguments
10780 need_version=unknown
10782 case $host_os in
10783 aix3*)
10784 version_type=linux
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10786 shlibpath_var=LIBPATH
10788 # AIX 3 has no versioning support, so we append a major version to the name.
10789 soname_spec='${libname}${release}${shared_ext}$major'
10792 aix[4-9]*)
10793 version_type=linux
10794 need_lib_prefix=no
10795 need_version=no
10796 hardcode_into_libs=yes
10797 if test "$host_cpu" = ia64; then
10798 # AIX 5 supports IA64
10799 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10800 shlibpath_var=LD_LIBRARY_PATH
10801 else
10802 # With GCC up to 2.95.x, collect2 would create an import file
10803 # for dependence libraries. The import file would start with
10804 # the line `#! .'. This would cause the generated library to
10805 # depend on `.', always an invalid library. This was fixed in
10806 # development snapshots of GCC prior to 3.0.
10807 case $host_os in
10808 aix4 | aix4.[01] | aix4.[01].*)
10809 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10810 echo ' yes '
10811 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10813 else
10814 can_build_shared=no
10817 esac
10818 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10819 # soname into executable. Probably we can add versioning support to
10820 # collect2, so additional links can be useful in future.
10821 if test "$aix_use_runtimelinking" = yes; then
10822 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10823 # instead of lib<name>.a to let people know that these are not
10824 # typical AIX shared libraries.
10825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10826 else
10827 # We preserve .a as extension for shared libraries through AIX4.2
10828 # and later when we are not doing run time linking.
10829 library_names_spec='${libname}${release}.a $libname.a'
10830 soname_spec='${libname}${release}${shared_ext}$major'
10832 shlibpath_var=LIBPATH
10836 amigaos*)
10837 case $host_cpu in
10838 powerpc)
10839 # Since July 2007 AmigaOS4 officially supports .so libraries.
10840 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10843 m68k)
10844 library_names_spec='$libname.ixlibrary $libname.a'
10845 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10846 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'
10848 esac
10851 beos*)
10852 library_names_spec='${libname}${shared_ext}'
10853 dynamic_linker="$host_os ld.so"
10854 shlibpath_var=LIBRARY_PATH
10857 bsdi[45]*)
10858 version_type=linux
10859 need_version=no
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10861 soname_spec='${libname}${release}${shared_ext}$major'
10862 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10863 shlibpath_var=LD_LIBRARY_PATH
10864 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10865 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10866 # the default ld.so.conf also contains /usr/contrib/lib and
10867 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10868 # libtool to hard-code these into programs
10871 cygwin* | mingw* | pw32* | cegcc*)
10872 version_type=windows
10873 shrext_cmds=".dll"
10874 need_version=no
10875 need_lib_prefix=no
10877 case $GCC,$host_os in
10878 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10879 library_names_spec='$libname.dll.a'
10880 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10881 postinstall_cmds='base_file=`basename \${file}`~
10882 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10883 dldir=$destdir/`dirname \$dlpath`~
10884 test -d \$dldir || mkdir -p \$dldir~
10885 $install_prog $dir/$dlname \$dldir/$dlname~
10886 chmod a+x \$dldir/$dlname~
10887 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10888 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10890 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10891 dlpath=$dir/\$dldll~
10892 $RM \$dlpath'
10893 shlibpath_overrides_runpath=yes
10895 case $host_os in
10896 cygwin*)
10897 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10898 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10900 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10902 mingw* | cegcc*)
10903 # MinGW DLLs use traditional 'lib' prefix
10904 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10906 pw32*)
10907 # pw32 DLLs use 'pw' prefix rather than 'lib'
10908 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10910 esac
10914 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10916 esac
10917 dynamic_linker='Win32 ld.exe'
10918 # FIXME: first we should search . and the directory the executable is in
10919 shlibpath_var=PATH
10922 darwin* | rhapsody*)
10923 dynamic_linker="$host_os dyld"
10924 version_type=darwin
10925 need_lib_prefix=no
10926 need_version=no
10927 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10928 soname_spec='${libname}${release}${major}$shared_ext'
10929 shlibpath_overrides_runpath=yes
10930 shlibpath_var=DYLD_LIBRARY_PATH
10931 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10933 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10934 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10937 dgux*)
10938 version_type=linux
10939 need_lib_prefix=no
10940 need_version=no
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10942 soname_spec='${libname}${release}${shared_ext}$major'
10943 shlibpath_var=LD_LIBRARY_PATH
10946 freebsd* | dragonfly*)
10947 # DragonFly does not have aout. When/if they implement a new
10948 # versioning mechanism, adjust this.
10949 if test -x /usr/bin/objformat; then
10950 objformat=`/usr/bin/objformat`
10951 else
10952 case $host_os in
10953 freebsd[23].*) objformat=aout ;;
10954 *) objformat=elf ;;
10955 esac
10957 version_type=freebsd-$objformat
10958 case $version_type in
10959 freebsd-elf*)
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10961 need_version=no
10962 need_lib_prefix=no
10964 freebsd-*)
10965 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10966 need_version=yes
10968 esac
10969 shlibpath_var=LD_LIBRARY_PATH
10970 case $host_os in
10971 freebsd2.*)
10972 shlibpath_overrides_runpath=yes
10974 freebsd3.[01]* | freebsdelf3.[01]*)
10975 shlibpath_overrides_runpath=yes
10976 hardcode_into_libs=yes
10978 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10979 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10980 shlibpath_overrides_runpath=no
10981 hardcode_into_libs=yes
10983 *) # from 4.6 on, and DragonFly
10984 shlibpath_overrides_runpath=yes
10985 hardcode_into_libs=yes
10987 esac
10990 gnu*)
10991 version_type=linux
10992 need_lib_prefix=no
10993 need_version=no
10994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10995 soname_spec='${libname}${release}${shared_ext}$major'
10996 shlibpath_var=LD_LIBRARY_PATH
10997 hardcode_into_libs=yes
11000 haiku*)
11001 version_type=linux
11002 need_lib_prefix=no
11003 need_version=no
11004 dynamic_linker="$host_os runtime_loader"
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 shlibpath_var=LIBRARY_PATH
11008 shlibpath_overrides_runpath=yes
11009 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11010 hardcode_into_libs=yes
11013 hpux9* | hpux10* | hpux11*)
11014 # Give a soname corresponding to the major version so that dld.sl refuses to
11015 # link against other versions.
11016 version_type=sunos
11017 need_lib_prefix=no
11018 need_version=no
11019 case $host_cpu in
11020 ia64*)
11021 shrext_cmds='.so'
11022 hardcode_into_libs=yes
11023 dynamic_linker="$host_os dld.so"
11024 shlibpath_var=LD_LIBRARY_PATH
11025 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027 soname_spec='${libname}${release}${shared_ext}$major'
11028 if test "X$HPUX_IA64_MODE" = X32; then
11029 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11030 else
11031 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11033 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11035 hppa*64*)
11036 shrext_cmds='.sl'
11037 hardcode_into_libs=yes
11038 dynamic_linker="$host_os dld.sl"
11039 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11040 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042 soname_spec='${libname}${release}${shared_ext}$major'
11043 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11047 shrext_cmds='.sl'
11048 dynamic_linker="$host_os dld.sl"
11049 shlibpath_var=SHLIB_PATH
11050 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052 soname_spec='${libname}${release}${shared_ext}$major'
11054 esac
11055 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11056 postinstall_cmds='chmod 555 $lib'
11057 # or fails outright, so override atomically:
11058 install_override_mode=555
11061 interix[3-9]*)
11062 version_type=linux
11063 need_lib_prefix=no
11064 need_version=no
11065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11066 soname_spec='${libname}${release}${shared_ext}$major'
11067 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11068 shlibpath_var=LD_LIBRARY_PATH
11069 shlibpath_overrides_runpath=no
11070 hardcode_into_libs=yes
11073 irix5* | irix6* | nonstopux*)
11074 case $host_os in
11075 nonstopux*) version_type=nonstopux ;;
11077 if test "$lt_cv_prog_gnu_ld" = yes; then
11078 version_type=linux
11079 else
11080 version_type=irix
11081 fi ;;
11082 esac
11083 need_lib_prefix=no
11084 need_version=no
11085 soname_spec='${libname}${release}${shared_ext}$major'
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11087 case $host_os in
11088 irix5* | nonstopux*)
11089 libsuff= shlibsuff=
11092 case $LD in # libtool.m4 will add one of these switches to LD
11093 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11094 libsuff= shlibsuff= libmagic=32-bit;;
11095 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11096 libsuff=32 shlibsuff=N32 libmagic=N32;;
11097 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11098 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11099 *) libsuff= shlibsuff= libmagic=never-match;;
11100 esac
11102 esac
11103 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11104 shlibpath_overrides_runpath=no
11105 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11106 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11107 hardcode_into_libs=yes
11110 # No shared lib support for Linux oldld, aout, or coff.
11111 linux*oldld* | linux*aout* | linux*coff*)
11112 dynamic_linker=no
11115 # This must be Linux ELF.
11116 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11117 version_type=linux
11118 need_lib_prefix=no
11119 need_version=no
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11121 soname_spec='${libname}${release}${shared_ext}$major'
11122 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11123 shlibpath_var=LD_LIBRARY_PATH
11124 shlibpath_overrides_runpath=no
11126 # Some binutils ld are patched to set DT_RUNPATH
11127 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11128 $as_echo_n "(cached) " >&6
11129 else
11130 lt_cv_shlibpath_overrides_runpath=no
11131 save_LDFLAGS=$LDFLAGS
11132 save_libdir=$libdir
11133 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11134 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11135 if test x$gcc_no_link = xyes; then
11136 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11139 /* end confdefs.h. */
11142 main ()
11146 return 0;
11148 _ACEOF
11149 if ac_fn_c_try_link "$LINENO"; then :
11150 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11151 lt_cv_shlibpath_overrides_runpath=yes
11154 rm -f core conftest.err conftest.$ac_objext \
11155 conftest$ac_exeext conftest.$ac_ext
11156 LDFLAGS=$save_LDFLAGS
11157 libdir=$save_libdir
11161 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11163 # This implies no fast_install, which is unacceptable.
11164 # Some rework will be needed to allow for fast_install
11165 # before this can be enabled.
11166 hardcode_into_libs=yes
11168 # Append ld.so.conf contents to the search path
11169 if test -f /etc/ld.so.conf; then
11170 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' ' '`
11171 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11174 # We used to test for /lib/ld.so.1 and disable shared libraries on
11175 # powerpc, because MkLinux only supported shared libraries with the
11176 # GNU dynamic linker. Since this was broken with cross compilers,
11177 # most powerpc-linux boxes support dynamic linking these days and
11178 # people can always --disable-shared, the test was removed, and we
11179 # assume the GNU/Linux dynamic linker is in use.
11180 dynamic_linker='GNU/Linux ld.so'
11183 netbsd*)
11184 version_type=sunos
11185 need_lib_prefix=no
11186 need_version=no
11187 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11190 dynamic_linker='NetBSD (a.out) ld.so'
11191 else
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11193 soname_spec='${libname}${release}${shared_ext}$major'
11194 dynamic_linker='NetBSD ld.elf_so'
11196 shlibpath_var=LD_LIBRARY_PATH
11197 shlibpath_overrides_runpath=yes
11198 hardcode_into_libs=yes
11201 newsos6)
11202 version_type=linux
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204 shlibpath_var=LD_LIBRARY_PATH
11205 shlibpath_overrides_runpath=yes
11208 *nto* | *qnx*)
11209 version_type=qnx
11210 need_lib_prefix=no
11211 need_version=no
11212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11213 soname_spec='${libname}${release}${shared_ext}$major'
11214 shlibpath_var=LD_LIBRARY_PATH
11215 shlibpath_overrides_runpath=no
11216 hardcode_into_libs=yes
11217 dynamic_linker='ldqnx.so'
11220 openbsd*)
11221 version_type=sunos
11222 sys_lib_dlsearch_path_spec="/usr/lib"
11223 need_lib_prefix=no
11224 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11225 case $host_os in
11226 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11227 *) need_version=no ;;
11228 esac
11229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11231 shlibpath_var=LD_LIBRARY_PATH
11232 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11233 case $host_os in
11234 openbsd2.[89] | openbsd2.[89].*)
11235 shlibpath_overrides_runpath=no
11238 shlibpath_overrides_runpath=yes
11240 esac
11241 else
11242 shlibpath_overrides_runpath=yes
11246 os2*)
11247 libname_spec='$name'
11248 shrext_cmds=".dll"
11249 need_lib_prefix=no
11250 library_names_spec='$libname${shared_ext} $libname.a'
11251 dynamic_linker='OS/2 ld.exe'
11252 shlibpath_var=LIBPATH
11255 osf3* | osf4* | osf5*)
11256 version_type=osf
11257 need_lib_prefix=no
11258 need_version=no
11259 soname_spec='${libname}${release}${shared_ext}$major'
11260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11261 shlibpath_var=LD_LIBRARY_PATH
11262 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11263 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11266 rdos*)
11267 dynamic_linker=no
11270 solaris*)
11271 version_type=linux
11272 need_lib_prefix=no
11273 need_version=no
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275 soname_spec='${libname}${release}${shared_ext}$major'
11276 shlibpath_var=LD_LIBRARY_PATH
11277 shlibpath_overrides_runpath=yes
11278 hardcode_into_libs=yes
11279 # ldd complains unless libraries are executable
11280 postinstall_cmds='chmod +x $lib'
11283 sunos4*)
11284 version_type=sunos
11285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11286 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11287 shlibpath_var=LD_LIBRARY_PATH
11288 shlibpath_overrides_runpath=yes
11289 if test "$with_gnu_ld" = yes; then
11290 need_lib_prefix=no
11292 need_version=yes
11295 sysv4 | sysv4.3*)
11296 version_type=linux
11297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11298 soname_spec='${libname}${release}${shared_ext}$major'
11299 shlibpath_var=LD_LIBRARY_PATH
11300 case $host_vendor in
11301 sni)
11302 shlibpath_overrides_runpath=no
11303 need_lib_prefix=no
11304 runpath_var=LD_RUN_PATH
11306 siemens)
11307 need_lib_prefix=no
11309 motorola)
11310 need_lib_prefix=no
11311 need_version=no
11312 shlibpath_overrides_runpath=no
11313 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11315 esac
11318 sysv4*MP*)
11319 if test -d /usr/nec ;then
11320 version_type=linux
11321 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11322 soname_spec='$libname${shared_ext}.$major'
11323 shlibpath_var=LD_LIBRARY_PATH
11327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11328 version_type=freebsd-elf
11329 need_lib_prefix=no
11330 need_version=no
11331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11332 soname_spec='${libname}${release}${shared_ext}$major'
11333 shlibpath_var=LD_LIBRARY_PATH
11334 shlibpath_overrides_runpath=yes
11335 hardcode_into_libs=yes
11336 if test "$with_gnu_ld" = yes; then
11337 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11338 else
11339 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11340 case $host_os in
11341 sco3.2v5*)
11342 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11344 esac
11346 sys_lib_dlsearch_path_spec='/usr/lib'
11349 tpf*)
11350 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11351 version_type=linux
11352 need_lib_prefix=no
11353 need_version=no
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355 shlibpath_var=LD_LIBRARY_PATH
11356 shlibpath_overrides_runpath=no
11357 hardcode_into_libs=yes
11360 uts4*)
11361 version_type=linux
11362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11363 soname_spec='${libname}${release}${shared_ext}$major'
11364 shlibpath_var=LD_LIBRARY_PATH
11368 dynamic_linker=no
11370 esac
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11372 $as_echo "$dynamic_linker" >&6; }
11373 test "$dynamic_linker" = no && can_build_shared=no
11375 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11376 if test "$GCC" = yes; then
11377 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11380 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11381 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11383 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11384 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11479 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11480 hardcode_action=
11481 if test -n "$hardcode_libdir_flag_spec" ||
11482 test -n "$runpath_var" ||
11483 test "X$hardcode_automatic" = "Xyes" ; then
11485 # We can hardcode non-existent directories.
11486 if test "$hardcode_direct" != no &&
11487 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11488 # have to relink, otherwise we might link with an installed library
11489 # when we should be linking with a yet-to-be-installed one
11490 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11491 test "$hardcode_minus_L" != no; then
11492 # Linking always hardcodes the temporary library directory.
11493 hardcode_action=relink
11494 else
11495 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11496 hardcode_action=immediate
11498 else
11499 # We cannot hardcode anything, or else we can only hardcode existing
11500 # directories.
11501 hardcode_action=unsupported
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11504 $as_echo "$hardcode_action" >&6; }
11506 if test "$hardcode_action" = relink ||
11507 test "$inherit_rpath" = yes; then
11508 # Fast installation is not supported
11509 enable_fast_install=no
11510 elif test "$shlibpath_overrides_runpath" = yes ||
11511 test "$enable_shared" = no; then
11512 # Fast installation is not necessary
11513 enable_fast_install=needless
11521 if test "x$enable_dlopen" != xyes; then
11522 enable_dlopen=unknown
11523 enable_dlopen_self=unknown
11524 enable_dlopen_self_static=unknown
11525 else
11526 lt_cv_dlopen=no
11527 lt_cv_dlopen_libs=
11529 case $host_os in
11530 beos*)
11531 lt_cv_dlopen="load_add_on"
11532 lt_cv_dlopen_libs=
11533 lt_cv_dlopen_self=yes
11536 mingw* | pw32* | cegcc*)
11537 lt_cv_dlopen="LoadLibrary"
11538 lt_cv_dlopen_libs=
11541 cygwin*)
11542 lt_cv_dlopen="dlopen"
11543 lt_cv_dlopen_libs=
11546 darwin*)
11547 # if libdl is installed we need to link against it
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11549 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11550 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11551 $as_echo_n "(cached) " >&6
11552 else
11553 ac_check_lib_save_LIBS=$LIBS
11554 LIBS="-ldl $LIBS"
11555 if test x$gcc_no_link = xyes; then
11556 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h. */
11561 /* Override any GCC internal prototype to avoid an error.
11562 Use char because int might match the return type of a GCC
11563 builtin and then its argument prototype would still apply. */
11564 #ifdef __cplusplus
11565 extern "C"
11566 #endif
11567 char dlopen ();
11569 main ()
11571 return dlopen ();
11573 return 0;
11575 _ACEOF
11576 if ac_fn_c_try_link "$LINENO"; then :
11577 ac_cv_lib_dl_dlopen=yes
11578 else
11579 ac_cv_lib_dl_dlopen=no
11581 rm -f core conftest.err conftest.$ac_objext \
11582 conftest$ac_exeext conftest.$ac_ext
11583 LIBS=$ac_check_lib_save_LIBS
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11586 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11587 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11588 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11589 else
11591 lt_cv_dlopen="dyld"
11592 lt_cv_dlopen_libs=
11593 lt_cv_dlopen_self=yes
11600 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11601 if test "x$ac_cv_func_shl_load" = x""yes; then :
11602 lt_cv_dlopen="shl_load"
11603 else
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11605 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11606 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11607 $as_echo_n "(cached) " >&6
11608 else
11609 ac_check_lib_save_LIBS=$LIBS
11610 LIBS="-ldld $LIBS"
11611 if test x$gcc_no_link = xyes; then
11612 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h. */
11617 /* Override any GCC internal prototype to avoid an error.
11618 Use char because int might match the return type of a GCC
11619 builtin and then its argument prototype would still apply. */
11620 #ifdef __cplusplus
11621 extern "C"
11622 #endif
11623 char shl_load ();
11625 main ()
11627 return shl_load ();
11629 return 0;
11631 _ACEOF
11632 if ac_fn_c_try_link "$LINENO"; then :
11633 ac_cv_lib_dld_shl_load=yes
11634 else
11635 ac_cv_lib_dld_shl_load=no
11637 rm -f core conftest.err conftest.$ac_objext \
11638 conftest$ac_exeext conftest.$ac_ext
11639 LIBS=$ac_check_lib_save_LIBS
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11642 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11643 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11644 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11645 else
11646 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11647 if test "x$ac_cv_func_dlopen" = x""yes; then :
11648 lt_cv_dlopen="dlopen"
11649 else
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11651 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11652 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11653 $as_echo_n "(cached) " >&6
11654 else
11655 ac_check_lib_save_LIBS=$LIBS
11656 LIBS="-ldl $LIBS"
11657 if test x$gcc_no_link = xyes; then
11658 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661 /* end confdefs.h. */
11663 /* Override any GCC internal prototype to avoid an error.
11664 Use char because int might match the return type of a GCC
11665 builtin and then its argument prototype would still apply. */
11666 #ifdef __cplusplus
11667 extern "C"
11668 #endif
11669 char dlopen ();
11671 main ()
11673 return dlopen ();
11675 return 0;
11677 _ACEOF
11678 if ac_fn_c_try_link "$LINENO"; then :
11679 ac_cv_lib_dl_dlopen=yes
11680 else
11681 ac_cv_lib_dl_dlopen=no
11683 rm -f core conftest.err conftest.$ac_objext \
11684 conftest$ac_exeext conftest.$ac_ext
11685 LIBS=$ac_check_lib_save_LIBS
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11688 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11689 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11690 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11691 else
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11693 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11694 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11695 $as_echo_n "(cached) " >&6
11696 else
11697 ac_check_lib_save_LIBS=$LIBS
11698 LIBS="-lsvld $LIBS"
11699 if test x$gcc_no_link = xyes; then
11700 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11703 /* end confdefs.h. */
11705 /* Override any GCC internal prototype to avoid an error.
11706 Use char because int might match the return type of a GCC
11707 builtin and then its argument prototype would still apply. */
11708 #ifdef __cplusplus
11709 extern "C"
11710 #endif
11711 char dlopen ();
11713 main ()
11715 return dlopen ();
11717 return 0;
11719 _ACEOF
11720 if ac_fn_c_try_link "$LINENO"; then :
11721 ac_cv_lib_svld_dlopen=yes
11722 else
11723 ac_cv_lib_svld_dlopen=no
11725 rm -f core conftest.err conftest.$ac_objext \
11726 conftest$ac_exeext conftest.$ac_ext
11727 LIBS=$ac_check_lib_save_LIBS
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11730 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11731 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11732 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11733 else
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11735 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11736 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11737 $as_echo_n "(cached) " >&6
11738 else
11739 ac_check_lib_save_LIBS=$LIBS
11740 LIBS="-ldld $LIBS"
11741 if test x$gcc_no_link = xyes; then
11742 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h. */
11747 /* Override any GCC internal prototype to avoid an error.
11748 Use char because int might match the return type of a GCC
11749 builtin and then its argument prototype would still apply. */
11750 #ifdef __cplusplus
11751 extern "C"
11752 #endif
11753 char dld_link ();
11755 main ()
11757 return dld_link ();
11759 return 0;
11761 _ACEOF
11762 if ac_fn_c_try_link "$LINENO"; then :
11763 ac_cv_lib_dld_dld_link=yes
11764 else
11765 ac_cv_lib_dld_dld_link=no
11767 rm -f core conftest.err conftest.$ac_objext \
11768 conftest$ac_exeext conftest.$ac_ext
11769 LIBS=$ac_check_lib_save_LIBS
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11772 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11773 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11774 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11793 esac
11795 if test "x$lt_cv_dlopen" != xno; then
11796 enable_dlopen=yes
11797 else
11798 enable_dlopen=no
11801 case $lt_cv_dlopen in
11802 dlopen)
11803 save_CPPFLAGS="$CPPFLAGS"
11804 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11806 save_LDFLAGS="$LDFLAGS"
11807 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11809 save_LIBS="$LIBS"
11810 LIBS="$lt_cv_dlopen_libs $LIBS"
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11813 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11814 if test "${lt_cv_dlopen_self+set}" = set; then :
11815 $as_echo_n "(cached) " >&6
11816 else
11817 if test "$cross_compiling" = yes; then :
11818 lt_cv_dlopen_self=cross
11819 else
11820 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11821 lt_status=$lt_dlunknown
11822 cat > conftest.$ac_ext <<_LT_EOF
11823 #line 11823 "configure"
11824 #include "confdefs.h"
11826 #if HAVE_DLFCN_H
11827 #include <dlfcn.h>
11828 #endif
11830 #include <stdio.h>
11832 #ifdef RTLD_GLOBAL
11833 # define LT_DLGLOBAL RTLD_GLOBAL
11834 #else
11835 # ifdef DL_GLOBAL
11836 # define LT_DLGLOBAL DL_GLOBAL
11837 # else
11838 # define LT_DLGLOBAL 0
11839 # endif
11840 #endif
11842 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11843 find out it does not work in some platform. */
11844 #ifndef LT_DLLAZY_OR_NOW
11845 # ifdef RTLD_LAZY
11846 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11847 # else
11848 # ifdef DL_LAZY
11849 # define LT_DLLAZY_OR_NOW DL_LAZY
11850 # else
11851 # ifdef RTLD_NOW
11852 # define LT_DLLAZY_OR_NOW RTLD_NOW
11853 # else
11854 # ifdef DL_NOW
11855 # define LT_DLLAZY_OR_NOW DL_NOW
11856 # else
11857 # define LT_DLLAZY_OR_NOW 0
11858 # endif
11859 # endif
11860 # endif
11861 # endif
11862 #endif
11864 /* When -fvisbility=hidden is used, assume the code has been annotated
11865 correspondingly for the symbols needed. */
11866 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11867 void fnord () __attribute__((visibility("default")));
11868 #endif
11870 void fnord () { int i=42; }
11871 int main ()
11873 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11874 int status = $lt_dlunknown;
11876 if (self)
11878 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11879 else
11881 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11882 else puts (dlerror ());
11884 /* dlclose (self); */
11886 else
11887 puts (dlerror ());
11889 return status;
11891 _LT_EOF
11892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11893 (eval $ac_link) 2>&5
11894 ac_status=$?
11895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11896 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11897 (./conftest; exit; ) >&5 2>/dev/null
11898 lt_status=$?
11899 case x$lt_status in
11900 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11901 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11902 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11903 esac
11904 else :
11905 # compilation failed
11906 lt_cv_dlopen_self=no
11909 rm -fr conftest*
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11914 $as_echo "$lt_cv_dlopen_self" >&6; }
11916 if test "x$lt_cv_dlopen_self" = xyes; then
11917 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11919 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11920 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11921 $as_echo_n "(cached) " >&6
11922 else
11923 if test "$cross_compiling" = yes; then :
11924 lt_cv_dlopen_self_static=cross
11925 else
11926 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11927 lt_status=$lt_dlunknown
11928 cat > conftest.$ac_ext <<_LT_EOF
11929 #line 11929 "configure"
11930 #include "confdefs.h"
11932 #if HAVE_DLFCN_H
11933 #include <dlfcn.h>
11934 #endif
11936 #include <stdio.h>
11938 #ifdef RTLD_GLOBAL
11939 # define LT_DLGLOBAL RTLD_GLOBAL
11940 #else
11941 # ifdef DL_GLOBAL
11942 # define LT_DLGLOBAL DL_GLOBAL
11943 # else
11944 # define LT_DLGLOBAL 0
11945 # endif
11946 #endif
11948 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11949 find out it does not work in some platform. */
11950 #ifndef LT_DLLAZY_OR_NOW
11951 # ifdef RTLD_LAZY
11952 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11953 # else
11954 # ifdef DL_LAZY
11955 # define LT_DLLAZY_OR_NOW DL_LAZY
11956 # else
11957 # ifdef RTLD_NOW
11958 # define LT_DLLAZY_OR_NOW RTLD_NOW
11959 # else
11960 # ifdef DL_NOW
11961 # define LT_DLLAZY_OR_NOW DL_NOW
11962 # else
11963 # define LT_DLLAZY_OR_NOW 0
11964 # endif
11965 # endif
11966 # endif
11967 # endif
11968 #endif
11970 /* When -fvisbility=hidden is used, assume the code has been annotated
11971 correspondingly for the symbols needed. */
11972 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11973 void fnord () __attribute__((visibility("default")));
11974 #endif
11976 void fnord () { int i=42; }
11977 int main ()
11979 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11980 int status = $lt_dlunknown;
11982 if (self)
11984 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11985 else
11987 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11988 else puts (dlerror ());
11990 /* dlclose (self); */
11992 else
11993 puts (dlerror ());
11995 return status;
11997 _LT_EOF
11998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11999 (eval $ac_link) 2>&5
12000 ac_status=$?
12001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12002 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12003 (./conftest; exit; ) >&5 2>/dev/null
12004 lt_status=$?
12005 case x$lt_status in
12006 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12007 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12008 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12009 esac
12010 else :
12011 # compilation failed
12012 lt_cv_dlopen_self_static=no
12015 rm -fr conftest*
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12020 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12023 CPPFLAGS="$save_CPPFLAGS"
12024 LDFLAGS="$save_LDFLAGS"
12025 LIBS="$save_LIBS"
12027 esac
12029 case $lt_cv_dlopen_self in
12030 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12031 *) enable_dlopen_self=unknown ;;
12032 esac
12034 case $lt_cv_dlopen_self_static in
12035 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12036 *) enable_dlopen_self_static=unknown ;;
12037 esac
12056 striplib=
12057 old_striplib=
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12059 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12060 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12061 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12062 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12064 $as_echo "yes" >&6; }
12065 else
12066 # FIXME - insert some real tests, host_os isn't really good enough
12067 case $host_os in
12068 darwin*)
12069 if test -n "$STRIP" ; then
12070 striplib="$STRIP -x"
12071 old_striplib="$STRIP -S"
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12073 $as_echo "yes" >&6; }
12074 else
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12083 esac
12097 # Report which library types will actually be built
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12099 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12101 $as_echo "$can_build_shared" >&6; }
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12104 $as_echo_n "checking whether to build shared libraries... " >&6; }
12105 test "$can_build_shared" = "no" && enable_shared=no
12107 # On AIX, shared libraries and static libraries use the same namespace, and
12108 # are all built from PIC.
12109 case $host_os in
12110 aix3*)
12111 test "$enable_shared" = yes && enable_static=no
12112 if test -n "$RANLIB"; then
12113 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12114 postinstall_cmds='$RANLIB $lib'
12118 aix[4-9]*)
12119 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12120 test "$enable_shared" = yes && enable_static=no
12123 esac
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12125 $as_echo "$enable_shared" >&6; }
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12128 $as_echo_n "checking whether to build static libraries... " >&6; }
12129 # Make sure either enable_shared or enable_static is yes.
12130 test "$enable_shared" = yes || enable_static=yes
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12132 $as_echo "$enable_static" >&6; }
12138 ac_ext=c
12139 ac_cpp='$CPP $CPPFLAGS'
12140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12144 CC="$lt_save_CC"
12158 ac_config_commands="$ac_config_commands libtool"
12163 # Only expand once:
12166 for ac_prog in gawk mawk nawk awk
12168 # Extract the first word of "$ac_prog", so it can be a program name with args.
12169 set dummy $ac_prog; ac_word=$2
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12171 $as_echo_n "checking for $ac_word... " >&6; }
12172 if test "${ac_cv_prog_AWK+set}" = set; then :
12173 $as_echo_n "(cached) " >&6
12174 else
12175 if test -n "$AWK"; then
12176 ac_cv_prog_AWK="$AWK" # Let the user override the test.
12177 else
12178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179 for as_dir in $PATH
12181 IFS=$as_save_IFS
12182 test -z "$as_dir" && as_dir=.
12183 for ac_exec_ext in '' $ac_executable_extensions; do
12184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12185 ac_cv_prog_AWK="$ac_prog"
12186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12187 break 2
12189 done
12190 done
12191 IFS=$as_save_IFS
12195 AWK=$ac_cv_prog_AWK
12196 if test -n "$AWK"; then
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12198 $as_echo "$AWK" >&6; }
12199 else
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12205 test -n "$AWK" && break
12206 done
12208 ac_ext=c
12209 ac_cpp='$CPP $CPPFLAGS'
12210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12213 if test -n "$ac_tool_prefix"; then
12214 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12215 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12217 $as_echo_n "checking for $ac_word... " >&6; }
12218 if test "${ac_cv_prog_CC+set}" = set; then :
12219 $as_echo_n "(cached) " >&6
12220 else
12221 if test -n "$CC"; then
12222 ac_cv_prog_CC="$CC" # Let the user override the test.
12223 else
12224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225 for as_dir in $PATH
12227 IFS=$as_save_IFS
12228 test -z "$as_dir" && as_dir=.
12229 for ac_exec_ext in '' $ac_executable_extensions; do
12230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12231 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12233 break 2
12235 done
12236 done
12237 IFS=$as_save_IFS
12241 CC=$ac_cv_prog_CC
12242 if test -n "$CC"; then
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12244 $as_echo "$CC" >&6; }
12245 else
12246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247 $as_echo "no" >&6; }
12252 if test -z "$ac_cv_prog_CC"; then
12253 ac_ct_CC=$CC
12254 # Extract the first word of "gcc", so it can be a program name with args.
12255 set dummy gcc; ac_word=$2
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12257 $as_echo_n "checking for $ac_word... " >&6; }
12258 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12259 $as_echo_n "(cached) " >&6
12260 else
12261 if test -n "$ac_ct_CC"; then
12262 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12263 else
12264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265 for as_dir in $PATH
12267 IFS=$as_save_IFS
12268 test -z "$as_dir" && as_dir=.
12269 for ac_exec_ext in '' $ac_executable_extensions; do
12270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12271 ac_cv_prog_ac_ct_CC="gcc"
12272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12273 break 2
12275 done
12276 done
12277 IFS=$as_save_IFS
12281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12282 if test -n "$ac_ct_CC"; then
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12284 $as_echo "$ac_ct_CC" >&6; }
12285 else
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12290 if test "x$ac_ct_CC" = x; then
12291 CC=""
12292 else
12293 case $cross_compiling:$ac_tool_warned in
12294 yes:)
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12297 ac_tool_warned=yes ;;
12298 esac
12299 CC=$ac_ct_CC
12301 else
12302 CC="$ac_cv_prog_CC"
12305 if test -z "$CC"; then
12306 if test -n "$ac_tool_prefix"; then
12307 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12308 set dummy ${ac_tool_prefix}cc; ac_word=$2
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12310 $as_echo_n "checking for $ac_word... " >&6; }
12311 if test "${ac_cv_prog_CC+set}" = set; then :
12312 $as_echo_n "(cached) " >&6
12313 else
12314 if test -n "$CC"; then
12315 ac_cv_prog_CC="$CC" # Let the user override the test.
12316 else
12317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12318 for as_dir in $PATH
12320 IFS=$as_save_IFS
12321 test -z "$as_dir" && as_dir=.
12322 for ac_exec_ext in '' $ac_executable_extensions; do
12323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12324 ac_cv_prog_CC="${ac_tool_prefix}cc"
12325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12326 break 2
12328 done
12329 done
12330 IFS=$as_save_IFS
12334 CC=$ac_cv_prog_CC
12335 if test -n "$CC"; then
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12337 $as_echo "$CC" >&6; }
12338 else
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12340 $as_echo "no" >&6; }
12346 if test -z "$CC"; then
12347 # Extract the first word of "cc", so it can be a program name with args.
12348 set dummy cc; ac_word=$2
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12350 $as_echo_n "checking for $ac_word... " >&6; }
12351 if test "${ac_cv_prog_CC+set}" = set; then :
12352 $as_echo_n "(cached) " >&6
12353 else
12354 if test -n "$CC"; then
12355 ac_cv_prog_CC="$CC" # Let the user override the test.
12356 else
12357 ac_prog_rejected=no
12358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359 for as_dir in $PATH
12361 IFS=$as_save_IFS
12362 test -z "$as_dir" && as_dir=.
12363 for ac_exec_ext in '' $ac_executable_extensions; do
12364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12365 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12366 ac_prog_rejected=yes
12367 continue
12369 ac_cv_prog_CC="cc"
12370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12371 break 2
12373 done
12374 done
12375 IFS=$as_save_IFS
12377 if test $ac_prog_rejected = yes; then
12378 # We found a bogon in the path, so make sure we never use it.
12379 set dummy $ac_cv_prog_CC
12380 shift
12381 if test $# != 0; then
12382 # We chose a different compiler from the bogus one.
12383 # However, it has the same basename, so the bogon will be chosen
12384 # first if we set CC to just the basename; use the full file name.
12385 shift
12386 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12391 CC=$ac_cv_prog_CC
12392 if test -n "$CC"; then
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12394 $as_echo "$CC" >&6; }
12395 else
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12402 if test -z "$CC"; then
12403 if test -n "$ac_tool_prefix"; then
12404 for ac_prog in cl.exe
12406 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12407 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12409 $as_echo_n "checking for $ac_word... " >&6; }
12410 if test "${ac_cv_prog_CC+set}" = set; then :
12411 $as_echo_n "(cached) " >&6
12412 else
12413 if test -n "$CC"; then
12414 ac_cv_prog_CC="$CC" # Let the user override the test.
12415 else
12416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12417 for as_dir in $PATH
12419 IFS=$as_save_IFS
12420 test -z "$as_dir" && as_dir=.
12421 for ac_exec_ext in '' $ac_executable_extensions; do
12422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12423 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12425 break 2
12427 done
12428 done
12429 IFS=$as_save_IFS
12433 CC=$ac_cv_prog_CC
12434 if test -n "$CC"; then
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12436 $as_echo "$CC" >&6; }
12437 else
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; }
12443 test -n "$CC" && break
12444 done
12446 if test -z "$CC"; then
12447 ac_ct_CC=$CC
12448 for ac_prog in cl.exe
12450 # Extract the first word of "$ac_prog", so it can be a program name with args.
12451 set dummy $ac_prog; ac_word=$2
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12453 $as_echo_n "checking for $ac_word... " >&6; }
12454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12455 $as_echo_n "(cached) " >&6
12456 else
12457 if test -n "$ac_ct_CC"; then
12458 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12459 else
12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $PATH
12463 IFS=$as_save_IFS
12464 test -z "$as_dir" && as_dir=.
12465 for ac_exec_ext in '' $ac_executable_extensions; do
12466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12467 ac_cv_prog_ac_ct_CC="$ac_prog"
12468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12469 break 2
12471 done
12472 done
12473 IFS=$as_save_IFS
12477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12478 if test -n "$ac_ct_CC"; then
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12480 $as_echo "$ac_ct_CC" >&6; }
12481 else
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12487 test -n "$ac_ct_CC" && break
12488 done
12490 if test "x$ac_ct_CC" = x; then
12491 CC=""
12492 else
12493 case $cross_compiling:$ac_tool_warned in
12494 yes:)
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12497 ac_tool_warned=yes ;;
12498 esac
12499 CC=$ac_ct_CC
12506 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12508 as_fn_error "no acceptable C compiler found in \$PATH
12509 See \`config.log' for more details." "$LINENO" 5; }
12511 # Provide some information about the compiler.
12512 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12513 set X $ac_compile
12514 ac_compiler=$2
12515 for ac_option in --version -v -V -qversion; do
12516 { { ac_try="$ac_compiler $ac_option >&5"
12517 case "(($ac_try" in
12518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519 *) ac_try_echo=$ac_try;;
12520 esac
12521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12522 $as_echo "$ac_try_echo"; } >&5
12523 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12524 ac_status=$?
12525 if test -s conftest.err; then
12526 sed '10a\
12527 ... rest of stderr output deleted ...
12528 10q' conftest.err >conftest.er1
12529 cat conftest.er1 >&5
12530 rm -f conftest.er1 conftest.err
12532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12533 test $ac_status = 0; }
12534 done
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12537 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12538 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
12539 $as_echo_n "(cached) " >&6
12540 else
12541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h. */
12545 main ()
12547 #ifndef __GNUC__
12548 choke me
12549 #endif
12552 return 0;
12554 _ACEOF
12555 if ac_fn_c_try_compile "$LINENO"; then :
12556 ac_compiler_gnu=yes
12557 else
12558 ac_compiler_gnu=no
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12565 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12566 if test $ac_compiler_gnu = yes; then
12567 GCC=yes
12568 else
12569 GCC=
12571 ac_test_CFLAGS=${CFLAGS+set}
12572 ac_save_CFLAGS=$CFLAGS
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12574 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12575 if test "${ac_cv_prog_cc_g+set}" = set; then :
12576 $as_echo_n "(cached) " >&6
12577 else
12578 ac_save_c_werror_flag=$ac_c_werror_flag
12579 ac_c_werror_flag=yes
12580 ac_cv_prog_cc_g=no
12581 CFLAGS="-g"
12582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h. */
12586 main ()
12590 return 0;
12592 _ACEOF
12593 if ac_fn_c_try_compile "$LINENO"; then :
12594 ac_cv_prog_cc_g=yes
12595 else
12596 CFLAGS=""
12597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h. */
12601 main ()
12605 return 0;
12607 _ACEOF
12608 if ac_fn_c_try_compile "$LINENO"; then :
12610 else
12611 ac_c_werror_flag=$ac_save_c_werror_flag
12612 CFLAGS="-g"
12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614 /* end confdefs.h. */
12617 main ()
12621 return 0;
12623 _ACEOF
12624 if ac_fn_c_try_compile "$LINENO"; then :
12625 ac_cv_prog_cc_g=yes
12627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12632 ac_c_werror_flag=$ac_save_c_werror_flag
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12635 $as_echo "$ac_cv_prog_cc_g" >&6; }
12636 if test "$ac_test_CFLAGS" = set; then
12637 CFLAGS=$ac_save_CFLAGS
12638 elif test $ac_cv_prog_cc_g = yes; then
12639 if test "$GCC" = yes; then
12640 CFLAGS="-g -O2"
12641 else
12642 CFLAGS="-g"
12644 else
12645 if test "$GCC" = yes; then
12646 CFLAGS="-O2"
12647 else
12648 CFLAGS=
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12652 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12653 if test "${ac_cv_prog_cc_c89+set}" = set; then :
12654 $as_echo_n "(cached) " >&6
12655 else
12656 ac_cv_prog_cc_c89=no
12657 ac_save_CC=$CC
12658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659 /* end confdefs.h. */
12660 #include <stdarg.h>
12661 #include <stdio.h>
12662 #include <sys/types.h>
12663 #include <sys/stat.h>
12664 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12665 struct buf { int x; };
12666 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12667 static char *e (p, i)
12668 char **p;
12669 int i;
12671 return p[i];
12673 static char *f (char * (*g) (char **, int), char **p, ...)
12675 char *s;
12676 va_list v;
12677 va_start (v,p);
12678 s = g (p, va_arg (v,int));
12679 va_end (v);
12680 return s;
12683 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12684 function prototypes and stuff, but not '\xHH' hex character constants.
12685 These don't provoke an error unfortunately, instead are silently treated
12686 as 'x'. The following induces an error, until -std is added to get
12687 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12688 array size at least. It's necessary to write '\x00'==0 to get something
12689 that's true only with -std. */
12690 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12692 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12693 inside strings and character constants. */
12694 #define FOO(x) 'x'
12695 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12697 int test (int i, double x);
12698 struct s1 {int (*f) (int a);};
12699 struct s2 {int (*f) (double a);};
12700 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12701 int argc;
12702 char **argv;
12704 main ()
12706 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12708 return 0;
12710 _ACEOF
12711 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12712 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12714 CC="$ac_save_CC $ac_arg"
12715 if ac_fn_c_try_compile "$LINENO"; then :
12716 ac_cv_prog_cc_c89=$ac_arg
12718 rm -f core conftest.err conftest.$ac_objext
12719 test "x$ac_cv_prog_cc_c89" != "xno" && break
12720 done
12721 rm -f conftest.$ac_ext
12722 CC=$ac_save_CC
12725 # AC_CACHE_VAL
12726 case "x$ac_cv_prog_cc_c89" in
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12729 $as_echo "none needed" >&6; } ;;
12730 xno)
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12732 $as_echo "unsupported" >&6; } ;;
12734 CC="$CC $ac_cv_prog_cc_c89"
12735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12736 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12737 esac
12738 if test "x$ac_cv_prog_cc_c89" != xno; then :
12742 ac_ext=c
12743 ac_cpp='$CPP $CPPFLAGS'
12744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12748 depcc="$CC" am_compiler_list=
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12751 $as_echo_n "checking dependency style of $depcc... " >&6; }
12752 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
12753 $as_echo_n "(cached) " >&6
12754 else
12755 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12756 # We make a subdir and do the tests there. Otherwise we can end up
12757 # making bogus files that we don't know about and never remove. For
12758 # instance it was reported that on HP-UX the gcc test will end up
12759 # making a dummy file named `D' -- because `-MD' means `put the output
12760 # in D'.
12761 mkdir conftest.dir
12762 # Copy depcomp to subdir because otherwise we won't find it if we're
12763 # using a relative directory.
12764 cp "$am_depcomp" conftest.dir
12765 cd conftest.dir
12766 # We will build objects and dependencies in a subdirectory because
12767 # it helps to detect inapplicable dependency modes. For instance
12768 # both Tru64's cc and ICC support -MD to output dependencies as a
12769 # side effect of compilation, but ICC will put the dependencies in
12770 # the current directory while Tru64 will put them in the object
12771 # directory.
12772 mkdir sub
12774 am_cv_CC_dependencies_compiler_type=none
12775 if test "$am_compiler_list" = ""; then
12776 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12778 am__universal=false
12779 case " $depcc " in #(
12780 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12781 esac
12783 for depmode in $am_compiler_list; do
12784 # Setup a source with many dependencies, because some compilers
12785 # like to wrap large dependency lists on column 80 (with \), and
12786 # we should not choose a depcomp mode which is confused by this.
12788 # We need to recreate these files for each test, as the compiler may
12789 # overwrite some of them when testing with obscure command lines.
12790 # This happens at least with the AIX C compiler.
12791 : > sub/conftest.c
12792 for i in 1 2 3 4 5 6; do
12793 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12794 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12795 # Solaris 8's {/usr,}/bin/sh.
12796 touch sub/conftst$i.h
12797 done
12798 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12800 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12801 # mode. It turns out that the SunPro C++ compiler does not properly
12802 # handle `-M -o', and we need to detect this. Also, some Intel
12803 # versions had trouble with output in subdirs
12804 am__obj=sub/conftest.${OBJEXT-o}
12805 am__minus_obj="-o $am__obj"
12806 case $depmode in
12807 gcc)
12808 # This depmode causes a compiler race in universal mode.
12809 test "$am__universal" = false || continue
12811 nosideeffect)
12812 # after this tag, mechanisms are not by side-effect, so they'll
12813 # only be used when explicitly requested
12814 if test "x$enable_dependency_tracking" = xyes; then
12815 continue
12816 else
12817 break
12820 msvisualcpp | msvcmsys)
12821 # This compiler won't grok `-c -o', but also, the minuso test has
12822 # not run yet. These depmodes are late enough in the game, and
12823 # so weak that their functioning should not be impacted.
12824 am__obj=conftest.${OBJEXT-o}
12825 am__minus_obj=
12827 none) break ;;
12828 esac
12829 if depmode=$depmode \
12830 source=sub/conftest.c object=$am__obj \
12831 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12832 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12833 >/dev/null 2>conftest.err &&
12834 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12835 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12836 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12837 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12838 # icc doesn't choke on unknown options, it will just issue warnings
12839 # or remarks (even with -Werror). So we grep stderr for any message
12840 # that says an option was ignored or not supported.
12841 # When given -MP, icc 7.0 and 7.1 complain thusly:
12842 # icc: Command line warning: ignoring option '-M'; no argument required
12843 # The diagnosis changed in icc 8.0:
12844 # icc: Command line remark: option '-MP' not supported
12845 if (grep 'ignoring option' conftest.err ||
12846 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12847 am_cv_CC_dependencies_compiler_type=$depmode
12848 break
12851 done
12853 cd ..
12854 rm -rf conftest.dir
12855 else
12856 am_cv_CC_dependencies_compiler_type=none
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12861 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12862 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12865 test "x$enable_dependency_tracking" != xno \
12866 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12867 am__fastdepCC_TRUE=
12868 am__fastdepCC_FALSE='#'
12869 else
12870 am__fastdepCC_TRUE='#'
12871 am__fastdepCC_FALSE=
12875 if test "x$CC" != xcc; then
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12877 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12878 else
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12880 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12882 set dummy $CC; ac_cc=`$as_echo "$2" |
12883 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12884 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
12885 $as_echo_n "(cached) " >&6
12886 else
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h. */
12891 main ()
12895 return 0;
12897 _ACEOF
12898 # Make sure it works both with $CC and with simple cc.
12899 # We do the test twice because some compilers refuse to overwrite an
12900 # existing .o file with -o, though they will create one.
12901 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12902 rm -f conftest2.*
12903 if { { case "(($ac_try" in
12904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12905 *) ac_try_echo=$ac_try;;
12906 esac
12907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12908 $as_echo "$ac_try_echo"; } >&5
12909 (eval "$ac_try") 2>&5
12910 ac_status=$?
12911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12912 test $ac_status = 0; } &&
12913 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915 *) ac_try_echo=$ac_try;;
12916 esac
12917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12918 $as_echo "$ac_try_echo"; } >&5
12919 (eval "$ac_try") 2>&5
12920 ac_status=$?
12921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12922 test $ac_status = 0; };
12923 then
12924 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12925 if test "x$CC" != xcc; then
12926 # Test first that cc exists at all.
12927 if { ac_try='cc -c conftest.$ac_ext >&5'
12928 { { case "(($ac_try" in
12929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930 *) ac_try_echo=$ac_try;;
12931 esac
12932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12933 $as_echo "$ac_try_echo"; } >&5
12934 (eval "$ac_try") 2>&5
12935 ac_status=$?
12936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12937 test $ac_status = 0; }; }; then
12938 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12939 rm -f conftest2.*
12940 if { { case "(($ac_try" in
12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942 *) ac_try_echo=$ac_try;;
12943 esac
12944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12945 $as_echo "$ac_try_echo"; } >&5
12946 (eval "$ac_try") 2>&5
12947 ac_status=$?
12948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12949 test $ac_status = 0; } &&
12950 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952 *) ac_try_echo=$ac_try;;
12953 esac
12954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12955 $as_echo "$ac_try_echo"; } >&5
12956 (eval "$ac_try") 2>&5
12957 ac_status=$?
12958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12959 test $ac_status = 0; };
12960 then
12961 # cc works too.
12963 else
12964 # cc exists but doesn't like -o.
12965 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12969 else
12970 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12972 rm -f core conftest*
12975 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12977 $as_echo "yes" >&6; }
12978 else
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980 $as_echo "no" >&6; }
12982 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12986 # FIXME: we rely on the cache variable name because
12987 # there is no other way.
12988 set dummy $CC
12989 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12990 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12991 if test "$am_t" != yes; then
12992 # Losing compiler, so override with the script.
12993 # FIXME: It is wrong to rewrite CC.
12994 # But if we don't then we get into trouble of one sort or another.
12995 # A longer-term fix would be to have automake use am__CC in this case,
12996 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12997 CC="$am_aux_dir/compile $CC"
13001 ac_ext=c
13002 ac_cpp='$CPP $CPPFLAGS'
13003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13007 $as_echo_n "checking how to run the C preprocessor... " >&6; }
13008 # On Suns, sometimes $CPP names a directory.
13009 if test -n "$CPP" && test -d "$CPP"; then
13010 CPP=
13012 if test -z "$CPP"; then
13013 if test "${ac_cv_prog_CPP+set}" = set; then :
13014 $as_echo_n "(cached) " >&6
13015 else
13016 # Double quotes because CPP needs to be expanded
13017 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13019 ac_preproc_ok=false
13020 for ac_c_preproc_warn_flag in '' yes
13022 # Use a header file that comes with gcc, so configuring glibc
13023 # with a fresh cross-compiler works.
13024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13025 # <limits.h> exists even on freestanding compilers.
13026 # On the NeXT, cc -E runs the code through the compiler's parser,
13027 # not just through cpp. "Syntax error" is here to catch this case.
13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h. */
13030 #ifdef __STDC__
13031 # include <limits.h>
13032 #else
13033 # include <assert.h>
13034 #endif
13035 Syntax error
13036 _ACEOF
13037 if ac_fn_c_try_cpp "$LINENO"; then :
13039 else
13040 # Broken: fails on valid input.
13041 continue
13043 rm -f conftest.err conftest.$ac_ext
13045 # OK, works on sane cases. Now check whether nonexistent headers
13046 # can be detected and how.
13047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h. */
13049 #include <ac_nonexistent.h>
13050 _ACEOF
13051 if ac_fn_c_try_cpp "$LINENO"; then :
13052 # Broken: success on invalid input.
13053 continue
13054 else
13055 # Passes both tests.
13056 ac_preproc_ok=:
13057 break
13059 rm -f conftest.err conftest.$ac_ext
13061 done
13062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13063 rm -f conftest.err conftest.$ac_ext
13064 if $ac_preproc_ok; then :
13065 break
13068 done
13069 ac_cv_prog_CPP=$CPP
13072 CPP=$ac_cv_prog_CPP
13073 else
13074 ac_cv_prog_CPP=$CPP
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13077 $as_echo "$CPP" >&6; }
13078 ac_preproc_ok=false
13079 for ac_c_preproc_warn_flag in '' yes
13081 # Use a header file that comes with gcc, so configuring glibc
13082 # with a fresh cross-compiler works.
13083 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13084 # <limits.h> exists even on freestanding compilers.
13085 # On the NeXT, cc -E runs the code through the compiler's parser,
13086 # not just through cpp. "Syntax error" is here to catch this case.
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13089 #ifdef __STDC__
13090 # include <limits.h>
13091 #else
13092 # include <assert.h>
13093 #endif
13094 Syntax error
13095 _ACEOF
13096 if ac_fn_c_try_cpp "$LINENO"; then :
13098 else
13099 # Broken: fails on valid input.
13100 continue
13102 rm -f conftest.err conftest.$ac_ext
13104 # OK, works on sane cases. Now check whether nonexistent headers
13105 # can be detected and how.
13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h. */
13108 #include <ac_nonexistent.h>
13109 _ACEOF
13110 if ac_fn_c_try_cpp "$LINENO"; then :
13111 # Broken: success on invalid input.
13112 continue
13113 else
13114 # Passes both tests.
13115 ac_preproc_ok=:
13116 break
13118 rm -f conftest.err conftest.$ac_ext
13120 done
13121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13122 rm -f conftest.err conftest.$ac_ext
13123 if $ac_preproc_ok; then :
13125 else
13126 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13128 as_fn_error "C preprocessor \"$CPP\" fails sanity check
13129 See \`config.log' for more details." "$LINENO" 5; }
13132 ac_ext=c
13133 ac_cpp='$CPP $CPPFLAGS'
13134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13138 ac_ext=cpp
13139 ac_cpp='$CXXCPP $CPPFLAGS'
13140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13143 if test -z "$CXX"; then
13144 if test -n "$CCC"; then
13145 CXX=$CCC
13146 else
13147 if test -n "$ac_tool_prefix"; then
13148 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13153 $as_echo_n "checking for $ac_word... " >&6; }
13154 if test "${ac_cv_prog_CXX+set}" = set; then :
13155 $as_echo_n "(cached) " >&6
13156 else
13157 if test -n "$CXX"; then
13158 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13159 else
13160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13161 for as_dir in $PATH
13163 IFS=$as_save_IFS
13164 test -z "$as_dir" && as_dir=.
13165 for ac_exec_ext in '' $ac_executable_extensions; do
13166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13167 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13169 break 2
13171 done
13172 done
13173 IFS=$as_save_IFS
13177 CXX=$ac_cv_prog_CXX
13178 if test -n "$CXX"; then
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13180 $as_echo "$CXX" >&6; }
13181 else
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13183 $as_echo "no" >&6; }
13187 test -n "$CXX" && break
13188 done
13190 if test -z "$CXX"; then
13191 ac_ct_CXX=$CXX
13192 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13194 # Extract the first word of "$ac_prog", so it can be a program name with args.
13195 set dummy $ac_prog; ac_word=$2
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13197 $as_echo_n "checking for $ac_word... " >&6; }
13198 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13199 $as_echo_n "(cached) " >&6
13200 else
13201 if test -n "$ac_ct_CXX"; then
13202 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13203 else
13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205 for as_dir in $PATH
13207 IFS=$as_save_IFS
13208 test -z "$as_dir" && as_dir=.
13209 for ac_exec_ext in '' $ac_executable_extensions; do
13210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13211 ac_cv_prog_ac_ct_CXX="$ac_prog"
13212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13213 break 2
13215 done
13216 done
13217 IFS=$as_save_IFS
13221 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13222 if test -n "$ac_ct_CXX"; then
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13224 $as_echo "$ac_ct_CXX" >&6; }
13225 else
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227 $as_echo "no" >&6; }
13231 test -n "$ac_ct_CXX" && break
13232 done
13234 if test "x$ac_ct_CXX" = x; then
13235 CXX="g++"
13236 else
13237 case $cross_compiling:$ac_tool_warned in
13238 yes:)
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13241 ac_tool_warned=yes ;;
13242 esac
13243 CXX=$ac_ct_CXX
13249 # Provide some information about the compiler.
13250 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13251 set X $ac_compile
13252 ac_compiler=$2
13253 for ac_option in --version -v -V -qversion; do
13254 { { ac_try="$ac_compiler $ac_option >&5"
13255 case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13258 esac
13259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13260 $as_echo "$ac_try_echo"; } >&5
13261 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13262 ac_status=$?
13263 if test -s conftest.err; then
13264 sed '10a\
13265 ... rest of stderr output deleted ...
13266 10q' conftest.err >conftest.er1
13267 cat conftest.er1 >&5
13268 rm -f conftest.er1 conftest.err
13270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13271 test $ac_status = 0; }
13272 done
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13275 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13276 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13277 $as_echo_n "(cached) " >&6
13278 else
13279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280 /* end confdefs.h. */
13283 main ()
13285 #ifndef __GNUC__
13286 choke me
13287 #endif
13290 return 0;
13292 _ACEOF
13293 if ac_fn_cxx_try_compile "$LINENO"; then :
13294 ac_compiler_gnu=yes
13295 else
13296 ac_compiler_gnu=no
13298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13299 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13303 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13304 if test $ac_compiler_gnu = yes; then
13305 GXX=yes
13306 else
13307 GXX=
13309 ac_test_CXXFLAGS=${CXXFLAGS+set}
13310 ac_save_CXXFLAGS=$CXXFLAGS
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13312 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13313 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13314 $as_echo_n "(cached) " >&6
13315 else
13316 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13317 ac_cxx_werror_flag=yes
13318 ac_cv_prog_cxx_g=no
13319 CXXFLAGS="-g"
13320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h. */
13324 main ()
13328 return 0;
13330 _ACEOF
13331 if ac_fn_cxx_try_compile "$LINENO"; then :
13332 ac_cv_prog_cxx_g=yes
13333 else
13334 CXXFLAGS=""
13335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13339 main ()
13343 return 0;
13345 _ACEOF
13346 if ac_fn_cxx_try_compile "$LINENO"; then :
13348 else
13349 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13350 CXXFLAGS="-g"
13351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13352 /* end confdefs.h. */
13355 main ()
13359 return 0;
13361 _ACEOF
13362 if ac_fn_cxx_try_compile "$LINENO"; then :
13363 ac_cv_prog_cxx_g=yes
13365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13370 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13373 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13374 if test "$ac_test_CXXFLAGS" = set; then
13375 CXXFLAGS=$ac_save_CXXFLAGS
13376 elif test $ac_cv_prog_cxx_g = yes; then
13377 if test "$GXX" = yes; then
13378 CXXFLAGS="-g -O2"
13379 else
13380 CXXFLAGS="-g"
13382 else
13383 if test "$GXX" = yes; then
13384 CXXFLAGS="-O2"
13385 else
13386 CXXFLAGS=
13389 ac_ext=c
13390 ac_cpp='$CPP $CPPFLAGS'
13391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13395 depcc="$CXX" am_compiler_list=
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13398 $as_echo_n "checking dependency style of $depcc... " >&6; }
13399 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13400 $as_echo_n "(cached) " >&6
13401 else
13402 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13403 # We make a subdir and do the tests there. Otherwise we can end up
13404 # making bogus files that we don't know about and never remove. For
13405 # instance it was reported that on HP-UX the gcc test will end up
13406 # making a dummy file named `D' -- because `-MD' means `put the output
13407 # in D'.
13408 mkdir conftest.dir
13409 # Copy depcomp to subdir because otherwise we won't find it if we're
13410 # using a relative directory.
13411 cp "$am_depcomp" conftest.dir
13412 cd conftest.dir
13413 # We will build objects and dependencies in a subdirectory because
13414 # it helps to detect inapplicable dependency modes. For instance
13415 # both Tru64's cc and ICC support -MD to output dependencies as a
13416 # side effect of compilation, but ICC will put the dependencies in
13417 # the current directory while Tru64 will put them in the object
13418 # directory.
13419 mkdir sub
13421 am_cv_CXX_dependencies_compiler_type=none
13422 if test "$am_compiler_list" = ""; then
13423 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13425 am__universal=false
13426 case " $depcc " in #(
13427 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13428 esac
13430 for depmode in $am_compiler_list; do
13431 # Setup a source with many dependencies, because some compilers
13432 # like to wrap large dependency lists on column 80 (with \), and
13433 # we should not choose a depcomp mode which is confused by this.
13435 # We need to recreate these files for each test, as the compiler may
13436 # overwrite some of them when testing with obscure command lines.
13437 # This happens at least with the AIX C compiler.
13438 : > sub/conftest.c
13439 for i in 1 2 3 4 5 6; do
13440 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13441 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13442 # Solaris 8's {/usr,}/bin/sh.
13443 touch sub/conftst$i.h
13444 done
13445 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13447 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13448 # mode. It turns out that the SunPro C++ compiler does not properly
13449 # handle `-M -o', and we need to detect this. Also, some Intel
13450 # versions had trouble with output in subdirs
13451 am__obj=sub/conftest.${OBJEXT-o}
13452 am__minus_obj="-o $am__obj"
13453 case $depmode in
13454 gcc)
13455 # This depmode causes a compiler race in universal mode.
13456 test "$am__universal" = false || continue
13458 nosideeffect)
13459 # after this tag, mechanisms are not by side-effect, so they'll
13460 # only be used when explicitly requested
13461 if test "x$enable_dependency_tracking" = xyes; then
13462 continue
13463 else
13464 break
13467 msvisualcpp | msvcmsys)
13468 # This compiler won't grok `-c -o', but also, the minuso test has
13469 # not run yet. These depmodes are late enough in the game, and
13470 # so weak that their functioning should not be impacted.
13471 am__obj=conftest.${OBJEXT-o}
13472 am__minus_obj=
13474 none) break ;;
13475 esac
13476 if depmode=$depmode \
13477 source=sub/conftest.c object=$am__obj \
13478 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13479 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13480 >/dev/null 2>conftest.err &&
13481 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13482 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13483 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13484 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13485 # icc doesn't choke on unknown options, it will just issue warnings
13486 # or remarks (even with -Werror). So we grep stderr for any message
13487 # that says an option was ignored or not supported.
13488 # When given -MP, icc 7.0 and 7.1 complain thusly:
13489 # icc: Command line warning: ignoring option '-M'; no argument required
13490 # The diagnosis changed in icc 8.0:
13491 # icc: Command line remark: option '-MP' not supported
13492 if (grep 'ignoring option' conftest.err ||
13493 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13494 am_cv_CXX_dependencies_compiler_type=$depmode
13495 break
13498 done
13500 cd ..
13501 rm -rf conftest.dir
13502 else
13503 am_cv_CXX_dependencies_compiler_type=none
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13508 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13509 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13512 test "x$enable_dependency_tracking" != xno \
13513 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13514 am__fastdepCXX_TRUE=
13515 am__fastdepCXX_FALSE='#'
13516 else
13517 am__fastdepCXX_TRUE='#'
13518 am__fastdepCXX_FALSE=
13522 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13523 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13524 (test "X$CXX" != "Xg++"))) ; then
13525 ac_ext=cpp
13526 ac_cpp='$CXXCPP $CPPFLAGS'
13527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13531 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13532 if test -z "$CXXCPP"; then
13533 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13534 $as_echo_n "(cached) " >&6
13535 else
13536 # Double quotes because CXXCPP needs to be expanded
13537 for CXXCPP in "$CXX -E" "/lib/cpp"
13539 ac_preproc_ok=false
13540 for ac_cxx_preproc_warn_flag in '' yes
13542 # Use a header file that comes with gcc, so configuring glibc
13543 # with a fresh cross-compiler works.
13544 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13545 # <limits.h> exists even on freestanding compilers.
13546 # On the NeXT, cc -E runs the code through the compiler's parser,
13547 # not just through cpp. "Syntax error" is here to catch this case.
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h. */
13550 #ifdef __STDC__
13551 # include <limits.h>
13552 #else
13553 # include <assert.h>
13554 #endif
13555 Syntax error
13556 _ACEOF
13557 if ac_fn_cxx_try_cpp "$LINENO"; then :
13559 else
13560 # Broken: fails on valid input.
13561 continue
13563 rm -f conftest.err conftest.$ac_ext
13565 # OK, works on sane cases. Now check whether nonexistent headers
13566 # can be detected and how.
13567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568 /* end confdefs.h. */
13569 #include <ac_nonexistent.h>
13570 _ACEOF
13571 if ac_fn_cxx_try_cpp "$LINENO"; then :
13572 # Broken: success on invalid input.
13573 continue
13574 else
13575 # Passes both tests.
13576 ac_preproc_ok=:
13577 break
13579 rm -f conftest.err conftest.$ac_ext
13581 done
13582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13583 rm -f conftest.err conftest.$ac_ext
13584 if $ac_preproc_ok; then :
13585 break
13588 done
13589 ac_cv_prog_CXXCPP=$CXXCPP
13592 CXXCPP=$ac_cv_prog_CXXCPP
13593 else
13594 ac_cv_prog_CXXCPP=$CXXCPP
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13597 $as_echo "$CXXCPP" >&6; }
13598 ac_preproc_ok=false
13599 for ac_cxx_preproc_warn_flag in '' yes
13601 # Use a header file that comes with gcc, so configuring glibc
13602 # with a fresh cross-compiler works.
13603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13604 # <limits.h> exists even on freestanding compilers.
13605 # On the NeXT, cc -E runs the code through the compiler's parser,
13606 # not just through cpp. "Syntax error" is here to catch this case.
13607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h. */
13609 #ifdef __STDC__
13610 # include <limits.h>
13611 #else
13612 # include <assert.h>
13613 #endif
13614 Syntax error
13615 _ACEOF
13616 if ac_fn_cxx_try_cpp "$LINENO"; then :
13618 else
13619 # Broken: fails on valid input.
13620 continue
13622 rm -f conftest.err conftest.$ac_ext
13624 # OK, works on sane cases. Now check whether nonexistent headers
13625 # can be detected and how.
13626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h. */
13628 #include <ac_nonexistent.h>
13629 _ACEOF
13630 if ac_fn_cxx_try_cpp "$LINENO"; then :
13631 # Broken: success on invalid input.
13632 continue
13633 else
13634 # Passes both tests.
13635 ac_preproc_ok=:
13636 break
13638 rm -f conftest.err conftest.$ac_ext
13640 done
13641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13642 rm -f conftest.err conftest.$ac_ext
13643 if $ac_preproc_ok; then :
13645 else
13646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13648 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13649 See \`config.log' for more details." "$LINENO" 5; }
13652 ac_ext=c
13653 ac_cpp='$CPP $CPPFLAGS'
13654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13658 else
13659 _lt_caught_CXX_error=yes
13662 ac_ext=cpp
13663 ac_cpp='$CXXCPP $CPPFLAGS'
13664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13668 archive_cmds_need_lc_CXX=no
13669 allow_undefined_flag_CXX=
13670 always_export_symbols_CXX=no
13671 archive_expsym_cmds_CXX=
13672 compiler_needs_object_CXX=no
13673 export_dynamic_flag_spec_CXX=
13674 hardcode_direct_CXX=no
13675 hardcode_direct_absolute_CXX=no
13676 hardcode_libdir_flag_spec_CXX=
13677 hardcode_libdir_flag_spec_ld_CXX=
13678 hardcode_libdir_separator_CXX=
13679 hardcode_minus_L_CXX=no
13680 hardcode_shlibpath_var_CXX=unsupported
13681 hardcode_automatic_CXX=no
13682 inherit_rpath_CXX=no
13683 module_cmds_CXX=
13684 module_expsym_cmds_CXX=
13685 link_all_deplibs_CXX=unknown
13686 old_archive_cmds_CXX=$old_archive_cmds
13687 reload_flag_CXX=$reload_flag
13688 reload_cmds_CXX=$reload_cmds
13689 no_undefined_flag_CXX=
13690 whole_archive_flag_spec_CXX=
13691 enable_shared_with_static_runtimes_CXX=no
13693 # Source file extension for C++ test sources.
13694 ac_ext=cpp
13696 # Object file extension for compiled C++ test sources.
13697 objext=o
13698 objext_CXX=$objext
13700 # No sense in running all these tests if we already determined that
13701 # the CXX compiler isn't working. Some variables (like enable_shared)
13702 # are currently assumed to apply to all compilers on this platform,
13703 # and will be corrupted by setting them based on a non-working compiler.
13704 if test "$_lt_caught_CXX_error" != yes; then
13705 # Code to be used in simple compile tests
13706 lt_simple_compile_test_code="int some_variable = 0;"
13708 # Code to be used in simple link tests
13709 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13711 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13718 # If no C compiler was specified, use CC.
13719 LTCC=${LTCC-"$CC"}
13721 # If no C compiler flags were specified, use CFLAGS.
13722 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13724 # Allow CC to be a program name with arguments.
13725 compiler=$CC
13728 # save warnings/boilerplate of simple test code
13729 ac_outfile=conftest.$ac_objext
13730 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13731 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13732 _lt_compiler_boilerplate=`cat conftest.err`
13733 $RM conftest*
13735 ac_outfile=conftest.$ac_objext
13736 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13737 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13738 _lt_linker_boilerplate=`cat conftest.err`
13739 $RM -r conftest*
13742 # Allow CC to be a program name with arguments.
13743 lt_save_CC=$CC
13744 lt_save_LD=$LD
13745 lt_save_GCC=$GCC
13746 GCC=$GXX
13747 lt_save_with_gnu_ld=$with_gnu_ld
13748 lt_save_path_LD=$lt_cv_path_LD
13749 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13750 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13751 else
13752 $as_unset lt_cv_prog_gnu_ld
13754 if test -n "${lt_cv_path_LDCXX+set}"; then
13755 lt_cv_path_LD=$lt_cv_path_LDCXX
13756 else
13757 $as_unset lt_cv_path_LD
13759 test -z "${LDCXX+set}" || LD=$LDCXX
13760 CC=${CXX-"c++"}
13761 compiler=$CC
13762 compiler_CXX=$CC
13763 for cc_temp in $compiler""; do
13764 case $cc_temp in
13765 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13766 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13767 \-*) ;;
13768 *) break;;
13769 esac
13770 done
13771 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13774 if test -n "$compiler"; then
13775 # We don't want -fno-exception when compiling C++ code, so set the
13776 # no_builtin_flag separately
13777 if test "$GXX" = yes; then
13778 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13779 else
13780 lt_prog_compiler_no_builtin_flag_CXX=
13783 if test "$GXX" = yes; then
13784 # Set up default GNU C++ configuration
13788 # Check whether --with-gnu-ld was given.
13789 if test "${with_gnu_ld+set}" = set; then :
13790 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13791 else
13792 with_gnu_ld=no
13795 ac_prog=ld
13796 if test "$GCC" = yes; then
13797 # Check if gcc -print-prog-name=ld gives a path.
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13799 $as_echo_n "checking for ld used by $CC... " >&6; }
13800 case $host in
13801 *-*-mingw*)
13802 # gcc leaves a trailing carriage return which upsets mingw
13803 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13805 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13806 esac
13807 case $ac_prog in
13808 # Accept absolute paths.
13809 [\\/]* | ?:[\\/]*)
13810 re_direlt='/[^/][^/]*/\.\./'
13811 # Canonicalize the pathname of ld
13812 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13813 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13814 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13815 done
13816 test -z "$LD" && LD="$ac_prog"
13819 # If it fails, then pretend we aren't using GCC.
13820 ac_prog=ld
13823 # If it is relative, then search for the first ld in PATH.
13824 with_gnu_ld=unknown
13826 esac
13827 elif test "$with_gnu_ld" = yes; then
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13829 $as_echo_n "checking for GNU ld... " >&6; }
13830 else
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13832 $as_echo_n "checking for non-GNU ld... " >&6; }
13834 if test "${lt_cv_path_LD+set}" = set; then :
13835 $as_echo_n "(cached) " >&6
13836 else
13837 if test -z "$LD"; then
13838 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13839 for ac_dir in $PATH; do
13840 IFS="$lt_save_ifs"
13841 test -z "$ac_dir" && ac_dir=.
13842 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13843 lt_cv_path_LD="$ac_dir/$ac_prog"
13844 # Check to see if the program is GNU ld. I'd rather use --version,
13845 # but apparently some variants of GNU ld only accept -v.
13846 # Break only if it was the GNU/non-GNU ld that we prefer.
13847 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13848 *GNU* | *'with BFD'*)
13849 test "$with_gnu_ld" != no && break
13852 test "$with_gnu_ld" != yes && break
13854 esac
13856 done
13857 IFS="$lt_save_ifs"
13858 else
13859 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13863 LD="$lt_cv_path_LD"
13864 if test -n "$LD"; then
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13866 $as_echo "$LD" >&6; }
13867 else
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13869 $as_echo "no" >&6; }
13871 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13873 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13874 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13875 $as_echo_n "(cached) " >&6
13876 else
13877 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13878 case `$LD -v 2>&1 </dev/null` in
13879 *GNU* | *'with BFD'*)
13880 lt_cv_prog_gnu_ld=yes
13883 lt_cv_prog_gnu_ld=no
13885 esac
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13888 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13889 with_gnu_ld=$lt_cv_prog_gnu_ld
13897 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13898 # archiving commands below assume that GNU ld is being used.
13899 if test "$with_gnu_ld" = yes; then
13900 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13901 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13903 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13904 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13906 # If archive_cmds runs LD, not CC, wlarc should be empty
13907 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13908 # investigate it a little bit more. (MM)
13909 wlarc='${wl}'
13911 # ancient GNU ld didn't support --whole-archive et. al.
13912 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13913 $GREP 'no-whole-archive' > /dev/null; then
13914 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13915 else
13916 whole_archive_flag_spec_CXX=
13918 else
13919 with_gnu_ld=no
13920 wlarc=
13922 # A generic and very simple default shared library creation
13923 # command for GNU C++ for the case where it uses the native
13924 # linker, instead of GNU ld. If possible, this setting should
13925 # overridden to take advantage of the native linker features on
13926 # the platform it is being used on.
13927 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13930 # Commands to make compiler produce verbose output that lists
13931 # what "hidden" libraries, object files and flags are used when
13932 # linking a shared library.
13933 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13935 else
13936 GXX=no
13937 with_gnu_ld=no
13938 wlarc=
13941 # PORTME: fill in a description of your system's C++ link characteristics
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13943 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13944 ld_shlibs_CXX=yes
13945 case $host_os in
13946 aix3*)
13947 # FIXME: insert proper C++ library support
13948 ld_shlibs_CXX=no
13950 aix[4-9]*)
13951 if test "$host_cpu" = ia64; then
13952 # On IA64, the linker does run time linking by default, so we don't
13953 # have to do anything special.
13954 aix_use_runtimelinking=no
13955 exp_sym_flag='-Bexport'
13956 no_entry_flag=""
13957 else
13958 aix_use_runtimelinking=no
13960 # Test if we are trying to use run time linking or normal
13961 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13962 # need to do runtime linking.
13963 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13964 for ld_flag in $LDFLAGS; do
13965 case $ld_flag in
13966 *-brtl*)
13967 aix_use_runtimelinking=yes
13968 break
13970 esac
13971 done
13973 esac
13975 exp_sym_flag='-bexport'
13976 no_entry_flag='-bnoentry'
13979 # When large executables or shared objects are built, AIX ld can
13980 # have problems creating the table of contents. If linking a library
13981 # or program results in "error TOC overflow" add -mminimal-toc to
13982 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13983 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13985 archive_cmds_CXX=''
13986 hardcode_direct_CXX=yes
13987 hardcode_direct_absolute_CXX=yes
13988 hardcode_libdir_separator_CXX=':'
13989 link_all_deplibs_CXX=yes
13990 file_list_spec_CXX='${wl}-f,'
13992 if test "$GXX" = yes; then
13993 case $host_os in aix4.[012]|aix4.[012].*)
13994 # We only want to do this on AIX 4.2 and lower, the check
13995 # below for broken collect2 doesn't work under 4.3+
13996 collect2name=`${CC} -print-prog-name=collect2`
13997 if test -f "$collect2name" &&
13998 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13999 then
14000 # We have reworked collect2
14002 else
14003 # We have old collect2
14004 hardcode_direct_CXX=unsupported
14005 # It fails to find uninstalled libraries when the uninstalled
14006 # path is not listed in the libpath. Setting hardcode_minus_L
14007 # to unsupported forces relinking
14008 hardcode_minus_L_CXX=yes
14009 hardcode_libdir_flag_spec_CXX='-L$libdir'
14010 hardcode_libdir_separator_CXX=
14012 esac
14013 shared_flag='-shared'
14014 if test "$aix_use_runtimelinking" = yes; then
14015 shared_flag="$shared_flag "'${wl}-G'
14017 else
14018 # not using gcc
14019 if test "$host_cpu" = ia64; then
14020 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14021 # chokes on -Wl,-G. The following line is correct:
14022 shared_flag='-G'
14023 else
14024 if test "$aix_use_runtimelinking" = yes; then
14025 shared_flag='${wl}-G'
14026 else
14027 shared_flag='${wl}-bM:SRE'
14032 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14033 # It seems that -bexpall does not export symbols beginning with
14034 # underscore (_), so it is better to generate a list of symbols to
14035 # export.
14036 always_export_symbols_CXX=yes
14037 if test "$aix_use_runtimelinking" = yes; then
14038 # Warning - without using the other runtime loading flags (-brtl),
14039 # -berok will link without error, but may produce a broken library.
14040 allow_undefined_flag_CXX='-berok'
14041 # Determine the default libpath from the value encoded in an empty
14042 # executable.
14043 if test x$gcc_no_link = xyes; then
14044 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h. */
14050 main ()
14054 return 0;
14056 _ACEOF
14057 if ac_fn_cxx_try_link "$LINENO"; then :
14059 lt_aix_libpath_sed='
14060 /Import File Strings/,/^$/ {
14061 /^0/ {
14062 s/^0 *\(.*\)$/\1/
14066 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14067 # Check for a 64-bit object if we didn't find anything.
14068 if test -z "$aix_libpath"; then
14069 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14072 rm -f core conftest.err conftest.$ac_objext \
14073 conftest$ac_exeext conftest.$ac_ext
14074 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14076 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14078 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"
14079 else
14080 if test "$host_cpu" = ia64; then
14081 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14082 allow_undefined_flag_CXX="-z nodefs"
14083 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"
14084 else
14085 # Determine the default libpath from the value encoded in an
14086 # empty executable.
14087 if test x$gcc_no_link = xyes; then
14088 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h. */
14094 main ()
14098 return 0;
14100 _ACEOF
14101 if ac_fn_cxx_try_link "$LINENO"; then :
14103 lt_aix_libpath_sed='
14104 /Import File Strings/,/^$/ {
14105 /^0/ {
14106 s/^0 *\(.*\)$/\1/
14110 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14111 # Check for a 64-bit object if we didn't find anything.
14112 if test -z "$aix_libpath"; then
14113 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14116 rm -f core conftest.err conftest.$ac_objext \
14117 conftest$ac_exeext conftest.$ac_ext
14118 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14120 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14121 # Warning - without using the other run time loading flags,
14122 # -berok will link without error, but may produce a broken library.
14123 no_undefined_flag_CXX=' ${wl}-bernotok'
14124 allow_undefined_flag_CXX=' ${wl}-berok'
14125 if test "$with_gnu_ld" = yes; then
14126 # We only use this code for GNU lds that support --whole-archive.
14127 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14128 else
14129 # Exported symbols can be pulled into shared objects from archives
14130 whole_archive_flag_spec_CXX='$convenience'
14132 archive_cmds_need_lc_CXX=yes
14133 # This is similar to how AIX traditionally builds its shared
14134 # libraries.
14135 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'
14140 beos*)
14141 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14142 allow_undefined_flag_CXX=unsupported
14143 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14144 # support --undefined. This deserves some investigation. FIXME
14145 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14146 else
14147 ld_shlibs_CXX=no
14151 chorus*)
14152 case $cc_basename in
14154 # FIXME: insert proper C++ library support
14155 ld_shlibs_CXX=no
14157 esac
14160 cygwin* | mingw* | pw32* | cegcc*)
14161 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14162 # as there is no search path for DLLs.
14163 hardcode_libdir_flag_spec_CXX='-L$libdir'
14164 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14165 allow_undefined_flag_CXX=unsupported
14166 always_export_symbols_CXX=no
14167 enable_shared_with_static_runtimes_CXX=yes
14169 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14170 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'
14171 # If the export-symbols file already is a .def file (1st line
14172 # is EXPORTS), use it as is; otherwise, prepend...
14173 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14174 cp $export_symbols $output_objdir/$soname.def;
14175 else
14176 echo EXPORTS > $output_objdir/$soname.def;
14177 cat $export_symbols >> $output_objdir/$soname.def;
14179 $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'
14180 else
14181 ld_shlibs_CXX=no
14184 darwin* | rhapsody*)
14187 archive_cmds_need_lc_CXX=no
14188 hardcode_direct_CXX=no
14189 hardcode_automatic_CXX=yes
14190 hardcode_shlibpath_var_CXX=unsupported
14191 if test "$lt_cv_ld_force_load" = "yes"; then
14192 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\"`'
14193 else
14194 whole_archive_flag_spec_CXX=''
14196 link_all_deplibs_CXX=yes
14197 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14198 case $cc_basename in
14199 ifort*) _lt_dar_can_shared=yes ;;
14200 *) _lt_dar_can_shared=$GCC ;;
14201 esac
14202 if test "$_lt_dar_can_shared" = "yes"; then
14203 output_verbose_link_cmd=func_echo_all
14204 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}"
14205 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14206 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}"
14207 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}"
14208 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14209 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}"
14210 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}"
14213 else
14214 ld_shlibs_CXX=no
14219 dgux*)
14220 case $cc_basename in
14221 ec++*)
14222 # FIXME: insert proper C++ library support
14223 ld_shlibs_CXX=no
14225 ghcx*)
14226 # Green Hills C++ Compiler
14227 # FIXME: insert proper C++ library support
14228 ld_shlibs_CXX=no
14231 # FIXME: insert proper C++ library support
14232 ld_shlibs_CXX=no
14234 esac
14237 freebsd2.*)
14238 # C++ shared libraries reported to be fairly broken before
14239 # switch to ELF
14240 ld_shlibs_CXX=no
14243 freebsd-elf*)
14244 archive_cmds_need_lc_CXX=no
14247 freebsd* | dragonfly*)
14248 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14249 # conventions
14250 ld_shlibs_CXX=yes
14253 gnu*)
14256 haiku*)
14257 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14258 link_all_deplibs_CXX=yes
14261 hpux9*)
14262 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14263 hardcode_libdir_separator_CXX=:
14264 export_dynamic_flag_spec_CXX='${wl}-E'
14265 hardcode_direct_CXX=yes
14266 hardcode_minus_L_CXX=yes # Not in the search PATH,
14267 # but as the default
14268 # location of the library.
14270 case $cc_basename in
14271 CC*)
14272 # FIXME: insert proper C++ library support
14273 ld_shlibs_CXX=no
14275 aCC*)
14276 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'
14277 # Commands to make compiler produce verbose output that lists
14278 # what "hidden" libraries, object files and flags are used when
14279 # linking a shared library.
14281 # There doesn't appear to be a way to prevent this compiler from
14282 # explicitly linking system object files so we need to strip them
14283 # from the output so that they don't get included in the library
14284 # dependencies.
14285 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"'
14288 if test "$GXX" = yes; then
14289 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'
14290 else
14291 # FIXME: insert proper C++ library support
14292 ld_shlibs_CXX=no
14295 esac
14298 hpux10*|hpux11*)
14299 if test $with_gnu_ld = no; then
14300 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14301 hardcode_libdir_separator_CXX=:
14303 case $host_cpu in
14304 hppa*64*|ia64*)
14307 export_dynamic_flag_spec_CXX='${wl}-E'
14309 esac
14311 case $host_cpu in
14312 hppa*64*|ia64*)
14313 hardcode_direct_CXX=no
14314 hardcode_shlibpath_var_CXX=no
14317 hardcode_direct_CXX=yes
14318 hardcode_direct_absolute_CXX=yes
14319 hardcode_minus_L_CXX=yes # Not in the search PATH,
14320 # but as the default
14321 # location of the library.
14323 esac
14325 case $cc_basename in
14326 CC*)
14327 # FIXME: insert proper C++ library support
14328 ld_shlibs_CXX=no
14330 aCC*)
14331 case $host_cpu in
14332 hppa*64*)
14333 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14335 ia64*)
14336 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14339 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14341 esac
14342 # Commands to make compiler produce verbose output that lists
14343 # what "hidden" libraries, object files and flags are used when
14344 # linking a shared library.
14346 # There doesn't appear to be a way to prevent this compiler from
14347 # explicitly linking system object files so we need to strip them
14348 # from the output so that they don't get included in the library
14349 # dependencies.
14350 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"'
14353 if test "$GXX" = yes; then
14354 if test $with_gnu_ld = no; then
14355 case $host_cpu in
14356 hppa*64*)
14357 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14359 ia64*)
14360 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14363 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'
14365 esac
14367 else
14368 # FIXME: insert proper C++ library support
14369 ld_shlibs_CXX=no
14372 esac
14375 interix[3-9]*)
14376 hardcode_direct_CXX=no
14377 hardcode_shlibpath_var_CXX=no
14378 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14379 export_dynamic_flag_spec_CXX='${wl}-E'
14380 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14381 # Instead, shared libraries are loaded at an image base (0x10000000 by
14382 # default) and relocated if they conflict, which is a slow very memory
14383 # consuming and fragmenting process. To avoid this, we pick a random,
14384 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14385 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14386 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'
14387 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'
14389 irix5* | irix6*)
14390 case $cc_basename in
14391 CC*)
14392 # SGI C++
14393 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'
14395 # Archives containing C++ object files must be created using
14396 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14397 # necessary to make sure instantiated templates are included
14398 # in the archive.
14399 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14402 if test "$GXX" = yes; then
14403 if test "$with_gnu_ld" = no; then
14404 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'
14405 else
14406 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'
14409 link_all_deplibs_CXX=yes
14411 esac
14412 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14413 hardcode_libdir_separator_CXX=:
14414 inherit_rpath_CXX=yes
14417 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14418 case $cc_basename in
14419 KCC*)
14420 # Kuck and Associates, Inc. (KAI) C++ Compiler
14422 # KCC will only create a shared library if the output file
14423 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14424 # to its proper name (with version) after linking.
14425 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'
14426 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'
14427 # Commands to make compiler produce verbose output that lists
14428 # what "hidden" libraries, object files and flags are used when
14429 # linking a shared library.
14431 # There doesn't appear to be a way to prevent this compiler from
14432 # explicitly linking system object files so we need to strip them
14433 # from the output so that they don't get included in the library
14434 # dependencies.
14435 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"'
14437 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14438 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14440 # Archives containing C++ object files must be created using
14441 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14442 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14444 icpc* | ecpc* )
14445 # Intel C++
14446 with_gnu_ld=yes
14447 # version 8.0 and above of icpc choke on multiply defined symbols
14448 # if we add $predep_objects and $postdep_objects, however 7.1 and
14449 # earlier do not add the objects themselves.
14450 case `$CC -V 2>&1` in
14451 *"Version 7."*)
14452 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14453 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'
14455 *) # Version 8.0 or newer
14456 tmp_idyn=
14457 case $host_cpu in
14458 ia64*) tmp_idyn=' -i_dynamic';;
14459 esac
14460 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14461 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'
14463 esac
14464 archive_cmds_need_lc_CXX=no
14465 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14466 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14467 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14469 pgCC* | pgcpp*)
14470 # Portland Group C++ compiler
14471 case `$CC -V` in
14472 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14473 prelink_cmds_CXX='tpldir=Template.dir~
14474 rm -rf $tpldir~
14475 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14476 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14477 old_archive_cmds_CXX='tpldir=Template.dir~
14478 rm -rf $tpldir~
14479 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14480 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14481 $RANLIB $oldlib'
14482 archive_cmds_CXX='tpldir=Template.dir~
14483 rm -rf $tpldir~
14484 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14485 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14486 archive_expsym_cmds_CXX='tpldir=Template.dir~
14487 rm -rf $tpldir~
14488 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14489 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14491 *) # Version 6 and above use weak symbols
14492 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14493 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'
14495 esac
14497 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14498 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14499 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'
14501 cxx*)
14502 # Compaq C++
14503 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14504 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'
14506 runpath_var=LD_RUN_PATH
14507 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14508 hardcode_libdir_separator_CXX=:
14510 # Commands to make compiler produce verbose output that lists
14511 # what "hidden" libraries, object files and flags are used when
14512 # linking a shared library.
14514 # There doesn't appear to be a way to prevent this compiler from
14515 # explicitly linking system object files so we need to strip them
14516 # from the output so that they don't get included in the library
14517 # dependencies.
14518 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'
14520 xl* | mpixl* | bgxl*)
14521 # IBM XL 8.0 on PPC, with GNU ld
14522 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14523 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14524 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14525 if test "x$supports_anon_versioning" = xyes; then
14526 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14527 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14528 echo "local: *; };" >> $output_objdir/$libname.ver~
14529 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14533 case `$CC -V 2>&1 | sed 5q` in
14534 *Sun\ C*)
14535 # Sun C++ 5.9
14536 no_undefined_flag_CXX=' -zdefs'
14537 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14538 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'
14539 hardcode_libdir_flag_spec_CXX='-R$libdir'
14540 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'
14541 compiler_needs_object_CXX=yes
14543 # Not sure whether something based on
14544 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14545 # would be better.
14546 output_verbose_link_cmd='func_echo_all'
14548 # Archives containing C++ object files must be created using
14549 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14550 # necessary to make sure instantiated templates are included
14551 # in the archive.
14552 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14554 esac
14556 esac
14559 lynxos*)
14560 # FIXME: insert proper C++ library support
14561 ld_shlibs_CXX=no
14564 m88k*)
14565 # FIXME: insert proper C++ library support
14566 ld_shlibs_CXX=no
14569 mvs*)
14570 case $cc_basename in
14571 cxx*)
14572 # FIXME: insert proper C++ library support
14573 ld_shlibs_CXX=no
14576 # FIXME: insert proper C++ library support
14577 ld_shlibs_CXX=no
14579 esac
14582 netbsd*)
14583 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14584 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14585 wlarc=
14586 hardcode_libdir_flag_spec_CXX='-R$libdir'
14587 hardcode_direct_CXX=yes
14588 hardcode_shlibpath_var_CXX=no
14590 # Workaround some broken pre-1.5 toolchains
14591 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14594 *nto* | *qnx*)
14595 ld_shlibs_CXX=yes
14598 openbsd2*)
14599 # C++ shared libraries are fairly broken
14600 ld_shlibs_CXX=no
14603 openbsd*)
14604 if test -f /usr/libexec/ld.so; then
14605 hardcode_direct_CXX=yes
14606 hardcode_shlibpath_var_CXX=no
14607 hardcode_direct_absolute_CXX=yes
14608 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14609 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14610 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14611 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14612 export_dynamic_flag_spec_CXX='${wl}-E'
14613 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14615 output_verbose_link_cmd=func_echo_all
14616 else
14617 ld_shlibs_CXX=no
14621 osf3* | osf4* | osf5*)
14622 case $cc_basename in
14623 KCC*)
14624 # Kuck and Associates, Inc. (KAI) C++ Compiler
14626 # KCC will only create a shared library if the output file
14627 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14628 # to its proper name (with version) after linking.
14629 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'
14631 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14632 hardcode_libdir_separator_CXX=:
14634 # Archives containing C++ object files must be created using
14635 # the KAI C++ compiler.
14636 case $host in
14637 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14638 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14639 esac
14641 RCC*)
14642 # Rational C++ 2.4.1
14643 # FIXME: insert proper C++ library support
14644 ld_shlibs_CXX=no
14646 cxx*)
14647 case $host in
14648 osf3*)
14649 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14650 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'
14651 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14654 allow_undefined_flag_CXX=' -expect_unresolved \*'
14655 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'
14656 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14657 echo "-hidden">> $lib.exp~
14658 $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~
14659 $RM $lib.exp'
14660 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14662 esac
14664 hardcode_libdir_separator_CXX=:
14666 # Commands to make compiler produce verbose output that lists
14667 # what "hidden" libraries, object files and flags are used when
14668 # linking a shared library.
14670 # There doesn't appear to be a way to prevent this compiler from
14671 # explicitly linking system object files so we need to strip them
14672 # from the output so that they don't get included in the library
14673 # dependencies.
14674 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"'
14677 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14678 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14679 case $host in
14680 osf3*)
14681 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'
14684 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'
14686 esac
14688 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14689 hardcode_libdir_separator_CXX=:
14691 # Commands to make compiler produce verbose output that lists
14692 # what "hidden" libraries, object files and flags are used when
14693 # linking a shared library.
14694 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14696 else
14697 # FIXME: insert proper C++ library support
14698 ld_shlibs_CXX=no
14701 esac
14704 psos*)
14705 # FIXME: insert proper C++ library support
14706 ld_shlibs_CXX=no
14709 sunos4*)
14710 case $cc_basename in
14711 CC*)
14712 # Sun C++ 4.x
14713 # FIXME: insert proper C++ library support
14714 ld_shlibs_CXX=no
14716 lcc*)
14717 # Lucid
14718 # FIXME: insert proper C++ library support
14719 ld_shlibs_CXX=no
14722 # FIXME: insert proper C++ library support
14723 ld_shlibs_CXX=no
14725 esac
14728 solaris*)
14729 case $cc_basename in
14730 CC*)
14731 # Sun C++ 4.2, 5.x and Centerline C++
14732 archive_cmds_need_lc_CXX=yes
14733 no_undefined_flag_CXX=' -zdefs'
14734 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14735 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14736 $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'
14738 hardcode_libdir_flag_spec_CXX='-R$libdir'
14739 hardcode_shlibpath_var_CXX=no
14740 case $host_os in
14741 solaris2.[0-5] | solaris2.[0-5].*) ;;
14743 # The compiler driver will combine and reorder linker options,
14744 # but understands `-z linker_flag'.
14745 # Supported since Solaris 2.6 (maybe 2.5.1?)
14746 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14748 esac
14749 link_all_deplibs_CXX=yes
14751 output_verbose_link_cmd='func_echo_all'
14753 # Archives containing C++ object files must be created using
14754 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14755 # necessary to make sure instantiated templates are included
14756 # in the archive.
14757 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14759 gcx*)
14760 # Green Hills C++ Compiler
14761 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14763 # The C++ compiler must be used to create the archive.
14764 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14767 # GNU C++ compiler with Solaris linker
14768 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14769 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14770 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14771 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14772 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14773 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14775 # Commands to make compiler produce verbose output that lists
14776 # what "hidden" libraries, object files and flags are used when
14777 # linking a shared library.
14778 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14779 else
14780 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14781 # platform.
14782 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14783 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14784 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14786 # Commands to make compiler produce verbose output that lists
14787 # what "hidden" libraries, object files and flags are used when
14788 # linking a shared library.
14789 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14792 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14793 case $host_os in
14794 solaris2.[0-5] | solaris2.[0-5].*) ;;
14796 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14798 esac
14801 esac
14804 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14805 no_undefined_flag_CXX='${wl}-z,text'
14806 archive_cmds_need_lc_CXX=no
14807 hardcode_shlibpath_var_CXX=no
14808 runpath_var='LD_RUN_PATH'
14810 case $cc_basename in
14811 CC*)
14812 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14813 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14816 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14817 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14819 esac
14822 sysv5* | sco3.2v5* | sco5v6*)
14823 # Note: We can NOT use -z defs as we might desire, because we do not
14824 # link with -lc, and that would cause any symbols used from libc to
14825 # always be unresolved, which means just about no library would
14826 # ever link correctly. If we're not using GNU ld we use -z text
14827 # though, which does catch some bad symbols but isn't as heavy-handed
14828 # as -z defs.
14829 no_undefined_flag_CXX='${wl}-z,text'
14830 allow_undefined_flag_CXX='${wl}-z,nodefs'
14831 archive_cmds_need_lc_CXX=no
14832 hardcode_shlibpath_var_CXX=no
14833 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14834 hardcode_libdir_separator_CXX=':'
14835 link_all_deplibs_CXX=yes
14836 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14837 runpath_var='LD_RUN_PATH'
14839 case $cc_basename in
14840 CC*)
14841 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14842 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14843 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14844 '"$old_archive_cmds_CXX"
14845 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14846 '"$reload_cmds_CXX"
14849 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14850 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14852 esac
14855 tandem*)
14856 case $cc_basename in
14857 NCC*)
14858 # NonStop-UX NCC 3.20
14859 # FIXME: insert proper C++ library support
14860 ld_shlibs_CXX=no
14863 # FIXME: insert proper C++ library support
14864 ld_shlibs_CXX=no
14866 esac
14869 vxworks*)
14870 # FIXME: insert proper C++ library support
14871 ld_shlibs_CXX=no
14875 # FIXME: insert proper C++ library support
14876 ld_shlibs_CXX=no
14878 esac
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14881 $as_echo "$ld_shlibs_CXX" >&6; }
14882 test "$ld_shlibs_CXX" = no && can_build_shared=no
14884 GCC_CXX="$GXX"
14885 LD_CXX="$LD"
14887 ## CAVEAT EMPTOR:
14888 ## There is no encapsulation within the following macros, do not change
14889 ## the running order or otherwise move them around unless you know exactly
14890 ## what you are doing...
14891 # Dependencies to place before and after the object being linked:
14892 predep_objects_CXX=
14893 postdep_objects_CXX=
14894 predeps_CXX=
14895 postdeps_CXX=
14896 compiler_lib_search_path_CXX=
14898 cat > conftest.$ac_ext <<_LT_EOF
14899 class Foo
14901 public:
14902 Foo (void) { a = 0; }
14903 private:
14904 int a;
14906 _LT_EOF
14908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14909 (eval $ac_compile) 2>&5
14910 ac_status=$?
14911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14912 test $ac_status = 0; }; then
14913 # Parse the compiler output and extract the necessary
14914 # objects, libraries and library flags.
14916 # Sentinel used to keep track of whether or not we are before
14917 # the conftest object file.
14918 pre_test_object_deps_done=no
14920 for p in `eval "$output_verbose_link_cmd"`; do
14921 case $p in
14923 -L* | -R* | -l*)
14924 # Some compilers place space between "-{L,R}" and the path.
14925 # Remove the space.
14926 if test $p = "-L" ||
14927 test $p = "-R"; then
14928 prev=$p
14929 continue
14930 else
14931 prev=
14934 if test "$pre_test_object_deps_done" = no; then
14935 case $p in
14936 -L* | -R*)
14937 # Internal compiler library paths should come after those
14938 # provided the user. The postdeps already come after the
14939 # user supplied libs so there is no need to process them.
14940 if test -z "$compiler_lib_search_path_CXX"; then
14941 compiler_lib_search_path_CXX="${prev}${p}"
14942 else
14943 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14946 # The "-l" case would never come before the object being
14947 # linked, so don't bother handling this case.
14948 esac
14949 else
14950 if test -z "$postdeps_CXX"; then
14951 postdeps_CXX="${prev}${p}"
14952 else
14953 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14958 *.$objext)
14959 # This assumes that the test object file only shows up
14960 # once in the compiler output.
14961 if test "$p" = "conftest.$objext"; then
14962 pre_test_object_deps_done=yes
14963 continue
14966 if test "$pre_test_object_deps_done" = no; then
14967 if test -z "$predep_objects_CXX"; then
14968 predep_objects_CXX="$p"
14969 else
14970 predep_objects_CXX="$predep_objects_CXX $p"
14972 else
14973 if test -z "$postdep_objects_CXX"; then
14974 postdep_objects_CXX="$p"
14975 else
14976 postdep_objects_CXX="$postdep_objects_CXX $p"
14981 *) ;; # Ignore the rest.
14983 esac
14984 done
14986 # Clean up.
14987 rm -f a.out a.exe
14988 else
14989 echo "libtool.m4: error: problem compiling CXX test program"
14992 $RM -f confest.$objext
14994 # PORTME: override above test on systems where it is broken
14995 case $host_os in
14996 interix[3-9]*)
14997 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14998 # hack all around it, let's just trust "g++" to DTRT.
14999 predep_objects_CXX=
15000 postdep_objects_CXX=
15001 postdeps_CXX=
15004 linux*)
15005 case `$CC -V 2>&1 | sed 5q` in
15006 *Sun\ C*)
15007 # Sun C++ 5.9
15009 # The more standards-conforming stlport4 library is
15010 # incompatible with the Cstd library. Avoid specifying
15011 # it if it's in CXXFLAGS. Ignore libCrun as
15012 # -library=stlport4 depends on it.
15013 case " $CXX $CXXFLAGS " in
15014 *" -library=stlport4 "*)
15015 solaris_use_stlport4=yes
15017 esac
15019 if test "$solaris_use_stlport4" != yes; then
15020 postdeps_CXX='-library=Cstd -library=Crun'
15023 esac
15026 solaris*)
15027 case $cc_basename in
15028 CC*)
15029 # The more standards-conforming stlport4 library is
15030 # incompatible with the Cstd library. Avoid specifying
15031 # it if it's in CXXFLAGS. Ignore libCrun as
15032 # -library=stlport4 depends on it.
15033 case " $CXX $CXXFLAGS " in
15034 *" -library=stlport4 "*)
15035 solaris_use_stlport4=yes
15037 esac
15039 # Adding this requires a known-good setup of shared libraries for
15040 # Sun compiler versions before 5.6, else PIC objects from an old
15041 # archive will be linked into the output, leading to subtle bugs.
15042 if test "$solaris_use_stlport4" != yes; then
15043 postdeps_CXX='-library=Cstd -library=Crun'
15046 esac
15048 esac
15051 case " $postdeps_CXX " in
15052 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15053 esac
15054 compiler_lib_search_dirs_CXX=
15055 if test -n "${compiler_lib_search_path_CXX}"; then
15056 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15089 lt_prog_compiler_wl_CXX=
15090 lt_prog_compiler_pic_CXX=
15091 lt_prog_compiler_static_CXX=
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15094 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15096 # C++ specific cases for pic, static, wl, etc.
15097 if test "$GXX" = yes; then
15098 lt_prog_compiler_wl_CXX='-Wl,'
15099 lt_prog_compiler_static_CXX='-static'
15101 case $host_os in
15102 aix*)
15103 # All AIX code is PIC.
15104 if test "$host_cpu" = ia64; then
15105 # AIX 5 now supports IA64 processor
15106 lt_prog_compiler_static_CXX='-Bstatic'
15108 lt_prog_compiler_pic_CXX='-fPIC'
15111 amigaos*)
15112 case $host_cpu in
15113 powerpc)
15114 # see comment about AmigaOS4 .so support
15115 lt_prog_compiler_pic_CXX='-fPIC'
15117 m68k)
15118 # FIXME: we need at least 68020 code to build shared libraries, but
15119 # adding the `-m68020' flag to GCC prevents building anything better,
15120 # like `-m68040'.
15121 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15123 esac
15126 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15127 # PIC is the default for these OSes.
15129 mingw* | cygwin* | os2* | pw32* | cegcc*)
15130 # This hack is so that the source file can tell whether it is being
15131 # built for inclusion in a dll (and should export symbols for example).
15132 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15133 # (--disable-auto-import) libraries
15134 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15136 darwin* | rhapsody*)
15137 # PIC is the default on this platform
15138 # Common symbols not allowed in MH_DYLIB files
15139 lt_prog_compiler_pic_CXX='-fno-common'
15141 *djgpp*)
15142 # DJGPP does not support shared libraries at all
15143 lt_prog_compiler_pic_CXX=
15145 haiku*)
15146 # PIC is the default for Haiku.
15147 # The "-static" flag exists, but is broken.
15148 lt_prog_compiler_static_CXX=
15150 interix[3-9]*)
15151 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15152 # Instead, we relocate shared libraries at runtime.
15154 sysv4*MP*)
15155 if test -d /usr/nec; then
15156 lt_prog_compiler_pic_CXX=-Kconform_pic
15159 hpux*)
15160 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15161 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15162 # sets the default TLS model and affects inlining.
15163 case $host_cpu in
15164 hppa*64*)
15167 lt_prog_compiler_pic_CXX='-fPIC'
15169 esac
15171 *qnx* | *nto*)
15172 # QNX uses GNU C++, but need to define -shared option too, otherwise
15173 # it will coredump.
15174 lt_prog_compiler_pic_CXX='-fPIC -shared'
15177 lt_prog_compiler_pic_CXX='-fPIC'
15179 esac
15180 else
15181 case $host_os in
15182 aix[4-9]*)
15183 # All AIX code is PIC.
15184 if test "$host_cpu" = ia64; then
15185 # AIX 5 now supports IA64 processor
15186 lt_prog_compiler_static_CXX='-Bstatic'
15187 else
15188 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15191 chorus*)
15192 case $cc_basename in
15193 cxch68*)
15194 # Green Hills C++ Compiler
15195 # _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"
15197 esac
15199 dgux*)
15200 case $cc_basename in
15201 ec++*)
15202 lt_prog_compiler_pic_CXX='-KPIC'
15204 ghcx*)
15205 # Green Hills C++ Compiler
15206 lt_prog_compiler_pic_CXX='-pic'
15210 esac
15212 freebsd* | dragonfly*)
15213 # FreeBSD uses GNU C++
15215 hpux9* | hpux10* | hpux11*)
15216 case $cc_basename in
15217 CC*)
15218 lt_prog_compiler_wl_CXX='-Wl,'
15219 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15220 if test "$host_cpu" != ia64; then
15221 lt_prog_compiler_pic_CXX='+Z'
15224 aCC*)
15225 lt_prog_compiler_wl_CXX='-Wl,'
15226 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15227 case $host_cpu in
15228 hppa*64*|ia64*)
15229 # +Z the default
15232 lt_prog_compiler_pic_CXX='+Z'
15234 esac
15238 esac
15240 interix*)
15241 # This is c89, which is MS Visual C++ (no shared libs)
15242 # Anyone wants to do a port?
15244 irix5* | irix6* | nonstopux*)
15245 case $cc_basename in
15246 CC*)
15247 lt_prog_compiler_wl_CXX='-Wl,'
15248 lt_prog_compiler_static_CXX='-non_shared'
15249 # CC pic flag -KPIC is the default.
15253 esac
15255 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15256 case $cc_basename in
15257 KCC*)
15258 # KAI C++ Compiler
15259 lt_prog_compiler_wl_CXX='--backend -Wl,'
15260 lt_prog_compiler_pic_CXX='-fPIC'
15262 ecpc* )
15263 # old Intel C++ for x86_64 which still supported -KPIC.
15264 lt_prog_compiler_wl_CXX='-Wl,'
15265 lt_prog_compiler_pic_CXX='-KPIC'
15266 lt_prog_compiler_static_CXX='-static'
15268 icpc* )
15269 # Intel C++, used to be incompatible with GCC.
15270 # ICC 10 doesn't accept -KPIC any more.
15271 lt_prog_compiler_wl_CXX='-Wl,'
15272 lt_prog_compiler_pic_CXX='-fPIC'
15273 lt_prog_compiler_static_CXX='-static'
15275 pgCC* | pgcpp*)
15276 # Portland Group C++ compiler
15277 lt_prog_compiler_wl_CXX='-Wl,'
15278 lt_prog_compiler_pic_CXX='-fpic'
15279 lt_prog_compiler_static_CXX='-Bstatic'
15281 cxx*)
15282 # Compaq C++
15283 # Make sure the PIC flag is empty. It appears that all Alpha
15284 # Linux and Compaq Tru64 Unix objects are PIC.
15285 lt_prog_compiler_pic_CXX=
15286 lt_prog_compiler_static_CXX='-non_shared'
15288 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15289 # IBM XL 8.0, 9.0 on PPC and BlueGene
15290 lt_prog_compiler_wl_CXX='-Wl,'
15291 lt_prog_compiler_pic_CXX='-qpic'
15292 lt_prog_compiler_static_CXX='-qstaticlink'
15295 case `$CC -V 2>&1 | sed 5q` in
15296 *Sun\ C*)
15297 # Sun C++ 5.9
15298 lt_prog_compiler_pic_CXX='-KPIC'
15299 lt_prog_compiler_static_CXX='-Bstatic'
15300 lt_prog_compiler_wl_CXX='-Qoption ld '
15302 esac
15304 esac
15306 lynxos*)
15308 m88k*)
15310 mvs*)
15311 case $cc_basename in
15312 cxx*)
15313 lt_prog_compiler_pic_CXX='-W c,exportall'
15317 esac
15319 netbsd*)
15321 *qnx* | *nto*)
15322 # QNX uses GNU C++, but need to define -shared option too, otherwise
15323 # it will coredump.
15324 lt_prog_compiler_pic_CXX='-fPIC -shared'
15326 osf3* | osf4* | osf5*)
15327 case $cc_basename in
15328 KCC*)
15329 lt_prog_compiler_wl_CXX='--backend -Wl,'
15331 RCC*)
15332 # Rational C++ 2.4.1
15333 lt_prog_compiler_pic_CXX='-pic'
15335 cxx*)
15336 # Digital/Compaq C++
15337 lt_prog_compiler_wl_CXX='-Wl,'
15338 # Make sure the PIC flag is empty. It appears that all Alpha
15339 # Linux and Compaq Tru64 Unix objects are PIC.
15340 lt_prog_compiler_pic_CXX=
15341 lt_prog_compiler_static_CXX='-non_shared'
15345 esac
15347 psos*)
15349 solaris*)
15350 case $cc_basename in
15351 CC*)
15352 # Sun C++ 4.2, 5.x and Centerline C++
15353 lt_prog_compiler_pic_CXX='-KPIC'
15354 lt_prog_compiler_static_CXX='-Bstatic'
15355 lt_prog_compiler_wl_CXX='-Qoption ld '
15357 gcx*)
15358 # Green Hills C++ Compiler
15359 lt_prog_compiler_pic_CXX='-PIC'
15363 esac
15365 sunos4*)
15366 case $cc_basename in
15367 CC*)
15368 # Sun C++ 4.x
15369 lt_prog_compiler_pic_CXX='-pic'
15370 lt_prog_compiler_static_CXX='-Bstatic'
15372 lcc*)
15373 # Lucid
15374 lt_prog_compiler_pic_CXX='-pic'
15378 esac
15380 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15381 case $cc_basename in
15382 CC*)
15383 lt_prog_compiler_wl_CXX='-Wl,'
15384 lt_prog_compiler_pic_CXX='-KPIC'
15385 lt_prog_compiler_static_CXX='-Bstatic'
15387 esac
15389 tandem*)
15390 case $cc_basename in
15391 NCC*)
15392 # NonStop-UX NCC 3.20
15393 lt_prog_compiler_pic_CXX='-KPIC'
15397 esac
15399 vxworks*)
15402 lt_prog_compiler_can_build_shared_CXX=no
15404 esac
15407 case $host_os in
15408 # For platforms which do not support PIC, -DPIC is meaningless:
15409 *djgpp*)
15410 lt_prog_compiler_pic_CXX=
15413 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15415 esac
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15417 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15422 # Check to make sure the PIC flag actually works.
15424 if test -n "$lt_prog_compiler_pic_CXX"; then
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15426 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15427 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15428 $as_echo_n "(cached) " >&6
15429 else
15430 lt_cv_prog_compiler_pic_works_CXX=no
15431 ac_outfile=conftest.$ac_objext
15432 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15433 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15434 # Insert the option either (1) after the last *FLAGS variable, or
15435 # (2) before a word containing "conftest.", or (3) at the end.
15436 # Note that $ac_compile itself does not contain backslashes and begins
15437 # with a dollar sign (not a hyphen), so the echo should work correctly.
15438 # The option is referenced via a variable to avoid confusing sed.
15439 lt_compile=`echo "$ac_compile" | $SED \
15440 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15441 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15442 -e 's:$: $lt_compiler_flag:'`
15443 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15444 (eval "$lt_compile" 2>conftest.err)
15445 ac_status=$?
15446 cat conftest.err >&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 if (exit $ac_status) && test -s "$ac_outfile"; then
15449 # The compiler can only warn and ignore the option if not recognized
15450 # So say no if there are warnings other than the usual output.
15451 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15452 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15453 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15454 lt_cv_prog_compiler_pic_works_CXX=yes
15457 $RM conftest*
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15461 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15463 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15464 case $lt_prog_compiler_pic_CXX in
15465 "" | " "*) ;;
15466 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15467 esac
15468 else
15469 lt_prog_compiler_pic_CXX=
15470 lt_prog_compiler_can_build_shared_CXX=no
15478 # Check to make sure the static flag actually works.
15480 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15482 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15483 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15484 $as_echo_n "(cached) " >&6
15485 else
15486 lt_cv_prog_compiler_static_works_CXX=no
15487 save_LDFLAGS="$LDFLAGS"
15488 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15489 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15490 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15491 # The linker can only warn and ignore the option if not recognized
15492 # So say no if there are warnings
15493 if test -s conftest.err; then
15494 # Append any errors to the config.log.
15495 cat conftest.err 1>&5
15496 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15498 if diff conftest.exp conftest.er2 >/dev/null; then
15499 lt_cv_prog_compiler_static_works_CXX=yes
15501 else
15502 lt_cv_prog_compiler_static_works_CXX=yes
15505 $RM -r conftest*
15506 LDFLAGS="$save_LDFLAGS"
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15510 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15512 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15514 else
15515 lt_prog_compiler_static_CXX=
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15522 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15523 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15524 $as_echo_n "(cached) " >&6
15525 else
15526 lt_cv_prog_compiler_c_o_CXX=no
15527 $RM -r conftest 2>/dev/null
15528 mkdir conftest
15529 cd conftest
15530 mkdir out
15531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15533 lt_compiler_flag="-o out/conftest2.$ac_objext"
15534 # Insert the option either (1) after the last *FLAGS variable, or
15535 # (2) before a word containing "conftest.", or (3) at the end.
15536 # Note that $ac_compile itself does not contain backslashes and begins
15537 # with a dollar sign (not a hyphen), so the echo should work correctly.
15538 lt_compile=`echo "$ac_compile" | $SED \
15539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15541 -e 's:$: $lt_compiler_flag:'`
15542 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15543 (eval "$lt_compile" 2>out/conftest.err)
15544 ac_status=$?
15545 cat out/conftest.err >&5
15546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15548 then
15549 # The compiler can only warn and ignore the option if not recognized
15550 # So say no if there are warnings
15551 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15552 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15553 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15554 lt_cv_prog_compiler_c_o_CXX=yes
15557 chmod u+w . 2>&5
15558 $RM conftest*
15559 # SGI C++ compiler will create directory out/ii_files/ for
15560 # template instantiation
15561 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15562 $RM out/* && rmdir out
15563 cd ..
15564 $RM -r conftest
15565 $RM conftest*
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15569 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15574 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15575 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15576 $as_echo_n "(cached) " >&6
15577 else
15578 lt_cv_prog_compiler_c_o_CXX=no
15579 $RM -r conftest 2>/dev/null
15580 mkdir conftest
15581 cd conftest
15582 mkdir out
15583 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15585 lt_compiler_flag="-o out/conftest2.$ac_objext"
15586 # Insert the option either (1) after the last *FLAGS variable, or
15587 # (2) before a word containing "conftest.", or (3) at the end.
15588 # Note that $ac_compile itself does not contain backslashes and begins
15589 # with a dollar sign (not a hyphen), so the echo should work correctly.
15590 lt_compile=`echo "$ac_compile" | $SED \
15591 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15593 -e 's:$: $lt_compiler_flag:'`
15594 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15595 (eval "$lt_compile" 2>out/conftest.err)
15596 ac_status=$?
15597 cat out/conftest.err >&5
15598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15600 then
15601 # The compiler can only warn and ignore the option if not recognized
15602 # So say no if there are warnings
15603 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15604 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15605 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15606 lt_cv_prog_compiler_c_o_CXX=yes
15609 chmod u+w . 2>&5
15610 $RM conftest*
15611 # SGI C++ compiler will create directory out/ii_files/ for
15612 # template instantiation
15613 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15614 $RM out/* && rmdir out
15615 cd ..
15616 $RM -r conftest
15617 $RM conftest*
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15621 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15626 hard_links="nottested"
15627 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15628 # do not overwrite the value of need_locks provided by the user
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15630 $as_echo_n "checking if we can lock with hard links... " >&6; }
15631 hard_links=yes
15632 $RM conftest*
15633 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15634 touch conftest.a
15635 ln conftest.a conftest.b 2>&5 || hard_links=no
15636 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15638 $as_echo "$hard_links" >&6; }
15639 if test "$hard_links" = no; then
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15641 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15642 need_locks=warn
15644 else
15645 need_locks=no
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15651 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15653 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15654 case $host_os in
15655 aix[4-9]*)
15656 # If we're using GNU nm, then we don't want the "-C" option.
15657 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15658 # Also, AIX nm treats weak defined symbols like other global defined
15659 # symbols, whereas GNU nm marks them as "W".
15660 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15661 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'
15662 else
15663 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15666 pw32*)
15667 export_symbols_cmds_CXX="$ltdll_cmds"
15669 cygwin* | mingw* | cegcc*)
15670 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'
15673 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15675 esac
15676 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15679 $as_echo "$ld_shlibs_CXX" >&6; }
15680 test "$ld_shlibs_CXX" = no && can_build_shared=no
15682 with_gnu_ld_CXX=$with_gnu_ld
15690 # Do we need to explicitly link libc?
15692 case "x$archive_cmds_need_lc_CXX" in
15693 x|xyes)
15694 # Assume -lc should be added
15695 archive_cmds_need_lc_CXX=yes
15697 if test "$enable_shared" = yes && test "$GCC" = yes; then
15698 case $archive_cmds_CXX in
15699 *'~'*)
15700 # FIXME: we may have to deal with multi-command sequences.
15702 '$CC '*)
15703 # Test whether the compiler implicitly links with -lc since on some
15704 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15705 # to ld, don't add -lc before -lgcc.
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15707 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15708 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15709 $as_echo_n "(cached) " >&6
15710 else
15711 $RM conftest*
15712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15715 (eval $ac_compile) 2>&5
15716 ac_status=$?
15717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15718 test $ac_status = 0; } 2>conftest.err; then
15719 soname=conftest
15720 lib=conftest
15721 libobjs=conftest.$ac_objext
15722 deplibs=
15723 wl=$lt_prog_compiler_wl_CXX
15724 pic_flag=$lt_prog_compiler_pic_CXX
15725 compiler_flags=-v
15726 linker_flags=-v
15727 verstring=
15728 output_objdir=.
15729 libname=conftest
15730 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15731 allow_undefined_flag_CXX=
15732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15733 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15734 ac_status=$?
15735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15736 test $ac_status = 0; }
15737 then
15738 lt_cv_archive_cmds_need_lc_CXX=no
15739 else
15740 lt_cv_archive_cmds_need_lc_CXX=yes
15742 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15743 else
15744 cat conftest.err 1>&5
15746 $RM conftest*
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15750 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15751 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15753 esac
15756 esac
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15822 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15824 library_names_spec=
15825 libname_spec='lib$name'
15826 soname_spec=
15827 shrext_cmds=".so"
15828 postinstall_cmds=
15829 postuninstall_cmds=
15830 finish_cmds=
15831 finish_eval=
15832 shlibpath_var=
15833 shlibpath_overrides_runpath=unknown
15834 version_type=none
15835 dynamic_linker="$host_os ld.so"
15836 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15837 need_lib_prefix=unknown
15838 hardcode_into_libs=no
15840 # when you set need_version to no, make sure it does not cause -set_version
15841 # flags to be left without arguments
15842 need_version=unknown
15844 case $host_os in
15845 aix3*)
15846 version_type=linux
15847 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15848 shlibpath_var=LIBPATH
15850 # AIX 3 has no versioning support, so we append a major version to the name.
15851 soname_spec='${libname}${release}${shared_ext}$major'
15854 aix[4-9]*)
15855 version_type=linux
15856 need_lib_prefix=no
15857 need_version=no
15858 hardcode_into_libs=yes
15859 if test "$host_cpu" = ia64; then
15860 # AIX 5 supports IA64
15861 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15862 shlibpath_var=LD_LIBRARY_PATH
15863 else
15864 # With GCC up to 2.95.x, collect2 would create an import file
15865 # for dependence libraries. The import file would start with
15866 # the line `#! .'. This would cause the generated library to
15867 # depend on `.', always an invalid library. This was fixed in
15868 # development snapshots of GCC prior to 3.0.
15869 case $host_os in
15870 aix4 | aix4.[01] | aix4.[01].*)
15871 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15872 echo ' yes '
15873 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15875 else
15876 can_build_shared=no
15879 esac
15880 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15881 # soname into executable. Probably we can add versioning support to
15882 # collect2, so additional links can be useful in future.
15883 if test "$aix_use_runtimelinking" = yes; then
15884 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15885 # instead of lib<name>.a to let people know that these are not
15886 # typical AIX shared libraries.
15887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15888 else
15889 # We preserve .a as extension for shared libraries through AIX4.2
15890 # and later when we are not doing run time linking.
15891 library_names_spec='${libname}${release}.a $libname.a'
15892 soname_spec='${libname}${release}${shared_ext}$major'
15894 shlibpath_var=LIBPATH
15898 amigaos*)
15899 case $host_cpu in
15900 powerpc)
15901 # Since July 2007 AmigaOS4 officially supports .so libraries.
15902 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15905 m68k)
15906 library_names_spec='$libname.ixlibrary $libname.a'
15907 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15908 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'
15910 esac
15913 beos*)
15914 library_names_spec='${libname}${shared_ext}'
15915 dynamic_linker="$host_os ld.so"
15916 shlibpath_var=LIBRARY_PATH
15919 bsdi[45]*)
15920 version_type=linux
15921 need_version=no
15922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923 soname_spec='${libname}${release}${shared_ext}$major'
15924 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15925 shlibpath_var=LD_LIBRARY_PATH
15926 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15927 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15928 # the default ld.so.conf also contains /usr/contrib/lib and
15929 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15930 # libtool to hard-code these into programs
15933 cygwin* | mingw* | pw32* | cegcc*)
15934 version_type=windows
15935 shrext_cmds=".dll"
15936 need_version=no
15937 need_lib_prefix=no
15939 case $GCC,$host_os in
15940 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15941 library_names_spec='$libname.dll.a'
15942 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15943 postinstall_cmds='base_file=`basename \${file}`~
15944 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15945 dldir=$destdir/`dirname \$dlpath`~
15946 test -d \$dldir || mkdir -p \$dldir~
15947 $install_prog $dir/$dlname \$dldir/$dlname~
15948 chmod a+x \$dldir/$dlname~
15949 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15950 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15952 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15953 dlpath=$dir/\$dldll~
15954 $RM \$dlpath'
15955 shlibpath_overrides_runpath=yes
15957 case $host_os in
15958 cygwin*)
15959 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15960 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15963 mingw* | cegcc*)
15964 # MinGW DLLs use traditional 'lib' prefix
15965 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15967 pw32*)
15968 # pw32 DLLs use 'pw' prefix rather than 'lib'
15969 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15971 esac
15975 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15977 esac
15978 dynamic_linker='Win32 ld.exe'
15979 # FIXME: first we should search . and the directory the executable is in
15980 shlibpath_var=PATH
15983 darwin* | rhapsody*)
15984 dynamic_linker="$host_os dyld"
15985 version_type=darwin
15986 need_lib_prefix=no
15987 need_version=no
15988 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15989 soname_spec='${libname}${release}${major}$shared_ext'
15990 shlibpath_overrides_runpath=yes
15991 shlibpath_var=DYLD_LIBRARY_PATH
15992 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15994 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15997 dgux*)
15998 version_type=linux
15999 need_lib_prefix=no
16000 need_version=no
16001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16002 soname_spec='${libname}${release}${shared_ext}$major'
16003 shlibpath_var=LD_LIBRARY_PATH
16006 freebsd* | dragonfly*)
16007 # DragonFly does not have aout. When/if they implement a new
16008 # versioning mechanism, adjust this.
16009 if test -x /usr/bin/objformat; then
16010 objformat=`/usr/bin/objformat`
16011 else
16012 case $host_os in
16013 freebsd[23].*) objformat=aout ;;
16014 *) objformat=elf ;;
16015 esac
16017 version_type=freebsd-$objformat
16018 case $version_type in
16019 freebsd-elf*)
16020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16021 need_version=no
16022 need_lib_prefix=no
16024 freebsd-*)
16025 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16026 need_version=yes
16028 esac
16029 shlibpath_var=LD_LIBRARY_PATH
16030 case $host_os in
16031 freebsd2.*)
16032 shlibpath_overrides_runpath=yes
16034 freebsd3.[01]* | freebsdelf3.[01]*)
16035 shlibpath_overrides_runpath=yes
16036 hardcode_into_libs=yes
16038 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16039 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16040 shlibpath_overrides_runpath=no
16041 hardcode_into_libs=yes
16043 *) # from 4.6 on, and DragonFly
16044 shlibpath_overrides_runpath=yes
16045 hardcode_into_libs=yes
16047 esac
16050 gnu*)
16051 version_type=linux
16052 need_lib_prefix=no
16053 need_version=no
16054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16055 soname_spec='${libname}${release}${shared_ext}$major'
16056 shlibpath_var=LD_LIBRARY_PATH
16057 hardcode_into_libs=yes
16060 haiku*)
16061 version_type=linux
16062 need_lib_prefix=no
16063 need_version=no
16064 dynamic_linker="$host_os runtime_loader"
16065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16066 soname_spec='${libname}${release}${shared_ext}$major'
16067 shlibpath_var=LIBRARY_PATH
16068 shlibpath_overrides_runpath=yes
16069 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16070 hardcode_into_libs=yes
16073 hpux9* | hpux10* | hpux11*)
16074 # Give a soname corresponding to the major version so that dld.sl refuses to
16075 # link against other versions.
16076 version_type=sunos
16077 need_lib_prefix=no
16078 need_version=no
16079 case $host_cpu in
16080 ia64*)
16081 shrext_cmds='.so'
16082 hardcode_into_libs=yes
16083 dynamic_linker="$host_os dld.so"
16084 shlibpath_var=LD_LIBRARY_PATH
16085 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087 soname_spec='${libname}${release}${shared_ext}$major'
16088 if test "X$HPUX_IA64_MODE" = X32; then
16089 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16090 else
16091 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16093 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16095 hppa*64*)
16096 shrext_cmds='.sl'
16097 hardcode_into_libs=yes
16098 dynamic_linker="$host_os dld.sl"
16099 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16100 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16102 soname_spec='${libname}${release}${shared_ext}$major'
16103 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16104 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16107 shrext_cmds='.sl'
16108 dynamic_linker="$host_os dld.sl"
16109 shlibpath_var=SHLIB_PATH
16110 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112 soname_spec='${libname}${release}${shared_ext}$major'
16114 esac
16115 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16116 postinstall_cmds='chmod 555 $lib'
16117 # or fails outright, so override atomically:
16118 install_override_mode=555
16121 interix[3-9]*)
16122 version_type=linux
16123 need_lib_prefix=no
16124 need_version=no
16125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16126 soname_spec='${libname}${release}${shared_ext}$major'
16127 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16128 shlibpath_var=LD_LIBRARY_PATH
16129 shlibpath_overrides_runpath=no
16130 hardcode_into_libs=yes
16133 irix5* | irix6* | nonstopux*)
16134 case $host_os in
16135 nonstopux*) version_type=nonstopux ;;
16137 if test "$lt_cv_prog_gnu_ld" = yes; then
16138 version_type=linux
16139 else
16140 version_type=irix
16141 fi ;;
16142 esac
16143 need_lib_prefix=no
16144 need_version=no
16145 soname_spec='${libname}${release}${shared_ext}$major'
16146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16147 case $host_os in
16148 irix5* | nonstopux*)
16149 libsuff= shlibsuff=
16152 case $LD in # libtool.m4 will add one of these switches to LD
16153 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16154 libsuff= shlibsuff= libmagic=32-bit;;
16155 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16156 libsuff=32 shlibsuff=N32 libmagic=N32;;
16157 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16158 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16159 *) libsuff= shlibsuff= libmagic=never-match;;
16160 esac
16162 esac
16163 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16164 shlibpath_overrides_runpath=no
16165 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16166 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16167 hardcode_into_libs=yes
16170 # No shared lib support for Linux oldld, aout, or coff.
16171 linux*oldld* | linux*aout* | linux*coff*)
16172 dynamic_linker=no
16175 # This must be Linux ELF.
16176 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16177 version_type=linux
16178 need_lib_prefix=no
16179 need_version=no
16180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16181 soname_spec='${libname}${release}${shared_ext}$major'
16182 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16183 shlibpath_var=LD_LIBRARY_PATH
16184 shlibpath_overrides_runpath=no
16186 # Some binutils ld are patched to set DT_RUNPATH
16187 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16188 $as_echo_n "(cached) " >&6
16189 else
16190 lt_cv_shlibpath_overrides_runpath=no
16191 save_LDFLAGS=$LDFLAGS
16192 save_libdir=$libdir
16193 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16194 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16195 if test x$gcc_no_link = xyes; then
16196 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16199 /* end confdefs.h. */
16202 main ()
16206 return 0;
16208 _ACEOF
16209 if ac_fn_cxx_try_link "$LINENO"; then :
16210 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16211 lt_cv_shlibpath_overrides_runpath=yes
16214 rm -f core conftest.err conftest.$ac_objext \
16215 conftest$ac_exeext conftest.$ac_ext
16216 LDFLAGS=$save_LDFLAGS
16217 libdir=$save_libdir
16221 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16223 # This implies no fast_install, which is unacceptable.
16224 # Some rework will be needed to allow for fast_install
16225 # before this can be enabled.
16226 hardcode_into_libs=yes
16228 # Append ld.so.conf contents to the search path
16229 if test -f /etc/ld.so.conf; then
16230 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' ' '`
16231 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16234 # We used to test for /lib/ld.so.1 and disable shared libraries on
16235 # powerpc, because MkLinux only supported shared libraries with the
16236 # GNU dynamic linker. Since this was broken with cross compilers,
16237 # most powerpc-linux boxes support dynamic linking these days and
16238 # people can always --disable-shared, the test was removed, and we
16239 # assume the GNU/Linux dynamic linker is in use.
16240 dynamic_linker='GNU/Linux ld.so'
16243 netbsd*)
16244 version_type=sunos
16245 need_lib_prefix=no
16246 need_version=no
16247 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16250 dynamic_linker='NetBSD (a.out) ld.so'
16251 else
16252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16253 soname_spec='${libname}${release}${shared_ext}$major'
16254 dynamic_linker='NetBSD ld.elf_so'
16256 shlibpath_var=LD_LIBRARY_PATH
16257 shlibpath_overrides_runpath=yes
16258 hardcode_into_libs=yes
16261 newsos6)
16262 version_type=linux
16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264 shlibpath_var=LD_LIBRARY_PATH
16265 shlibpath_overrides_runpath=yes
16268 *nto* | *qnx*)
16269 version_type=qnx
16270 need_lib_prefix=no
16271 need_version=no
16272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16273 soname_spec='${libname}${release}${shared_ext}$major'
16274 shlibpath_var=LD_LIBRARY_PATH
16275 shlibpath_overrides_runpath=no
16276 hardcode_into_libs=yes
16277 dynamic_linker='ldqnx.so'
16280 openbsd*)
16281 version_type=sunos
16282 sys_lib_dlsearch_path_spec="/usr/lib"
16283 need_lib_prefix=no
16284 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16285 case $host_os in
16286 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16287 *) need_version=no ;;
16288 esac
16289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16291 shlibpath_var=LD_LIBRARY_PATH
16292 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16293 case $host_os in
16294 openbsd2.[89] | openbsd2.[89].*)
16295 shlibpath_overrides_runpath=no
16298 shlibpath_overrides_runpath=yes
16300 esac
16301 else
16302 shlibpath_overrides_runpath=yes
16306 os2*)
16307 libname_spec='$name'
16308 shrext_cmds=".dll"
16309 need_lib_prefix=no
16310 library_names_spec='$libname${shared_ext} $libname.a'
16311 dynamic_linker='OS/2 ld.exe'
16312 shlibpath_var=LIBPATH
16315 osf3* | osf4* | osf5*)
16316 version_type=osf
16317 need_lib_prefix=no
16318 need_version=no
16319 soname_spec='${libname}${release}${shared_ext}$major'
16320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16321 shlibpath_var=LD_LIBRARY_PATH
16322 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16323 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16326 rdos*)
16327 dynamic_linker=no
16330 solaris*)
16331 version_type=linux
16332 need_lib_prefix=no
16333 need_version=no
16334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16335 soname_spec='${libname}${release}${shared_ext}$major'
16336 shlibpath_var=LD_LIBRARY_PATH
16337 shlibpath_overrides_runpath=yes
16338 hardcode_into_libs=yes
16339 # ldd complains unless libraries are executable
16340 postinstall_cmds='chmod +x $lib'
16343 sunos4*)
16344 version_type=sunos
16345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16346 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16347 shlibpath_var=LD_LIBRARY_PATH
16348 shlibpath_overrides_runpath=yes
16349 if test "$with_gnu_ld" = yes; then
16350 need_lib_prefix=no
16352 need_version=yes
16355 sysv4 | sysv4.3*)
16356 version_type=linux
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358 soname_spec='${libname}${release}${shared_ext}$major'
16359 shlibpath_var=LD_LIBRARY_PATH
16360 case $host_vendor in
16361 sni)
16362 shlibpath_overrides_runpath=no
16363 need_lib_prefix=no
16364 runpath_var=LD_RUN_PATH
16366 siemens)
16367 need_lib_prefix=no
16369 motorola)
16370 need_lib_prefix=no
16371 need_version=no
16372 shlibpath_overrides_runpath=no
16373 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16375 esac
16378 sysv4*MP*)
16379 if test -d /usr/nec ;then
16380 version_type=linux
16381 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16382 soname_spec='$libname${shared_ext}.$major'
16383 shlibpath_var=LD_LIBRARY_PATH
16387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16388 version_type=freebsd-elf
16389 need_lib_prefix=no
16390 need_version=no
16391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16392 soname_spec='${libname}${release}${shared_ext}$major'
16393 shlibpath_var=LD_LIBRARY_PATH
16394 shlibpath_overrides_runpath=yes
16395 hardcode_into_libs=yes
16396 if test "$with_gnu_ld" = yes; then
16397 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16398 else
16399 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16400 case $host_os in
16401 sco3.2v5*)
16402 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16404 esac
16406 sys_lib_dlsearch_path_spec='/usr/lib'
16409 tpf*)
16410 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16411 version_type=linux
16412 need_lib_prefix=no
16413 need_version=no
16414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16415 shlibpath_var=LD_LIBRARY_PATH
16416 shlibpath_overrides_runpath=no
16417 hardcode_into_libs=yes
16420 uts4*)
16421 version_type=linux
16422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16423 soname_spec='${libname}${release}${shared_ext}$major'
16424 shlibpath_var=LD_LIBRARY_PATH
16428 dynamic_linker=no
16430 esac
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16432 $as_echo "$dynamic_linker" >&6; }
16433 test "$dynamic_linker" = no && can_build_shared=no
16435 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16436 if test "$GCC" = yes; then
16437 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16440 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16441 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16443 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16444 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16485 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16486 hardcode_action_CXX=
16487 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16488 test -n "$runpath_var_CXX" ||
16489 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16491 # We can hardcode non-existent directories.
16492 if test "$hardcode_direct_CXX" != no &&
16493 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16494 # have to relink, otherwise we might link with an installed library
16495 # when we should be linking with a yet-to-be-installed one
16496 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16497 test "$hardcode_minus_L_CXX" != no; then
16498 # Linking always hardcodes the temporary library directory.
16499 hardcode_action_CXX=relink
16500 else
16501 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16502 hardcode_action_CXX=immediate
16504 else
16505 # We cannot hardcode anything, or else we can only hardcode existing
16506 # directories.
16507 hardcode_action_CXX=unsupported
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16510 $as_echo "$hardcode_action_CXX" >&6; }
16512 if test "$hardcode_action_CXX" = relink ||
16513 test "$inherit_rpath_CXX" = yes; then
16514 # Fast installation is not supported
16515 enable_fast_install=no
16516 elif test "$shlibpath_overrides_runpath" = yes ||
16517 test "$enable_shared" = no; then
16518 # Fast installation is not necessary
16519 enable_fast_install=needless
16528 fi # test -n "$compiler"
16530 CC=$lt_save_CC
16531 LDCXX=$LD
16532 LD=$lt_save_LD
16533 GCC=$lt_save_GCC
16534 with_gnu_ld=$lt_save_with_gnu_ld
16535 lt_cv_path_LDCXX=$lt_cv_path_LD
16536 lt_cv_path_LD=$lt_save_path_LD
16537 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16538 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16539 fi # test "$_lt_caught_CXX_error" != yes
16541 ac_ext=c
16542 ac_cpp='$CPP $CPPFLAGS'
16543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16549 # Handle -Werror default case.
16550 if test "$ENABLE_WERROR" = default; then
16551 case "$host_os" in
16552 *linux*)
16553 if test "$GCC" = yes; then
16554 ENABLE_WERROR=yes
16557 esac
16560 if test "x${COMPILE_COLLECTIONS}" = xyes; then
16561 # Extract the first word of "perl", so it can be a program name with args.
16562 set dummy perl; ac_word=$2
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16564 $as_echo_n "checking for $ac_word... " >&6; }
16565 if test "${ac_cv_path_PERL+set}" = set; then :
16566 $as_echo_n "(cached) " >&6
16567 else
16568 case $PERL in
16569 [\\/]* | ?:[\\/]*)
16570 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
16573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16574 for as_dir in $PATH
16576 IFS=$as_save_IFS
16577 test -z "$as_dir" && as_dir=.
16578 for ac_exec_ext in '' $ac_executable_extensions; do
16579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16580 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
16581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16582 break 2
16584 done
16585 done
16586 IFS=$as_save_IFS
16589 esac
16591 PERL=$ac_cv_path_PERL
16592 if test -n "$PERL"; then
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16594 $as_echo "$PERL" >&6; }
16595 else
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16597 $as_echo "no" >&6; }
16603 ac_config_files="$ac_config_files lib/mkcollections.pl"
16605 ac_config_commands="$ac_config_commands mkcollections.pl"
16609 if test "x${COMPILE_JNI}" = xyes; then
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((,,))" >&5
16614 $as_echo_n "checking __attribute__((,,))... " >&6; }
16615 if test "${gcc_cv_c_gcc_attribute_supported+set}" = set; then :
16616 $as_echo_n "(cached) " >&6
16617 else
16619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16620 /* end confdefs.h. */
16623 main ()
16625 extern int testfunction(int x) __attribute__((,,))
16627 return 0;
16629 _ACEOF
16630 if ac_fn_c_try_compile "$LINENO"; then :
16631 gcc_cv_c_gcc_attribute_supported=yes
16632 else
16633 gcc_cv_c_gcc_attribute_supported=no
16635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16639 if test "x$gcc_cv_c_gcc_attribute_supported" = xyes; then
16640 true
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16642 $as_echo "yes" >&6; }
16644 $as_echo "#define HAVE_GNUC25_ATTRIB /**/" >>confdefs.h
16647 else
16648 true
16649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16650 $as_echo "no" >&6; }
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((unused))" >&5
16663 $as_echo_n "checking __attribute__((unused))... " >&6; }
16664 if test "${gcc_cv_c_gcc_attribute_unused+set}" = set; then :
16665 $as_echo_n "(cached) " >&6
16666 else
16668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16669 /* end confdefs.h. */
16672 main ()
16674 extern int testfunction(int x) __attribute__((unused))
16676 return 0;
16678 _ACEOF
16679 if ac_fn_c_try_compile "$LINENO"; then :
16680 gcc_cv_c_gcc_attribute_unused=yes
16681 else
16682 gcc_cv_c_gcc_attribute_unused=no
16684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16688 if test "x$gcc_cv_c_gcc_attribute_unused" = xyes; then
16689 true
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16691 $as_echo "yes" >&6; }
16693 $as_echo "#define HAVE_GNUC25_UNUSED /**/" >>confdefs.h
16696 else
16697 true
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16699 $as_echo "no" >&6; }
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16708 $as_echo_n "checking for ANSI C header files... " >&6; }
16709 if test "${ac_cv_header_stdc+set}" = set; then :
16710 $as_echo_n "(cached) " >&6
16711 else
16712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16713 /* end confdefs.h. */
16714 #include <stdlib.h>
16715 #include <stdarg.h>
16716 #include <string.h>
16717 #include <float.h>
16720 main ()
16724 return 0;
16726 _ACEOF
16727 if ac_fn_c_try_compile "$LINENO"; then :
16728 ac_cv_header_stdc=yes
16729 else
16730 ac_cv_header_stdc=no
16732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16734 if test $ac_cv_header_stdc = yes; then
16735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737 /* end confdefs.h. */
16738 #include <string.h>
16740 _ACEOF
16741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16742 $EGREP "memchr" >/dev/null 2>&1; then :
16744 else
16745 ac_cv_header_stdc=no
16747 rm -f conftest*
16751 if test $ac_cv_header_stdc = yes; then
16752 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16754 /* end confdefs.h. */
16755 #include <stdlib.h>
16757 _ACEOF
16758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16759 $EGREP "free" >/dev/null 2>&1; then :
16761 else
16762 ac_cv_header_stdc=no
16764 rm -f conftest*
16768 if test $ac_cv_header_stdc = yes; then
16769 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16770 if test "$cross_compiling" = yes; then :
16772 else
16773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16774 /* end confdefs.h. */
16775 #include <ctype.h>
16776 #include <stdlib.h>
16777 #if ((' ' & 0x0FF) == 0x020)
16778 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16779 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16780 #else
16781 # define ISLOWER(c) \
16782 (('a' <= (c) && (c) <= 'i') \
16783 || ('j' <= (c) && (c) <= 'r') \
16784 || ('s' <= (c) && (c) <= 'z'))
16785 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16786 #endif
16788 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16790 main ()
16792 int i;
16793 for (i = 0; i < 256; i++)
16794 if (XOR (islower (i), ISLOWER (i))
16795 || toupper (i) != TOUPPER (i))
16796 return 2;
16797 return 0;
16799 _ACEOF
16800 if ac_fn_c_try_run "$LINENO"; then :
16802 else
16803 ac_cv_header_stdc=no
16805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16806 conftest.$ac_objext conftest.beam conftest.$ac_ext
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16812 $as_echo "$ac_cv_header_stdc" >&6; }
16813 if test $ac_cv_header_stdc = yes; then
16815 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16821 $as_echo_n "checking size of void *... " >&6; }
16822 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16823 $as_echo_n "(cached) " >&6
16824 else
16825 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
16826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16827 /* end confdefs.h. */
16828 #include "confdefs.h"
16829 #include <sys/types.h>
16833 main ()
16835 switch (0) case 0: case (sizeof (void *) == $ac_size):;
16837 return 0;
16839 _ACEOF
16840 if ac_fn_c_try_compile "$LINENO"; then :
16841 ac_cv_sizeof_void_p=$ac_size
16843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16844 if test x$ac_cv_sizeof_void_p != x ; then break; fi
16845 done
16849 if test x$ac_cv_sizeof_void_p = x ; then
16850 as_fn_error "cannot determine a size for void *" "$LINENO" 5
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16853 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16855 cat >>confdefs.h <<_ACEOF
16856 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16857 _ACEOF
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16862 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16863 if test "${ac_cv_c_bigendian+set}" = set; then :
16864 $as_echo_n "(cached) " >&6
16865 else
16866 ac_cv_c_bigendian=unknown
16867 # See if sys/param.h defines the BYTE_ORDER macro.
16868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869 /* end confdefs.h. */
16870 #include <sys/types.h>
16871 #include <sys/param.h>
16873 main ()
16876 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16877 bogus endian macros
16878 #endif
16880 return 0;
16882 _ACEOF
16883 if ac_fn_c_try_compile "$LINENO"; then :
16884 # It does; now see whether it defined to BIG_ENDIAN or not.
16885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16886 /* end confdefs.h. */
16887 #include <sys/types.h>
16888 #include <sys/param.h>
16890 main ()
16893 #if BYTE_ORDER != BIG_ENDIAN
16894 not big endian
16895 #endif
16897 return 0;
16899 _ACEOF
16900 if ac_fn_c_try_compile "$LINENO"; then :
16901 ac_cv_c_bigendian=yes
16902 else
16903 ac_cv_c_bigendian=no
16905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16908 if test $ac_cv_c_bigendian = unknown; then
16909 if test "$cross_compiling" = yes; then :
16910 echo $ac_n "cross-compiling... " 2>&6
16911 else
16912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16913 /* end confdefs.h. */
16914 main () {
16915 /* Are we little or big endian? From Harbison&Steele. */
16916 union
16918 long l;
16919 char c[sizeof (long)];
16920 } u;
16921 u.l = 1;
16922 exit (u.c[sizeof (long) - 1] == 1);
16924 _ACEOF
16925 if ac_fn_c_try_run "$LINENO"; then :
16926 ac_cv_c_bigendian=no
16927 else
16928 ac_cv_c_bigendian=yes
16930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16931 conftest.$ac_objext conftest.beam conftest.$ac_ext
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16937 $as_echo "$ac_cv_c_bigendian" >&6; }
16938 if test $ac_cv_c_bigendian = unknown; then
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
16940 $as_echo_n "checking to probe for byte ordering... " >&6; }
16942 cat >conftest.c <<EOF
16943 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16944 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16945 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
16946 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16947 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16948 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
16949 int main() { _ascii (); _ebcdic (); return 0; }
16951 if test -f conftest.c ; then
16952 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
16953 if test `grep -l BIGenDianSyS conftest.o` ; then
16954 echo $ac_n ' big endian probe OK, ' 1>&6
16955 ac_cv_c_bigendian=yes
16957 if test `grep -l LiTTleEnDian conftest.o` ; then
16958 echo $ac_n ' little endian probe OK, ' 1>&6
16959 if test $ac_cv_c_bigendian = yes ; then
16960 ac_cv_c_bigendian=unknown;
16961 else
16962 ac_cv_c_bigendian=no
16965 echo $ac_n 'guessing bigendian ... ' >&6
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16969 $as_echo "$ac_cv_c_bigendian" >&6; }
16971 if test $ac_cv_c_bigendian = yes; then
16973 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16976 $as_echo "#define HOST_WORDS_BIG_ENDIAN 1" >>confdefs.h
16978 BYTEORDER=4321
16979 else
16980 BYTEORDER=1234
16983 cat >>confdefs.h <<_ACEOF
16984 #define BYTEORDER $BYTEORDER
16985 _ACEOF
16987 if test $ac_cv_c_bigendian = unknown; then
16988 as_fn_error "unknown endianess - sorry, please pre-set ac_cv_c_bigendian" "$LINENO" 5
16992 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
16993 asm/ioctls.h \
16994 inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
16995 sys/time.h \
16996 sys/select.h \
16997 crt_externs.h \
16998 fcntl.h \
16999 sys/mman.h \
17000 magic.h \
17001 sys/event.h sys/epoll.h \
17002 ifaddrs.h \
17003 netinet/in_systm.h netinet/ip.h net/if.h \
17004 sys/loadavg.h sys/sockio.h
17005 do :
17006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17007 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17008 eval as_val=\$$as_ac_Header
17009 if test "x$as_val" = x""yes; then :
17010 cat >>confdefs.h <<_ACEOF
17011 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17012 _ACEOF
17016 done
17019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020 /* end confdefs.h. */
17021 #include <stdint.h>
17023 _ACEOF
17024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17025 $EGREP "uint32_t" >/dev/null 2>&1; then :
17027 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
17030 rm -f conftest*
17032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h. */
17034 #include <inttypes.h>
17036 _ACEOF
17037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17038 $EGREP "uint32_t" >/dev/null 2>&1; then :
17040 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
17043 rm -f conftest*
17045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17046 /* end confdefs.h. */
17047 #include <sys/types.h>
17049 _ACEOF
17050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17051 $EGREP "u_int32_t" >/dev/null 2>&1; then :
17053 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
17056 rm -f conftest*
17058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17059 /* end confdefs.h. */
17060 #include <sys/config.h>
17062 _ACEOF
17063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17064 $EGREP "u_int32_t" >/dev/null 2>&1; then :
17066 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
17069 rm -f conftest*
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17073 $as_echo_n "checking for library containing clock_gettime... " >&6; }
17074 if test "${ac_cv_search_clock_gettime+set}" = set; then :
17075 $as_echo_n "(cached) " >&6
17076 else
17077 ac_func_search_save_LIBS=$LIBS
17078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17079 /* end confdefs.h. */
17081 /* Override any GCC internal prototype to avoid an error.
17082 Use char because int might match the return type of a GCC
17083 builtin and then its argument prototype would still apply. */
17084 #ifdef __cplusplus
17085 extern "C"
17086 #endif
17087 char clock_gettime ();
17089 main ()
17091 return clock_gettime ();
17093 return 0;
17095 _ACEOF
17096 for ac_lib in '' rt; do
17097 if test -z "$ac_lib"; then
17098 ac_res="none required"
17099 else
17100 ac_res=-l$ac_lib
17101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17103 if test x$gcc_no_link = xyes; then
17104 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17106 if ac_fn_c_try_link "$LINENO"; then :
17107 ac_cv_search_clock_gettime=$ac_res
17109 rm -f core conftest.err conftest.$ac_objext \
17110 conftest$ac_exeext
17111 if test "${ac_cv_search_clock_gettime+set}" = set; then :
17112 break
17114 done
17115 if test "${ac_cv_search_clock_gettime+set}" = set; then :
17117 else
17118 ac_cv_search_clock_gettime=no
17120 rm conftest.$ac_ext
17121 LIBS=$ac_func_search_save_LIBS
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17124 $as_echo "$ac_cv_search_clock_gettime" >&6; }
17125 ac_res=$ac_cv_search_clock_gettime
17126 if test "$ac_res" != no; then :
17127 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
17132 $as_echo_n "checking for library containing inet_pton... " >&6; }
17133 if test "${ac_cv_search_inet_pton+set}" = set; then :
17134 $as_echo_n "(cached) " >&6
17135 else
17136 ac_func_search_save_LIBS=$LIBS
17137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138 /* end confdefs.h. */
17140 /* Override any GCC internal prototype to avoid an error.
17141 Use char because int might match the return type of a GCC
17142 builtin and then its argument prototype would still apply. */
17143 #ifdef __cplusplus
17144 extern "C"
17145 #endif
17146 char inet_pton ();
17148 main ()
17150 return inet_pton ();
17152 return 0;
17154 _ACEOF
17155 for ac_lib in '' nsl; do
17156 if test -z "$ac_lib"; then
17157 ac_res="none required"
17158 else
17159 ac_res=-l$ac_lib
17160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17162 if test x$gcc_no_link = xyes; then
17163 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17165 if ac_fn_c_try_link "$LINENO"; then :
17166 ac_cv_search_inet_pton=$ac_res
17168 rm -f core conftest.err conftest.$ac_objext \
17169 conftest$ac_exeext
17170 if test "${ac_cv_search_inet_pton+set}" = set; then :
17171 break
17173 done
17174 if test "${ac_cv_search_inet_pton+set}" = set; then :
17176 else
17177 ac_cv_search_inet_pton=no
17179 rm conftest.$ac_ext
17180 LIBS=$ac_func_search_save_LIBS
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
17183 $as_echo "$ac_cv_search_inet_pton" >&6; }
17184 ac_res=$ac_cv_search_inet_pton
17185 if test "$ac_res" != no; then :
17186 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
17191 $as_echo_n "checking for gethostname in -lsocket... " >&6; }
17192 if test "${ac_cv_lib_socket_gethostname+set}" = set; then :
17193 $as_echo_n "(cached) " >&6
17194 else
17195 ac_check_lib_save_LIBS=$LIBS
17196 LIBS="-lsocket $LIBS"
17197 if test x$gcc_no_link = xyes; then
17198 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201 /* end confdefs.h. */
17203 /* Override any GCC internal prototype to avoid an error.
17204 Use char because int might match the return type of a GCC
17205 builtin and then its argument prototype would still apply. */
17206 #ifdef __cplusplus
17207 extern "C"
17208 #endif
17209 char gethostname ();
17211 main ()
17213 return gethostname ();
17215 return 0;
17217 _ACEOF
17218 if ac_fn_c_try_link "$LINENO"; then :
17219 ac_cv_lib_socket_gethostname=yes
17220 else
17221 ac_cv_lib_socket_gethostname=no
17223 rm -f core conftest.err conftest.$ac_objext \
17224 conftest$ac_exeext conftest.$ac_ext
17225 LIBS=$ac_check_lib_save_LIBS
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
17228 $as_echo "$ac_cv_lib_socket_gethostname" >&6; }
17229 if test "x$ac_cv_lib_socket_gethostname" = x""yes; then :
17230 cat >>confdefs.h <<_ACEOF
17231 #define HAVE_LIBSOCKET 1
17232 _ACEOF
17234 LIBS="-lsocket $LIBS"
17239 for ac_func in ftruncate fsync select \
17240 gethostname socket strerror fork pipe execve open close \
17241 lseek fstat read readv write writev htonl memset htons connect \
17242 getsockname getpeername bind listen accept \
17243 recvfrom send sendto setsockopt getsockopt time mktime clock_gettime \
17244 gethostbyname_r localtime_r \
17245 strerror_r \
17246 fcntl \
17247 statvfs \
17248 mmap munmap mincore msync madvise getpagesize sysconf \
17249 lstat readlink \
17250 inet_aton inet_addr inet_pton \
17251 getifaddrs kqueue kevent epoll_create \
17252 getloadavg
17253 do :
17254 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17255 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17256 eval as_val=\$$as_ac_var
17257 if test "x$as_val" = x""yes; then :
17258 cat >>confdefs.h <<_ACEOF
17259 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17260 _ACEOF
17263 done
17266 LIBMAGIC=
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
17268 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
17269 if test "${ac_cv_lib_magic_magic_open+set}" = set; then :
17270 $as_echo_n "(cached) " >&6
17271 else
17272 ac_check_lib_save_LIBS=$LIBS
17273 LIBS="-lmagic $LIBS"
17274 if test x$gcc_no_link = xyes; then
17275 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17278 /* end confdefs.h. */
17280 /* Override any GCC internal prototype to avoid an error.
17281 Use char because int might match the return type of a GCC
17282 builtin and then its argument prototype would still apply. */
17283 #ifdef __cplusplus
17284 extern "C"
17285 #endif
17286 char magic_open ();
17288 main ()
17290 return magic_open ();
17292 return 0;
17294 _ACEOF
17295 if ac_fn_c_try_link "$LINENO"; then :
17296 ac_cv_lib_magic_magic_open=yes
17297 else
17298 ac_cv_lib_magic_magic_open=no
17300 rm -f core conftest.err conftest.$ac_objext \
17301 conftest$ac_exeext conftest.$ac_ext
17302 LIBS=$ac_check_lib_save_LIBS
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
17305 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
17306 if test "x$ac_cv_lib_magic_magic_open" = x""yes; then :
17307 LIBMAGIC=-lmagic
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
17313 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
17314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17315 /* end confdefs.h. */
17316 #include <netinet/in.h>
17318 main ()
17320 struct sockaddr_in6 addr6;
17322 return 0;
17324 _ACEOF
17325 if ac_fn_c_try_compile "$LINENO"; then :
17327 $as_echo "#define HAVE_INET6 1" >>confdefs.h
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17330 $as_echo "yes" >&6; }
17331 else
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17333 $as_echo "no" >&6; }
17335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17338 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17339 if test "${ac_cv_header_time+set}" = set; then :
17340 $as_echo_n "(cached) " >&6
17341 else
17342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343 /* end confdefs.h. */
17344 #include <sys/types.h>
17345 #include <sys/time.h>
17346 #include <time.h>
17349 main ()
17351 if ((struct tm *) 0)
17352 return 0;
17354 return 0;
17356 _ACEOF
17357 if ac_fn_c_try_compile "$LINENO"; then :
17358 ac_cv_header_time=yes
17359 else
17360 ac_cv_header_time=no
17362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17365 $as_echo "$ac_cv_header_time" >&6; }
17366 if test $ac_cv_header_time = yes; then
17368 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17373 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17374 if test "${ac_cv_struct_tm+set}" = set; then :
17375 $as_echo_n "(cached) " >&6
17376 else
17377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17378 /* end confdefs.h. */
17379 #include <sys/types.h>
17380 #include <time.h>
17383 main ()
17385 struct tm tm;
17386 int *p = &tm.tm_sec;
17387 return !p;
17389 return 0;
17391 _ACEOF
17392 if ac_fn_c_try_compile "$LINENO"; then :
17393 ac_cv_struct_tm=time.h
17394 else
17395 ac_cv_struct_tm=sys/time.h
17397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17400 $as_echo "$ac_cv_struct_tm" >&6; }
17401 if test $ac_cv_struct_tm = sys/time.h; then
17403 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17407 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
17408 #include <$ac_cv_struct_tm>
17411 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
17413 cat >>confdefs.h <<_ACEOF
17414 #define HAVE_STRUCT_TM_TM_ZONE 1
17415 _ACEOF
17420 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17422 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
17424 else
17425 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
17427 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
17428 ac_have_decl=1
17429 else
17430 ac_have_decl=0
17433 cat >>confdefs.h <<_ACEOF
17434 #define HAVE_DECL_TZNAME $ac_have_decl
17435 _ACEOF
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
17438 $as_echo_n "checking for tzname... " >&6; }
17439 if test "${ac_cv_var_tzname+set}" = set; then :
17440 $as_echo_n "(cached) " >&6
17441 else
17442 if test x$gcc_no_link = xyes; then
17443 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17446 /* end confdefs.h. */
17447 #include <time.h>
17448 #if !HAVE_DECL_TZNAME
17449 extern char *tzname[];
17450 #endif
17453 main ()
17455 return tzname[0][0];
17457 return 0;
17459 _ACEOF
17460 if ac_fn_c_try_link "$LINENO"; then :
17461 ac_cv_var_tzname=yes
17462 else
17463 ac_cv_var_tzname=no
17465 rm -f core conftest.err conftest.$ac_objext \
17466 conftest$ac_exeext conftest.$ac_ext
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
17469 $as_echo "$ac_cv_var_tzname" >&6; }
17470 if test $ac_cv_var_tzname = yes; then
17472 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
17479 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
17480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17481 /* end confdefs.h. */
17482 #include <time.h>
17484 main ()
17486 struct tm tim; tim.tm_gmtoff = 0;
17488 return 0;
17490 _ACEOF
17491 if ac_fn_c_try_compile "$LINENO"; then :
17493 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17496 $as_echo "yes" >&6; }
17497 else
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17499 $as_echo "no" >&6; }
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
17501 $as_echo_n "checking for global timezone variable... " >&6; }
17502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17503 /* end confdefs.h. */
17504 #include <time.h>
17506 main ()
17508 void i(){long z2 = 2*timezone;}
17510 return 0;
17512 _ACEOF
17513 if ac_fn_c_try_compile "$LINENO"; then :
17515 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17518 $as_echo "yes" >&6; }
17519 else
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17521 $as_echo "no" >&6; }
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
17523 $as_echo_n "checking for global _timezone variable... " >&6; }
17524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17525 /* end confdefs.h. */
17526 #include <time.h>
17528 main ()
17530 long z2 = _timezone;
17532 return 0;
17534 _ACEOF
17535 if ac_fn_c_try_compile "$LINENO"; then :
17537 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17540 $as_echo "yes" >&6; }
17541 else
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17543 $as_echo "no" >&6; }
17545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17552 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17553 if test "${ac_cv_c_const+set}" = set; then :
17554 $as_echo_n "(cached) " >&6
17555 else
17556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17557 /* end confdefs.h. */
17560 main ()
17562 /* FIXME: Include the comments suggested by Paul. */
17563 #ifndef __cplusplus
17564 /* Ultrix mips cc rejects this. */
17565 typedef int charset[2];
17566 const charset cs;
17567 /* SunOS 4.1.1 cc rejects this. */
17568 char const *const *pcpcc;
17569 char **ppc;
17570 /* NEC SVR4.0.2 mips cc rejects this. */
17571 struct point {int x, y;};
17572 static struct point const zero = {0,0};
17573 /* AIX XL C 1.02.0.0 rejects this.
17574 It does not let you subtract one const X* pointer from another in
17575 an arm of an if-expression whose if-part is not a constant
17576 expression */
17577 const char *g = "string";
17578 pcpcc = &g + (g ? g-g : 0);
17579 /* HPUX 7.0 cc rejects these. */
17580 ++pcpcc;
17581 ppc = (char**) pcpcc;
17582 pcpcc = (char const *const *) ppc;
17583 { /* SCO 3.2v4 cc rejects this. */
17584 char *t;
17585 char const *s = 0 ? (char *) 0 : (char const *) 0;
17587 *t++ = 0;
17588 if (s) return 0;
17590 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17591 int x[] = {25, 17};
17592 const int *foo = &x[0];
17593 ++foo;
17595 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17596 typedef const int *iptr;
17597 iptr p = 0;
17598 ++p;
17600 { /* AIX XL C 1.02.0.0 rejects this saying
17601 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17602 struct s { int j; const int *ap[3]; };
17603 struct s *b; b->j = 5;
17605 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17606 const int foo = 10;
17607 if (!foo) return 0;
17609 return !cs[0] && !zero.x;
17610 #endif
17613 return 0;
17615 _ACEOF
17616 if ac_fn_c_try_compile "$LINENO"; then :
17617 ac_cv_c_const=yes
17618 else
17619 ac_cv_c_const=no
17621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17624 $as_echo "$ac_cv_c_const" >&6; }
17625 if test $ac_cv_c_const = no; then
17627 $as_echo "#define const /**/" >>confdefs.h
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17632 $as_echo_n "checking for inline... " >&6; }
17633 if test "${ac_cv_c_inline+set}" = set; then :
17634 $as_echo_n "(cached) " >&6
17635 else
17636 ac_cv_c_inline=no
17637 for ac_kw in inline __inline__ __inline; do
17638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17639 /* end confdefs.h. */
17640 #ifndef __cplusplus
17641 typedef int foo_t;
17642 static $ac_kw foo_t static_foo () {return 0; }
17643 $ac_kw foo_t foo () {return 0; }
17644 #endif
17646 _ACEOF
17647 if ac_fn_c_try_compile "$LINENO"; then :
17648 ac_cv_c_inline=$ac_kw
17650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17651 test "$ac_cv_c_inline" != no && break
17652 done
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17656 $as_echo "$ac_cv_c_inline" >&6; }
17658 case $ac_cv_c_inline in
17659 inline | yes) ;;
17661 case $ac_cv_c_inline in
17662 no) ac_val=;;
17663 *) ac_val=$ac_cv_c_inline;;
17664 esac
17665 cat >>confdefs.h <<_ACEOF
17666 #ifndef __cplusplus
17667 #define inline $ac_val
17668 #endif
17669 _ACEOF
17671 esac
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
17674 $as_echo_n "checking for __attribute__... " >&6; }
17675 if test "${ac_cv_c_attribute+set}" = set; then :
17676 $as_echo_n "(cached) " >&6
17677 else
17679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17680 /* end confdefs.h. */
17681 void foo(void) __attribute__ ((__noreturn__));
17683 _ACEOF
17684 if ac_fn_c_try_compile "$LINENO"; then :
17685 ac_cv_c_attribute=yes
17686 else
17687 ac_cv_c_attribute=no
17690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_attribute" >&5
17694 $as_echo "$ac_cv_c_attribute" >&6; }
17696 case $ac_cv_c_attribute in
17697 yes) ;;
17699 cat >>confdefs.h <<_ACEOF
17700 #define __attribute__(x) /* nothing */
17701 _ACEOF
17703 esac
17707 ac_ext=c
17708 ac_cpp='$CPP $CPPFLAGS'
17709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() takes" >&5
17714 $as_echo_n "checking how many arguments gethostbyname_r() takes... " >&6; }
17716 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then :
17717 $as_echo_n "(cached) " >&6
17718 else
17721 ################################################################
17723 ac_cv_func_which_gethostbyname_r=unknown
17726 # ONE ARGUMENT (sanity check)
17729 # This should fail, as there is no variant of gethostbyname_r() that takes
17730 # a single argument. If it actually compiles, then we can assume that
17731 # netdb.h is not declaring the function, and the compiler is thereby
17732 # assuming an implicit prototype. In which case, we're out of luck.
17734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17735 /* end confdefs.h. */
17737 #include <netdb.h>
17739 main ()
17742 char *name = "www.gnu.org";
17743 (void)gethostbyname_r(name) /* ; */
17746 return 0;
17748 _ACEOF
17749 if ac_fn_c_try_compile "$LINENO"; then :
17750 ac_cv_func_which_gethostbyname_r=no
17752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17755 # SIX ARGUMENTS
17756 # (e.g. Linux)
17759 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17762 /* end confdefs.h. */
17764 #include <netdb.h>
17766 main ()
17769 char *name = "www.gnu.org";
17770 struct hostent ret, *retp;
17771 char buf[1024];
17772 int buflen = 1024;
17773 int my_h_errno;
17774 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
17777 return 0;
17779 _ACEOF
17780 if ac_fn_c_try_compile "$LINENO"; then :
17781 ac_cv_func_which_gethostbyname_r=six
17783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17788 # FIVE ARGUMENTS
17789 # (e.g. Solaris)
17792 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h. */
17797 #include <netdb.h>
17799 main ()
17802 char *name = "www.gnu.org";
17803 struct hostent ret;
17804 char buf[1024];
17805 int buflen = 1024;
17806 int my_h_errno;
17807 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
17810 return 0;
17812 _ACEOF
17813 if ac_fn_c_try_compile "$LINENO"; then :
17814 ac_cv_func_which_gethostbyname_r=five
17816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17821 # THREE ARGUMENTS
17822 # (e.g. AIX, HP-UX, Tru64)
17825 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17828 /* end confdefs.h. */
17830 #include <netdb.h>
17832 main ()
17835 char *name = "www.gnu.org";
17836 struct hostent ret;
17837 struct hostent_data data;
17838 (void)gethostbyname_r(name, &ret, &data) /* ; */
17841 return 0;
17843 _ACEOF
17844 if ac_fn_c_try_compile "$LINENO"; then :
17845 ac_cv_func_which_gethostbyname_r=three
17847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17851 ################################################################
17856 case "$ac_cv_func_which_gethostbyname_r" in
17857 three)
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: three" >&5
17859 $as_echo "three" >&6; }
17861 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_3 1" >>confdefs.h
17865 five)
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: five" >&5
17867 $as_echo "five" >&6; }
17869 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_5 1" >>confdefs.h
17873 six)
17874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: six" >&5
17875 $as_echo "six" >&6; }
17877 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_6 1" >>confdefs.h
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find function declaration in netdb.h" >&5
17883 $as_echo "cannot find function declaration in netdb.h" >&6; }
17886 unknown)
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't tell" >&5
17888 $as_echo "can't tell" >&6; }
17892 as_fn_error "internal error" "$LINENO" 5
17894 esac
17896 ac_ext=c
17897 ac_cpp='$CPP $CPPFLAGS'
17898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17906 if test "X$prefix" = "XNONE"; then
17907 acl_final_prefix="$ac_default_prefix"
17908 else
17909 acl_final_prefix="$prefix"
17911 if test "X$exec_prefix" = "XNONE"; then
17912 acl_final_exec_prefix='${prefix}'
17913 else
17914 acl_final_exec_prefix="$exec_prefix"
17916 acl_save_prefix="$prefix"
17917 prefix="$acl_final_prefix"
17918 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17919 prefix="$acl_save_prefix"
17922 # Check whether --with-gnu-ld was given.
17923 if test "${with_gnu_ld+set}" = set; then :
17924 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17925 else
17926 with_gnu_ld=no
17929 # Prepare PATH_SEPARATOR.
17930 # The user is always right.
17931 if test "${PATH_SEPARATOR+set}" != set; then
17932 echo "#! /bin/sh" >conf$$.sh
17933 echo "exit 0" >>conf$$.sh
17934 chmod +x conf$$.sh
17935 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17936 PATH_SEPARATOR=';'
17937 else
17938 PATH_SEPARATOR=:
17940 rm -f conf$$.sh
17942 ac_prog=ld
17943 if test "$GCC" = yes; then
17944 # Check if gcc -print-prog-name=ld gives a path.
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17946 $as_echo_n "checking for ld used by GCC... " >&6; }
17947 case $host in
17948 *-*-mingw*)
17949 # gcc leaves a trailing carriage return which upsets mingw
17950 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17952 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17953 esac
17954 case $ac_prog in
17955 # Accept absolute paths.
17956 [\\/]* | [A-Za-z]:[\\/]*)
17957 re_direlt='/[^/][^/]*/\.\./'
17958 # Canonicalize the path of ld
17959 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17960 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17961 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17962 done
17963 test -z "$LD" && LD="$ac_prog"
17966 # If it fails, then pretend we aren't using GCC.
17967 ac_prog=ld
17970 # If it is relative, then search for the first ld in PATH.
17971 with_gnu_ld=unknown
17973 esac
17974 elif test "$with_gnu_ld" = yes; then
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17976 $as_echo_n "checking for GNU ld... " >&6; }
17977 else
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17979 $as_echo_n "checking for non-GNU ld... " >&6; }
17981 if test "${acl_cv_path_LD+set}" = set; then :
17982 $as_echo_n "(cached) " >&6
17983 else
17984 if test -z "$LD"; then
17985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17986 for ac_dir in $PATH; do
17987 test -z "$ac_dir" && ac_dir=.
17988 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17989 acl_cv_path_LD="$ac_dir/$ac_prog"
17990 # Check to see if the program is GNU ld. I'd rather use --version,
17991 # but apparently some GNU ld's only accept -v.
17992 # Break only if it was the GNU/non-GNU ld that we prefer.
17993 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17994 *GNU* | *'with BFD'*)
17995 test "$with_gnu_ld" != no && break ;;
17997 test "$with_gnu_ld" != yes && break ;;
17998 esac
18000 done
18001 IFS="$ac_save_ifs"
18002 else
18003 acl_cv_path_LD="$LD" # Let the user override the test with a path.
18007 LD="$acl_cv_path_LD"
18008 if test -n "$LD"; then
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18010 $as_echo "$LD" >&6; }
18011 else
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18013 $as_echo "no" >&6; }
18015 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18017 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18018 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
18019 $as_echo_n "(cached) " >&6
18020 else
18021 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
18022 case `$LD -v 2>&1 </dev/null` in
18023 *GNU* | *'with BFD'*)
18024 acl_cv_prog_gnu_ld=yes ;;
18026 acl_cv_prog_gnu_ld=no ;;
18027 esac
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18030 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
18031 with_gnu_ld=$acl_cv_prog_gnu_ld
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18037 $as_echo_n "checking for shared library run path origin... " >&6; }
18038 if test "${acl_cv_rpath+set}" = set; then :
18039 $as_echo_n "(cached) " >&6
18040 else
18042 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18043 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18044 . ./conftest.sh
18045 rm -f ./conftest.sh
18046 acl_cv_rpath=done
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18050 $as_echo "$acl_cv_rpath" >&6; }
18051 wl="$acl_cv_wl"
18052 acl_libext="$acl_cv_libext"
18053 acl_shlibext="$acl_cv_shlibext"
18054 acl_libname_spec="$acl_cv_libname_spec"
18055 acl_library_names_spec="$acl_cv_library_names_spec"
18056 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18057 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18058 acl_hardcode_direct="$acl_cv_hardcode_direct"
18059 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
18060 # Check whether --enable-rpath was given.
18061 if test "${enable_rpath+set}" = set; then :
18062 enableval=$enable_rpath; :
18063 else
18064 enable_rpath=yes
18070 acl_libdirstem=lib
18071 acl_libdirstem2=
18072 case "$host_os" in
18073 solaris*)
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
18075 $as_echo_n "checking for 64-bit host... " >&6; }
18076 if test "${gl_cv_solaris_64bit+set}" = set; then :
18077 $as_echo_n "(cached) " >&6
18078 else
18079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18080 /* end confdefs.h. */
18082 #ifdef _LP64
18083 sixtyfour bits
18084 #endif
18086 _ACEOF
18087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18088 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
18089 gl_cv_solaris_64bit=yes
18090 else
18091 gl_cv_solaris_64bit=no
18093 rm -f conftest*
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
18098 $as_echo "$gl_cv_solaris_64bit" >&6; }
18099 if test $gl_cv_solaris_64bit = yes; then
18100 acl_libdirstem=lib/64
18101 case "$host_cpu" in
18102 sparc*) acl_libdirstem2=lib/sparcv9 ;;
18103 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
18104 esac
18108 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18109 if test -n "$searchpath"; then
18110 acl_save_IFS="${IFS= }"; IFS=":"
18111 for searchdir in $searchpath; do
18112 if test -d "$searchdir"; then
18113 case "$searchdir" in
18114 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
18115 */../ | */.. )
18116 # Better ignore directories of this form. They are misleading.
18118 *) searchdir=`cd "$searchdir" && pwd`
18119 case "$searchdir" in
18120 */lib64 ) acl_libdirstem=lib64 ;;
18121 esac ;;
18122 esac
18124 done
18125 IFS="$acl_save_IFS"
18128 esac
18129 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
18142 use_additional=yes
18144 acl_save_prefix="$prefix"
18145 prefix="$acl_final_prefix"
18146 acl_save_exec_prefix="$exec_prefix"
18147 exec_prefix="$acl_final_exec_prefix"
18149 eval additional_includedir=\"$includedir\"
18150 eval additional_libdir=\"$libdir\"
18152 exec_prefix="$acl_save_exec_prefix"
18153 prefix="$acl_save_prefix"
18156 # Check whether --with-libiconv-prefix was given.
18157 if test "${with_libiconv_prefix+set}" = set; then :
18158 withval=$with_libiconv_prefix;
18159 if test "X$withval" = "Xno"; then
18160 use_additional=no
18161 else
18162 if test "X$withval" = "X"; then
18164 acl_save_prefix="$prefix"
18165 prefix="$acl_final_prefix"
18166 acl_save_exec_prefix="$exec_prefix"
18167 exec_prefix="$acl_final_exec_prefix"
18169 eval additional_includedir=\"$includedir\"
18170 eval additional_libdir=\"$libdir\"
18172 exec_prefix="$acl_save_exec_prefix"
18173 prefix="$acl_save_prefix"
18175 else
18176 additional_includedir="$withval/include"
18177 additional_libdir="$withval/$acl_libdirstem"
18178 if test "$acl_libdirstem2" != "$acl_libdirstem" \
18179 && ! test -d "$withval/$acl_libdirstem"; then
18180 additional_libdir="$withval/$acl_libdirstem2"
18187 LIBICONV=
18188 LTLIBICONV=
18189 INCICONV=
18190 LIBICONV_PREFIX=
18191 HAVE_LIBICONV=
18192 rpathdirs=
18193 ltrpathdirs=
18194 names_already_handled=
18195 names_next_round='iconv '
18196 while test -n "$names_next_round"; do
18197 names_this_round="$names_next_round"
18198 names_next_round=
18199 for name in $names_this_round; do
18200 already_handled=
18201 for n in $names_already_handled; do
18202 if test "$n" = "$name"; then
18203 already_handled=yes
18204 break
18206 done
18207 if test -z "$already_handled"; then
18208 names_already_handled="$names_already_handled $name"
18209 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18210 eval value=\"\$HAVE_LIB$uppername\"
18211 if test -n "$value"; then
18212 if test "$value" = yes; then
18213 eval value=\"\$LIB$uppername\"
18214 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18215 eval value=\"\$LTLIB$uppername\"
18216 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18217 else
18220 else
18221 found_dir=
18222 found_la=
18223 found_so=
18224 found_a=
18225 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18226 if test -n "$acl_shlibext"; then
18227 shrext=".$acl_shlibext" # typically: shrext=.so
18228 else
18229 shrext=
18231 if test $use_additional = yes; then
18232 dir="$additional_libdir"
18233 if test -n "$acl_shlibext"; then
18234 if test -f "$dir/$libname$shrext"; then
18235 found_dir="$dir"
18236 found_so="$dir/$libname$shrext"
18237 else
18238 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18239 ver=`(cd "$dir" && \
18240 for f in "$libname$shrext".*; do echo "$f"; done \
18241 | sed -e "s,^$libname$shrext\\\\.,," \
18242 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18243 | sed 1q ) 2>/dev/null`
18244 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18245 found_dir="$dir"
18246 found_so="$dir/$libname$shrext.$ver"
18248 else
18249 eval library_names=\"$acl_library_names_spec\"
18250 for f in $library_names; do
18251 if test -f "$dir/$f"; then
18252 found_dir="$dir"
18253 found_so="$dir/$f"
18254 break
18256 done
18260 if test "X$found_dir" = "X"; then
18261 if test -f "$dir/$libname.$acl_libext"; then
18262 found_dir="$dir"
18263 found_a="$dir/$libname.$acl_libext"
18266 if test "X$found_dir" != "X"; then
18267 if test -f "$dir/$libname.la"; then
18268 found_la="$dir/$libname.la"
18272 if test "X$found_dir" = "X"; then
18273 for x in $LDFLAGS $LTLIBICONV; do
18275 acl_save_prefix="$prefix"
18276 prefix="$acl_final_prefix"
18277 acl_save_exec_prefix="$exec_prefix"
18278 exec_prefix="$acl_final_exec_prefix"
18279 eval x=\"$x\"
18280 exec_prefix="$acl_save_exec_prefix"
18281 prefix="$acl_save_prefix"
18283 case "$x" in
18284 -L*)
18285 dir=`echo "X$x" | sed -e 's/^X-L//'`
18286 if test -n "$acl_shlibext"; then
18287 if test -f "$dir/$libname$shrext"; then
18288 found_dir="$dir"
18289 found_so="$dir/$libname$shrext"
18290 else
18291 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18292 ver=`(cd "$dir" && \
18293 for f in "$libname$shrext".*; do echo "$f"; done \
18294 | sed -e "s,^$libname$shrext\\\\.,," \
18295 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18296 | sed 1q ) 2>/dev/null`
18297 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18298 found_dir="$dir"
18299 found_so="$dir/$libname$shrext.$ver"
18301 else
18302 eval library_names=\"$acl_library_names_spec\"
18303 for f in $library_names; do
18304 if test -f "$dir/$f"; then
18305 found_dir="$dir"
18306 found_so="$dir/$f"
18307 break
18309 done
18313 if test "X$found_dir" = "X"; then
18314 if test -f "$dir/$libname.$acl_libext"; then
18315 found_dir="$dir"
18316 found_a="$dir/$libname.$acl_libext"
18319 if test "X$found_dir" != "X"; then
18320 if test -f "$dir/$libname.la"; then
18321 found_la="$dir/$libname.la"
18325 esac
18326 if test "X$found_dir" != "X"; then
18327 break
18329 done
18331 if test "X$found_dir" != "X"; then
18332 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18333 if test "X$found_so" != "X"; then
18334 if test "$enable_rpath" = no \
18335 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18336 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
18337 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18338 else
18339 haveit=
18340 for x in $ltrpathdirs; do
18341 if test "X$x" = "X$found_dir"; then
18342 haveit=yes
18343 break
18345 done
18346 if test -z "$haveit"; then
18347 ltrpathdirs="$ltrpathdirs $found_dir"
18349 if test "$acl_hardcode_direct" = yes; then
18350 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18351 else
18352 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18353 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18354 haveit=
18355 for x in $rpathdirs; do
18356 if test "X$x" = "X$found_dir"; then
18357 haveit=yes
18358 break
18360 done
18361 if test -z "$haveit"; then
18362 rpathdirs="$rpathdirs $found_dir"
18364 else
18365 haveit=
18366 for x in $LDFLAGS $LIBICONV; do
18368 acl_save_prefix="$prefix"
18369 prefix="$acl_final_prefix"
18370 acl_save_exec_prefix="$exec_prefix"
18371 exec_prefix="$acl_final_exec_prefix"
18372 eval x=\"$x\"
18373 exec_prefix="$acl_save_exec_prefix"
18374 prefix="$acl_save_prefix"
18376 if test "X$x" = "X-L$found_dir"; then
18377 haveit=yes
18378 break
18380 done
18381 if test -z "$haveit"; then
18382 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18384 if test "$acl_hardcode_minus_L" != no; then
18385 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18386 else
18387 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18392 else
18393 if test "X$found_a" != "X"; then
18394 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18395 else
18396 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18399 additional_includedir=
18400 case "$found_dir" in
18401 */$acl_libdirstem | */$acl_libdirstem/)
18402 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18403 if test "$name" = 'iconv'; then
18404 LIBICONV_PREFIX="$basedir"
18406 additional_includedir="$basedir/include"
18408 */$acl_libdirstem2 | */$acl_libdirstem2/)
18409 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18410 if test "$name" = 'iconv'; then
18411 LIBICONV_PREFIX="$basedir"
18413 additional_includedir="$basedir/include"
18415 esac
18416 if test "X$additional_includedir" != "X"; then
18417 if test "X$additional_includedir" != "X/usr/include"; then
18418 haveit=
18419 if test "X$additional_includedir" = "X/usr/local/include"; then
18420 if test -n "$GCC"; then
18421 case $host_os in
18422 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18423 esac
18426 if test -z "$haveit"; then
18427 for x in $CPPFLAGS $INCICONV; do
18429 acl_save_prefix="$prefix"
18430 prefix="$acl_final_prefix"
18431 acl_save_exec_prefix="$exec_prefix"
18432 exec_prefix="$acl_final_exec_prefix"
18433 eval x=\"$x\"
18434 exec_prefix="$acl_save_exec_prefix"
18435 prefix="$acl_save_prefix"
18437 if test "X$x" = "X-I$additional_includedir"; then
18438 haveit=yes
18439 break
18441 done
18442 if test -z "$haveit"; then
18443 if test -d "$additional_includedir"; then
18444 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18450 if test -n "$found_la"; then
18451 save_libdir="$libdir"
18452 case "$found_la" in
18453 */* | *\\*) . "$found_la" ;;
18454 *) . "./$found_la" ;;
18455 esac
18456 libdir="$save_libdir"
18457 for dep in $dependency_libs; do
18458 case "$dep" in
18459 -L*)
18460 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18461 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
18462 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
18463 haveit=
18464 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
18465 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
18466 if test -n "$GCC"; then
18467 case $host_os in
18468 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18469 esac
18472 if test -z "$haveit"; then
18473 haveit=
18474 for x in $LDFLAGS $LIBICONV; do
18476 acl_save_prefix="$prefix"
18477 prefix="$acl_final_prefix"
18478 acl_save_exec_prefix="$exec_prefix"
18479 exec_prefix="$acl_final_exec_prefix"
18480 eval x=\"$x\"
18481 exec_prefix="$acl_save_exec_prefix"
18482 prefix="$acl_save_prefix"
18484 if test "X$x" = "X-L$additional_libdir"; then
18485 haveit=yes
18486 break
18488 done
18489 if test -z "$haveit"; then
18490 if test -d "$additional_libdir"; then
18491 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18494 haveit=
18495 for x in $LDFLAGS $LTLIBICONV; do
18497 acl_save_prefix="$prefix"
18498 prefix="$acl_final_prefix"
18499 acl_save_exec_prefix="$exec_prefix"
18500 exec_prefix="$acl_final_exec_prefix"
18501 eval x=\"$x\"
18502 exec_prefix="$acl_save_exec_prefix"
18503 prefix="$acl_save_prefix"
18505 if test "X$x" = "X-L$additional_libdir"; then
18506 haveit=yes
18507 break
18509 done
18510 if test -z "$haveit"; then
18511 if test -d "$additional_libdir"; then
18512 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18518 -R*)
18519 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18520 if test "$enable_rpath" != no; then
18521 haveit=
18522 for x in $rpathdirs; do
18523 if test "X$x" = "X$dir"; then
18524 haveit=yes
18525 break
18527 done
18528 if test -z "$haveit"; then
18529 rpathdirs="$rpathdirs $dir"
18531 haveit=
18532 for x in $ltrpathdirs; do
18533 if test "X$x" = "X$dir"; then
18534 haveit=yes
18535 break
18537 done
18538 if test -z "$haveit"; then
18539 ltrpathdirs="$ltrpathdirs $dir"
18543 -l*)
18544 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18546 *.la)
18547 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18550 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18551 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18553 esac
18554 done
18556 else
18557 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18558 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18562 done
18563 done
18564 if test "X$rpathdirs" != "X"; then
18565 if test -n "$acl_hardcode_libdir_separator"; then
18566 alldirs=
18567 for found_dir in $rpathdirs; do
18568 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18569 done
18570 acl_save_libdir="$libdir"
18571 libdir="$alldirs"
18572 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18573 libdir="$acl_save_libdir"
18574 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18575 else
18576 for found_dir in $rpathdirs; do
18577 acl_save_libdir="$libdir"
18578 libdir="$found_dir"
18579 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18580 libdir="$acl_save_libdir"
18581 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18582 done
18585 if test "X$ltrpathdirs" != "X"; then
18586 for found_dir in $ltrpathdirs; do
18587 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18588 done
18602 am_save_CPPFLAGS="$CPPFLAGS"
18604 for element in $INCICONV; do
18605 haveit=
18606 for x in $CPPFLAGS; do
18608 acl_save_prefix="$prefix"
18609 prefix="$acl_final_prefix"
18610 acl_save_exec_prefix="$exec_prefix"
18611 exec_prefix="$acl_final_exec_prefix"
18612 eval x=\"$x\"
18613 exec_prefix="$acl_save_exec_prefix"
18614 prefix="$acl_save_prefix"
18616 if test "X$x" = "X$element"; then
18617 haveit=yes
18618 break
18620 done
18621 if test -z "$haveit"; then
18622 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18624 done
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18628 $as_echo_n "checking for iconv... " >&6; }
18629 if test "${am_cv_func_iconv+set}" = set; then :
18630 $as_echo_n "(cached) " >&6
18631 else
18633 am_cv_func_iconv="no, consider installing GNU libiconv"
18634 am_cv_lib_iconv=no
18635 if test x$gcc_no_link = xyes; then
18636 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18639 /* end confdefs.h. */
18640 #include <stdlib.h>
18641 #include <iconv.h>
18643 main ()
18645 iconv_t cd = iconv_open("","");
18646 iconv(cd,NULL,NULL,NULL,NULL);
18647 iconv_close(cd);
18649 return 0;
18651 _ACEOF
18652 if ac_fn_c_try_link "$LINENO"; then :
18653 am_cv_func_iconv=yes
18655 rm -f core conftest.err conftest.$ac_objext \
18656 conftest$ac_exeext conftest.$ac_ext
18657 if test "$am_cv_func_iconv" != yes; then
18658 am_save_LIBS="$LIBS"
18659 LIBS="$LIBS $LIBICONV"
18660 if test x$gcc_no_link = xyes; then
18661 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18664 /* end confdefs.h. */
18665 #include <stdlib.h>
18666 #include <iconv.h>
18668 main ()
18670 iconv_t cd = iconv_open("","");
18671 iconv(cd,NULL,NULL,NULL,NULL);
18672 iconv_close(cd);
18674 return 0;
18676 _ACEOF
18677 if ac_fn_c_try_link "$LINENO"; then :
18678 am_cv_lib_iconv=yes
18679 am_cv_func_iconv=yes
18681 rm -f core conftest.err conftest.$ac_objext \
18682 conftest$ac_exeext conftest.$ac_ext
18683 LIBS="$am_save_LIBS"
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18688 $as_echo "$am_cv_func_iconv" >&6; }
18689 if test "$am_cv_func_iconv" = yes; then
18691 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18694 if test "$am_cv_lib_iconv" = yes; then
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18696 $as_echo_n "checking how to link with libiconv... " >&6; }
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18698 $as_echo "$LIBICONV" >&6; }
18699 else
18700 CPPFLAGS="$am_save_CPPFLAGS"
18701 LIBICONV=
18702 LTLIBICONV=
18707 if test "$am_cv_func_iconv" = yes; then
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18709 $as_echo_n "checking for iconv declaration... " >&6; }
18710 if test "${am_cv_proto_iconv+set}" = set; then :
18711 $as_echo_n "(cached) " >&6
18712 else
18714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18715 /* end confdefs.h. */
18717 #include <stdlib.h>
18718 #include <iconv.h>
18719 extern
18720 #ifdef __cplusplus
18722 #endif
18723 #if defined(__STDC__) || defined(__cplusplus)
18724 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18725 #else
18726 size_t iconv();
18727 #endif
18730 main ()
18734 return 0;
18736 _ACEOF
18737 if ac_fn_c_try_compile "$LINENO"; then :
18738 am_cv_proto_iconv_arg1=""
18739 else
18740 am_cv_proto_iconv_arg1="const"
18742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18743 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
18746 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
18748 }$am_cv_proto_iconv" >&5
18749 $as_echo "${ac_t:-
18750 }$am_cv_proto_iconv" >&6; }
18752 cat >>confdefs.h <<_ACEOF
18753 #define ICONV_CONST $am_cv_proto_iconv_arg1
18754 _ACEOF
18759 if test "x${GCC}" = xyes; then
18761 WARNING_CFLAGS='-W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
18764 EXTRA_CFLAGS='-fexceptions -fasynchronous-unwind-tables'
18767 STRICT_WARNING_CFLAGS='-Wstrict-prototypes -pedantic'
18770 ERROR_CFLAGS=
18771 if test "x${ENABLE_WERROR}" = xyes; then
18772 ERROR_CFLAGS='-Werror'
18777 if test "x${COMPILE_XMLJ}" = xyes; then
18779 succeeded=no
18781 if test -z "$PKG_CONFIG"; then
18782 # Extract the first word of "pkg-config", so it can be a program name with args.
18783 set dummy pkg-config; ac_word=$2
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18785 $as_echo_n "checking for $ac_word... " >&6; }
18786 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18787 $as_echo_n "(cached) " >&6
18788 else
18789 case $PKG_CONFIG in
18790 [\\/]* | ?:[\\/]*)
18791 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18795 for as_dir in $PATH
18797 IFS=$as_save_IFS
18798 test -z "$as_dir" && as_dir=.
18799 for ac_exec_ext in '' $ac_executable_extensions; do
18800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18801 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18803 break 2
18805 done
18806 done
18807 IFS=$as_save_IFS
18809 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18811 esac
18813 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18814 if test -n "$PKG_CONFIG"; then
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18816 $as_echo "$PKG_CONFIG" >&6; }
18817 else
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18819 $as_echo "no" >&6; }
18825 if test "$PKG_CONFIG" = "no" ; then
18826 echo "*** The pkg-config script could not be found. Make sure it is"
18827 echo "*** in your path, or set the PKG_CONFIG environment variable"
18828 echo "*** to the full path to pkg-config."
18829 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18830 else
18831 PKG_CONFIG_MIN_VERSION=0.9.0
18832 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.8" >&5
18834 $as_echo_n "checking for libxml-2.0 >= 2.6.8... " >&6; }
18836 if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18838 $as_echo "yes" >&6; }
18839 succeeded=yes
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_CFLAGS" >&5
18842 $as_echo_n "checking XML_CFLAGS... " >&6; }
18843 XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_CFLAGS" >&5
18845 $as_echo "$XML_CFLAGS" >&6; }
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_LIBS" >&5
18848 $as_echo_n "checking XML_LIBS... " >&6; }
18849 XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_LIBS" >&5
18851 $as_echo "$XML_LIBS" >&6; }
18852 else
18853 XML_CFLAGS=""
18854 XML_LIBS=""
18855 ## If we have a custom action on failure, don't print errors, but
18856 ## do set a variable so people can do so.
18857 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
18858 echo $XML_PKG_ERRORS
18863 else
18864 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18865 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18869 if test $succeeded = yes; then
18871 else
18872 as_fn_error "Library requirements (libxml-2.0 >= 2.6.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
18876 succeeded=no
18878 if test -z "$PKG_CONFIG"; then
18879 # Extract the first word of "pkg-config", so it can be a program name with args.
18880 set dummy pkg-config; ac_word=$2
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18882 $as_echo_n "checking for $ac_word... " >&6; }
18883 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18884 $as_echo_n "(cached) " >&6
18885 else
18886 case $PKG_CONFIG in
18887 [\\/]* | ?:[\\/]*)
18888 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18892 for as_dir in $PATH
18894 IFS=$as_save_IFS
18895 test -z "$as_dir" && as_dir=.
18896 for ac_exec_ext in '' $ac_executable_extensions; do
18897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18898 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18900 break 2
18902 done
18903 done
18904 IFS=$as_save_IFS
18906 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18908 esac
18910 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18911 if test -n "$PKG_CONFIG"; then
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18913 $as_echo "$PKG_CONFIG" >&6; }
18914 else
18915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18916 $as_echo "no" >&6; }
18922 if test "$PKG_CONFIG" = "no" ; then
18923 echo "*** The pkg-config script could not be found. Make sure it is"
18924 echo "*** in your path, or set the PKG_CONFIG environment variable"
18925 echo "*** to the full path to pkg-config."
18926 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18927 else
18928 PKG_CONFIG_MIN_VERSION=0.9.0
18929 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt >= 1.1.11" >&5
18931 $as_echo_n "checking for libxslt >= 1.1.11... " >&6; }
18933 if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18935 $as_echo "yes" >&6; }
18936 succeeded=yes
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_CFLAGS" >&5
18939 $as_echo_n "checking XSLT_CFLAGS... " >&6; }
18940 XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
18941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_CFLAGS" >&5
18942 $as_echo "$XSLT_CFLAGS" >&6; }
18944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_LIBS" >&5
18945 $as_echo_n "checking XSLT_LIBS... " >&6; }
18946 XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_LIBS" >&5
18948 $as_echo "$XSLT_LIBS" >&6; }
18949 else
18950 XSLT_CFLAGS=""
18951 XSLT_LIBS=""
18952 ## If we have a custom action on failure, don't print errors, but
18953 ## do set a variable so people can do so.
18954 XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
18955 echo $XSLT_PKG_ERRORS
18960 else
18961 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18962 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18966 if test $succeeded = yes; then
18968 else
18969 as_fn_error "Library requirements (libxslt >= 1.1.11) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
18978 if test "x${COMPILE_GTK_PEER}" = xyes; then
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18980 $as_echo_n "checking for X... " >&6; }
18983 # Check whether --with-x was given.
18984 if test "${with_x+set}" = set; then :
18985 withval=$with_x;
18988 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18989 if test "x$with_x" = xno; then
18990 # The user explicitly disabled X.
18991 have_x=disabled
18992 else
18993 case $x_includes,$x_libraries in #(
18994 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
18995 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
18996 $as_echo_n "(cached) " >&6
18997 else
18998 # One or both of the vars are not set, and there is no cached value.
18999 ac_x_includes=no ac_x_libraries=no
19000 rm -f -r conftest.dir
19001 if mkdir conftest.dir; then
19002 cd conftest.dir
19003 cat >Imakefile <<'_ACEOF'
19004 incroot:
19005 @echo incroot='${INCROOT}'
19006 usrlibdir:
19007 @echo usrlibdir='${USRLIBDIR}'
19008 libdir:
19009 @echo libdir='${LIBDIR}'
19010 _ACEOF
19011 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19012 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19013 for ac_var in incroot usrlibdir libdir; do
19014 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19015 done
19016 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19017 for ac_extension in a so sl dylib la dll; do
19018 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19019 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19020 ac_im_usrlibdir=$ac_im_libdir; break
19022 done
19023 # Screen out bogus values from the imake configuration. They are
19024 # bogus both because they are the default anyway, and because
19025 # using them would break gcc on systems where it needs fixed includes.
19026 case $ac_im_incroot in
19027 /usr/include) ac_x_includes= ;;
19028 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19029 esac
19030 case $ac_im_usrlibdir in
19031 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19032 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19033 esac
19035 cd ..
19036 rm -f -r conftest.dir
19039 # Standard set of common directories for X headers.
19040 # Check X11 before X11Rn because it is often a symlink to the current release.
19041 ac_x_header_dirs='
19042 /usr/X11/include
19043 /usr/X11R7/include
19044 /usr/X11R6/include
19045 /usr/X11R5/include
19046 /usr/X11R4/include
19048 /usr/include/X11
19049 /usr/include/X11R7
19050 /usr/include/X11R6
19051 /usr/include/X11R5
19052 /usr/include/X11R4
19054 /usr/local/X11/include
19055 /usr/local/X11R7/include
19056 /usr/local/X11R6/include
19057 /usr/local/X11R5/include
19058 /usr/local/X11R4/include
19060 /usr/local/include/X11
19061 /usr/local/include/X11R7
19062 /usr/local/include/X11R6
19063 /usr/local/include/X11R5
19064 /usr/local/include/X11R4
19066 /usr/X386/include
19067 /usr/x386/include
19068 /usr/XFree86/include/X11
19070 /usr/include
19071 /usr/local/include
19072 /usr/unsupported/include
19073 /usr/athena/include
19074 /usr/local/x11r5/include
19075 /usr/lpp/Xamples/include
19077 /usr/openwin/include
19078 /usr/openwin/share/include'
19080 if test "$ac_x_includes" = no; then
19081 # Guess where to find include files, by looking for Xlib.h.
19082 # First, try using that file with no special directory specified.
19083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19084 /* end confdefs.h. */
19085 #include <X11/Xlib.h>
19086 _ACEOF
19087 if ac_fn_c_try_cpp "$LINENO"; then :
19088 # We can compile using X headers with no special include directory.
19089 ac_x_includes=
19090 else
19091 for ac_dir in $ac_x_header_dirs; do
19092 if test -r "$ac_dir/X11/Xlib.h"; then
19093 ac_x_includes=$ac_dir
19094 break
19096 done
19098 rm -f conftest.err conftest.$ac_ext
19099 fi # $ac_x_includes = no
19101 if test "$ac_x_libraries" = no; then
19102 # Check for the libraries.
19103 # See if we find them without any special options.
19104 # Don't add to $LIBS permanently.
19105 ac_save_LIBS=$LIBS
19106 LIBS="-lX11 $LIBS"
19107 if test x$gcc_no_link = xyes; then
19108 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19111 /* end confdefs.h. */
19112 #include <X11/Xlib.h>
19114 main ()
19116 XrmInitialize ()
19118 return 0;
19120 _ACEOF
19121 if ac_fn_c_try_link "$LINENO"; then :
19122 LIBS=$ac_save_LIBS
19123 # We can link X programs with no special library path.
19124 ac_x_libraries=
19125 else
19126 LIBS=$ac_save_LIBS
19127 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19129 # Don't even attempt the hair of trying to link an X program!
19130 for ac_extension in a so sl dylib la dll; do
19131 if test -r "$ac_dir/libX11.$ac_extension"; then
19132 ac_x_libraries=$ac_dir
19133 break 2
19135 done
19136 done
19138 rm -f core conftest.err conftest.$ac_objext \
19139 conftest$ac_exeext conftest.$ac_ext
19140 fi # $ac_x_libraries = no
19142 case $ac_x_includes,$ac_x_libraries in #(
19143 no,* | *,no | *\'*)
19144 # Didn't find X, or a directory has "'" in its name.
19145 ac_cv_have_x="have_x=no";; #(
19147 # Record where we found X for the cache.
19148 ac_cv_have_x="have_x=yes\
19149 ac_x_includes='$ac_x_includes'\
19150 ac_x_libraries='$ac_x_libraries'"
19151 esac
19153 ;; #(
19154 *) have_x=yes;;
19155 esac
19156 eval "$ac_cv_have_x"
19157 fi # $with_x != no
19159 if test "$have_x" != yes; then
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19161 $as_echo "$have_x" >&6; }
19162 no_x=yes
19163 else
19164 # If each of the values was on the command line, it overrides each guess.
19165 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19166 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19167 # Update the cache value to reflect the command line values.
19168 ac_cv_have_x="have_x=yes\
19169 ac_x_includes='$x_includes'\
19170 ac_x_libraries='$x_libraries'"
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19172 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19175 if test "$no_x" = yes; then
19176 # Not all programs may use this symbol, but it does not hurt to define it.
19178 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19180 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19181 else
19182 if test -n "$x_includes"; then
19183 X_CFLAGS="$X_CFLAGS -I$x_includes"
19186 # It would also be nice to do this for all -L options, not just this one.
19187 if test -n "$x_libraries"; then
19188 X_LIBS="$X_LIBS -L$x_libraries"
19189 # For Solaris; some versions of Sun CC require a space after -R and
19190 # others require no space. Words are not sufficient . . . .
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19192 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19193 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19194 ac_xsave_c_werror_flag=$ac_c_werror_flag
19195 ac_c_werror_flag=yes
19196 if test x$gcc_no_link = xyes; then
19197 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19200 /* end confdefs.h. */
19203 main ()
19207 return 0;
19209 _ACEOF
19210 if ac_fn_c_try_link "$LINENO"; then :
19211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19212 $as_echo "no" >&6; }
19213 X_LIBS="$X_LIBS -R$x_libraries"
19214 else
19215 LIBS="$ac_xsave_LIBS -R $x_libraries"
19216 if test x$gcc_no_link = xyes; then
19217 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19220 /* end confdefs.h. */
19223 main ()
19227 return 0;
19229 _ACEOF
19230 if ac_fn_c_try_link "$LINENO"; then :
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19232 $as_echo "yes" >&6; }
19233 X_LIBS="$X_LIBS -R $x_libraries"
19234 else
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19236 $as_echo "neither works" >&6; }
19238 rm -f core conftest.err conftest.$ac_objext \
19239 conftest$ac_exeext conftest.$ac_ext
19241 rm -f core conftest.err conftest.$ac_objext \
19242 conftest$ac_exeext conftest.$ac_ext
19243 ac_c_werror_flag=$ac_xsave_c_werror_flag
19244 LIBS=$ac_xsave_LIBS
19247 # Check for system-dependent libraries X programs must link with.
19248 # Do this before checking for the system-independent R6 libraries
19249 # (-lICE), since we may need -lsocket or whatever for X linking.
19251 if test "$ISC" = yes; then
19252 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19253 else
19254 # Martyn Johnson says this is needed for Ultrix, if the X
19255 # libraries were built with DECnet support. And Karl Berry says
19256 # the Alpha needs dnet_stub (dnet does not exist).
19257 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19258 if test x$gcc_no_link = xyes; then
19259 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19262 /* end confdefs.h. */
19264 /* Override any GCC internal prototype to avoid an error.
19265 Use char because int might match the return type of a GCC
19266 builtin and then its argument prototype would still apply. */
19267 #ifdef __cplusplus
19268 extern "C"
19269 #endif
19270 char XOpenDisplay ();
19272 main ()
19274 return XOpenDisplay ();
19276 return 0;
19278 _ACEOF
19279 if ac_fn_c_try_link "$LINENO"; then :
19281 else
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19283 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19284 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19285 $as_echo_n "(cached) " >&6
19286 else
19287 ac_check_lib_save_LIBS=$LIBS
19288 LIBS="-ldnet $LIBS"
19289 if test x$gcc_no_link = xyes; then
19290 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19293 /* end confdefs.h. */
19295 /* Override any GCC internal prototype to avoid an error.
19296 Use char because int might match the return type of a GCC
19297 builtin and then its argument prototype would still apply. */
19298 #ifdef __cplusplus
19299 extern "C"
19300 #endif
19301 char dnet_ntoa ();
19303 main ()
19305 return dnet_ntoa ();
19307 return 0;
19309 _ACEOF
19310 if ac_fn_c_try_link "$LINENO"; then :
19311 ac_cv_lib_dnet_dnet_ntoa=yes
19312 else
19313 ac_cv_lib_dnet_dnet_ntoa=no
19315 rm -f core conftest.err conftest.$ac_objext \
19316 conftest$ac_exeext conftest.$ac_ext
19317 LIBS=$ac_check_lib_save_LIBS
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19320 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19321 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
19322 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19325 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19327 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19328 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
19329 $as_echo_n "(cached) " >&6
19330 else
19331 ac_check_lib_save_LIBS=$LIBS
19332 LIBS="-ldnet_stub $LIBS"
19333 if test x$gcc_no_link = xyes; then
19334 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19337 /* end confdefs.h. */
19339 /* Override any GCC internal prototype to avoid an error.
19340 Use char because int might match the return type of a GCC
19341 builtin and then its argument prototype would still apply. */
19342 #ifdef __cplusplus
19343 extern "C"
19344 #endif
19345 char dnet_ntoa ();
19347 main ()
19349 return dnet_ntoa ();
19351 return 0;
19353 _ACEOF
19354 if ac_fn_c_try_link "$LINENO"; then :
19355 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19356 else
19357 ac_cv_lib_dnet_stub_dnet_ntoa=no
19359 rm -f core conftest.err conftest.$ac_objext \
19360 conftest$ac_exeext conftest.$ac_ext
19361 LIBS=$ac_check_lib_save_LIBS
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19364 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19365 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
19366 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19371 rm -f core conftest.err conftest.$ac_objext \
19372 conftest$ac_exeext conftest.$ac_ext
19373 LIBS="$ac_xsave_LIBS"
19375 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19376 # to get the SysV transport functions.
19377 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19378 # needs -lnsl.
19379 # The nsl library prevents programs from opening the X display
19380 # on Irix 5.2, according to T.E. Dickey.
19381 # The functions gethostbyname, getservbyname, and inet_addr are
19382 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19383 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19384 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
19388 if test $ac_cv_func_gethostbyname = no; then
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19390 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19391 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
19392 $as_echo_n "(cached) " >&6
19393 else
19394 ac_check_lib_save_LIBS=$LIBS
19395 LIBS="-lnsl $LIBS"
19396 if test x$gcc_no_link = xyes; then
19397 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19400 /* end confdefs.h. */
19402 /* Override any GCC internal prototype to avoid an error.
19403 Use char because int might match the return type of a GCC
19404 builtin and then its argument prototype would still apply. */
19405 #ifdef __cplusplus
19406 extern "C"
19407 #endif
19408 char gethostbyname ();
19410 main ()
19412 return gethostbyname ();
19414 return 0;
19416 _ACEOF
19417 if ac_fn_c_try_link "$LINENO"; then :
19418 ac_cv_lib_nsl_gethostbyname=yes
19419 else
19420 ac_cv_lib_nsl_gethostbyname=no
19422 rm -f core conftest.err conftest.$ac_objext \
19423 conftest$ac_exeext conftest.$ac_ext
19424 LIBS=$ac_check_lib_save_LIBS
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19427 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19428 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
19429 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19432 if test $ac_cv_lib_nsl_gethostbyname = no; then
19433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
19434 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
19435 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
19436 $as_echo_n "(cached) " >&6
19437 else
19438 ac_check_lib_save_LIBS=$LIBS
19439 LIBS="-lbsd $LIBS"
19440 if test x$gcc_no_link = xyes; then
19441 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19444 /* end confdefs.h. */
19446 /* Override any GCC internal prototype to avoid an error.
19447 Use char because int might match the return type of a GCC
19448 builtin and then its argument prototype would still apply. */
19449 #ifdef __cplusplus
19450 extern "C"
19451 #endif
19452 char gethostbyname ();
19454 main ()
19456 return gethostbyname ();
19458 return 0;
19460 _ACEOF
19461 if ac_fn_c_try_link "$LINENO"; then :
19462 ac_cv_lib_bsd_gethostbyname=yes
19463 else
19464 ac_cv_lib_bsd_gethostbyname=no
19466 rm -f core conftest.err conftest.$ac_objext \
19467 conftest$ac_exeext conftest.$ac_ext
19468 LIBS=$ac_check_lib_save_LIBS
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
19471 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
19472 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
19473 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19479 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19480 # socket/setsockopt and other routines are undefined under SCO ODT
19481 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19482 # on later versions), says Simon Leinen: it contains gethostby*
19483 # variants that don't use the name server (or something). -lsocket
19484 # must be given before -lnsl if both are needed. We assume that
19485 # if connect needs -lnsl, so does gethostbyname.
19486 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
19487 if test "x$ac_cv_func_connect" = x""yes; then :
19491 if test $ac_cv_func_connect = no; then
19492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
19493 $as_echo_n "checking for connect in -lsocket... " >&6; }
19494 if test "${ac_cv_lib_socket_connect+set}" = set; then :
19495 $as_echo_n "(cached) " >&6
19496 else
19497 ac_check_lib_save_LIBS=$LIBS
19498 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19499 if test x$gcc_no_link = xyes; then
19500 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19503 /* end confdefs.h. */
19505 /* Override any GCC internal prototype to avoid an error.
19506 Use char because int might match the return type of a GCC
19507 builtin and then its argument prototype would still apply. */
19508 #ifdef __cplusplus
19509 extern "C"
19510 #endif
19511 char connect ();
19513 main ()
19515 return connect ();
19517 return 0;
19519 _ACEOF
19520 if ac_fn_c_try_link "$LINENO"; then :
19521 ac_cv_lib_socket_connect=yes
19522 else
19523 ac_cv_lib_socket_connect=no
19525 rm -f core conftest.err conftest.$ac_objext \
19526 conftest$ac_exeext conftest.$ac_ext
19527 LIBS=$ac_check_lib_save_LIBS
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19530 $as_echo "$ac_cv_lib_socket_connect" >&6; }
19531 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
19532 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19537 # Guillermo Gomez says -lposix is necessary on A/UX.
19538 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
19539 if test "x$ac_cv_func_remove" = x""yes; then :
19543 if test $ac_cv_func_remove = no; then
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19545 $as_echo_n "checking for remove in -lposix... " >&6; }
19546 if test "${ac_cv_lib_posix_remove+set}" = set; then :
19547 $as_echo_n "(cached) " >&6
19548 else
19549 ac_check_lib_save_LIBS=$LIBS
19550 LIBS="-lposix $LIBS"
19551 if test x$gcc_no_link = xyes; then
19552 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19555 /* end confdefs.h. */
19557 /* Override any GCC internal prototype to avoid an error.
19558 Use char because int might match the return type of a GCC
19559 builtin and then its argument prototype would still apply. */
19560 #ifdef __cplusplus
19561 extern "C"
19562 #endif
19563 char remove ();
19565 main ()
19567 return remove ();
19569 return 0;
19571 _ACEOF
19572 if ac_fn_c_try_link "$LINENO"; then :
19573 ac_cv_lib_posix_remove=yes
19574 else
19575 ac_cv_lib_posix_remove=no
19577 rm -f core conftest.err conftest.$ac_objext \
19578 conftest$ac_exeext conftest.$ac_ext
19579 LIBS=$ac_check_lib_save_LIBS
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19582 $as_echo "$ac_cv_lib_posix_remove" >&6; }
19583 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
19584 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19589 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19590 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19591 if test "x$ac_cv_func_shmat" = x""yes; then :
19595 if test $ac_cv_func_shmat = no; then
19596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19597 $as_echo_n "checking for shmat in -lipc... " >&6; }
19598 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
19599 $as_echo_n "(cached) " >&6
19600 else
19601 ac_check_lib_save_LIBS=$LIBS
19602 LIBS="-lipc $LIBS"
19603 if test x$gcc_no_link = xyes; then
19604 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19607 /* end confdefs.h. */
19609 /* Override any GCC internal prototype to avoid an error.
19610 Use char because int might match the return type of a GCC
19611 builtin and then its argument prototype would still apply. */
19612 #ifdef __cplusplus
19613 extern "C"
19614 #endif
19615 char shmat ();
19617 main ()
19619 return shmat ();
19621 return 0;
19623 _ACEOF
19624 if ac_fn_c_try_link "$LINENO"; then :
19625 ac_cv_lib_ipc_shmat=yes
19626 else
19627 ac_cv_lib_ipc_shmat=no
19629 rm -f core conftest.err conftest.$ac_objext \
19630 conftest$ac_exeext conftest.$ac_ext
19631 LIBS=$ac_check_lib_save_LIBS
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19634 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19635 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
19636 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19642 # Check for libraries that X11R6 Xt/Xaw programs need.
19643 ac_save_LDFLAGS=$LDFLAGS
19644 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19645 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19646 # check for ICE first), but we must link in the order -lSM -lICE or
19647 # we get undefined symbols. So assume we have SM if we have ICE.
19648 # These have to be linked with before -lX11, unlike the other
19649 # libraries we check for below, so use a different variable.
19650 # John Interrante, Karl Berry
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19652 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19653 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
19654 $as_echo_n "(cached) " >&6
19655 else
19656 ac_check_lib_save_LIBS=$LIBS
19657 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19658 if test x$gcc_no_link = xyes; then
19659 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19662 /* end confdefs.h. */
19664 /* Override any GCC internal prototype to avoid an error.
19665 Use char because int might match the return type of a GCC
19666 builtin and then its argument prototype would still apply. */
19667 #ifdef __cplusplus
19668 extern "C"
19669 #endif
19670 char IceConnectionNumber ();
19672 main ()
19674 return IceConnectionNumber ();
19676 return 0;
19678 _ACEOF
19679 if ac_fn_c_try_link "$LINENO"; then :
19680 ac_cv_lib_ICE_IceConnectionNumber=yes
19681 else
19682 ac_cv_lib_ICE_IceConnectionNumber=no
19684 rm -f core conftest.err conftest.$ac_objext \
19685 conftest$ac_exeext conftest.$ac_ext
19686 LIBS=$ac_check_lib_save_LIBS
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19689 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19690 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
19691 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19694 LDFLAGS=$ac_save_LDFLAGS
19698 if test "$no_x" = yes; then
19699 as_fn_error "GTK+ peers requested but no X library available" "$LINENO" 5
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
19702 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
19703 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
19704 $as_echo_n "(cached) " >&6
19705 else
19706 ac_check_lib_save_LIBS=$LIBS
19707 LIBS="-lXtst ${X_LIBS} $LIBS"
19708 if test x$gcc_no_link = xyes; then
19709 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19712 /* end confdefs.h. */
19714 /* Override any GCC internal prototype to avoid an error.
19715 Use char because int might match the return type of a GCC
19716 builtin and then its argument prototype would still apply. */
19717 #ifdef __cplusplus
19718 extern "C"
19719 #endif
19720 char XTestQueryExtension ();
19722 main ()
19724 return XTestQueryExtension ();
19726 return 0;
19728 _ACEOF
19729 if ac_fn_c_try_link "$LINENO"; then :
19730 ac_cv_lib_Xtst_XTestQueryExtension=yes
19731 else
19732 ac_cv_lib_Xtst_XTestQueryExtension=no
19734 rm -f core conftest.err conftest.$ac_objext \
19735 conftest$ac_exeext conftest.$ac_ext
19736 LIBS=$ac_check_lib_save_LIBS
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
19739 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
19740 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
19742 $as_echo "#define HAVE_XTEST 1" >>confdefs.h
19743 XTEST_LIBS="$XTEST_LIBS -X11 -lXtst"
19744 else
19745 true
19751 succeeded=no
19753 if test -z "$PKG_CONFIG"; then
19754 # Extract the first word of "pkg-config", so it can be a program name with args.
19755 set dummy pkg-config; ac_word=$2
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19757 $as_echo_n "checking for $ac_word... " >&6; }
19758 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19759 $as_echo_n "(cached) " >&6
19760 else
19761 case $PKG_CONFIG in
19762 [\\/]* | ?:[\\/]*)
19763 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19767 for as_dir in $PATH
19769 IFS=$as_save_IFS
19770 test -z "$as_dir" && as_dir=.
19771 for ac_exec_ext in '' $ac_executable_extensions; do
19772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19773 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19775 break 2
19777 done
19778 done
19779 IFS=$as_save_IFS
19781 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19783 esac
19785 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19786 if test -n "$PKG_CONFIG"; then
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19788 $as_echo "$PKG_CONFIG" >&6; }
19789 else
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19791 $as_echo "no" >&6; }
19797 if test "$PKG_CONFIG" = "no" ; then
19798 echo "*** The pkg-config script could not be found. Make sure it is"
19799 echo "*** in your path, or set the PKG_CONFIG environment variable"
19800 echo "*** to the full path to pkg-config."
19801 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19802 else
19803 PKG_CONFIG_MIN_VERSION=0.9.0
19804 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
19806 $as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
19808 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19810 $as_echo "yes" >&6; }
19811 succeeded=yes
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
19814 $as_echo_n "checking GTK_CFLAGS... " >&6; }
19815 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
19817 $as_echo "$GTK_CFLAGS" >&6; }
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
19820 $as_echo_n "checking GTK_LIBS... " >&6; }
19821 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
19823 $as_echo "$GTK_LIBS" >&6; }
19824 else
19825 GTK_CFLAGS=""
19826 GTK_LIBS=""
19827 ## If we have a custom action on failure, don't print errors, but
19828 ## do set a variable so people can do so.
19829 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19830 echo $GTK_PKG_ERRORS
19835 else
19836 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19837 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19841 if test $succeeded = yes; then
19843 else
19844 as_fn_error "Library requirements (gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
19848 succeeded=no
19850 if test -z "$PKG_CONFIG"; then
19851 # Extract the first word of "pkg-config", so it can be a program name with args.
19852 set dummy pkg-config; ac_word=$2
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19854 $as_echo_n "checking for $ac_word... " >&6; }
19855 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19856 $as_echo_n "(cached) " >&6
19857 else
19858 case $PKG_CONFIG in
19859 [\\/]* | ?:[\\/]*)
19860 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19864 for as_dir in $PATH
19866 IFS=$as_save_IFS
19867 test -z "$as_dir" && as_dir=.
19868 for ac_exec_ext in '' $ac_executable_extensions; do
19869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19870 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19872 break 2
19874 done
19875 done
19876 IFS=$as_save_IFS
19878 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19880 esac
19882 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19883 if test -n "$PKG_CONFIG"; then
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19885 $as_echo "$PKG_CONFIG" >&6; }
19886 else
19887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19888 $as_echo "no" >&6; }
19894 if test "$PKG_CONFIG" = "no" ; then
19895 echo "*** The pkg-config script could not be found. Make sure it is"
19896 echo "*** in your path, or set the PKG_CONFIG environment variable"
19897 echo "*** to the full path to pkg-config."
19898 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19899 else
19900 PKG_CONFIG_MIN_VERSION=0.9.0
19901 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
19903 $as_echo_n "checking for freetype2... " >&6; }
19905 if $PKG_CONFIG --exists "freetype2" ; then
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19907 $as_echo "yes" >&6; }
19908 succeeded=yes
19910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_CFLAGS" >&5
19911 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
19912 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_CFLAGS" >&5
19914 $as_echo "$FREETYPE2_CFLAGS" >&6; }
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_LIBS" >&5
19917 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
19918 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_LIBS" >&5
19920 $as_echo "$FREETYPE2_LIBS" >&6; }
19921 else
19922 FREETYPE2_CFLAGS=""
19923 FREETYPE2_LIBS=""
19924 ## If we have a custom action on failure, don't print errors, but
19925 ## do set a variable so people can do so.
19926 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
19927 echo $FREETYPE2_PKG_ERRORS
19932 else
19933 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19934 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19938 if test $succeeded = yes; then
19940 else
19941 as_fn_error "Library requirements (freetype2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
19945 succeeded=no
19947 if test -z "$PKG_CONFIG"; then
19948 # Extract the first word of "pkg-config", so it can be a program name with args.
19949 set dummy pkg-config; ac_word=$2
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19951 $as_echo_n "checking for $ac_word... " >&6; }
19952 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19953 $as_echo_n "(cached) " >&6
19954 else
19955 case $PKG_CONFIG in
19956 [\\/]* | ?:[\\/]*)
19957 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19961 for as_dir in $PATH
19963 IFS=$as_save_IFS
19964 test -z "$as_dir" && as_dir=.
19965 for ac_exec_ext in '' $ac_executable_extensions; do
19966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19967 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19969 break 2
19971 done
19972 done
19973 IFS=$as_save_IFS
19975 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19977 esac
19979 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19980 if test -n "$PKG_CONFIG"; then
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19982 $as_echo "$PKG_CONFIG" >&6; }
19983 else
19984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19985 $as_echo "no" >&6; }
19991 if test "$PKG_CONFIG" = "no" ; then
19992 echo "*** The pkg-config script could not be found. Make sure it is"
19993 echo "*** in your path, or set the PKG_CONFIG environment variable"
19994 echo "*** to the full path to pkg-config."
19995 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19996 else
19997 PKG_CONFIG_MIN_VERSION=0.9.0
19998 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pangoft2" >&5
20000 $as_echo_n "checking for pangoft2... " >&6; }
20002 if $PKG_CONFIG --exists "pangoft2" ; then
20003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20004 $as_echo "yes" >&6; }
20005 succeeded=yes
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_CFLAGS" >&5
20008 $as_echo_n "checking PANGOFT2_CFLAGS... " >&6; }
20009 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_CFLAGS" >&5
20011 $as_echo "$PANGOFT2_CFLAGS" >&6; }
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_LIBS" >&5
20014 $as_echo_n "checking PANGOFT2_LIBS... " >&6; }
20015 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
20016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_LIBS" >&5
20017 $as_echo "$PANGOFT2_LIBS" >&6; }
20018 else
20019 PANGOFT2_CFLAGS=""
20020 PANGOFT2_LIBS=""
20021 ## If we have a custom action on failure, don't print errors, but
20022 ## do set a variable so people can do so.
20023 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
20024 echo $PANGOFT2_PKG_ERRORS
20029 else
20030 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20031 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20035 if test $succeeded = yes; then
20037 else
20038 as_fn_error "Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20042 succeeded=no
20044 if test -z "$PKG_CONFIG"; then
20045 # Extract the first word of "pkg-config", so it can be a program name with args.
20046 set dummy pkg-config; ac_word=$2
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20048 $as_echo_n "checking for $ac_word... " >&6; }
20049 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20050 $as_echo_n "(cached) " >&6
20051 else
20052 case $PKG_CONFIG in
20053 [\\/]* | ?:[\\/]*)
20054 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20058 for as_dir in $PATH
20060 IFS=$as_save_IFS
20061 test -z "$as_dir" && as_dir=.
20062 for ac_exec_ext in '' $ac_executable_extensions; do
20063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20064 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20066 break 2
20068 done
20069 done
20070 IFS=$as_save_IFS
20072 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20074 esac
20076 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20077 if test -n "$PKG_CONFIG"; then
20078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20079 $as_echo "$PKG_CONFIG" >&6; }
20080 else
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20082 $as_echo "no" >&6; }
20088 if test "$PKG_CONFIG" = "no" ; then
20089 echo "*** The pkg-config script could not be found. Make sure it is"
20090 echo "*** in your path, or set the PKG_CONFIG environment variable"
20091 echo "*** to the full path to pkg-config."
20092 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20093 else
20094 PKG_CONFIG_MIN_VERSION=0.9.0
20095 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo >= 1.1.8" >&5
20097 $as_echo_n "checking for cairo >= 1.1.8... " >&6; }
20099 if $PKG_CONFIG --exists "cairo >= 1.1.8" ; then
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20101 $as_echo "yes" >&6; }
20102 succeeded=yes
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_CFLAGS" >&5
20105 $as_echo_n "checking CAIRO_CFLAGS... " >&6; }
20106 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.1.8"`
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_CFLAGS" >&5
20108 $as_echo "$CAIRO_CFLAGS" >&6; }
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_LIBS" >&5
20111 $as_echo_n "checking CAIRO_LIBS... " >&6; }
20112 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.1.8"`
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_LIBS" >&5
20114 $as_echo "$CAIRO_LIBS" >&6; }
20115 else
20116 CAIRO_CFLAGS=""
20117 CAIRO_LIBS=""
20118 ## If we have a custom action on failure, don't print errors, but
20119 ## do set a variable so people can do so.
20120 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.1.8"`
20121 echo $CAIRO_PKG_ERRORS
20126 else
20127 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20128 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20132 if test $succeeded = yes; then
20134 else
20135 as_fn_error "Library requirements (cairo >= 1.1.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
20139 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
20140 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
20141 $as_echo_n "(cached) " >&6
20142 else
20143 ac_check_lib_save_LIBS=$LIBS
20144 LIBS="-lXrender ${X_LIBS} $LIBS"
20145 if test x$gcc_no_link = xyes; then
20146 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20149 /* end confdefs.h. */
20151 /* Override any GCC internal prototype to avoid an error.
20152 Use char because int might match the return type of a GCC
20153 builtin and then its argument prototype would still apply. */
20154 #ifdef __cplusplus
20155 extern "C"
20156 #endif
20157 char XRenderQueryExtension ();
20159 main ()
20161 return XRenderQueryExtension ();
20163 return 0;
20165 _ACEOF
20166 if ac_fn_c_try_link "$LINENO"; then :
20167 ac_cv_lib_Xrender_XRenderQueryExtension=yes
20168 else
20169 ac_cv_lib_Xrender_XRenderQueryExtension=no
20171 rm -f core conftest.err conftest.$ac_objext \
20172 conftest$ac_exeext conftest.$ac_ext
20173 LIBS=$ac_check_lib_save_LIBS
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
20176 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
20177 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
20179 $as_echo "#define HAVE_XRENDER 1" >>confdefs.h
20180 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
20181 else
20182 true
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
20187 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
20188 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then :
20189 $as_echo_n "(cached) " >&6
20190 else
20191 ac_check_lib_save_LIBS=$LIBS
20192 LIBS="-lXrandr ${X_LIBS} $LIBS"
20193 if test x$gcc_no_link = xyes; then
20194 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20197 /* end confdefs.h. */
20199 /* Override any GCC internal prototype to avoid an error.
20200 Use char because int might match the return type of a GCC
20201 builtin and then its argument prototype would still apply. */
20202 #ifdef __cplusplus
20203 extern "C"
20204 #endif
20205 char XRRQueryExtension ();
20207 main ()
20209 return XRRQueryExtension ();
20211 return 0;
20213 _ACEOF
20214 if ac_fn_c_try_link "$LINENO"; then :
20215 ac_cv_lib_Xrandr_XRRQueryExtension=yes
20216 else
20217 ac_cv_lib_Xrandr_XRRQueryExtension=no
20219 rm -f core conftest.err conftest.$ac_objext \
20220 conftest$ac_exeext conftest.$ac_ext
20221 LIBS=$ac_check_lib_save_LIBS
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
20224 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
20225 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then :
20227 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
20228 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
20229 else
20230 true
20243 if test "x${COMPILE_GCONF_PEER}" = xyes; then
20245 succeeded=no
20247 if test -z "$PKG_CONFIG"; then
20248 # Extract the first word of "pkg-config", so it can be a program name with args.
20249 set dummy pkg-config; ac_word=$2
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20251 $as_echo_n "checking for $ac_word... " >&6; }
20252 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20253 $as_echo_n "(cached) " >&6
20254 else
20255 case $PKG_CONFIG in
20256 [\\/]* | ?:[\\/]*)
20257 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20261 for as_dir in $PATH
20263 IFS=$as_save_IFS
20264 test -z "$as_dir" && as_dir=.
20265 for ac_exec_ext in '' $ac_executable_extensions; do
20266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20267 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20269 break 2
20271 done
20272 done
20273 IFS=$as_save_IFS
20275 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20277 esac
20279 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20280 if test -n "$PKG_CONFIG"; then
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20282 $as_echo "$PKG_CONFIG" >&6; }
20283 else
20284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20285 $as_echo "no" >&6; }
20291 if test "$PKG_CONFIG" = "no" ; then
20292 echo "*** The pkg-config script could not be found. Make sure it is"
20293 echo "*** in your path, or set the PKG_CONFIG environment variable"
20294 echo "*** to the full path to pkg-config."
20295 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20296 else
20297 PKG_CONFIG_MIN_VERSION=0.9.0
20298 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.6.0" >&5
20300 $as_echo_n "checking for gconf-2.0 >= 2.6.0... " >&6; }
20302 if $PKG_CONFIG --exists "gconf-2.0 >= 2.6.0" ; then
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20304 $as_echo "yes" >&6; }
20305 succeeded=yes
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
20308 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
20309 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.6.0"`
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
20311 $as_echo "$GCONF_CFLAGS" >&6; }
20313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
20314 $as_echo_n "checking GCONF_LIBS... " >&6; }
20315 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.6.0"`
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
20317 $as_echo "$GCONF_LIBS" >&6; }
20318 else
20319 GCONF_CFLAGS=""
20320 GCONF_LIBS=""
20321 ## If we have a custom action on failure, don't print errors, but
20322 ## do set a variable so people can do so.
20323 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.6.0"`
20324 echo $GCONF_PKG_ERRORS
20329 else
20330 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20331 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20335 if test $succeeded = yes; then
20337 else
20338 as_fn_error "Library requirements (gconf-2.0 >= 2.6.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20344 succeeded=no
20346 if test -z "$PKG_CONFIG"; then
20347 # Extract the first word of "pkg-config", so it can be a program name with args.
20348 set dummy pkg-config; ac_word=$2
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20350 $as_echo_n "checking for $ac_word... " >&6; }
20351 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20352 $as_echo_n "(cached) " >&6
20353 else
20354 case $PKG_CONFIG in
20355 [\\/]* | ?:[\\/]*)
20356 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20360 for as_dir in $PATH
20362 IFS=$as_save_IFS
20363 test -z "$as_dir" && as_dir=.
20364 for ac_exec_ext in '' $ac_executable_extensions; do
20365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20366 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20368 break 2
20370 done
20371 done
20372 IFS=$as_save_IFS
20374 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20376 esac
20378 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20379 if test -n "$PKG_CONFIG"; then
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20381 $as_echo "$PKG_CONFIG" >&6; }
20382 else
20383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20384 $as_echo "no" >&6; }
20390 if test "$PKG_CONFIG" = "no" ; then
20391 echo "*** The pkg-config script could not be found. Make sure it is"
20392 echo "*** in your path, or set the PKG_CONFIG environment variable"
20393 echo "*** to the full path to pkg-config."
20394 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20395 else
20396 PKG_CONFIG_MIN_VERSION=0.9.0
20397 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
20399 $as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
20401 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
20402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20403 $as_echo "yes" >&6; }
20404 succeeded=yes
20406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
20407 $as_echo_n "checking GDK_CFLAGS... " >&6; }
20408 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
20410 $as_echo "$GDK_CFLAGS" >&6; }
20412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
20413 $as_echo_n "checking GDK_LIBS... " >&6; }
20414 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
20416 $as_echo "$GDK_LIBS" >&6; }
20417 else
20418 GDK_CFLAGS=""
20419 GDK_LIBS=""
20420 ## If we have a custom action on failure, don't print errors, but
20421 ## do set a variable so people can do so.
20422 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
20423 echo $GDK_PKG_ERRORS
20428 else
20429 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20430 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20434 if test $succeeded = yes; then
20436 else
20437 as_fn_error "Library requirements (gdk-2.0 >= 2.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20442 USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
20443 if test "$USE_GCONF_PREFS_PEER" = ""; then
20444 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
20448 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
20449 GST_MAJORMINOR=0.10
20450 GST_REQUIRED=0.10.10
20453 succeeded=no
20455 if test -z "$PKG_CONFIG"; then
20456 # Extract the first word of "pkg-config", so it can be a program name with args.
20457 set dummy pkg-config; ac_word=$2
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20459 $as_echo_n "checking for $ac_word... " >&6; }
20460 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20461 $as_echo_n "(cached) " >&6
20462 else
20463 case $PKG_CONFIG in
20464 [\\/]* | ?:[\\/]*)
20465 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20469 for as_dir in $PATH
20471 IFS=$as_save_IFS
20472 test -z "$as_dir" && as_dir=.
20473 for ac_exec_ext in '' $ac_executable_extensions; do
20474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20475 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20477 break 2
20479 done
20480 done
20481 IFS=$as_save_IFS
20483 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20485 esac
20487 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20488 if test -n "$PKG_CONFIG"; then
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20490 $as_echo "$PKG_CONFIG" >&6; }
20491 else
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20493 $as_echo "no" >&6; }
20499 if test "$PKG_CONFIG" = "no" ; then
20500 echo "*** The pkg-config script could not be found. Make sure it is"
20501 echo "*** in your path, or set the PKG_CONFIG environment variable"
20502 echo "*** to the full path to pkg-config."
20503 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20504 else
20505 PKG_CONFIG_MIN_VERSION=0.9.0
20506 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20508 $as_echo_n "checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20510 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20512 $as_echo "yes" >&6; }
20513 succeeded=yes
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_CFLAGS" >&5
20516 $as_echo_n "checking GSTREAMER_CFLAGS... " >&6; }
20517 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_CFLAGS" >&5
20519 $as_echo "$GSTREAMER_CFLAGS" >&6; }
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_LIBS" >&5
20522 $as_echo_n "checking GSTREAMER_LIBS... " >&6; }
20523 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_LIBS" >&5
20525 $as_echo "$GSTREAMER_LIBS" >&6; }
20526 else
20527 GSTREAMER_CFLAGS=""
20528 GSTREAMER_LIBS=""
20529 ## If we have a custom action on failure, don't print errors, but
20530 ## do set a variable so people can do so.
20531 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20532 echo $GSTREAMER_PKG_ERRORS
20537 else
20538 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20539 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20543 if test $succeeded = yes; then
20545 else
20546 as_fn_error "Library requirements (gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20553 succeeded=no
20555 if test -z "$PKG_CONFIG"; then
20556 # Extract the first word of "pkg-config", so it can be a program name with args.
20557 set dummy pkg-config; ac_word=$2
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20559 $as_echo_n "checking for $ac_word... " >&6; }
20560 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20561 $as_echo_n "(cached) " >&6
20562 else
20563 case $PKG_CONFIG in
20564 [\\/]* | ?:[\\/]*)
20565 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20569 for as_dir in $PATH
20571 IFS=$as_save_IFS
20572 test -z "$as_dir" && as_dir=.
20573 for ac_exec_ext in '' $ac_executable_extensions; do
20574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20575 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20577 break 2
20579 done
20580 done
20581 IFS=$as_save_IFS
20583 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20585 esac
20587 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20588 if test -n "$PKG_CONFIG"; then
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20590 $as_echo "$PKG_CONFIG" >&6; }
20591 else
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20593 $as_echo "no" >&6; }
20599 if test "$PKG_CONFIG" = "no" ; then
20600 echo "*** The pkg-config script could not be found. Make sure it is"
20601 echo "*** in your path, or set the PKG_CONFIG environment variable"
20602 echo "*** to the full path to pkg-config."
20603 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20604 else
20605 PKG_CONFIG_MIN_VERSION=0.9.0
20606 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20608 $as_echo_n "checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20610 if $PKG_CONFIG --exists "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20612 $as_echo "yes" >&6; }
20613 succeeded=yes
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_CFLAGS" >&5
20616 $as_echo_n "checking GSTREAMER_BASE_CFLAGS... " >&6; }
20617 GSTREAMER_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_CFLAGS" >&5
20619 $as_echo "$GSTREAMER_BASE_CFLAGS" >&6; }
20621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_LIBS" >&5
20622 $as_echo_n "checking GSTREAMER_BASE_LIBS... " >&6; }
20623 GSTREAMER_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_LIBS" >&5
20625 $as_echo "$GSTREAMER_BASE_LIBS" >&6; }
20626 else
20627 GSTREAMER_BASE_CFLAGS=""
20628 GSTREAMER_BASE_LIBS=""
20629 ## If we have a custom action on failure, don't print errors, but
20630 ## do set a variable so people can do so.
20631 GSTREAMER_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20632 echo $GSTREAMER_BASE_PKG_ERRORS
20637 else
20638 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20639 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20643 if test $succeeded = yes; then
20645 else
20646 as_fn_error "Library requirements (gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20653 succeeded=no
20655 if test -z "$PKG_CONFIG"; then
20656 # Extract the first word of "pkg-config", so it can be a program name with args.
20657 set dummy pkg-config; ac_word=$2
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20659 $as_echo_n "checking for $ac_word... " >&6; }
20660 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20661 $as_echo_n "(cached) " >&6
20662 else
20663 case $PKG_CONFIG in
20664 [\\/]* | ?:[\\/]*)
20665 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20669 for as_dir in $PATH
20671 IFS=$as_save_IFS
20672 test -z "$as_dir" && as_dir=.
20673 for ac_exec_ext in '' $ac_executable_extensions; do
20674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20675 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20677 break 2
20679 done
20680 done
20681 IFS=$as_save_IFS
20683 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20685 esac
20687 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20688 if test -n "$PKG_CONFIG"; then
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20690 $as_echo "$PKG_CONFIG" >&6; }
20691 else
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20693 $as_echo "no" >&6; }
20699 if test "$PKG_CONFIG" = "no" ; then
20700 echo "*** The pkg-config script could not be found. Make sure it is"
20701 echo "*** in your path, or set the PKG_CONFIG environment variable"
20702 echo "*** to the full path to pkg-config."
20703 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20704 else
20705 PKG_CONFIG_MIN_VERSION=0.9.0
20706 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20708 $as_echo_n "checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20710 if $PKG_CONFIG --exists "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20712 $as_echo "yes" >&6; }
20713 succeeded=yes
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
20716 $as_echo_n "checking GSTREAMER_PLUGINS_BASE_CFLAGS... " >&6; }
20717 GSTREAMER_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
20719 $as_echo "$GSTREAMER_PLUGINS_BASE_CFLAGS" >&6; }
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_LIBS" >&5
20722 $as_echo_n "checking GSTREAMER_PLUGINS_BASE_LIBS... " >&6; }
20723 GSTREAMER_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_LIBS" >&5
20725 $as_echo "$GSTREAMER_PLUGINS_BASE_LIBS" >&6; }
20726 else
20727 GSTREAMER_PLUGINS_BASE_CFLAGS=""
20728 GSTREAMER_PLUGINS_BASE_LIBS=""
20729 ## If we have a custom action on failure, don't print errors, but
20730 ## do set a variable so people can do so.
20731 GSTREAMER_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20732 echo $GSTREAMER_PLUGINS_BASE_PKG_ERRORS
20737 else
20738 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20739 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20743 if test $succeeded = yes; then
20745 else
20746 as_fn_error "Library requirements (gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20752 GST_PLUGIN_LDFLAGS='-module -avoid-version -Wno-unused-parameter -no-undefined'
20756 succeeded=no
20758 if test -z "$PKG_CONFIG"; then
20759 # Extract the first word of "pkg-config", so it can be a program name with args.
20760 set dummy pkg-config; ac_word=$2
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20762 $as_echo_n "checking for $ac_word... " >&6; }
20763 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20764 $as_echo_n "(cached) " >&6
20765 else
20766 case $PKG_CONFIG in
20767 [\\/]* | ?:[\\/]*)
20768 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20772 for as_dir in $PATH
20774 IFS=$as_save_IFS
20775 test -z "$as_dir" && as_dir=.
20776 for ac_exec_ext in '' $ac_executable_extensions; do
20777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20778 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20780 break 2
20782 done
20783 done
20784 IFS=$as_save_IFS
20786 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20788 esac
20790 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20791 if test -n "$PKG_CONFIG"; then
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20793 $as_echo "$PKG_CONFIG" >&6; }
20794 else
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20796 $as_echo "no" >&6; }
20802 if test "$PKG_CONFIG" = "no" ; then
20803 echo "*** The pkg-config script could not be found. Make sure it is"
20804 echo "*** in your path, or set the PKG_CONFIG environment variable"
20805 echo "*** to the full path to pkg-config."
20806 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20807 else
20808 PKG_CONFIG_MIN_VERSION=0.9.0
20809 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
20811 $as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
20813 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20815 $as_echo "yes" >&6; }
20816 succeeded=yes
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
20819 $as_echo_n "checking GDK_CFLAGS... " >&6; }
20820 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
20822 $as_echo "$GDK_CFLAGS" >&6; }
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
20825 $as_echo_n "checking GDK_LIBS... " >&6; }
20826 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
20828 $as_echo "$GDK_LIBS" >&6; }
20829 else
20830 GDK_CFLAGS=""
20831 GDK_LIBS=""
20832 ## If we have a custom action on failure, don't print errors, but
20833 ## do set a variable so people can do so.
20834 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
20835 echo $GDK_PKG_ERRORS
20840 else
20841 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20842 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20846 if test $succeeded = yes; then
20848 else
20849 as_fn_error "Library requirements (gdk-2.0 >= 2.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20855 GSTREAMER_FILE_READER=gnu.javax.sound.sampled.gstreamer.io.GstAudioFileReader
20856 GSTREAMER_MIXER_PROVIDER=gnu.javax.sound.sampled.gstreamer.GStreamerMixerProvider
20861 if test "x${COMPILE_QT_PEER}" = xyes; then
20863 succeeded=no
20865 if test -z "$PKG_CONFIG"; then
20866 # Extract the first word of "pkg-config", so it can be a program name with args.
20867 set dummy pkg-config; ac_word=$2
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20869 $as_echo_n "checking for $ac_word... " >&6; }
20870 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20871 $as_echo_n "(cached) " >&6
20872 else
20873 case $PKG_CONFIG in
20874 [\\/]* | ?:[\\/]*)
20875 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20879 for as_dir in $PATH
20881 IFS=$as_save_IFS
20882 test -z "$as_dir" && as_dir=.
20883 for ac_exec_ext in '' $ac_executable_extensions; do
20884 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20885 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20887 break 2
20889 done
20890 done
20891 IFS=$as_save_IFS
20893 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20895 esac
20897 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20898 if test -n "$PKG_CONFIG"; then
20899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20900 $as_echo "$PKG_CONFIG" >&6; }
20901 else
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20903 $as_echo "no" >&6; }
20909 if test "$PKG_CONFIG" = "no" ; then
20910 echo "*** The pkg-config script could not be found. Make sure it is"
20911 echo "*** in your path, or set the PKG_CONFIG environment variable"
20912 echo "*** to the full path to pkg-config."
20913 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20914 else
20915 PKG_CONFIG_MIN_VERSION=0.9.0
20916 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore QtGui >= 4.1.0" >&5
20918 $as_echo_n "checking for QtCore QtGui >= 4.1.0... " >&6; }
20920 if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20922 $as_echo "yes" >&6; }
20923 succeeded=yes
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_CFLAGS" >&5
20926 $as_echo_n "checking QT_CFLAGS... " >&6; }
20927 QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CFLAGS" >&5
20929 $as_echo "$QT_CFLAGS" >&6; }
20931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_LIBS" >&5
20932 $as_echo_n "checking QT_LIBS... " >&6; }
20933 QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
20934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LIBS" >&5
20935 $as_echo "$QT_LIBS" >&6; }
20936 else
20937 QT_CFLAGS=""
20938 QT_LIBS=""
20939 ## If we have a custom action on failure, don't print errors, but
20940 ## do set a variable so people can do so.
20941 QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
20947 else
20948 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20949 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20953 if test $succeeded = yes; then
20954 HAVE_QT4="yes"
20955 else
20956 HAVE_QT4="no"
20959 if test "x$HAVE_QT4" = "xyes"; then
20960 QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
20961 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
20962 as_ac_File=`$as_echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $QT_INCLUDE_DIR/QWidget" >&5
20964 $as_echo_n "checking for $QT_INCLUDE_DIR/QWidget... " >&6; }
20965 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
20966 $as_echo_n "(cached) " >&6
20967 else
20968 test "$cross_compiling" = yes &&
20969 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20970 if test -r "$QT_INCLUDE_DIR/QWidget"; then
20971 eval "$as_ac_File=yes"
20972 else
20973 eval "$as_ac_File=no"
20976 eval ac_res=\$$as_ac_File
20977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20978 $as_echo "$ac_res" >&6; }
20979 eval as_val=\$$as_ac_File
20980 if test "x$as_val" = x""yes; then :
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: No extra QT_INCLUDE_DIR needed" >&5
20982 $as_echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
20983 else
20984 as_ac_File=`$as_echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
20985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
20986 $as_echo_n "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... " >&6; }
20987 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
20988 $as_echo_n "(cached) " >&6
20989 else
20990 test "$cross_compiling" = yes &&
20991 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20992 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
20993 eval "$as_ac_File=yes"
20994 else
20995 eval "$as_ac_File=no"
20998 eval ac_res=\$$as_ac_File
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21000 $as_echo "$ac_res" >&6; }
21001 eval as_val=\$$as_ac_File
21002 if test "x$as_val" = x""yes; then :
21003 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
21004 else
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: QWidget not found" >&5
21006 $as_echo "$as_me: WARNING: QWidget not found" >&2;}
21011 # Extract the first word of "moc", so it can be a program name with args.
21012 set dummy moc; ac_word=$2
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21014 $as_echo_n "checking for $ac_word... " >&6; }
21015 if test "${ac_cv_prog_MOC+set}" = set; then :
21016 $as_echo_n "(cached) " >&6
21017 else
21018 if test -n "$MOC"; then
21019 ac_cv_prog_MOC="$MOC" # Let the user override the test.
21020 else
21021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21022 for as_dir in $PATH
21024 IFS=$as_save_IFS
21025 test -z "$as_dir" && as_dir=.
21026 for ac_exec_ext in '' $ac_executable_extensions; do
21027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21028 ac_cv_prog_MOC="moc"
21029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21030 break 2
21032 done
21033 done
21034 IFS=$as_save_IFS
21038 MOC=$ac_cv_prog_MOC
21039 if test -n "$MOC"; then
21040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
21041 $as_echo "$MOC" >&6; }
21042 else
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21044 $as_echo "no" >&6; }
21048 # Extract the first word of "moc-qt4", so it can be a program name with args.
21049 set dummy moc-qt4; ac_word=$2
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21051 $as_echo_n "checking for $ac_word... " >&6; }
21052 if test "${ac_cv_prog_MOC4+set}" = set; then :
21053 $as_echo_n "(cached) " >&6
21054 else
21055 if test -n "$MOC4"; then
21056 ac_cv_prog_MOC4="$MOC4" # Let the user override the test.
21057 else
21058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21059 for as_dir in $PATH
21061 IFS=$as_save_IFS
21062 test -z "$as_dir" && as_dir=.
21063 for ac_exec_ext in '' $ac_executable_extensions; do
21064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21065 ac_cv_prog_MOC4="moc-qt4"
21066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21067 break 2
21069 done
21070 done
21071 IFS=$as_save_IFS
21075 MOC4=$ac_cv_prog_MOC4
21076 if test -n "$MOC4"; then
21077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC4" >&5
21078 $as_echo "$MOC4" >&6; }
21079 else
21080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21081 $as_echo "no" >&6; }
21085 if test x"$MOC4" != x ; then
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $MOC4 as moc" >&5
21087 $as_echo "$as_me: Using $MOC4 as moc" >&6;}
21088 MOC=$MOC4;
21091 if test "x$HAVE_QT4" = "xno"; then
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
21093 $as_echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
21094 case "$host_os" in
21095 darwin*)
21097 # Check whether --with-qt4dir was given.
21098 if test "${with_qt4dir+set}" = set; then :
21099 withval=$with_qt4dir; QT4DIR=$withval
21103 if test x"$QT4DIR" = x ; then
21104 as_fn_error "*** No path for Qt4 --with-qt4dir option given" "$LINENO" 5
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: QT4DIR... $QT4DIR" >&5
21107 $as_echo "QT4DIR... $QT4DIR" >&6; }
21108 # Extract the first word of "moc", so it can be a program name with args.
21109 set dummy moc; ac_word=$2
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21111 $as_echo_n "checking for $ac_word... " >&6; }
21112 if test "${ac_cv_prog_MOC+set}" = set; then :
21113 $as_echo_n "(cached) " >&6
21114 else
21115 if test -n "$MOC"; then
21116 ac_cv_prog_MOC="$MOC" # Let the user override the test.
21117 else
21118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21119 for as_dir in $QT4DIR/bin
21121 IFS=$as_save_IFS
21122 test -z "$as_dir" && as_dir=.
21123 for ac_exec_ext in '' $ac_executable_extensions; do
21124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21125 ac_cv_prog_MOC="$QT4DIR/bin/moc"
21126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21127 break 2
21129 done
21130 done
21131 IFS=$as_save_IFS
21135 MOC=$ac_cv_prog_MOC
21136 if test -n "$MOC"; then
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
21138 $as_echo "$MOC" >&6; }
21139 else
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21141 $as_echo "no" >&6; }
21145 if test x"$MOC" = x; then
21146 as_fn_error "*** This is not the right Qt installation" "$LINENO" 5
21148 QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
21149 QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
21150 QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
21151 QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
21154 as_fn_error "*** Please check PKG_CONFIG_PATH or the version
21155 of your installed Qt4 installation." "$LINENO" 5
21157 esac
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: Set QT_CFLAGS... $QT_CFLAGS" >&5
21160 $as_echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
21164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
21165 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
21166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21167 /* end confdefs.h. */
21168 #include <sys/socket.h>
21170 main ()
21172 int f = MSG_NOSIGNAL;
21174 return 0;
21176 _ACEOF
21177 if ac_fn_c_try_compile "$LINENO"; then :
21178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21179 $as_echo "yes" >&6; }
21181 $as_echo "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
21183 else
21184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21185 $as_echo "no" >&6; }
21188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_NOSIGPIPE " >&5
21190 $as_echo_n "checking for SO_NOSIGPIPE ... " >&6; }
21191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21192 /* end confdefs.h. */
21193 #include <sys/socket.h>
21195 main ()
21197 int f = SO_NOSIGPIPE;
21199 return 0;
21201 _ACEOF
21202 if ac_fn_c_try_compile "$LINENO"; then :
21203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21204 $as_echo "yes" >&6; }
21206 $as_echo "#define HAVE_SO_NOSIGPIPE 1" >>confdefs.h
21208 else
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21210 $as_echo "no" >&6; }
21213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_WAITALL" >&5
21215 $as_echo_n "checking for MSG_WAITALL... " >&6; }
21216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21217 /* end confdefs.h. */
21218 #include <sys/socket.h>
21220 main ()
21222 int f = MSG_WAITALL;
21224 return 0;
21226 _ACEOF
21227 if ac_fn_c_try_compile "$LINENO"; then :
21228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21229 $as_echo "yes" >&6; }
21231 $as_echo "#define HAVE_MSG_WAITALL 1" >>confdefs.h
21233 else
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21235 $as_echo "no" >&6; }
21238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21240 if test "x${COMPILE_PLUGIN}" = xyes; then
21242 succeeded=no
21244 if test -z "$PKG_CONFIG"; then
21245 # Extract the first word of "pkg-config", so it can be a program name with args.
21246 set dummy pkg-config; ac_word=$2
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21248 $as_echo_n "checking for $ac_word... " >&6; }
21249 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21250 $as_echo_n "(cached) " >&6
21251 else
21252 case $PKG_CONFIG in
21253 [\\/]* | ?:[\\/]*)
21254 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21258 for as_dir in $PATH
21260 IFS=$as_save_IFS
21261 test -z "$as_dir" && as_dir=.
21262 for ac_exec_ext in '' $ac_executable_extensions; do
21263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21264 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21266 break 2
21268 done
21269 done
21270 IFS=$as_save_IFS
21272 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21274 esac
21276 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21277 if test -n "$PKG_CONFIG"; then
21278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21279 $as_echo "$PKG_CONFIG" >&6; }
21280 else
21281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21282 $as_echo "no" >&6; }
21288 if test "$PKG_CONFIG" = "no" ; then
21289 echo "*** The pkg-config script could not be found. Make sure it is"
21290 echo "*** in your path, or set the PKG_CONFIG environment variable"
21291 echo "*** to the full path to pkg-config."
21292 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21293 else
21294 PKG_CONFIG_MIN_VERSION=0.9.0
21295 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin libxul-unstable" >&5
21297 $as_echo_n "checking for mozilla-plugin libxul-unstable... " >&6; }
21299 if $PKG_CONFIG --exists "mozilla-plugin libxul-unstable" ; then
21300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21301 $as_echo "yes" >&6; }
21302 succeeded=yes
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21305 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21306 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin libxul-unstable"`
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21308 $as_echo "$MOZILLA_CFLAGS" >&6; }
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21311 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21312 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin libxul-unstable"`
21313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21314 $as_echo "$MOZILLA_LIBS" >&6; }
21315 else
21316 MOZILLA_CFLAGS=""
21317 MOZILLA_LIBS=""
21318 ## If we have a custom action on failure, don't print errors, but
21319 ## do set a variable so people can do so.
21320 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin libxul-unstable"`
21326 else
21327 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21328 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21332 if test $succeeded = yes; then
21333 MOZILLA_FOUND=yes
21334 else
21335 MOZILLA_FOUND=no
21338 if test "x${MOZILLA_FOUND}" = xno; then
21340 succeeded=no
21342 if test -z "$PKG_CONFIG"; then
21343 # Extract the first word of "pkg-config", so it can be a program name with args.
21344 set dummy pkg-config; ac_word=$2
21345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21346 $as_echo_n "checking for $ac_word... " >&6; }
21347 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21348 $as_echo_n "(cached) " >&6
21349 else
21350 case $PKG_CONFIG in
21351 [\\/]* | ?:[\\/]*)
21352 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21356 for as_dir in $PATH
21358 IFS=$as_save_IFS
21359 test -z "$as_dir" && as_dir=.
21360 for ac_exec_ext in '' $ac_executable_extensions; do
21361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21362 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21364 break 2
21366 done
21367 done
21368 IFS=$as_save_IFS
21370 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21372 esac
21374 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21375 if test -n "$PKG_CONFIG"; then
21376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21377 $as_echo "$PKG_CONFIG" >&6; }
21378 else
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21380 $as_echo "no" >&6; }
21386 if test "$PKG_CONFIG" = "no" ; then
21387 echo "*** The pkg-config script could not be found. Make sure it is"
21388 echo "*** in your path, or set the PKG_CONFIG environment variable"
21389 echo "*** to the full path to pkg-config."
21390 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21391 else
21392 PKG_CONFIG_MIN_VERSION=0.9.0
21393 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin" >&5
21395 $as_echo_n "checking for mozilla-plugin... " >&6; }
21397 if $PKG_CONFIG --exists "mozilla-plugin" ; then
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21399 $as_echo "yes" >&6; }
21400 succeeded=yes
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21403 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21404 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21406 $as_echo "$MOZILLA_CFLAGS" >&6; }
21408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21409 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21410 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21412 $as_echo "$MOZILLA_LIBS" >&6; }
21413 else
21414 MOZILLA_CFLAGS=""
21415 MOZILLA_LIBS=""
21416 ## If we have a custom action on failure, don't print errors, but
21417 ## do set a variable so people can do so.
21418 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
21424 else
21425 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21426 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21430 if test $succeeded = yes; then
21431 MOZILLA_FOUND=yes
21432 else
21433 MOZILLA_FOUND=no
21437 if test "x${MOZILLA_FOUND}" = xno; then
21439 succeeded=no
21441 if test -z "$PKG_CONFIG"; then
21442 # Extract the first word of "pkg-config", so it can be a program name with args.
21443 set dummy pkg-config; ac_word=$2
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21445 $as_echo_n "checking for $ac_word... " >&6; }
21446 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21447 $as_echo_n "(cached) " >&6
21448 else
21449 case $PKG_CONFIG in
21450 [\\/]* | ?:[\\/]*)
21451 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21455 for as_dir in $PATH
21457 IFS=$as_save_IFS
21458 test -z "$as_dir" && as_dir=.
21459 for ac_exec_ext in '' $ac_executable_extensions; do
21460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21461 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21463 break 2
21465 done
21466 done
21467 IFS=$as_save_IFS
21469 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21471 esac
21473 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21474 if test -n "$PKG_CONFIG"; then
21475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21476 $as_echo "$PKG_CONFIG" >&6; }
21477 else
21478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21479 $as_echo "no" >&6; }
21485 if test "$PKG_CONFIG" = "no" ; then
21486 echo "*** The pkg-config script could not be found. Make sure it is"
21487 echo "*** in your path, or set the PKG_CONFIG environment variable"
21488 echo "*** to the full path to pkg-config."
21489 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21490 else
21491 PKG_CONFIG_MIN_VERSION=0.9.0
21492 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for firefox-plugin firefox-xpcom" >&5
21494 $as_echo_n "checking for firefox-plugin firefox-xpcom... " >&6; }
21496 if $PKG_CONFIG --exists "firefox-plugin firefox-xpcom" ; then
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21498 $as_echo "yes" >&6; }
21499 succeeded=yes
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21502 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21503 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin firefox-xpcom"`
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21505 $as_echo "$MOZILLA_CFLAGS" >&6; }
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21508 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21509 MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin firefox-xpcom"`
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21511 $as_echo "$MOZILLA_LIBS" >&6; }
21512 else
21513 MOZILLA_CFLAGS=""
21514 MOZILLA_LIBS=""
21515 ## If we have a custom action on failure, don't print errors, but
21516 ## do set a variable so people can do so.
21517 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin firefox-xpcom"`
21523 else
21524 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21525 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21529 if test $succeeded = yes; then
21530 MOZILLA_FOUND=yes
21531 else
21532 MOZILLA_FOUND=no
21536 if test "x${MOZILLA_FOUND}" = xno; then
21538 succeeded=no
21540 if test -z "$PKG_CONFIG"; then
21541 # Extract the first word of "pkg-config", so it can be a program name with args.
21542 set dummy pkg-config; ac_word=$2
21543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21544 $as_echo_n "checking for $ac_word... " >&6; }
21545 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21546 $as_echo_n "(cached) " >&6
21547 else
21548 case $PKG_CONFIG in
21549 [\\/]* | ?:[\\/]*)
21550 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21554 for as_dir in $PATH
21556 IFS=$as_save_IFS
21557 test -z "$as_dir" && as_dir=.
21558 for ac_exec_ext in '' $ac_executable_extensions; do
21559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21560 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21562 break 2
21564 done
21565 done
21566 IFS=$as_save_IFS
21568 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21570 esac
21572 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21573 if test -n "$PKG_CONFIG"; then
21574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21575 $as_echo "$PKG_CONFIG" >&6; }
21576 else
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21578 $as_echo "no" >&6; }
21584 if test "$PKG_CONFIG" = "no" ; then
21585 echo "*** The pkg-config script could not be found. Make sure it is"
21586 echo "*** in your path, or set the PKG_CONFIG environment variable"
21587 echo "*** to the full path to pkg-config."
21588 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21589 else
21590 PKG_CONFIG_MIN_VERSION=0.9.0
21591 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xulrunner-plugin xulrunner-xpcom" >&5
21593 $as_echo_n "checking for xulrunner-plugin xulrunner-xpcom... " >&6; }
21595 if $PKG_CONFIG --exists "xulrunner-plugin xulrunner-xpcom" ; then
21596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21597 $as_echo "yes" >&6; }
21598 succeeded=yes
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21601 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21602 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin xulrunner-xpcom"`
21603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21604 $as_echo "$MOZILLA_CFLAGS" >&6; }
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21607 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21608 MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin xulrunner-xpcom"`
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21610 $as_echo "$MOZILLA_LIBS" >&6; }
21611 else
21612 MOZILLA_CFLAGS=""
21613 MOZILLA_LIBS=""
21614 ## If we have a custom action on failure, don't print errors, but
21615 ## do set a variable so people can do so.
21616 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin xulrunner-xpcom"`
21622 else
21623 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21624 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21628 if test $succeeded = yes; then
21629 MOZILLA_FOUND=yes
21630 else
21631 MOZILLA_FOUND=no
21635 if test "x${MOZILLA_FOUND}" = xno; then
21637 succeeded=no
21639 if test -z "$PKG_CONFIG"; then
21640 # Extract the first word of "pkg-config", so it can be a program name with args.
21641 set dummy pkg-config; ac_word=$2
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21643 $as_echo_n "checking for $ac_word... " >&6; }
21644 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21645 $as_echo_n "(cached) " >&6
21646 else
21647 case $PKG_CONFIG in
21648 [\\/]* | ?:[\\/]*)
21649 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21653 for as_dir in $PATH
21655 IFS=$as_save_IFS
21656 test -z "$as_dir" && as_dir=.
21657 for ac_exec_ext in '' $ac_executable_extensions; do
21658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21659 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21661 break 2
21663 done
21664 done
21665 IFS=$as_save_IFS
21667 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21669 esac
21671 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21672 if test -n "$PKG_CONFIG"; then
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21674 $as_echo "$PKG_CONFIG" >&6; }
21675 else
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21677 $as_echo "no" >&6; }
21683 if test "$PKG_CONFIG" = "no" ; then
21684 echo "*** The pkg-config script could not be found. Make sure it is"
21685 echo "*** in your path, or set the PKG_CONFIG environment variable"
21686 echo "*** to the full path to pkg-config."
21687 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21688 else
21689 PKG_CONFIG_MIN_VERSION=0.9.0
21690 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-firefox-plugin mozilla-firefox-xpcom" >&5
21692 $as_echo_n "checking for mozilla-firefox-plugin mozilla-firefox-xpcom... " >&6; }
21694 if $PKG_CONFIG --exists "mozilla-firefox-plugin mozilla-firefox-xpcom" ; then
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21696 $as_echo "yes" >&6; }
21697 succeeded=yes
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21700 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21701 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21703 $as_echo "$MOZILLA_CFLAGS" >&6; }
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21706 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21707 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21709 $as_echo "$MOZILLA_LIBS" >&6; }
21710 else
21711 MOZILLA_CFLAGS=""
21712 MOZILLA_LIBS=""
21713 ## If we have a custom action on failure, don't print errors, but
21714 ## do set a variable so people can do so.
21715 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21721 else
21722 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21723 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21727 if test $succeeded = yes; then
21728 MOZILLA_FOUND=yes
21729 else
21730 MOZILLA_FOUND=no
21734 if test "x${MOZILLA_FOUND}" = xno; then
21736 succeeded=no
21738 if test -z "$PKG_CONFIG"; then
21739 # Extract the first word of "pkg-config", so it can be a program name with args.
21740 set dummy pkg-config; ac_word=$2
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21742 $as_echo_n "checking for $ac_word... " >&6; }
21743 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21744 $as_echo_n "(cached) " >&6
21745 else
21746 case $PKG_CONFIG in
21747 [\\/]* | ?:[\\/]*)
21748 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21752 for as_dir in $PATH
21754 IFS=$as_save_IFS
21755 test -z "$as_dir" && as_dir=.
21756 for ac_exec_ext in '' $ac_executable_extensions; do
21757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21758 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21760 break 2
21762 done
21763 done
21764 IFS=$as_save_IFS
21766 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21768 esac
21770 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21771 if test -n "$PKG_CONFIG"; then
21772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21773 $as_echo "$PKG_CONFIG" >&6; }
21774 else
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21776 $as_echo "no" >&6; }
21782 if test "$PKG_CONFIG" = "no" ; then
21783 echo "*** The pkg-config script could not be found. Make sure it is"
21784 echo "*** in your path, or set the PKG_CONFIG environment variable"
21785 echo "*** to the full path to pkg-config."
21786 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21787 else
21788 PKG_CONFIG_MIN_VERSION=0.9.0
21789 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seamonkey-plugin seamonkey-xpcom" >&5
21791 $as_echo_n "checking for seamonkey-plugin seamonkey-xpcom... " >&6; }
21793 if $PKG_CONFIG --exists "seamonkey-plugin seamonkey-xpcom" ; then
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21795 $as_echo "yes" >&6; }
21796 succeeded=yes
21798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21799 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21800 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-plugin seamonkey-xpcom"`
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21802 $as_echo "$MOZILLA_CFLAGS" >&6; }
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21805 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21806 MOZILLA_LIBS=`$PKG_CONFIG --libs "seamonkey-plugin seamonkey-xpcom"`
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21808 $as_echo "$MOZILLA_LIBS" >&6; }
21809 else
21810 MOZILLA_CFLAGS=""
21811 MOZILLA_LIBS=""
21812 ## If we have a custom action on failure, don't print errors, but
21813 ## do set a variable so people can do so.
21814 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "seamonkey-plugin seamonkey-xpcom"`
21820 else
21821 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21822 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21826 if test $succeeded = yes; then
21827 MOZILLA_FOUND=yes
21828 else
21829 MOZILLA_FOUND=no
21833 if test "x${MOZILLA_FOUND}" = xno; then
21835 succeeded=no
21837 if test -z "$PKG_CONFIG"; then
21838 # Extract the first word of "pkg-config", so it can be a program name with args.
21839 set dummy pkg-config; ac_word=$2
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21841 $as_echo_n "checking for $ac_word... " >&6; }
21842 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21843 $as_echo_n "(cached) " >&6
21844 else
21845 case $PKG_CONFIG in
21846 [\\/]* | ?:[\\/]*)
21847 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21851 for as_dir in $PATH
21853 IFS=$as_save_IFS
21854 test -z "$as_dir" && as_dir=.
21855 for ac_exec_ext in '' $ac_executable_extensions; do
21856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21857 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21859 break 2
21861 done
21862 done
21863 IFS=$as_save_IFS
21865 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21867 esac
21869 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21870 if test -n "$PKG_CONFIG"; then
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21872 $as_echo "$PKG_CONFIG" >&6; }
21873 else
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21875 $as_echo "no" >&6; }
21881 if test "$PKG_CONFIG" = "no" ; then
21882 echo "*** The pkg-config script could not be found. Make sure it is"
21883 echo "*** in your path, or set the PKG_CONFIG environment variable"
21884 echo "*** to the full path to pkg-config."
21885 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21886 else
21887 PKG_CONFIG_MIN_VERSION=0.9.0
21888 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iceape-plugin iceape-xpcom" >&5
21890 $as_echo_n "checking for iceape-plugin iceape-xpcom... " >&6; }
21892 if $PKG_CONFIG --exists "iceape-plugin iceape-xpcom" ; then
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21894 $as_echo "yes" >&6; }
21895 succeeded=yes
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21898 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21899 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "iceape-plugin iceape-xpcom"`
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21901 $as_echo "$MOZILLA_CFLAGS" >&6; }
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21904 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21905 MOZILLA_LIBS=`$PKG_CONFIG --libs "iceape-plugin iceape-xpcom"`
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21907 $as_echo "$MOZILLA_LIBS" >&6; }
21908 else
21909 MOZILLA_CFLAGS=""
21910 MOZILLA_LIBS=""
21911 ## If we have a custom action on failure, don't print errors, but
21912 ## do set a variable so people can do so.
21913 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "iceape-plugin iceape-xpcom"`
21919 else
21920 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21921 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21925 if test $succeeded = yes; then
21926 MOZILLA_FOUND=yes
21927 else
21928 MOZILLA_FOUND=no
21932 if test "x${MOZILLA_FOUND}" = xno; then
21933 as_fn_error "Couldn't find plugin support headers and libraries, try --disable-plugin" "$LINENO" 5
21937 succeeded=no
21939 if test -z "$PKG_CONFIG"; then
21940 # Extract the first word of "pkg-config", so it can be a program name with args.
21941 set dummy pkg-config; ac_word=$2
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21943 $as_echo_n "checking for $ac_word... " >&6; }
21944 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21945 $as_echo_n "(cached) " >&6
21946 else
21947 case $PKG_CONFIG in
21948 [\\/]* | ?:[\\/]*)
21949 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21953 for as_dir in $PATH
21955 IFS=$as_save_IFS
21956 test -z "$as_dir" && as_dir=.
21957 for ac_exec_ext in '' $ac_executable_extensions; do
21958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21959 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21961 break 2
21963 done
21964 done
21965 IFS=$as_save_IFS
21967 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21969 esac
21971 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21972 if test -n "$PKG_CONFIG"; then
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21974 $as_echo "$PKG_CONFIG" >&6; }
21975 else
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21977 $as_echo "no" >&6; }
21983 if test "$PKG_CONFIG" = "no" ; then
21984 echo "*** The pkg-config script could not be found. Make sure it is"
21985 echo "*** in your path, or set the PKG_CONFIG environment variable"
21986 echo "*** to the full path to pkg-config."
21987 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21988 else
21989 PKG_CONFIG_MIN_VERSION=0.9.0
21990 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0" >&5
21992 $as_echo_n "checking for glib-2.0... " >&6; }
21994 if $PKG_CONFIG --exists "glib-2.0" ; then
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21996 $as_echo "yes" >&6; }
21997 succeeded=yes
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22000 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22001 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
22002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22003 $as_echo "$GLIB_CFLAGS" >&6; }
22005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22006 $as_echo_n "checking GLIB_LIBS... " >&6; }
22007 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22009 $as_echo "$GLIB_LIBS" >&6; }
22010 else
22011 GLIB_CFLAGS=""
22012 GLIB_LIBS=""
22013 ## If we have a custom action on failure, don't print errors, but
22014 ## do set a variable so people can do so.
22015 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
22016 echo $GLIB_PKG_ERRORS
22021 else
22022 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22023 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22027 if test $succeeded = yes; then
22029 else
22030 as_fn_error "Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
22034 succeeded=no
22036 if test -z "$PKG_CONFIG"; then
22037 # Extract the first word of "pkg-config", so it can be a program name with args.
22038 set dummy pkg-config; ac_word=$2
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22040 $as_echo_n "checking for $ac_word... " >&6; }
22041 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22042 $as_echo_n "(cached) " >&6
22043 else
22044 case $PKG_CONFIG in
22045 [\\/]* | ?:[\\/]*)
22046 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22050 for as_dir in $PATH
22052 IFS=$as_save_IFS
22053 test -z "$as_dir" && as_dir=.
22054 for ac_exec_ext in '' $ac_executable_extensions; do
22055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22056 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22058 break 2
22060 done
22061 done
22062 IFS=$as_save_IFS
22064 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22066 esac
22068 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22069 if test -n "$PKG_CONFIG"; then
22070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22071 $as_echo "$PKG_CONFIG" >&6; }
22072 else
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22074 $as_echo "no" >&6; }
22080 if test "$PKG_CONFIG" = "no" ; then
22081 echo "*** The pkg-config script could not be found. Make sure it is"
22082 echo "*** in your path, or set the PKG_CONFIG environment variable"
22083 echo "*** to the full path to pkg-config."
22084 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22085 else
22086 PKG_CONFIG_MIN_VERSION=0.9.0
22087 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
22089 $as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
22091 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22093 $as_echo "yes" >&6; }
22094 succeeded=yes
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22097 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22098 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22100 $as_echo "$GTK_CFLAGS" >&6; }
22102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22103 $as_echo_n "checking GTK_LIBS... " >&6; }
22104 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22106 $as_echo "$GTK_LIBS" >&6; }
22107 else
22108 GTK_CFLAGS=""
22109 GTK_LIBS=""
22110 ## If we have a custom action on failure, don't print errors, but
22111 ## do set a variable so people can do so.
22112 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
22113 echo $GTK_PKG_ERRORS
22118 else
22119 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22120 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22124 if test $succeeded = yes; then
22126 else
22127 as_fn_error "Library requirements (gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
22138 PLUGIN_DIR=$HOME/.mozilla/plugins/
22143 # Check whether --with-gmp was given.
22144 if test "${with_gmp+set}" = set; then :
22145 withval=$with_gmp;
22149 # Check whether --with-gmp_include was given.
22150 if test "${with_gmp_include+set}" = set; then :
22151 withval=$with_gmp_include;
22155 # Check whether --with-gmp_lib was given.
22156 if test "${with_gmp_lib+set}" = set; then :
22157 withval=$with_gmp_lib;
22161 if test "x$with_gmp" != x; then
22162 gmplibs=-lgmp
22163 gmpinc=
22164 gmplibs="-L$with_gmp/lib $gmplibs"
22165 gmpinc="-I$with_gmp/include $gmpinc"
22166 if test "x$with_gmp_include" != x; then
22167 gmpinc="-I$with_gmp_include $gmpinc"
22169 if test "x$with_gmp_lib" != x; then
22170 gmplibs="-L$with_gmp_lib $gmplibs"
22172 else
22173 gmplibs="-lgmp"
22174 gmpinc="-I/usr/include"
22177 if test "x${COMPILE_GMP}" = xyes; then
22178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMP directories" >&5
22179 $as_echo_n "checking for GMP directories... " >&6; }
22180 if test "x$with_gmp" != x; then
22181 gmplibs="-L$with_gmp/lib -lgmp"
22182 gmpinc="-I$with_gmp/include"
22183 if test "x$with_gmp_include" != x; then
22184 gmpinc="-I$with_gmp_include $gmpinc"
22186 if test "x$with_gmp_lib" != x; then
22187 gmplibs="-L$with_gmp_lib $gmplibs"
22189 else
22190 with_gmp="/usr"
22191 gmplibs="-lgmp"
22192 gmpinc="-I/usr/include"
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prefix=$with_gmp, libs=$gmplibs, inc=$gmpinc" >&5
22195 $as_echo "prefix=$with_gmp, libs=$gmplibs, inc=$gmpinc" >&6; }
22196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_mul_si in -lgmp" >&5
22197 $as_echo_n "checking for __gmpz_mul_si in -lgmp... " >&6; }
22198 if test "${ac_cv_lib_gmp___gmpz_mul_si+set}" = set; then :
22199 $as_echo_n "(cached) " >&6
22200 else
22201 ac_check_lib_save_LIBS=$LIBS
22202 LIBS="-lgmp $LIBS"
22203 if test x$gcc_no_link = xyes; then
22204 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22207 /* end confdefs.h. */
22209 /* Override any GCC internal prototype to avoid an error.
22210 Use char because int might match the return type of a GCC
22211 builtin and then its argument prototype would still apply. */
22212 #ifdef __cplusplus
22213 extern "C"
22214 #endif
22215 char __gmpz_mul_si ();
22217 main ()
22219 return __gmpz_mul_si ();
22221 return 0;
22223 _ACEOF
22224 if ac_fn_c_try_link "$LINENO"; then :
22225 ac_cv_lib_gmp___gmpz_mul_si=yes
22226 else
22227 ac_cv_lib_gmp___gmpz_mul_si=no
22229 rm -f core conftest.err conftest.$ac_objext \
22230 conftest$ac_exeext conftest.$ac_ext
22231 LIBS=$ac_check_lib_save_LIBS
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_mul_si" >&5
22234 $as_echo "$ac_cv_lib_gmp___gmpz_mul_si" >&6; }
22235 if test "x$ac_cv_lib_gmp___gmpz_mul_si" = x""yes; then :
22236 GMP_CFLAGS="$gmpinc"
22237 GMP_LIBS="$gmplibs"
22238 else
22239 GMP_CFLAGS=
22240 GMP_LIBS=
22246 for ac_header in gmp.h
22247 do :
22248 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
22249 if test "x$ac_cv_header_gmp_h" = x""yes; then :
22250 cat >>confdefs.h <<_ACEOF
22251 #define HAVE_GMP_H 1
22252 _ACEOF
22256 done
22260 else
22261 COMPILE_GMP=no
22264 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
22267 # Check whether --with-javah was given.
22268 if test "${with_javah+set}" = set; then :
22269 withval=$with_javah;
22270 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
22272 if test "x${withval}" != x; then
22273 if test -f "${withval}"; then
22274 USER_JAVAH="${withval}"
22275 else
22276 # Extract the first word of ""${withval}"", so it can be a program name with args.
22277 set dummy "${withval}"; ac_word=$2
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22279 $as_echo_n "checking for $ac_word... " >&6; }
22280 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22281 $as_echo_n "(cached) " >&6
22282 else
22283 case $USER_JAVAH in
22284 [\\/]* | ?:[\\/]*)
22285 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22289 for as_dir in $PATH
22291 IFS=$as_save_IFS
22292 test -z "$as_dir" && as_dir=.
22293 for ac_exec_ext in '' $ac_executable_extensions; do
22294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22295 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22297 break 2
22299 done
22300 done
22301 IFS=$as_save_IFS
22304 esac
22306 USER_JAVAH=$ac_cv_path_USER_JAVAH
22307 if test -n "$USER_JAVAH"; then
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22309 $as_echo "$USER_JAVAH" >&6; }
22310 else
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22312 $as_echo "no" >&6; }
22317 else
22318 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22320 # Extract the first word of "$ac_prog", so it can be a program name with args.
22321 set dummy $ac_prog; ac_word=$2
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22323 $as_echo_n "checking for $ac_word... " >&6; }
22324 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22325 $as_echo_n "(cached) " >&6
22326 else
22327 case $USER_JAVAH in
22328 [\\/]* | ?:[\\/]*)
22329 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22333 for as_dir in $PATH
22335 IFS=$as_save_IFS
22336 test -z "$as_dir" && as_dir=.
22337 for ac_exec_ext in '' $ac_executable_extensions; do
22338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22339 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22341 break 2
22343 done
22344 done
22345 IFS=$as_save_IFS
22348 esac
22350 USER_JAVAH=$ac_cv_path_USER_JAVAH
22351 if test -n "$USER_JAVAH"; then
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22353 $as_echo "$USER_JAVAH" >&6; }
22354 else
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22356 $as_echo "no" >&6; }
22360 test -n "$USER_JAVAH" && break
22361 done
22365 if test "x${USER_JAVAH}" = x; then
22366 as_fn_error "can not find javah" "$LINENO" 5
22369 else
22371 if test "x" != x; then
22372 if test -f ""; then
22373 USER_JAVAH=""
22374 else
22375 # Extract the first word of """", so it can be a program name with args.
22376 set dummy ""; ac_word=$2
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22378 $as_echo_n "checking for $ac_word... " >&6; }
22379 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22380 $as_echo_n "(cached) " >&6
22381 else
22382 case $USER_JAVAH in
22383 [\\/]* | ?:[\\/]*)
22384 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22388 for as_dir in $PATH
22390 IFS=$as_save_IFS
22391 test -z "$as_dir" && as_dir=.
22392 for ac_exec_ext in '' $ac_executable_extensions; do
22393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22394 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22396 break 2
22398 done
22399 done
22400 IFS=$as_save_IFS
22403 esac
22405 USER_JAVAH=$ac_cv_path_USER_JAVAH
22406 if test -n "$USER_JAVAH"; then
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22408 $as_echo "$USER_JAVAH" >&6; }
22409 else
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22411 $as_echo "no" >&6; }
22416 else
22417 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22419 # Extract the first word of "$ac_prog", so it can be a program name with args.
22420 set dummy $ac_prog; ac_word=$2
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22422 $as_echo_n "checking for $ac_word... " >&6; }
22423 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22424 $as_echo_n "(cached) " >&6
22425 else
22426 case $USER_JAVAH in
22427 [\\/]* | ?:[\\/]*)
22428 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22432 for as_dir in $PATH
22434 IFS=$as_save_IFS
22435 test -z "$as_dir" && as_dir=.
22436 for ac_exec_ext in '' $ac_executable_extensions; do
22437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22438 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22440 break 2
22442 done
22443 done
22444 IFS=$as_save_IFS
22447 esac
22449 USER_JAVAH=$ac_cv_path_USER_JAVAH
22450 if test -n "$USER_JAVAH"; then
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22452 $as_echo "$USER_JAVAH" >&6; }
22453 else
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22455 $as_echo "no" >&6; }
22459 test -n "$USER_JAVAH" && break
22460 done
22464 if test "x${USER_JAVAH}" = x; then
22465 as_fn_error "can not find javah" "$LINENO" 5
22470 else
22473 if test "x" != x; then
22474 if test -f ""; then
22475 USER_JAVAH=""
22476 else
22477 # Extract the first word of """", so it can be a program name with args.
22478 set dummy ""; ac_word=$2
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22480 $as_echo_n "checking for $ac_word... " >&6; }
22481 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22482 $as_echo_n "(cached) " >&6
22483 else
22484 case $USER_JAVAH in
22485 [\\/]* | ?:[\\/]*)
22486 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22490 for as_dir in $PATH
22492 IFS=$as_save_IFS
22493 test -z "$as_dir" && as_dir=.
22494 for ac_exec_ext in '' $ac_executable_extensions; do
22495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22496 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22498 break 2
22500 done
22501 done
22502 IFS=$as_save_IFS
22505 esac
22507 USER_JAVAH=$ac_cv_path_USER_JAVAH
22508 if test -n "$USER_JAVAH"; then
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22510 $as_echo "$USER_JAVAH" >&6; }
22511 else
22512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22513 $as_echo "no" >&6; }
22518 else
22519 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22521 # Extract the first word of "$ac_prog", so it can be a program name with args.
22522 set dummy $ac_prog; ac_word=$2
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22524 $as_echo_n "checking for $ac_word... " >&6; }
22525 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22526 $as_echo_n "(cached) " >&6
22527 else
22528 case $USER_JAVAH in
22529 [\\/]* | ?:[\\/]*)
22530 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22534 for as_dir in $PATH
22536 IFS=$as_save_IFS
22537 test -z "$as_dir" && as_dir=.
22538 for ac_exec_ext in '' $ac_executable_extensions; do
22539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22540 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22542 break 2
22544 done
22545 done
22546 IFS=$as_save_IFS
22549 esac
22551 USER_JAVAH=$ac_cv_path_USER_JAVAH
22552 if test -n "$USER_JAVAH"; then
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22554 $as_echo "$USER_JAVAH" >&6; }
22555 else
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22557 $as_echo "no" >&6; }
22561 test -n "$USER_JAVAH" && break
22562 done
22566 if test "x${USER_JAVAH}" = x; then
22567 as_fn_error "can not find javah" "$LINENO" 5
22577 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/jni/native-lib"
22580 if test "x${COMPILE_JNI}" = xyes; then
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking jni_md.h support" >&5
22582 $as_echo_n "checking jni_md.h support... " >&6; }
22583 if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22585 $as_echo "yes" >&6; }
22586 else
22587 target_cpu=x86
22588 target_os=linux-gnu
22589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no" >&5
22590 $as_echo "$as_me: WARNING: no" >&2;}
22592 ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
22593 ac_dests="include/jni_md.h"
22594 while test -n "$ac_sources"; do
22595 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22596 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22597 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
22598 done
22599 ac_config_links="$ac_config_links $ac_config_links_1"
22605 # Check whether --with-vm-classes was given.
22606 if test "${with_vm_classes+set}" = set; then :
22607 withval=$with_vm_classes; vm_classes="$with_vm_classes"
22608 else
22609 vm_classes='${top_srcdir}/vm/reference'
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
22617 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
22618 # Check whether --enable-maintainer-mode was given.
22619 if test "${enable_maintainer_mode+set}" = set; then :
22620 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
22621 else
22622 USE_MAINTAINER_MODE=no
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
22626 $as_echo "$USE_MAINTAINER_MODE" >&6; }
22627 if test $USE_MAINTAINER_MODE = yes; then
22628 MAINTAINER_MODE_TRUE=
22629 MAINTAINER_MODE_FALSE='#'
22630 else
22631 MAINTAINER_MODE_TRUE='#'
22632 MAINTAINER_MODE_FALSE=
22635 MAINT=$MAINTAINER_MODE_TRUE
22639 # Check whether --enable-debug was given.
22640 if test "${enable_debug+set}" = set; then :
22641 enableval=$enable_debug; case "${enableval}" in
22642 yes)
22643 LIBDEBUG="true"
22645 $as_echo "#define DEBUG 1" >>confdefs.h
22648 no) LIBDEBUG="false" ;;
22649 *) as_fn_error "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
22650 esac
22651 else
22652 LIBDEBUG="false"
22657 # Check whether --enable-load-library was given.
22658 if test "${enable_load_library+set}" = set; then :
22659 enableval=$enable_load_library; case "${enableval}" in
22660 yes) INIT_LOAD_LIBRARY="true" ;;
22661 no) INIT_LOAD_LIBRARY="false" ;;
22662 *) as_fn_error "bad value ${enableval} for --enable-load-library" "$LINENO" 5 ;;
22663 esac
22664 else
22665 INIT_LOAD_LIBRARY="true"
22672 # Check whether --with-ecj-jar was given.
22673 if test "${with_ecj_jar+set}" = set; then :
22674 withval=$with_ecj_jar; ECJ_JAR=$withval
22675 else
22676 if test -f $multi_basedir/ecj.jar; then
22677 ECJ_JAR='$(jardir)/ecj.jar'
22683 # Check whether --enable-java-lang-system-explicit-initialization was given.
22684 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then :
22685 enableval=$enable_java_lang_system_explicit_initialization; case "${enableval}" in
22686 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
22687 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
22688 *) as_fn_error "bad value ${enableval} for --enable-java-lang-system-explicit-initialization" "$LINENO" 5 ;;
22689 esac
22690 else
22691 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
22697 REMOVE=""
22700 # Extract the first word of "mkdir", so it can be a program name with args.
22701 set dummy mkdir; ac_word=$2
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22703 $as_echo_n "checking for $ac_word... " >&6; }
22704 if test "${ac_cv_path_MKDIR+set}" = set; then :
22705 $as_echo_n "(cached) " >&6
22706 else
22707 case $MKDIR in
22708 [\\/]* | ?:[\\/]*)
22709 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
22712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22713 for as_dir in $PATH
22715 IFS=$as_save_IFS
22716 test -z "$as_dir" && as_dir=.
22717 for ac_exec_ext in '' $ac_executable_extensions; do
22718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22719 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
22720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22721 break 2
22723 done
22724 done
22725 IFS=$as_save_IFS
22728 esac
22730 MKDIR=$ac_cv_path_MKDIR
22731 if test -n "$MKDIR"; then
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
22733 $as_echo "$MKDIR" >&6; }
22734 else
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22736 $as_echo "no" >&6; }
22740 # Extract the first word of "cp", so it can be a program name with args.
22741 set dummy cp; ac_word=$2
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22743 $as_echo_n "checking for $ac_word... " >&6; }
22744 if test "${ac_cv_path_CP+set}" = set; then :
22745 $as_echo_n "(cached) " >&6
22746 else
22747 case $CP in
22748 [\\/]* | ?:[\\/]*)
22749 ac_cv_path_CP="$CP" # Let the user override the test with a path.
22752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22753 for as_dir in $PATH
22755 IFS=$as_save_IFS
22756 test -z "$as_dir" && as_dir=.
22757 for ac_exec_ext in '' $ac_executable_extensions; do
22758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22759 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
22760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22761 break 2
22763 done
22764 done
22765 IFS=$as_save_IFS
22768 esac
22770 CP=$ac_cv_path_CP
22771 if test -n "$CP"; then
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
22773 $as_echo "$CP" >&6; }
22774 else
22775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22776 $as_echo "no" >&6; }
22780 # Extract the first word of "date", so it can be a program name with args.
22781 set dummy date; ac_word=$2
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22783 $as_echo_n "checking for $ac_word... " >&6; }
22784 if test "${ac_cv_path_DATE+set}" = set; then :
22785 $as_echo_n "(cached) " >&6
22786 else
22787 case $DATE in
22788 [\\/]* | ?:[\\/]*)
22789 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
22792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22793 for as_dir in $PATH
22795 IFS=$as_save_IFS
22796 test -z "$as_dir" && as_dir=.
22797 for ac_exec_ext in '' $ac_executable_extensions; do
22798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22799 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
22800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22801 break 2
22803 done
22804 done
22805 IFS=$as_save_IFS
22808 esac
22810 DATE=$ac_cv_path_DATE
22811 if test -n "$DATE"; then
22812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
22813 $as_echo "$DATE" >&6; }
22814 else
22815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22816 $as_echo "no" >&6; }
22821 # Extract the first word of "find", so it can be a program name with args.
22822 set dummy find; ac_word=$2
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22824 $as_echo_n "checking for $ac_word... " >&6; }
22825 if test "${ac_cv_path_FIND+set}" = set; then :
22826 $as_echo_n "(cached) " >&6
22827 else
22828 case $FIND in
22829 [\\/]* | ?:[\\/]*)
22830 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
22833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22834 for as_dir in $PATH
22836 IFS=$as_save_IFS
22837 test -z "$as_dir" && as_dir=.
22838 for ac_exec_ext in '' $ac_executable_extensions; do
22839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22840 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
22841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22842 break 2
22844 done
22845 done
22846 IFS=$as_save_IFS
22849 esac
22851 FIND=$ac_cv_path_FIND
22852 if test -n "$FIND"; then
22853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
22854 $as_echo "$FIND" >&6; }
22855 else
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22857 $as_echo "no" >&6; }
22863 # Extract the first word of "zip", so it can be a program name with args.
22864 set dummy zip; ac_word=$2
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22866 $as_echo_n "checking for $ac_word... " >&6; }
22867 if test "${ac_cv_path_ZIP+set}" = set; then :
22868 $as_echo_n "(cached) " >&6
22869 else
22870 case $ZIP in
22871 [\\/]* | ?:[\\/]*)
22872 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
22875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22876 for as_dir in $PATH
22878 IFS=$as_save_IFS
22879 test -z "$as_dir" && as_dir=.
22880 for ac_exec_ext in '' $ac_executable_extensions; do
22881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22882 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
22883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22884 break 2
22886 done
22887 done
22888 IFS=$as_save_IFS
22891 esac
22893 ZIP=$ac_cv_path_ZIP
22894 if test -n "$ZIP"; then
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
22896 $as_echo "$ZIP" >&6; }
22897 else
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22899 $as_echo "no" >&6; }
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a jar-like tool" >&5
22905 $as_echo_n "checking for a jar-like tool... " >&6; }
22907 # Check whether --with-jar was given.
22908 if test "${with_jar+set}" = set; then :
22909 withval=$with_jar;
22910 case "${withval}" in
22911 yes)
22912 JAR=yes
22915 JAR=no
22916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
22917 $as_echo "${JAR}" >&6; }
22920 if test -f "${withval}"; then
22921 JAR="${withval}"
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
22923 $as_echo "${JAR}" >&6; }
22924 else
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22926 $as_echo "not found" >&6; }
22927 as_fn_error "The jar tool ${withval} was not found." "$LINENO" 5
22930 esac
22932 else
22934 JAR=yes
22938 if test x"${JAR}" = "xyes"; then
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying fastjar, gjar and jar" >&5
22940 $as_echo "trying fastjar, gjar and jar" >&6; }
22941 for ac_prog in fastjar gjar jar
22943 # Extract the first word of "$ac_prog", so it can be a program name with args.
22944 set dummy $ac_prog; ac_word=$2
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22946 $as_echo_n "checking for $ac_word... " >&6; }
22947 if test "${ac_cv_path_JAR+set}" = set; then :
22948 $as_echo_n "(cached) " >&6
22949 else
22950 case $JAR in
22951 [\\/]* | ?:[\\/]*)
22952 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
22955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22956 for as_dir in $PATH
22958 IFS=$as_save_IFS
22959 test -z "$as_dir" && as_dir=.
22960 for ac_exec_ext in '' $ac_executable_extensions; do
22961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22962 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
22963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22964 break 2
22966 done
22967 done
22968 IFS=$as_save_IFS
22971 esac
22973 JAR=$ac_cv_path_JAR
22974 if test -n "$JAR"; then
22975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
22976 $as_echo "$JAR" >&6; }
22977 else
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22979 $as_echo "no" >&6; }
22983 test -n "$JAR" && break
22984 done
22986 if test x"${RHINO_JAR}" = "xyes"; then
22987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22988 $as_echo "not found" >&6; }
22991 if test x"${JAR}" = "xno" && test x"${ZIP}" = ""; then
22992 as_fn_error "No zip or jar tool found." "$LINENO" 5
22994 if test x"${JAR}" != "xno" && test x"${JAR}" != "xyes"; then
22995 WITH_JAR_TRUE=
22996 WITH_JAR_FALSE='#'
22997 else
22998 WITH_JAR_TRUE='#'
22999 WITH_JAR_FALSE=
23005 # Check whether --with-glibj was given.
23006 if test "${with_glibj+set}" = set; then :
23007 withval=$with_glibj;
23008 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
23009 install_class_files=no
23010 build_class_files=yes
23011 use_zip=yes
23012 elif test "x${withval}" = xboth; then
23013 install_class_files=yes
23014 build_class_files=yes
23015 use_zip=yes
23016 elif test "x${withval}" = xflat; then
23017 install_class_files=yes
23018 build_class_files=yes
23019 use_zip=no
23020 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
23021 install_class_files=no
23022 build_class_files=no
23023 use_zip=no
23024 elif test "x${withval}" = xbuild; then
23025 install_class_files=no
23026 build_class_files=yes
23027 use_zip=no
23028 else
23029 as_fn_error "unknown value given to --with-glibj" "$LINENO" 5
23032 else
23034 install_class_files=no
23035 use_zip=yes
23039 if test "x${use_zip}" = xyes; then
23040 INSTALL_GLIBJ_ZIP_TRUE=
23041 INSTALL_GLIBJ_ZIP_FALSE='#'
23042 else
23043 INSTALL_GLIBJ_ZIP_TRUE='#'
23044 INSTALL_GLIBJ_ZIP_FALSE=
23047 if test "x${install_class_files}" = xyes; then
23048 INSTALL_CLASS_FILES_TRUE=
23049 INSTALL_CLASS_FILES_FALSE='#'
23050 else
23051 INSTALL_CLASS_FILES_TRUE='#'
23052 INSTALL_CLASS_FILES_FALSE=
23055 if test "x${build_class_files}" = xyes; then
23056 BUILD_CLASS_FILES_TRUE=
23057 BUILD_CLASS_FILES_FALSE='#'
23058 else
23059 BUILD_CLASS_FILES_TRUE='#'
23060 BUILD_CLASS_FILES_FALSE=
23064 # Check whether --enable-examples was given.
23065 if test "${enable_examples+set}" = set; then :
23066 enableval=$enable_examples; case "${enableval}" in
23067 yes) EXAMPLESDIR="examples" ;;
23068 no) EXAMPLESDIR="" ;;
23069 *) as_fn_error "bad value ${enableval} for --enable-examples" "$LINENO" 5 ;;
23070 esac
23071 else
23072 EXAMPLESDIR="examples"
23075 if test "x${build_class_files}" = xno; then
23076 EXAMPLESDIR=""
23080 # Check whether --enable-tools was given.
23081 if test "${enable_tools+set}" = set; then :
23082 enableval=$enable_tools; case "${enableval}" in
23083 yes) TOOLSDIR="tools" ;;
23084 no) TOOLSDIR="" ;;
23085 *) as_fn_error "bad value ${enableval} for --enable-tools" "$LINENO" 5 ;;
23086 esac
23087 else
23088 TOOLSDIR="tools"
23091 if test "x${build_class_files}" = xno; then
23092 TOOLSDIR=""
23099 # Check whether --with-gjdoc was given.
23100 if test "${with_gjdoc+set}" = set; then :
23101 withval=$with_gjdoc; if test "x${withval}" = xno; then
23102 WITH_GJDOC=no;
23103 elif test "x${withval}" = xyes -o "x{withval}" = x; then
23104 WITH_GJDOC=yes;
23105 # Extract the first word of "gjdoc", so it can be a program name with args.
23106 set dummy gjdoc; ac_word=$2
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23108 $as_echo_n "checking for $ac_word... " >&6; }
23109 if test "${ac_cv_path_GJDOC+set}" = set; then :
23110 $as_echo_n "(cached) " >&6
23111 else
23112 case $GJDOC in
23113 [\\/]* | ?:[\\/]*)
23114 ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
23117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23118 for as_dir in $PATH
23120 IFS=$as_save_IFS
23121 test -z "$as_dir" && as_dir=.
23122 for ac_exec_ext in '' $ac_executable_extensions; do
23123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23124 ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
23125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23126 break 2
23128 done
23129 done
23130 IFS=$as_save_IFS
23132 test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
23134 esac
23136 GJDOC=$ac_cv_path_GJDOC
23137 if test -n "$GJDOC"; then
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GJDOC" >&5
23139 $as_echo "$GJDOC" >&6; }
23140 else
23141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23142 $as_echo "no" >&6; }
23146 if test "x${GJDOC}" = xno; then
23147 as_fn_error "\"gjdoc executable not found\"" "$LINENO" 5;
23149 else
23150 WITH_GJDOC=yes
23151 GJDOC="${withval}"
23152 as_ac_File=`$as_echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${GJDOC}" >&5
23154 $as_echo_n "checking for ${GJDOC}... " >&6; }
23155 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
23156 $as_echo_n "(cached) " >&6
23157 else
23158 test "$cross_compiling" = yes &&
23159 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
23160 if test -r "${GJDOC}"; then
23161 eval "$as_ac_File=yes"
23162 else
23163 eval "$as_ac_File=no"
23166 eval ac_res=\$$as_ac_File
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23168 $as_echo "$ac_res" >&6; }
23169 eval as_val=\$$as_ac_File
23170 if test "x$as_val" = x""yes; then :
23172 else
23173 as_fn_error "\"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" "$LINENO" 5
23177 else
23178 WITH_GJDOC=no
23181 if test "x${WITH_GJDOC}" = xyes; then
23182 CREATE_API_DOCS_TRUE=
23183 CREATE_API_DOCS_FALSE='#'
23184 else
23185 CREATE_API_DOCS_TRUE='#'
23186 CREATE_API_DOCS_FALSE=
23189 if test "x${WITH_GJDOC}" = xyes; then
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of GJDoc" >&5
23191 $as_echo_n "checking version of GJDoc... " >&6; }
23192 gjdoc_version=$(${GJDOC} --version|cut -d ' ' -f2)
23193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gjdoc_version}" >&5
23194 $as_echo "${gjdoc_version}" >&6; }
23195 case ${gjdoc_version} in
23196 0.7.9) ;;
23197 0.8*) ;;
23198 0.9*) ;;
23199 1*) ;;
23200 *) as_fn_error "Building documentation requires GJDoc >= 0.7.9, ${gjdoc_version} found." "$LINENO" 5 ;;
23201 esac
23207 # Check whether --with-jay was given.
23208 if test "${with_jay+set}" = set; then :
23209 withval=$with_jay;
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
23211 $as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
23212 JAY_FOUND=no
23213 JAY_DIR_PATH=
23214 if test "x${withval}" = xno; then
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23216 $as_echo "no" >&6; }
23217 elif test "x${withval}" = xyes; then
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23219 $as_echo "yes" >&6; }
23220 JAY_DIR_PATH="/usr/share/jay"
23221 elif test -d "${withval}"; then
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23223 $as_echo "yes" >&6; }
23224 JAY_DIR_PATH="${withval}"
23225 elif test -f "${withval}"; then
23226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23227 $as_echo "yes" >&6; }
23228 JAY_DIR_PATH=`dirname "${withval}"`
23229 JAY="${withval}"
23230 else
23231 as_fn_error "jay not found at ${withval}" "$LINENO" 5
23234 if test "x${JAY_DIR_PATH}" != x; then
23235 # Extract the first word of "jay", so it can be a program name with args.
23236 set dummy jay; ac_word=$2
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23238 $as_echo_n "checking for $ac_word... " >&6; }
23239 if test "${ac_cv_path_JAY+set}" = set; then :
23240 $as_echo_n "(cached) " >&6
23241 else
23242 case $JAY in
23243 [\\/]* | ?:[\\/]*)
23244 ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
23247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23248 as_dummy="${JAY_DIR_PATH}:${PATH}"
23249 for as_dir in $as_dummy
23251 IFS=$as_save_IFS
23252 test -z "$as_dir" && as_dir=.
23253 for ac_exec_ext in '' $ac_executable_extensions; do
23254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23255 ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
23256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23257 break 2
23259 done
23260 done
23261 IFS=$as_save_IFS
23263 test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
23265 esac
23267 JAY=$ac_cv_path_JAY
23268 if test -n "$JAY"; then
23269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAY" >&5
23270 $as_echo "$JAY" >&6; }
23271 else
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23273 $as_echo "no" >&6; }
23277 if test "x${JAY}" = xno; then
23278 as_fn_error "jay executable not found" "$LINENO" 5;
23280 JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
23281 as_ac_File=`$as_echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${JAY_SKELETON}" >&5
23283 $as_echo_n "checking for ${JAY_SKELETON}... " >&6; }
23284 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
23285 $as_echo_n "(cached) " >&6
23286 else
23287 test "$cross_compiling" = yes &&
23288 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
23289 if test -r "${JAY_SKELETON}"; then
23290 eval "$as_ac_File=yes"
23291 else
23292 eval "$as_ac_File=no"
23295 eval ac_res=\$$as_ac_File
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23297 $as_echo "$ac_res" >&6; }
23298 eval as_val=\$$as_ac_File
23299 if test "x$as_val" = x""yes; then :
23301 else
23302 as_fn_error "Expected skeleton file in ${JAY_DIR_PATH}" "$LINENO" 5
23305 JAY_FOUND=yes
23308 else
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
23311 $as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
23312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23313 $as_echo "no" >&6; }
23314 JAY_FOUND=no
23318 if test "x${JAY_FOUND}" = xyes; then
23319 REGEN_PARSERS_TRUE=
23320 REGEN_PARSERS_FALSE='#'
23321 else
23322 REGEN_PARSERS_TRUE='#'
23323 REGEN_PARSERS_FALSE=
23328 # Check whether --enable-portable-native-sync was given.
23329 if test "${enable_portable_native_sync+set}" = set; then :
23330 enableval=$enable_portable_native_sync; case "${enableval}" in
23331 yes)
23333 $as_echo "#define PORTABLE_NATIVE_SYNC 1" >>confdefs.h
23336 no) ;;
23338 as_fn_error "bad value ${enableval} for --enable-portable-native-sync" "$LINENO" 5
23340 esac
23344 # ------ AX CREATE STDINT H -------------------------------------
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
23346 $as_echo_n "checking for stdint types... " >&6; }
23347 ac_stdint_h=`echo include/config-int.h`
23348 # try to shortcircuit - if the default include path of the compiler
23349 # can find a "stdint.h" header then we assume that all compilers can.
23350 if test "${ac_cv_header_stdint_t+set}" = set; then :
23351 $as_echo_n "(cached) " >&6
23352 else
23354 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
23355 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
23356 old_CFLAGS="$CFLAGS" ; CFLAGS=""
23357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23358 /* end confdefs.h. */
23359 #include <stdint.h>
23361 main ()
23363 int_least32_t v = 0;
23365 return 0;
23367 _ACEOF
23368 if ac_fn_c_try_compile "$LINENO"; then :
23369 ac_cv_stdint_result="(assuming C99 compatible system)"
23370 ac_cv_header_stdint_t="stdint.h";
23371 else
23372 ac_cv_header_stdint_t=""
23374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23375 CXXFLAGS="$old_CXXFLAGS"
23376 CPPFLAGS="$old_CPPFLAGS"
23377 CFLAGS="$old_CFLAGS"
23381 v="... $ac_cv_header_stdint_h"
23382 if test "$ac_stdint_h" = "stdint.h" ; then
23383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
23384 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
23385 elif test "$ac_stdint_h" = "inttypes.h" ; then
23386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
23387 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
23388 elif test "_$ac_cv_header_stdint_t" = "_" ; then
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
23390 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
23391 else
23392 ac_cv_header_stdint="$ac_cv_header_stdint_t"
23393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
23394 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
23397 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
23400 inttype_headers=`echo | sed -e 's/,/ /g'`
23402 ac_cv_stdint_result="(no helpful system typedefs seen)"
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
23405 $as_echo_n "checking for stdint uintptr_t... " >&6; }
23406 if test "${ac_cv_header_stdint_x+set}" = set; then :
23407 $as_echo_n "(cached) " >&6
23408 else
23410 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
23411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23412 $as_echo "(..)" >&6; }
23413 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
23414 unset ac_cv_type_uintptr_t
23415 unset ac_cv_type_uint64_t
23416 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
23418 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
23419 ac_cv_header_stdint_x=$i
23420 else
23421 continue
23424 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23426 if test "x$ac_cv_type_uint64_t" = x""yes; then :
23427 and64="/uint64_t"
23428 else
23429 and64=""
23432 stdint.h inttypes.h sys/inttypes.h $inttype_headers
23433 break
23434 done
23435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
23436 $as_echo_n "checking for stdint uintptr_t... " >&6; }
23439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
23440 $as_echo "$ac_cv_header_stdint_x" >&6; }
23443 if test "_$ac_cv_header_stdint_x" = "_" ; then
23445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
23446 $as_echo_n "checking for stdint uint32_t... " >&6; }
23447 if test "${ac_cv_header_stdint_o+set}" = set; then :
23448 $as_echo_n "(cached) " >&6
23449 else
23451 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23453 $as_echo "(..)" >&6; }
23454 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
23455 unset ac_cv_type_uint32_t
23456 unset ac_cv_type_uint64_t
23457 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
23459 if test "x$ac_cv_type_uint32_t" = x""yes; then :
23460 ac_cv_header_stdint_o=$i
23461 else
23462 continue
23465 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23467 if test "x$ac_cv_type_uint64_t" = x""yes; then :
23468 and64="/uint64_t"
23469 else
23470 and64=""
23473 inttypes.h sys/inttypes.h stdint.h $inttype_headers
23474 break
23475 break;
23476 done
23477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
23478 $as_echo_n "checking for stdint uint32_t... " >&6; }
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
23482 $as_echo "$ac_cv_header_stdint_o" >&6; }
23486 if test "_$ac_cv_header_stdint_x" = "_" ; then
23487 if test "_$ac_cv_header_stdint_o" = "_" ; then
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
23490 $as_echo_n "checking for stdint u_int32_t... " >&6; }
23491 if test "${ac_cv_header_stdint_u+set}" = set; then :
23492 $as_echo_n "(cached) " >&6
23493 else
23495 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23497 $as_echo "(..)" >&6; }
23498 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
23499 unset ac_cv_type_u_int32_t
23500 unset ac_cv_type_u_int64_t
23501 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
23503 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
23504 ac_cv_header_stdint_u=$i
23505 else
23506 continue
23509 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
23511 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
23512 and64="/u_int64_t"
23513 else
23514 and64=""
23517 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
23518 break
23519 break;
23520 done
23521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
23522 $as_echo_n "checking for stdint u_int32_t... " >&6; }
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
23526 $as_echo "$ac_cv_header_stdint_u" >&6; }
23528 fi fi
23530 if test "_$ac_cv_header_stdint_x" = "_" ; then
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
23532 $as_echo_n "checking for stdint datatype model... " >&6; }
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23534 $as_echo "(..)" >&6; }
23536 # The cast to long int works around a bug in the HP C Compiler
23537 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23538 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23539 # This bug is HP SR number 8606223364.
23540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
23541 $as_echo_n "checking size of char... " >&6; }
23542 if test "${ac_cv_sizeof_char+set}" = set; then :
23543 $as_echo_n "(cached) " >&6
23544 else
23545 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
23547 else
23548 if test "$ac_cv_type_char" = yes; then
23549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23551 { as_fn_set_status 77
23552 as_fn_error "cannot compute sizeof (char)
23553 See \`config.log' for more details." "$LINENO" 5; }; }
23554 else
23555 ac_cv_sizeof_char=0
23560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
23561 $as_echo "$ac_cv_sizeof_char" >&6; }
23565 cat >>confdefs.h <<_ACEOF
23566 #define SIZEOF_CHAR $ac_cv_sizeof_char
23567 _ACEOF
23570 # The cast to long int works around a bug in the HP C Compiler
23571 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23572 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23573 # This bug is HP SR number 8606223364.
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23575 $as_echo_n "checking size of short... " >&6; }
23576 if test "${ac_cv_sizeof_short+set}" = set; then :
23577 $as_echo_n "(cached) " >&6
23578 else
23579 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23581 else
23582 if test "$ac_cv_type_short" = yes; then
23583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23585 { as_fn_set_status 77
23586 as_fn_error "cannot compute sizeof (short)
23587 See \`config.log' for more details." "$LINENO" 5; }; }
23588 else
23589 ac_cv_sizeof_short=0
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23595 $as_echo "$ac_cv_sizeof_short" >&6; }
23599 cat >>confdefs.h <<_ACEOF
23600 #define SIZEOF_SHORT $ac_cv_sizeof_short
23601 _ACEOF
23604 # The cast to long int works around a bug in the HP C Compiler
23605 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23606 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23607 # This bug is HP SR number 8606223364.
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23609 $as_echo_n "checking size of int... " >&6; }
23610 if test "${ac_cv_sizeof_int+set}" = set; then :
23611 $as_echo_n "(cached) " >&6
23612 else
23613 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23615 else
23616 if test "$ac_cv_type_int" = yes; then
23617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23619 { as_fn_set_status 77
23620 as_fn_error "cannot compute sizeof (int)
23621 See \`config.log' for more details." "$LINENO" 5; }; }
23622 else
23623 ac_cv_sizeof_int=0
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23629 $as_echo "$ac_cv_sizeof_int" >&6; }
23633 cat >>confdefs.h <<_ACEOF
23634 #define SIZEOF_INT $ac_cv_sizeof_int
23635 _ACEOF
23638 # The cast to long int works around a bug in the HP C Compiler
23639 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23640 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23641 # This bug is HP SR number 8606223364.
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23643 $as_echo_n "checking size of long... " >&6; }
23644 if test "${ac_cv_sizeof_long+set}" = set; then :
23645 $as_echo_n "(cached) " >&6
23646 else
23647 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23649 else
23650 if test "$ac_cv_type_long" = yes; then
23651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23653 { as_fn_set_status 77
23654 as_fn_error "cannot compute sizeof (long)
23655 See \`config.log' for more details." "$LINENO" 5; }; }
23656 else
23657 ac_cv_sizeof_long=0
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23663 $as_echo "$ac_cv_sizeof_long" >&6; }
23667 cat >>confdefs.h <<_ACEOF
23668 #define SIZEOF_LONG $ac_cv_sizeof_long
23669 _ACEOF
23672 # The cast to long int works around a bug in the HP C Compiler
23673 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23674 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23675 # This bug is HP SR number 8606223364.
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
23677 $as_echo_n "checking size of void*... " >&6; }
23678 if test "${ac_cv_sizeof_voidp+set}" = set; then :
23679 $as_echo_n "(cached) " >&6
23680 else
23681 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
23683 else
23684 if test "$ac_cv_type_voidp" = yes; then
23685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23687 { as_fn_set_status 77
23688 as_fn_error "cannot compute sizeof (void*)
23689 See \`config.log' for more details." "$LINENO" 5; }; }
23690 else
23691 ac_cv_sizeof_voidp=0
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
23697 $as_echo "$ac_cv_sizeof_voidp" >&6; }
23701 cat >>confdefs.h <<_ACEOF
23702 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
23703 _ACEOF
23706 ac_cv_char_data_model=""
23707 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
23708 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
23709 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
23710 ac_cv_long_data_model=""
23711 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
23712 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
23713 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
23715 $as_echo_n "checking data model... " >&6; }
23716 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
23717 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
23718 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
23719 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
23720 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
23721 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
23722 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
23723 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
23724 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
23725 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
23726 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
23727 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
23728 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
23729 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
23730 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
23731 222/*|333/*|444/*|666/*|888/*) :
23732 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
23733 *) ac_cv_data_model="none" ; n="very unusual model" ;;
23734 esac
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
23736 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
23740 if test "_$ac_cv_header_stdint_x" != "_" ; then
23741 ac_cv_header_stdint="$ac_cv_header_stdint_x"
23742 elif test "_$ac_cv_header_stdint_o" != "_" ; then
23743 ac_cv_header_stdint="$ac_cv_header_stdint_o"
23744 elif test "_$ac_cv_header_stdint_u" != "_" ; then
23745 ac_cv_header_stdint="$ac_cv_header_stdint_u"
23746 else
23747 ac_cv_header_stdint="stddef.h"
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
23751 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
23753 $as_echo "($ac_cv_header_stdint)" >&6; }
23754 unset ac_cv_type_int_least32_t
23755 unset ac_cv_type_int_fast32_t
23756 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
23758 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
23762 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
23764 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
23768 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
23770 if test "x$ac_cv_type_intmax_t" = x""yes; then :
23775 fi # shortcircut to system "stdint.h"
23776 # ------------------ PREPARE VARIABLES ------------------------------
23777 if test "$GCC" = "yes" ; then
23778 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
23779 else
23780 ac_cv_stdint_message="using $CC"
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
23784 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
23786 # ----------------- DONE inttypes.h checks START header -------------
23787 ac_config_commands="$ac_config_commands $ac_stdint_h"
23792 # Check whether --with-glibj_zip was given.
23793 if test "${with_glibj_zip+set}" = set; then :
23794 withval=$with_glibj_zip;
23798 case "$with_glibj_zip" in
23800 use_glibj_zip=false
23802 "no" )
23803 use_glibj_zip=false
23805 "yes")
23806 as_fn_error "Please suply an absolute path to a prebuilt glibj.zip" "$LINENO" 5
23809 use_glibj_zip=true
23810 PATH_TO_GLIBJ_ZIP=$with_glibj_zip
23812 esac;
23814 if test x$use_glibj_zip = xtrue; then
23815 USE_PREBUILT_GLIBJ_ZIP_TRUE=
23816 USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
23817 else
23818 USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
23819 USE_PREBUILT_GLIBJ_ZIP_FALSE=
23824 if test "x${TOOLSDIR}" != x; then
23825 if test "x${COMPILE_WRAPPERS}" = xno && test "x${enable_java_maintainer_mode}" = xyes; then
23828 if test "x$JAVAPREFIX" = x; then
23829 test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
23831 # Extract the first word of "$ac_prog", so it can be a program name with args.
23832 set dummy $ac_prog; ac_word=$2
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23834 $as_echo_n "checking for $ac_word... " >&6; }
23835 if test "${ac_cv_prog_JAVA+set}" = set; then :
23836 $as_echo_n "(cached) " >&6
23837 else
23838 if test -n "$JAVA"; then
23839 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
23840 else
23841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23842 for as_dir in $PATH
23844 IFS=$as_save_IFS
23845 test -z "$as_dir" && as_dir=.
23846 for ac_exec_ext in '' $ac_executable_extensions; do
23847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23848 ac_cv_prog_JAVA="$ac_prog"
23849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23850 break 2
23852 done
23853 done
23854 IFS=$as_save_IFS
23858 JAVA=$ac_cv_prog_JAVA
23859 if test -n "$JAVA"; then
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
23861 $as_echo "$JAVA" >&6; }
23862 else
23863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23864 $as_echo "no" >&6; }
23868 test -n "$JAVA" && break
23869 done
23871 else
23872 test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
23874 # Extract the first word of "$ac_prog", so it can be a program name with args.
23875 set dummy $ac_prog; ac_word=$2
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23877 $as_echo_n "checking for $ac_word... " >&6; }
23878 if test "${ac_cv_prog_JAVA+set}" = set; then :
23879 $as_echo_n "(cached) " >&6
23880 else
23881 if test -n "$JAVA"; then
23882 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
23883 else
23884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23885 for as_dir in $PATH
23887 IFS=$as_save_IFS
23888 test -z "$as_dir" && as_dir=.
23889 for ac_exec_ext in '' $ac_executable_extensions; do
23890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23891 ac_cv_prog_JAVA="$ac_prog"
23892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23893 break 2
23895 done
23896 done
23897 IFS=$as_save_IFS
23901 JAVA=$ac_cv_prog_JAVA
23902 if test -n "$JAVA"; then
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
23904 $as_echo "$JAVA" >&6; }
23905 else
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23907 $as_echo "no" >&6; }
23911 test -n "$JAVA" && break
23912 done
23913 test -n "$JAVA" || JAVA="$JAVAPREFIX"
23916 test "x$JAVA" = x && as_fn_error "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
23919 ECJ_OPTS="-warn:-deprecation,serial,unusedImport,unusedPrivate,resource"
23920 JAVAC_OPTS="-Xlint:unchecked,cast,divzero,empty,finally,overrides"
23921 GCJ_OPTS="-g"
23922 if test "x$JAVAPREFIX" = x; then
23923 test "x$JAVAC" = x && for ac_prog in "ecj$EXEEXT $ECJ_OPTS" "ecj-3.3$EXEEXT $ECJ_OPTS" "ecj-3.2$EXEEXT $ECJ_OPTS" "javac$EXEEXT $JAVAC_OPTS" "gcj$EXEEXT -C"
23925 # Extract the first word of "$ac_prog", so it can be a program name with args.
23926 set dummy $ac_prog; ac_word=$2
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23928 $as_echo_n "checking for $ac_word... " >&6; }
23929 if test "${ac_cv_prog_JAVAC+set}" = set; then :
23930 $as_echo_n "(cached) " >&6
23931 else
23932 if test -n "$JAVAC"; then
23933 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
23934 else
23935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23936 for as_dir in $PATH
23938 IFS=$as_save_IFS
23939 test -z "$as_dir" && as_dir=.
23940 for ac_exec_ext in '' $ac_executable_extensions; do
23941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23942 ac_cv_prog_JAVAC="$ac_prog"
23943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23944 break 2
23946 done
23947 done
23948 IFS=$as_save_IFS
23952 JAVAC=$ac_cv_prog_JAVAC
23953 if test -n "$JAVAC"; then
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
23955 $as_echo "$JAVAC" >&6; }
23956 else
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23958 $as_echo "no" >&6; }
23962 test -n "$JAVAC" && break
23963 done
23965 else
23966 test "x$JAVAC" = x && for ac_prog in "ecj$EXEEXT $ECJ_OPTS" "ecj-3.3$EXEEXT $ECJ_OPTS" "ecj-3.2$EXEEXT $ECJ_OPTS" "javac$EXEEXT $JAVAC_OPTS" "gcj$EXEEXT -C"
23968 # Extract the first word of "$ac_prog", so it can be a program name with args.
23969 set dummy $ac_prog; ac_word=$2
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23971 $as_echo_n "checking for $ac_word... " >&6; }
23972 if test "${ac_cv_prog_JAVAC+set}" = set; then :
23973 $as_echo_n "(cached) " >&6
23974 else
23975 if test -n "$JAVAC"; then
23976 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
23977 else
23978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23979 for as_dir in $PATH
23981 IFS=$as_save_IFS
23982 test -z "$as_dir" && as_dir=.
23983 for ac_exec_ext in '' $ac_executable_extensions; do
23984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23985 ac_cv_prog_JAVAC="$ac_prog"
23986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23987 break 2
23989 done
23990 done
23991 IFS=$as_save_IFS
23995 JAVAC=$ac_cv_prog_JAVAC
23996 if test -n "$JAVAC"; then
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
23998 $as_echo "$JAVAC" >&6; }
23999 else
24000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24001 $as_echo "no" >&6; }
24005 test -n "$JAVAC" && break
24006 done
24007 test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
24010 test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC is a version of gcj" >&5
24012 $as_echo_n "checking if $JAVAC is a version of gcj... " >&6; }
24013 if test "${ac_cv_prog_javac_is_gcj+set}" = set; then :
24014 $as_echo_n "(cached) " >&6
24015 else
24017 if $JAVAC --version 2>&1 | grep gcj >&5 ; then
24018 ac_cv_prog_javac_is_gcj=yes;
24019 JAVAC="$JAVAC $GCJ_OPTS";
24020 else
24021 ac_cv_prog_javac_is_gcj=no;
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_is_gcj" >&5
24026 $as_echo "$ac_cv_prog_javac_is_gcj" >&6; }
24027 JAVAC_IS_GCJ=$ac_cv_prog_javac_is_gcj
24029 if test x"${JAVAC_IS_GCJ}" = xyes; then
24030 GCJ_JAVAC_TRUE=
24031 GCJ_JAVAC_FALSE='#'
24032 else
24033 GCJ_JAVAC_TRUE='#'
24034 GCJ_JAVAC_FALSE=
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
24041 $as_echo_n "checking if $JAVAC works... " >&6; }
24042 if test "${ac_cv_prog_javac_works+set}" = set; then :
24043 $as_echo_n "(cached) " >&6
24044 else
24046 JAVA_TEST=Object.java
24047 CLASS_TEST=Object.class
24048 cat << \EOF > $JAVA_TEST
24049 /* #line 24049 "configure" */
24050 package java.lang;
24052 public class Object
24054 static <T> void doStuff()
24059 if test x$JAVAC_IS_GCJ = xyes; then
24060 CMD="$JAVAC $JAVACFLAGS -fsource=1.5 -ftarget=1.5 $JAVA_TEST"
24061 else
24062 CMD="$JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST"
24064 if { ac_try='$CMD'
24065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24066 (eval $ac_try) 2>&5
24067 ac_status=$?
24068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24069 test $ac_status = 0; }; } >/dev/null 2>&1; then
24070 ac_cv_prog_javac_works=yes
24071 else
24072 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
24073 echo "configure: failed program was:" >&5
24074 cat $JAVA_TEST >&5
24076 rm -f $JAVA_TEST $CLASS_TEST
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
24080 $as_echo "$ac_cv_prog_javac_works" >&6; }
24084 # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
24085 set dummy uudecode$EXEEXT; ac_word=$2
24086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24087 $as_echo_n "checking for $ac_word... " >&6; }
24088 if test "${ac_cv_prog_uudecode+set}" = set; then :
24089 $as_echo_n "(cached) " >&6
24090 else
24091 if test -n "$uudecode"; then
24092 ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
24093 else
24094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24095 for as_dir in $PATH
24097 IFS=$as_save_IFS
24098 test -z "$as_dir" && as_dir=.
24099 for ac_exec_ext in '' $ac_executable_extensions; do
24100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24101 ac_cv_prog_uudecode="yes"
24102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24103 break 2
24105 done
24106 done
24107 IFS=$as_save_IFS
24111 uudecode=$ac_cv_prog_uudecode
24112 if test -n "$uudecode"; then
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
24114 $as_echo "$uudecode" >&6; }
24115 else
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24117 $as_echo "no" >&6; }
24121 if test x$uudecode = xyes; then
24122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
24123 $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
24124 if test "${ac_cv_prog_uudecode_base64+set}" = set; then :
24125 $as_echo_n "(cached) " >&6
24126 else
24128 cat << \EOF > Test.uue
24129 begin-base64 644 Test.class
24130 yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
24131 bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
24132 bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
24133 YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
24134 aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
24135 AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
24136 AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
24137 ====
24139 if uudecode$EXEEXT Test.uue; then
24140 ac_cv_prog_uudecode_base64=yes
24141 else
24142 echo "configure: 24142: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
24143 echo "configure: failed file was:" >&5
24144 cat Test.uue >&5
24145 ac_cv_prog_uudecode_base64=no
24147 rm -f Test.uue
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
24150 $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
24152 if test x$ac_cv_prog_uudecode_base64 != xyes; then
24153 rm -f Test.class
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
24155 $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
24156 if test x$ac_cv_prog_javac_works = xno; then
24157 as_fn_error "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
24161 $as_echo_n "checking if $JAVA works... " >&6; }
24162 if test "${ac_cv_prog_java_works+set}" = set; then :
24163 $as_echo_n "(cached) " >&6
24164 else
24166 JAVA_TEST=Test.java
24167 CLASS_TEST=Test.class
24168 TEST=Test
24169 cat << \EOF > $JAVA_TEST
24170 /* [#]line 24170 "configure" */
24171 public class Test {
24172 public static void main (String args[]) {
24173 System.exit (0);
24176 if test x$ac_cv_prog_uudecode_base64 != xyes; then
24178 if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
24179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24180 (eval $ac_try) 2>&5
24181 ac_status=$?
24182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24183 test $ac_status = 0; }; } && test -s $CLASS_TEST; then
24185 else
24186 echo "configure: failed program was:" >&5
24187 cat $JAVA_TEST >&5
24188 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
24191 if { ac_try='CLASSPATH=.:$CLASSPATH $JAVA $JAVAFLAGS $TEST'
24192 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24193 (eval $ac_try) 2>&5
24194 ac_status=$?
24195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24196 test $ac_status = 0; }; } >/dev/null 2>&1; then
24197 ac_cv_prog_java_works=yes
24198 else
24199 echo "configure: failed program was:" >&5
24200 cat $JAVA_TEST >&5
24201 as_fn_error "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
24203 rm -fr $JAVA_TEST $CLASS_TEST Test.uue
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
24207 $as_echo "$ac_cv_prog_java_works" >&6; }
24211 if test "x${COMPILE_GJDOC}" = xyes; then
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ANTLR parser generator JAR file" >&5
24214 $as_echo_n "checking for the ANTLR parser generator JAR file... " >&6; }
24215 if test -z "$ANTLR_JAR"; then
24216 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
24217 /usr/share/antlr/lib /usr/share/java /usr/lib;
24219 if test -f "$antlr_lib_home/antlr.jar"; then
24220 ANTLR_JAR="$antlr_lib_home/antlr.jar"
24221 break
24223 done
24225 test -f $ANTLR_JAR || as_fn_error "specified ANTLR jar file $ANTLR_JAR not found." "$LINENO" 5 \
24226 && { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
24227 $as_echo "$ANTLR_JAR" >&6; }
24230 if test "x${REGENERATE_GJDOC_PARSER}" = xyes && test "x${enable_java_maintainer_mode}" = xyes; then
24232 if test -n "$ac_tool_prefix"; then
24233 for ac_prog in cantlr runantlr antlr
24235 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24236 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24238 $as_echo_n "checking for $ac_word... " >&6; }
24239 if test "${ac_cv_prog_ANTLR+set}" = set; then :
24240 $as_echo_n "(cached) " >&6
24241 else
24242 if test -n "$ANTLR"; then
24243 ac_cv_prog_ANTLR="$ANTLR" # Let the user override the test.
24244 else
24245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24246 for as_dir in $PATH
24248 IFS=$as_save_IFS
24249 test -z "$as_dir" && as_dir=.
24250 for ac_exec_ext in '' $ac_executable_extensions; do
24251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24252 ac_cv_prog_ANTLR="$ac_tool_prefix$ac_prog"
24253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24254 break 2
24256 done
24257 done
24258 IFS=$as_save_IFS
24262 ANTLR=$ac_cv_prog_ANTLR
24263 if test -n "$ANTLR"; then
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR" >&5
24265 $as_echo "$ANTLR" >&6; }
24266 else
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24268 $as_echo "no" >&6; }
24272 test -n "$ANTLR" && break
24273 done
24275 if test -z "$ANTLR"; then
24276 ac_ct_ANTLR=$ANTLR
24277 for ac_prog in cantlr runantlr antlr
24279 # Extract the first word of "$ac_prog", so it can be a program name with args.
24280 set dummy $ac_prog; ac_word=$2
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24282 $as_echo_n "checking for $ac_word... " >&6; }
24283 if test "${ac_cv_prog_ac_ct_ANTLR+set}" = set; then :
24284 $as_echo_n "(cached) " >&6
24285 else
24286 if test -n "$ac_ct_ANTLR"; then
24287 ac_cv_prog_ac_ct_ANTLR="$ac_ct_ANTLR" # Let the user override the test.
24288 else
24289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24290 for as_dir in $PATH
24292 IFS=$as_save_IFS
24293 test -z "$as_dir" && as_dir=.
24294 for ac_exec_ext in '' $ac_executable_extensions; do
24295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24296 ac_cv_prog_ac_ct_ANTLR="$ac_prog"
24297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24298 break 2
24300 done
24301 done
24302 IFS=$as_save_IFS
24306 ac_ct_ANTLR=$ac_cv_prog_ac_ct_ANTLR
24307 if test -n "$ac_ct_ANTLR"; then
24308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ANTLR" >&5
24309 $as_echo "$ac_ct_ANTLR" >&6; }
24310 else
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24312 $as_echo "no" >&6; }
24316 test -n "$ac_ct_ANTLR" && break
24317 done
24319 if test "x$ac_ct_ANTLR" = x; then
24320 ANTLR=""
24321 else
24322 case $cross_compiling:$ac_tool_warned in
24323 yes:)
24324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24326 ac_tool_warned=yes ;;
24327 esac
24328 ANTLR=$ac_ct_ANTLR
24332 if test "x$ANTLR" = x; then
24333 if test -z "$JAVA"; then
24334 as_fn_error "Failed to find either an antlr binary or a suitable Java runtime for ANTLR." "$LINENO" 5
24335 else
24336 if test -z "$ANTLR_JAR"; then
24337 as_fn_error "Failed to find either an antlr binary or a suitable antlr jar file." "$LINENO" 5
24338 else
24339 ANTLR="$JAVA -classpath $ANTLR_JAR antlr.Tool"
24344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr 2.7.1 or better" >&5
24345 $as_echo_n "checking for antlr 2.7.1 or better... " >&6; }
24346 antlr_version_str=`$ANTLR 2>&1 | head -n 1 | sed '/.*Version */!d; s///;q'`
24347 if test "$antlr_version_str"; then
24348 antlr_version_regex='s/\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\).*$/'
24349 antlr_version_major=`echo $antlr_version_str | sed "$antlr_version_regex\\1/"`
24350 antlr_version_minor=`echo $antlr_version_str | sed "$antlr_version_regex\\2/"`
24351 antlr_version_micro=`echo $antlr_version_str | sed "$antlr_version_regex\\3/"`
24352 (test $antlr_version_major -gt 2 || \
24353 (test $antlr_version_major -eq 2 && \
24354 test $antlr_version_minor -gt 7) || \
24355 (test $antlr_version_major -eq 2 && \
24356 test $antlr_version_minor -eq 7 && \
24357 test $antlr_version_micro -ge 1))
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&5
24360 $as_echo "$antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&6; }
24367 # Check for javac if we need to build either the class library,
24368 # the examples or the tools
24369 if test "x${use_glibj_zip}" = xfalse || \
24370 test "x${EXAMPLESDIR}" != x || \
24371 test "x${TOOLSDIR}" != x && \
24372 test "x${build_class_files}" != xno && \
24373 test "${enable_java_maintainer_mode}" = yes; then
24375 JAVA_TEST=Test.java
24376 CLASS_TEST=Test.class
24377 cat << \EOF > $JAVA_TEST
24378 /* #line 24378 "configure" */
24379 public class Test
24381 public static void main(String args)
24383 System.out.println("Hello World");
24387 if test x$JAVAC_IS_GCJ != xyes; then
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether javac supports -J" >&5
24389 $as_echo_n "checking whether javac supports -J... " >&6; }
24390 $JAVAC $JAVACFLAGS -J-Xmx768M -sourcepath '' $JAVA_TEST
24391 javac_result=$?
24392 if test "x$javac_result" = "x0"; then
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24394 $as_echo "yes" >&6; }
24395 JAVAC_MEM_OPT="-J-Xmx768M"
24396 else
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24398 $as_echo "no" >&6; }
24401 rm -f $JAVA_TEST $CLASS_TEST
24404 else
24405 if false; then
24406 GCJ_JAVAC_TRUE=
24407 GCJ_JAVAC_FALSE='#'
24408 else
24409 GCJ_JAVAC_TRUE='#'
24410 GCJ_JAVAC_FALSE=
24416 # Check whether --with-escher was given.
24417 if test "${with_escher+set}" = set; then :
24418 withval=$with_escher;
24421 case "$with_escher" in
24423 use_escher=false
24425 "no")
24426 use_escher=false
24428 "yes")
24429 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
24432 use_escher=true
24433 PATH_TO_ESCHER=$with_escher
24435 esac
24437 if test x$use_escher = xtrue; then
24438 USE_ESCHER_TRUE=
24439 USE_ESCHER_FALSE='#'
24440 else
24441 USE_ESCHER_TRUE='#'
24442 USE_ESCHER_FALSE=
24447 # Check whether --enable-local-sockets was given.
24448 if test "${enable_local_sockets+set}" = set; then :
24449 enableval=$enable_local_sockets; case "${enableval}" in
24450 yes)
24451 ENABLE_LOCAL_SOCKETS=yes
24454 ENABLE_LOCAL_SOCKETS=no
24456 esac
24459 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
24460 then
24461 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
24462 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
24467 for ac_func in read write bind listen accept shutdown
24468 do :
24469 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24470 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24471 eval as_val=\$$as_ac_var
24472 if test "x$as_val" = x""yes; then :
24473 cat >>confdefs.h <<_ACEOF
24474 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24475 _ACEOF
24477 else
24478 as_fn_error "networking support not available" "$LINENO" 5
24480 done
24483 $as_echo "#define ENABLE_LOCAL_SOCKETS 1" >>confdefs.h
24486 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
24487 ENABLE_LOCAL_SOCKETS_TRUE=
24488 ENABLE_LOCAL_SOCKETS_FALSE='#'
24489 else
24490 ENABLE_LOCAL_SOCKETS_TRUE='#'
24491 ENABLE_LOCAL_SOCKETS_FALSE=
24497 WANT_NATIVE_BIG_INTEGER=false
24498 if test "x${COMPILE_GMP}" = xyes; then
24499 if test "x${ac_cv_lib_gmp___gmpz_mul_si}" = xyes; then
24500 if test "x${ac_cv_header_gmp_h}" = xyes; then
24501 WANT_NATIVE_BIG_INTEGER=true
24503 $as_echo "#define WITH_GNU_MP 1" >>confdefs.h
24505 else
24506 COMPILE_GMP=no
24508 else
24509 COMPILE_GMP=no
24513 if test "x${COMPILE_GMP}" = xyes; then
24514 CREATE_GMPBI_LIBRARY_TRUE=
24515 CREATE_GMPBI_LIBRARY_FALSE='#'
24516 else
24517 CREATE_GMPBI_LIBRARY_TRUE='#'
24518 CREATE_GMPBI_LIBRARY_FALSE=
24522 ac_config_files="$ac_config_files Makefile doc/Makefile doc/api/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile external/relaxngDatatype/Makefile external/jsr166/Makefile gnu/classpath/Configuration.java gnu/java/security/Configuration.java include/Makefile native/Makefile native/fdlibm/Makefile native/jawt/Makefile native/jni/Makefile native/jni/classpath/Makefile native/jni/java-io/Makefile native/jni/java-lang/Makefile native/jni/java-math/Makefile native/jni/java-net/Makefile native/jni/java-nio/Makefile native/jni/java-util/Makefile native/jni/gtk-peer/Makefile native/jni/gconf-peer/Makefile native/jni/gstreamer-peer/Makefile native/jni/qt-peer/Makefile native/jni/xmlj/Makefile native/jni/midi-alsa/Makefile native/jni/midi-dssi/Makefile native/jni/native-lib/Makefile native/plugin/Makefile resource/Makefile resource/META-INF/services/java.util.prefs.PreferencesFactory resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader resource/META-INF/services/javax.sound.sampled.spi.MixerProvider scripts/Makefile scripts/classpath.spec lib/Makefile lib/gen-classlist.sh lib/copy-vmresources.sh scripts/check_jni_methods.sh tools/Makefile examples/Makefile examples/Makefile.jawt examples/Makefile.java2d"
24525 if test "x${COMPILE_WRAPPERS}" = xyes; then
24527 else
24528 ac_config_files="$ac_config_files tools/gappletviewer tools/gjarsigner tools/gkeytool tools/gjar tools/gnative2ascii tools/gserialver tools/grmiregistry tools/gtnameserv tools/gorbd tools/grmid tools/grmic tools/gjavah"
24531 ac_config_commands="$ac_config_commands gappletviewer"
24533 ac_config_commands="$ac_config_commands gjarsigner"
24535 ac_config_commands="$ac_config_commands gkeytool"
24537 ac_config_commands="$ac_config_commands gjar"
24539 ac_config_commands="$ac_config_commands gnative2ascii"
24541 ac_config_commands="$ac_config_commands gserialver"
24543 ac_config_commands="$ac_config_commands grmiregistry"
24545 ac_config_commands="$ac_config_commands gtnameserv"
24547 ac_config_commands="$ac_config_commands gorbd"
24549 ac_config_commands="$ac_config_commands grmid"
24551 ac_config_commands="$ac_config_commands grmic"
24553 ac_config_commands="$ac_config_commands gjavah"
24558 if test "x${COMPILE_GJDOC}" = xyes
24559 then
24560 ac_config_files="$ac_config_files tools/gjdoc"
24562 ac_config_commands="$ac_config_commands gjdoc"
24566 ac_config_commands="$ac_config_commands gen-classlist"
24568 ac_config_commands="$ac_config_commands copy-vmresources"
24570 cat >confcache <<\_ACEOF
24571 # This file is a shell script that caches the results of configure
24572 # tests run on this system so they can be shared between configure
24573 # scripts and configure runs, see configure's option --config-cache.
24574 # It is not useful on other systems. If it contains results you don't
24575 # want to keep, you may remove or edit it.
24577 # config.status only pays attention to the cache file if you give it
24578 # the --recheck option to rerun configure.
24580 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24581 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24582 # following values.
24584 _ACEOF
24586 # The following way of writing the cache mishandles newlines in values,
24587 # but we know of no workaround that is simple, portable, and efficient.
24588 # So, we kill variables containing newlines.
24589 # Ultrix sh set writes to stderr and can't be redirected directly,
24590 # and sets the high bit in the cache file unless we assign to the vars.
24592 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24593 eval ac_val=\$$ac_var
24594 case $ac_val in #(
24595 *${as_nl}*)
24596 case $ac_var in #(
24597 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24598 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24599 esac
24600 case $ac_var in #(
24601 _ | IFS | as_nl) ;; #(
24602 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24603 *) { eval $ac_var=; unset $ac_var;} ;;
24604 esac ;;
24605 esac
24606 done
24608 (set) 2>&1 |
24609 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24610 *${as_nl}ac_space=\ *)
24611 # `set' does not quote correctly, so add quotes: double-quote
24612 # substitution turns \\\\ into \\, and sed turns \\ into \.
24613 sed -n \
24614 "s/'/'\\\\''/g;
24615 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24616 ;; #(
24618 # `set' quotes correctly as required by POSIX, so do not add quotes.
24619 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24621 esac |
24622 sort
24624 sed '
24625 /^ac_cv_env_/b end
24626 t clear
24627 :clear
24628 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24629 t end
24630 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24631 :end' >>confcache
24632 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24633 if test -w "$cache_file"; then
24634 test "x$cache_file" != "x/dev/null" &&
24635 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24636 $as_echo "$as_me: updating cache $cache_file" >&6;}
24637 cat confcache >$cache_file
24638 else
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24640 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24643 rm -f confcache
24645 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24646 # Let make expand exec_prefix.
24647 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24649 DEFS=-DHAVE_CONFIG_H
24651 ac_libobjs=
24652 ac_ltlibobjs=
24653 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24654 # 1. Remove the extension, and $U if already installed.
24655 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24656 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24657 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24658 # will be set to the directory where LIBOBJS objects are built.
24659 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24660 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24661 done
24662 LIBOBJS=$ac_libobjs
24664 LTLIBOBJS=$ac_ltlibobjs
24667 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24668 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24671 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
24672 as_fn_error "conditional \"GENINSRC\" was never defined.
24673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24675 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
24676 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
24677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24679 if test -n "$EXEEXT"; then
24680 am__EXEEXT_TRUE=
24681 am__EXEEXT_FALSE='#'
24682 else
24683 am__EXEEXT_TRUE='#'
24684 am__EXEEXT_FALSE=
24687 if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
24688 as_fn_error "conditional \"CREATE_COLLECTIONS\" was never defined.
24689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24691 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
24692 as_fn_error "conditional \"CREATE_JNI_LIBRARIES\" was never defined.
24693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24695 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
24696 as_fn_error "conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
24697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24699 if test -z "${CREATE_GCONF_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GCONF_PEER_LIBRARIES_FALSE}"; then
24700 as_fn_error "conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
24701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24703 if test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_FALSE}"; then
24704 as_fn_error "conditional \"CREATE_GSTREAMER_PEER_LIBRARIES\" was never defined.
24705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24707 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
24708 as_fn_error "conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
24709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24711 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24712 as_fn_error "conditional \"AMDEP\" was never defined.
24713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24715 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24716 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24719 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
24720 as_fn_error "conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
24721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24723 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
24724 as_fn_error "conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
24725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24727 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
24728 as_fn_error "conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
24729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24731 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
24732 as_fn_error "conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
24733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24735 if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
24736 as_fn_error "conditional \"CREATE_PLUGIN\" was never defined.
24737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24739 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24740 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24743 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
24744 as_fn_error "conditional \"CREATE_JNI_HEADERS\" was never defined.
24745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24747 if test -z "${CREATE_GJDOC_PARSER_TRUE}" && test -z "${CREATE_GJDOC_PARSER_FALSE}"; then
24748 as_fn_error "conditional \"CREATE_GJDOC_PARSER\" was never defined.
24749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24751 if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
24752 as_fn_error "conditional \"CREATE_WRAPPERS\" was never defined.
24753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24755 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24756 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24759 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24760 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24763 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24764 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24767 if test -z "${WITH_JAR_TRUE}" && test -z "${WITH_JAR_FALSE}"; then
24768 as_fn_error "conditional \"WITH_JAR\" was never defined.
24769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24771 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
24772 as_fn_error "conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
24773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24775 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
24776 as_fn_error "conditional \"INSTALL_CLASS_FILES\" was never defined.
24777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24779 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
24780 as_fn_error "conditional \"BUILD_CLASS_FILES\" was never defined.
24781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24783 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
24784 as_fn_error "conditional \"CREATE_API_DOCS\" was never defined.
24785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24787 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
24788 as_fn_error "conditional \"REGEN_PARSERS\" was never defined.
24789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24791 if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
24792 as_fn_error "conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
24793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24795 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
24796 as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
24797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24799 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
24800 as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
24801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24803 if test -z "${USE_ESCHER_TRUE}" && test -z "${USE_ESCHER_FALSE}"; then
24804 as_fn_error "conditional \"USE_ESCHER\" was never defined.
24805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24807 if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
24808 as_fn_error "conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
24809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24811 if test -z "${CREATE_GMPBI_LIBRARY_TRUE}" && test -z "${CREATE_GMPBI_LIBRARY_FALSE}"; then
24812 as_fn_error "conditional \"CREATE_GMPBI_LIBRARY\" was never defined.
24813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24816 : ${CONFIG_STATUS=./config.status}
24817 ac_write_fail=0
24818 ac_clean_files_save=$ac_clean_files
24819 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24821 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24822 as_write_fail=0
24823 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24824 #! $SHELL
24825 # Generated by $as_me.
24826 # Run this file to recreate the current configuration.
24827 # Compiler output produced by configure, useful for debugging
24828 # configure, is in config.log if it exists.
24830 debug=false
24831 ac_cs_recheck=false
24832 ac_cs_silent=false
24834 SHELL=\${CONFIG_SHELL-$SHELL}
24835 export SHELL
24836 _ASEOF
24837 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24838 ## -------------------- ##
24839 ## M4sh Initialization. ##
24840 ## -------------------- ##
24842 # Be more Bourne compatible
24843 DUALCASE=1; export DUALCASE # for MKS sh
24844 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24845 emulate sh
24846 NULLCMD=:
24847 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24848 # is contrary to our usage. Disable this feature.
24849 alias -g '${1+"$@"}'='"$@"'
24850 setopt NO_GLOB_SUBST
24851 else
24852 case `(set -o) 2>/dev/null` in #(
24853 *posix*) :
24854 set -o posix ;; #(
24855 *) :
24857 esac
24861 as_nl='
24863 export as_nl
24864 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24865 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24866 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24867 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24868 # Prefer a ksh shell builtin over an external printf program on Solaris,
24869 # but without wasting forks for bash or zsh.
24870 if test -z "$BASH_VERSION$ZSH_VERSION" \
24871 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24872 as_echo='print -r --'
24873 as_echo_n='print -rn --'
24874 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24875 as_echo='printf %s\n'
24876 as_echo_n='printf %s'
24877 else
24878 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24879 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24880 as_echo_n='/usr/ucb/echo -n'
24881 else
24882 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24883 as_echo_n_body='eval
24884 arg=$1;
24885 case $arg in #(
24886 *"$as_nl"*)
24887 expr "X$arg" : "X\\(.*\\)$as_nl";
24888 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24889 esac;
24890 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24892 export as_echo_n_body
24893 as_echo_n='sh -c $as_echo_n_body as_echo'
24895 export as_echo_body
24896 as_echo='sh -c $as_echo_body as_echo'
24899 # The user is always right.
24900 if test "${PATH_SEPARATOR+set}" != set; then
24901 PATH_SEPARATOR=:
24902 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24903 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24904 PATH_SEPARATOR=';'
24909 # IFS
24910 # We need space, tab and new line, in precisely that order. Quoting is
24911 # there to prevent editors from complaining about space-tab.
24912 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24913 # splitting by setting IFS to empty value.)
24914 IFS=" "" $as_nl"
24916 # Find who we are. Look in the path if we contain no directory separator.
24917 case $0 in #((
24918 *[\\/]* ) as_myself=$0 ;;
24919 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24920 for as_dir in $PATH
24922 IFS=$as_save_IFS
24923 test -z "$as_dir" && as_dir=.
24924 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24925 done
24926 IFS=$as_save_IFS
24929 esac
24930 # We did not find ourselves, most probably we were run as `sh COMMAND'
24931 # in which case we are not to be found in the path.
24932 if test "x$as_myself" = x; then
24933 as_myself=$0
24935 if test ! -f "$as_myself"; then
24936 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24937 exit 1
24940 # Unset variables that we do not need and which cause bugs (e.g. in
24941 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24942 # suppresses any "Segmentation fault" message there. '((' could
24943 # trigger a bug in pdksh 5.2.14.
24944 for as_var in BASH_ENV ENV MAIL MAILPATH
24945 do eval test x\${$as_var+set} = xset \
24946 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24947 done
24948 PS1='$ '
24949 PS2='> '
24950 PS4='+ '
24952 # NLS nuisances.
24953 LC_ALL=C
24954 export LC_ALL
24955 LANGUAGE=C
24956 export LANGUAGE
24958 # CDPATH.
24959 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24962 # as_fn_error ERROR [LINENO LOG_FD]
24963 # ---------------------------------
24964 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24965 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24966 # script with status $?, using 1 if that was 0.
24967 as_fn_error ()
24969 as_status=$?; test $as_status -eq 0 && as_status=1
24970 if test "$3"; then
24971 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24972 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24974 $as_echo "$as_me: error: $1" >&2
24975 as_fn_exit $as_status
24976 } # as_fn_error
24979 # as_fn_set_status STATUS
24980 # -----------------------
24981 # Set $? to STATUS, without forking.
24982 as_fn_set_status ()
24984 return $1
24985 } # as_fn_set_status
24987 # as_fn_exit STATUS
24988 # -----------------
24989 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24990 as_fn_exit ()
24992 set +e
24993 as_fn_set_status $1
24994 exit $1
24995 } # as_fn_exit
24997 # as_fn_unset VAR
24998 # ---------------
24999 # Portably unset VAR.
25000 as_fn_unset ()
25002 { eval $1=; unset $1;}
25004 as_unset=as_fn_unset
25005 # as_fn_append VAR VALUE
25006 # ----------------------
25007 # Append the text in VALUE to the end of the definition contained in VAR. Take
25008 # advantage of any shell optimizations that allow amortized linear growth over
25009 # repeated appends, instead of the typical quadratic growth present in naive
25010 # implementations.
25011 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25012 eval 'as_fn_append ()
25014 eval $1+=\$2
25016 else
25017 as_fn_append ()
25019 eval $1=\$$1\$2
25021 fi # as_fn_append
25023 # as_fn_arith ARG...
25024 # ------------------
25025 # Perform arithmetic evaluation on the ARGs, and store the result in the
25026 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25027 # must be portable across $(()) and expr.
25028 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25029 eval 'as_fn_arith ()
25031 as_val=$(( $* ))
25033 else
25034 as_fn_arith ()
25036 as_val=`expr "$@" || test $? -eq 1`
25038 fi # as_fn_arith
25041 if expr a : '\(a\)' >/dev/null 2>&1 &&
25042 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25043 as_expr=expr
25044 else
25045 as_expr=false
25048 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25049 as_basename=basename
25050 else
25051 as_basename=false
25054 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25055 as_dirname=dirname
25056 else
25057 as_dirname=false
25060 as_me=`$as_basename -- "$0" ||
25061 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25062 X"$0" : 'X\(//\)$' \| \
25063 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25064 $as_echo X/"$0" |
25065 sed '/^.*\/\([^/][^/]*\)\/*$/{
25066 s//\1/
25069 /^X\/\(\/\/\)$/{
25070 s//\1/
25073 /^X\/\(\/\).*/{
25074 s//\1/
25077 s/.*/./; q'`
25079 # Avoid depending upon Character Ranges.
25080 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25081 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25082 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25083 as_cr_digits='0123456789'
25084 as_cr_alnum=$as_cr_Letters$as_cr_digits
25086 ECHO_C= ECHO_N= ECHO_T=
25087 case `echo -n x` in #(((((
25088 -n*)
25089 case `echo 'xy\c'` in
25090 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25091 xy) ECHO_C='\c';;
25092 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25093 ECHO_T=' ';;
25094 esac;;
25096 ECHO_N='-n';;
25097 esac
25099 rm -f conf$$ conf$$.exe conf$$.file
25100 if test -d conf$$.dir; then
25101 rm -f conf$$.dir/conf$$.file
25102 else
25103 rm -f conf$$.dir
25104 mkdir conf$$.dir 2>/dev/null
25106 if (echo >conf$$.file) 2>/dev/null; then
25107 if ln -s conf$$.file conf$$ 2>/dev/null; then
25108 as_ln_s='ln -s'
25109 # ... but there are two gotchas:
25110 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25111 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25112 # In both cases, we have to default to `cp -p'.
25113 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25114 as_ln_s='cp -p'
25115 elif ln conf$$.file conf$$ 2>/dev/null; then
25116 as_ln_s=ln
25117 else
25118 as_ln_s='cp -p'
25120 else
25121 as_ln_s='cp -p'
25123 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25124 rmdir conf$$.dir 2>/dev/null
25127 # as_fn_mkdir_p
25128 # -------------
25129 # Create "$as_dir" as a directory, including parents if necessary.
25130 as_fn_mkdir_p ()
25133 case $as_dir in #(
25134 -*) as_dir=./$as_dir;;
25135 esac
25136 test -d "$as_dir" || eval $as_mkdir_p || {
25137 as_dirs=
25138 while :; do
25139 case $as_dir in #(
25140 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25141 *) as_qdir=$as_dir;;
25142 esac
25143 as_dirs="'$as_qdir' $as_dirs"
25144 as_dir=`$as_dirname -- "$as_dir" ||
25145 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25146 X"$as_dir" : 'X\(//\)[^/]' \| \
25147 X"$as_dir" : 'X\(//\)$' \| \
25148 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25149 $as_echo X"$as_dir" |
25150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25151 s//\1/
25154 /^X\(\/\/\)[^/].*/{
25155 s//\1/
25158 /^X\(\/\/\)$/{
25159 s//\1/
25162 /^X\(\/\).*/{
25163 s//\1/
25166 s/.*/./; q'`
25167 test -d "$as_dir" && break
25168 done
25169 test -z "$as_dirs" || eval "mkdir $as_dirs"
25170 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25173 } # as_fn_mkdir_p
25174 if mkdir -p . 2>/dev/null; then
25175 as_mkdir_p='mkdir -p "$as_dir"'
25176 else
25177 test -d ./-p && rmdir ./-p
25178 as_mkdir_p=false
25181 if test -x / >/dev/null 2>&1; then
25182 as_test_x='test -x'
25183 else
25184 if ls -dL / >/dev/null 2>&1; then
25185 as_ls_L_option=L
25186 else
25187 as_ls_L_option=
25189 as_test_x='
25190 eval sh -c '\''
25191 if test -d "$1"; then
25192 test -d "$1/.";
25193 else
25194 case $1 in #(
25195 -*)set "./$1";;
25196 esac;
25197 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25198 ???[sx]*):;;*)false;;esac;fi
25199 '\'' sh
25202 as_executable_p=$as_test_x
25204 # Sed expression to map a string onto a valid CPP name.
25205 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25207 # Sed expression to map a string onto a valid variable name.
25208 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25211 exec 6>&1
25212 ## ----------------------------------- ##
25213 ## Main body of $CONFIG_STATUS script. ##
25214 ## ----------------------------------- ##
25215 _ASEOF
25216 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25219 # Save the log message, to keep $0 and so on meaningful, and to
25220 # report actual input values of CONFIG_FILES etc. instead of their
25221 # values after options handling.
25222 ac_log="
25223 This file was extended by GNU Classpath $as_me 0.99.1-pre, which was
25224 generated by GNU Autoconf 2.64. Invocation command line was
25226 CONFIG_FILES = $CONFIG_FILES
25227 CONFIG_HEADERS = $CONFIG_HEADERS
25228 CONFIG_LINKS = $CONFIG_LINKS
25229 CONFIG_COMMANDS = $CONFIG_COMMANDS
25230 $ $0 $@
25232 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25235 _ACEOF
25237 case $ac_config_files in *"
25238 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25239 esac
25241 case $ac_config_headers in *"
25242 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25243 esac
25246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25247 # Files that config.status was made for.
25248 config_files="$ac_config_files"
25249 config_headers="$ac_config_headers"
25250 config_links="$ac_config_links"
25251 config_commands="$ac_config_commands"
25253 _ACEOF
25255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25256 ac_cs_usage="\
25257 \`$as_me' instantiates files and other configuration actions
25258 from templates according to the current configuration. Unless the files
25259 and actions are specified as TAGs, all are instantiated by default.
25261 Usage: $0 [OPTION]... [TAG]...
25263 -h, --help print this help, then exit
25264 -V, --version print version number and configuration settings, then exit
25265 -q, --quiet, --silent
25266 do not print progress messages
25267 -d, --debug don't remove temporary files
25268 --recheck update $as_me by reconfiguring in the same conditions
25269 --file=FILE[:TEMPLATE]
25270 instantiate the configuration file FILE
25271 --header=FILE[:TEMPLATE]
25272 instantiate the configuration header FILE
25274 Configuration files:
25275 $config_files
25277 Configuration headers:
25278 $config_headers
25280 Configuration links:
25281 $config_links
25283 Configuration commands:
25284 $config_commands
25286 Report bugs to <classpath@gnu.org>.
25287 GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
25288 General help using GNU software: <http://www.gnu.org/gethelp/>."
25290 _ACEOF
25291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25292 ac_cs_version="\\
25293 GNU Classpath config.status 0.99.1-pre
25294 configured by $0, generated by GNU Autoconf 2.64,
25295 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25297 Copyright (C) 2009 Free Software Foundation, Inc.
25298 This config.status script is free software; the Free Software Foundation
25299 gives unlimited permission to copy, distribute and modify it."
25301 ac_pwd='$ac_pwd'
25302 srcdir='$srcdir'
25303 INSTALL='$INSTALL'
25304 MKDIR_P='$MKDIR_P'
25305 AWK='$AWK'
25306 test -n "\$AWK" || AWK=awk
25307 _ACEOF
25309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25310 # The default lists apply if the user does not specify any file.
25311 ac_need_defaults=:
25312 while test $# != 0
25314 case $1 in
25315 --*=*)
25316 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25317 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25318 ac_shift=:
25321 ac_option=$1
25322 ac_optarg=$2
25323 ac_shift=shift
25325 esac
25327 case $ac_option in
25328 # Handling of the options.
25329 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25330 ac_cs_recheck=: ;;
25331 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25332 $as_echo "$ac_cs_version"; exit ;;
25333 --debug | --debu | --deb | --de | --d | -d )
25334 debug=: ;;
25335 --file | --fil | --fi | --f )
25336 $ac_shift
25337 case $ac_optarg in
25338 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25339 esac
25340 as_fn_append CONFIG_FILES " '$ac_optarg'"
25341 ac_need_defaults=false;;
25342 --header | --heade | --head | --hea )
25343 $ac_shift
25344 case $ac_optarg in
25345 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25346 esac
25347 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25348 ac_need_defaults=false;;
25349 --he | --h)
25350 # Conflict between --help and --header
25351 as_fn_error "ambiguous option: \`$1'
25352 Try \`$0 --help' for more information.";;
25353 --help | --hel | -h )
25354 $as_echo "$ac_cs_usage"; exit ;;
25355 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25356 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25357 ac_cs_silent=: ;;
25359 # This is an error.
25360 -*) as_fn_error "unrecognized option: \`$1'
25361 Try \`$0 --help' for more information." ;;
25363 *) as_fn_append ac_config_targets " $1"
25364 ac_need_defaults=false ;;
25366 esac
25367 shift
25368 done
25370 ac_configure_extra_args=
25372 if $ac_cs_silent; then
25373 exec 6>/dev/null
25374 ac_configure_extra_args="$ac_configure_extra_args --silent"
25377 _ACEOF
25378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25379 if \$ac_cs_recheck; then
25380 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25381 shift
25382 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25383 CONFIG_SHELL='$SHELL'
25384 export CONFIG_SHELL
25385 exec "\$@"
25388 _ACEOF
25389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25390 exec 5>>config.log
25392 echo
25393 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25394 ## Running $as_me. ##
25395 _ASBOX
25396 $as_echo "$ac_log"
25397 } >&5
25399 _ACEOF
25400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25402 # INIT-COMMANDS
25405 srcdir="$srcdir"
25406 host="$host"
25407 target="$target"
25408 with_multisubdir="$with_multisubdir"
25409 with_multisrctop="$with_multisrctop"
25410 with_target_subdir="$with_target_subdir"
25411 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25412 multi_basedir="$multi_basedir"
25413 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25414 CC="$CC"
25415 CXX="$CXX"
25416 GFORTRAN="$GFORTRAN"
25417 GCJ="$GCJ"
25418 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25421 # The HP-UX ksh and POSIX shell print the target directory to stdout
25422 # if CDPATH is set.
25423 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25425 sed_quote_subst='$sed_quote_subst'
25426 double_quote_subst='$double_quote_subst'
25427 delay_variable_subst='$delay_variable_subst'
25428 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25429 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25430 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25431 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25432 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25433 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25434 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25435 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25436 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25437 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25438 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25439 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25440 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25441 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25442 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25443 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25444 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25445 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25446 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25447 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25448 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25449 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25450 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25451 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25452 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25453 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25454 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25455 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25456 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25457 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25458 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25459 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25460 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25461 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25462 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25463 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25464 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25465 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25466 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25467 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25468 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25469 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25470 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25471 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25472 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25473 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25474 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25475 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25476 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"`'
25477 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25478 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25479 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25480 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25481 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25482 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25483 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25484 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25485 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25486 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25487 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25488 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25489 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25490 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25491 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25492 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25493 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25494 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25495 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25496 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25497 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25498 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25499 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25500 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25501 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25502 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25503 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25504 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25505 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25506 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25507 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25508 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25509 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25510 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25511 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25512 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25513 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25514 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25515 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25516 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25517 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25518 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25519 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25520 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25521 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25522 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25523 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25524 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25525 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25526 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25527 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25528 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25529 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25530 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25531 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25532 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25533 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25534 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25535 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25536 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25537 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25538 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25539 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25540 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25541 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25542 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25543 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25544 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25545 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25546 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25547 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25548 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25549 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25550 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25551 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25552 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25553 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25554 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25555 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25556 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25557 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25558 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25559 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25560 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25561 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25562 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25563 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25564 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25565 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25566 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25567 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25568 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25569 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25570 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25571 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25572 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25573 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25574 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25575 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25576 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25577 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25578 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25579 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25580 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25581 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25582 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25583 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25584 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25585 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25586 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25587 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25588 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25589 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25590 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25591 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25592 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25593 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25594 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25595 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25596 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25597 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25598 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25599 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25600 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25601 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25602 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25604 LTCC='$LTCC'
25605 LTCFLAGS='$LTCFLAGS'
25606 compiler='$compiler_DEFAULT'
25608 # A function that is used when there is no print builtin or printf.
25609 func_fallback_echo ()
25611 eval 'cat <<_LTECHO_EOF
25613 _LTECHO_EOF'
25616 # Quote evaled strings.
25617 for var in SHELL \
25618 ECHO \
25619 SED \
25620 GREP \
25621 EGREP \
25622 FGREP \
25623 LD \
25624 NM \
25625 LN_S \
25626 lt_SP2NL \
25627 lt_NL2SP \
25628 reload_flag \
25629 OBJDUMP \
25630 deplibs_check_method \
25631 file_magic_cmd \
25632 AR \
25633 AR_FLAGS \
25634 STRIP \
25635 RANLIB \
25636 CC \
25637 CFLAGS \
25638 compiler \
25639 lt_cv_sys_global_symbol_pipe \
25640 lt_cv_sys_global_symbol_to_cdecl \
25641 lt_cv_sys_global_symbol_to_c_name_address \
25642 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25643 lt_prog_compiler_no_builtin_flag \
25644 lt_prog_compiler_wl \
25645 lt_prog_compiler_pic \
25646 lt_prog_compiler_static \
25647 lt_cv_prog_compiler_c_o \
25648 need_locks \
25649 DSYMUTIL \
25650 NMEDIT \
25651 LIPO \
25652 OTOOL \
25653 OTOOL64 \
25654 shrext_cmds \
25655 export_dynamic_flag_spec \
25656 whole_archive_flag_spec \
25657 compiler_needs_object \
25658 with_gnu_ld \
25659 allow_undefined_flag \
25660 no_undefined_flag \
25661 hardcode_libdir_flag_spec \
25662 hardcode_libdir_flag_spec_ld \
25663 hardcode_libdir_separator \
25664 fix_srcfile_path \
25665 exclude_expsyms \
25666 include_expsyms \
25667 file_list_spec \
25668 variables_saved_for_relink \
25669 libname_spec \
25670 library_names_spec \
25671 soname_spec \
25672 install_override_mode \
25673 finish_eval \
25674 old_striplib \
25675 striplib \
25676 compiler_lib_search_dirs \
25677 predep_objects \
25678 postdep_objects \
25679 predeps \
25680 postdeps \
25681 compiler_lib_search_path \
25682 LD_CXX \
25683 reload_flag_CXX \
25684 compiler_CXX \
25685 lt_prog_compiler_no_builtin_flag_CXX \
25686 lt_prog_compiler_wl_CXX \
25687 lt_prog_compiler_pic_CXX \
25688 lt_prog_compiler_static_CXX \
25689 lt_cv_prog_compiler_c_o_CXX \
25690 export_dynamic_flag_spec_CXX \
25691 whole_archive_flag_spec_CXX \
25692 compiler_needs_object_CXX \
25693 with_gnu_ld_CXX \
25694 allow_undefined_flag_CXX \
25695 no_undefined_flag_CXX \
25696 hardcode_libdir_flag_spec_CXX \
25697 hardcode_libdir_flag_spec_ld_CXX \
25698 hardcode_libdir_separator_CXX \
25699 fix_srcfile_path_CXX \
25700 exclude_expsyms_CXX \
25701 include_expsyms_CXX \
25702 file_list_spec_CXX \
25703 compiler_lib_search_dirs_CXX \
25704 predep_objects_CXX \
25705 postdep_objects_CXX \
25706 predeps_CXX \
25707 postdeps_CXX \
25708 compiler_lib_search_path_CXX; do
25709 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25710 *[\\\\\\\`\\"\\\$]*)
25711 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25714 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25716 esac
25717 done
25719 # Double-quote double-evaled strings.
25720 for var in reload_cmds \
25721 old_postinstall_cmds \
25722 old_postuninstall_cmds \
25723 old_archive_cmds \
25724 extract_expsyms_cmds \
25725 old_archive_from_new_cmds \
25726 old_archive_from_expsyms_cmds \
25727 archive_cmds \
25728 archive_expsym_cmds \
25729 module_cmds \
25730 module_expsym_cmds \
25731 export_symbols_cmds \
25732 prelink_cmds \
25733 postinstall_cmds \
25734 postuninstall_cmds \
25735 finish_cmds \
25736 sys_lib_search_path_spec \
25737 sys_lib_dlsearch_path_spec \
25738 reload_cmds_CXX \
25739 old_archive_cmds_CXX \
25740 old_archive_from_new_cmds_CXX \
25741 old_archive_from_expsyms_cmds_CXX \
25742 archive_cmds_CXX \
25743 archive_expsym_cmds_CXX \
25744 module_cmds_CXX \
25745 module_expsym_cmds_CXX \
25746 export_symbols_cmds_CXX \
25747 prelink_cmds_CXX; do
25748 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25749 *[\\\\\\\`\\"\\\$]*)
25750 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25753 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25755 esac
25756 done
25758 ac_aux_dir='$ac_aux_dir'
25759 xsi_shell='$xsi_shell'
25760 lt_shell_append='$lt_shell_append'
25762 # See if we are running on zsh, and set the options which allow our
25763 # commands through without removal of \ escapes INIT.
25764 if test -n "\${ZSH_VERSION+set}" ; then
25765 setopt NO_GLOB_SUBST
25769 PACKAGE='$PACKAGE'
25770 VERSION='$VERSION'
25771 TIMESTAMP='$TIMESTAMP'
25772 RM='$RM'
25773 ofile='$ofile'
25779 # variables for create stdint.h replacement
25780 PACKAGE="$PACKAGE"
25781 VERSION="$VERSION"
25782 ac_stdint_h="$ac_stdint_h"
25783 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
25784 ac_cv_stdint_message="$ac_cv_stdint_message"
25785 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
25786 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
25787 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
25788 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
25789 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
25790 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
25791 ac_cv_char_data_model="$ac_cv_char_data_model"
25792 ac_cv_long_data_model="$ac_cv_long_data_model"
25793 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
25794 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
25795 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
25798 _ACEOF
25800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25802 # Handling of arguments.
25803 for ac_config_target in $ac_config_targets
25805 case $ac_config_target in
25806 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25807 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25808 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25809 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25810 "lib/mkcollections.pl") CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
25811 "mkcollections.pl") CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
25812 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
25813 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
25814 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25815 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25816 "doc/api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
25817 "external/Makefile") CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
25818 "external/sax/Makefile") CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
25819 "external/w3c_dom/Makefile") CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
25820 "external/relaxngDatatype/Makefile") CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
25821 "external/jsr166/Makefile") CONFIG_FILES="$CONFIG_FILES external/jsr166/Makefile" ;;
25822 "gnu/classpath/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
25823 "gnu/java/security/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/java/security/Configuration.java" ;;
25824 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25825 "native/Makefile") CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
25826 "native/fdlibm/Makefile") CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
25827 "native/jawt/Makefile") CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
25828 "native/jni/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
25829 "native/jni/classpath/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
25830 "native/jni/java-io/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
25831 "native/jni/java-lang/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
25832 "native/jni/java-math/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-math/Makefile" ;;
25833 "native/jni/java-net/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
25834 "native/jni/java-nio/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
25835 "native/jni/java-util/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
25836 "native/jni/gtk-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
25837 "native/jni/gconf-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gconf-peer/Makefile" ;;
25838 "native/jni/gstreamer-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gstreamer-peer/Makefile" ;;
25839 "native/jni/qt-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
25840 "native/jni/xmlj/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
25841 "native/jni/midi-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
25842 "native/jni/midi-dssi/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
25843 "native/jni/native-lib/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/native-lib/Makefile" ;;
25844 "native/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
25845 "resource/Makefile") CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
25846 "resource/META-INF/services/java.util.prefs.PreferencesFactory") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/java.util.prefs.PreferencesFactory" ;;
25847 "resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader" ;;
25848 "resource/META-INF/services/javax.sound.sampled.spi.MixerProvider") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.MixerProvider" ;;
25849 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
25850 "scripts/classpath.spec") CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
25851 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25852 "lib/gen-classlist.sh") CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
25853 "lib/copy-vmresources.sh") CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
25854 "scripts/check_jni_methods.sh") CONFIG_FILES="$CONFIG_FILES scripts/check_jni_methods.sh" ;;
25855 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
25856 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
25857 "examples/Makefile.jawt") CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
25858 "examples/Makefile.java2d") CONFIG_FILES="$CONFIG_FILES examples/Makefile.java2d" ;;
25859 "tools/gappletviewer") CONFIG_FILES="$CONFIG_FILES tools/gappletviewer" ;;
25860 "tools/gjarsigner") CONFIG_FILES="$CONFIG_FILES tools/gjarsigner" ;;
25861 "tools/gkeytool") CONFIG_FILES="$CONFIG_FILES tools/gkeytool" ;;
25862 "tools/gjar") CONFIG_FILES="$CONFIG_FILES tools/gjar" ;;
25863 "tools/gnative2ascii") CONFIG_FILES="$CONFIG_FILES tools/gnative2ascii" ;;
25864 "tools/gserialver") CONFIG_FILES="$CONFIG_FILES tools/gserialver" ;;
25865 "tools/grmiregistry") CONFIG_FILES="$CONFIG_FILES tools/grmiregistry" ;;
25866 "tools/gtnameserv") CONFIG_FILES="$CONFIG_FILES tools/gtnameserv" ;;
25867 "tools/gorbd") CONFIG_FILES="$CONFIG_FILES tools/gorbd" ;;
25868 "tools/grmid") CONFIG_FILES="$CONFIG_FILES tools/grmid" ;;
25869 "tools/grmic") CONFIG_FILES="$CONFIG_FILES tools/grmic" ;;
25870 "tools/gjavah") CONFIG_FILES="$CONFIG_FILES tools/gjavah" ;;
25871 "gappletviewer") CONFIG_COMMANDS="$CONFIG_COMMANDS gappletviewer" ;;
25872 "gjarsigner") CONFIG_COMMANDS="$CONFIG_COMMANDS gjarsigner" ;;
25873 "gkeytool") CONFIG_COMMANDS="$CONFIG_COMMANDS gkeytool" ;;
25874 "gjar") CONFIG_COMMANDS="$CONFIG_COMMANDS gjar" ;;
25875 "gnative2ascii") CONFIG_COMMANDS="$CONFIG_COMMANDS gnative2ascii" ;;
25876 "gserialver") CONFIG_COMMANDS="$CONFIG_COMMANDS gserialver" ;;
25877 "grmiregistry") CONFIG_COMMANDS="$CONFIG_COMMANDS grmiregistry" ;;
25878 "gtnameserv") CONFIG_COMMANDS="$CONFIG_COMMANDS gtnameserv" ;;
25879 "gorbd") CONFIG_COMMANDS="$CONFIG_COMMANDS gorbd" ;;
25880 "grmid") CONFIG_COMMANDS="$CONFIG_COMMANDS grmid" ;;
25881 "grmic") CONFIG_COMMANDS="$CONFIG_COMMANDS grmic" ;;
25882 "gjavah") CONFIG_COMMANDS="$CONFIG_COMMANDS gjavah" ;;
25883 "tools/gjdoc") CONFIG_FILES="$CONFIG_FILES tools/gjdoc" ;;
25884 "gjdoc") CONFIG_COMMANDS="$CONFIG_COMMANDS gjdoc" ;;
25885 "gen-classlist") CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
25886 "copy-vmresources") CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
25888 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25889 esac
25890 done
25893 # If the user did not use the arguments to specify the items to instantiate,
25894 # then the envvar interface is used. Set only those that are not.
25895 # We use the long form for the default assignment because of an extremely
25896 # bizarre bug on SunOS 4.1.3.
25897 if $ac_need_defaults; then
25898 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25899 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25900 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25901 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25904 # Have a temporary directory for convenience. Make it in the build tree
25905 # simply because there is no reason against having it here, and in addition,
25906 # creating and moving files from /tmp can sometimes cause problems.
25907 # Hook for its removal unless debugging.
25908 # Note that there is a small window in which the directory will not be cleaned:
25909 # after its creation but before its name has been assigned to `$tmp'.
25910 $debug ||
25912 tmp=
25913 trap 'exit_status=$?
25914 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25916 trap 'as_fn_exit 1' 1 2 13 15
25918 # Create a (secure) tmp directory for tmp files.
25921 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25922 test -n "$tmp" && test -d "$tmp"
25923 } ||
25925 tmp=./conf$$-$RANDOM
25926 (umask 077 && mkdir "$tmp")
25927 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25929 # Set up the scripts for CONFIG_FILES section.
25930 # No need to generate them if there are no CONFIG_FILES.
25931 # This happens for instance with `./config.status config.h'.
25932 if test -n "$CONFIG_FILES"; then
25935 ac_cr=`echo X | tr X '\015'`
25936 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25937 # But we know of no other shell where ac_cr would be empty at this
25938 # point, so we can use a bashism as a fallback.
25939 if test "x$ac_cr" = x; then
25940 eval ac_cr=\$\'\\r\'
25942 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25943 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25944 ac_cs_awk_cr='\r'
25945 else
25946 ac_cs_awk_cr=$ac_cr
25949 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25950 _ACEOF
25954 echo "cat >conf$$subs.awk <<_ACEOF" &&
25955 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25956 echo "_ACEOF"
25957 } >conf$$subs.sh ||
25958 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25959 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25960 ac_delim='%!_!# '
25961 for ac_last_try in false false false false false :; do
25962 . ./conf$$subs.sh ||
25963 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25965 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25966 if test $ac_delim_n = $ac_delim_num; then
25967 break
25968 elif $ac_last_try; then
25969 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25970 else
25971 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25973 done
25974 rm -f conf$$subs.sh
25976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25977 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25978 _ACEOF
25979 sed -n '
25981 s/^/S["/; s/!.*/"]=/
25984 s/^[^!]*!//
25985 :repl
25986 t repl
25987 s/'"$ac_delim"'$//
25988 t delim
25991 s/\(.\{148\}\).*/\1/
25992 t more1
25993 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25996 b repl
25997 :more1
25998 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26001 s/.\{148\}//
26002 t nl
26003 :delim
26005 s/\(.\{148\}\).*/\1/
26006 t more2
26007 s/["\\]/\\&/g; s/^/"/; s/$/"/
26010 :more2
26011 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26014 s/.\{148\}//
26015 t delim
26016 ' <conf$$subs.awk | sed '
26017 /^[^""]/{
26019 s/\n//
26021 ' >>$CONFIG_STATUS || ac_write_fail=1
26022 rm -f conf$$subs.awk
26023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26024 _ACAWK
26025 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26026 for (key in S) S_is_set[key] = 1
26027 FS = "\a"
26031 line = $ 0
26032 nfields = split(line, field, "@")
26033 substed = 0
26034 len = length(field[1])
26035 for (i = 2; i < nfields; i++) {
26036 key = field[i]
26037 keylen = length(key)
26038 if (S_is_set[key]) {
26039 value = S[key]
26040 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26041 len += length(value) + length(field[++i])
26042 substed = 1
26043 } else
26044 len += 1 + keylen
26047 print line
26050 _ACAWK
26051 _ACEOF
26052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26053 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26054 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26055 else
26057 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26058 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26059 _ACEOF
26061 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26062 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26063 # trailing colons and then remove the whole line if VPATH becomes empty
26064 # (actually we leave an empty line to preserve line numbers).
26065 if test "x$srcdir" = x.; then
26066 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26067 s/:*\$(srcdir):*/:/
26068 s/:*\${srcdir}:*/:/
26069 s/:*@srcdir@:*/:/
26070 s/^\([^=]*=[ ]*\):*/\1/
26071 s/:*$//
26072 s/^[^=]*=[ ]*$//
26076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26077 fi # test -n "$CONFIG_FILES"
26079 # Set up the scripts for CONFIG_HEADERS section.
26080 # No need to generate them if there are no CONFIG_HEADERS.
26081 # This happens for instance with `./config.status Makefile'.
26082 if test -n "$CONFIG_HEADERS"; then
26083 cat >"$tmp/defines.awk" <<\_ACAWK ||
26084 BEGIN {
26085 _ACEOF
26087 # Transform confdefs.h into an awk script `defines.awk', embedded as
26088 # here-document in config.status, that substitutes the proper values into
26089 # config.h.in to produce config.h.
26091 # Create a delimiter string that does not exist in confdefs.h, to ease
26092 # handling of long lines.
26093 ac_delim='%!_!# '
26094 for ac_last_try in false false :; do
26095 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26096 if test -z "$ac_t"; then
26097 break
26098 elif $ac_last_try; then
26099 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26100 else
26101 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26103 done
26105 # For the awk script, D is an array of macro values keyed by name,
26106 # likewise P contains macro parameters if any. Preserve backslash
26107 # newline sequences.
26109 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26110 sed -n '
26111 s/.\{148\}/&'"$ac_delim"'/g
26112 t rset
26113 :rset
26114 s/^[ ]*#[ ]*define[ ][ ]*/ /
26115 t def
26117 :def
26118 s/\\$//
26119 t bsnl
26120 s/["\\]/\\&/g
26121 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26122 D["\1"]=" \3"/p
26123 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26125 :bsnl
26126 s/["\\]/\\&/g
26127 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26128 D["\1"]=" \3\\\\\\n"\\/p
26129 t cont
26130 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26131 t cont
26133 :cont
26135 s/.\{148\}/&'"$ac_delim"'/g
26136 t clear
26137 :clear
26138 s/\\$//
26139 t bsnlc
26140 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26142 :bsnlc
26143 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26144 b cont
26145 ' <confdefs.h | sed '
26146 s/'"$ac_delim"'/"\\\
26147 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26150 for (key in D) D_is_set[key] = 1
26151 FS = "\a"
26153 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26154 line = \$ 0
26155 split(line, arg, " ")
26156 if (arg[1] == "#") {
26157 defundef = arg[2]
26158 mac1 = arg[3]
26159 } else {
26160 defundef = substr(arg[1], 2)
26161 mac1 = arg[2]
26163 split(mac1, mac2, "(") #)
26164 macro = mac2[1]
26165 prefix = substr(line, 1, index(line, defundef) - 1)
26166 if (D_is_set[macro]) {
26167 # Preserve the white space surrounding the "#".
26168 print prefix "define", macro P[macro] D[macro]
26169 next
26170 } else {
26171 # Replace #undef with comments. This is necessary, for example,
26172 # in the case of _POSIX_SOURCE, which is predefined and required
26173 # on some systems where configure will not decide to define it.
26174 if (defundef == "undef") {
26175 print "/*", prefix defundef, macro, "*/"
26176 next
26180 { print }
26181 _ACAWK
26182 _ACEOF
26183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26184 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26185 fi # test -n "$CONFIG_HEADERS"
26188 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26189 shift
26190 for ac_tag
26192 case $ac_tag in
26193 :[FHLC]) ac_mode=$ac_tag; continue;;
26194 esac
26195 case $ac_mode$ac_tag in
26196 :[FHL]*:*);;
26197 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26198 :[FH]-) ac_tag=-:-;;
26199 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26200 esac
26201 ac_save_IFS=$IFS
26202 IFS=:
26203 set x $ac_tag
26204 IFS=$ac_save_IFS
26205 shift
26206 ac_file=$1
26207 shift
26209 case $ac_mode in
26210 :L) ac_source=$1;;
26211 :[FH])
26212 ac_file_inputs=
26213 for ac_f
26215 case $ac_f in
26216 -) ac_f="$tmp/stdin";;
26217 *) # Look for the file first in the build tree, then in the source tree
26218 # (if the path is not absolute). The absolute path cannot be DOS-style,
26219 # because $ac_f cannot contain `:'.
26220 test -f "$ac_f" ||
26221 case $ac_f in
26222 [\\/$]*) false;;
26223 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26224 esac ||
26225 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26226 esac
26227 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26228 as_fn_append ac_file_inputs " '$ac_f'"
26229 done
26231 # Let's still pretend it is `configure' which instantiates (i.e., don't
26232 # use $as_me), people would be surprised to read:
26233 # /* config.h. Generated by config.status. */
26234 configure_input='Generated from '`
26235 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26236 `' by configure.'
26237 if test x"$ac_file" != x-; then
26238 configure_input="$ac_file. $configure_input"
26239 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26240 $as_echo "$as_me: creating $ac_file" >&6;}
26242 # Neutralize special characters interpreted by sed in replacement strings.
26243 case $configure_input in #(
26244 *\&* | *\|* | *\\* )
26245 ac_sed_conf_input=`$as_echo "$configure_input" |
26246 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26247 *) ac_sed_conf_input=$configure_input;;
26248 esac
26250 case $ac_tag in
26251 *:-:* | *:-) cat >"$tmp/stdin" \
26252 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26253 esac
26255 esac
26257 ac_dir=`$as_dirname -- "$ac_file" ||
26258 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26259 X"$ac_file" : 'X\(//\)[^/]' \| \
26260 X"$ac_file" : 'X\(//\)$' \| \
26261 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26262 $as_echo X"$ac_file" |
26263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26264 s//\1/
26267 /^X\(\/\/\)[^/].*/{
26268 s//\1/
26271 /^X\(\/\/\)$/{
26272 s//\1/
26275 /^X\(\/\).*/{
26276 s//\1/
26279 s/.*/./; q'`
26280 as_dir="$ac_dir"; as_fn_mkdir_p
26281 ac_builddir=.
26283 case "$ac_dir" in
26284 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26286 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26287 # A ".." for each directory in $ac_dir_suffix.
26288 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26289 case $ac_top_builddir_sub in
26290 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26291 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26292 esac ;;
26293 esac
26294 ac_abs_top_builddir=$ac_pwd
26295 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26296 # for backward compatibility:
26297 ac_top_builddir=$ac_top_build_prefix
26299 case $srcdir in
26300 .) # We are building in place.
26301 ac_srcdir=.
26302 ac_top_srcdir=$ac_top_builddir_sub
26303 ac_abs_top_srcdir=$ac_pwd ;;
26304 [\\/]* | ?:[\\/]* ) # Absolute name.
26305 ac_srcdir=$srcdir$ac_dir_suffix;
26306 ac_top_srcdir=$srcdir
26307 ac_abs_top_srcdir=$srcdir ;;
26308 *) # Relative name.
26309 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26310 ac_top_srcdir=$ac_top_build_prefix$srcdir
26311 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26312 esac
26313 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26316 case $ac_mode in
26319 # CONFIG_FILE
26322 case $INSTALL in
26323 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26324 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26325 esac
26326 ac_MKDIR_P=$MKDIR_P
26327 case $MKDIR_P in
26328 [\\/$]* | ?:[\\/]* ) ;;
26329 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26330 esac
26331 _ACEOF
26333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26334 # If the template does not know about datarootdir, expand it.
26335 # FIXME: This hack should be removed a few years after 2.60.
26336 ac_datarootdir_hack=; ac_datarootdir_seen=
26337 ac_sed_dataroot='
26338 /datarootdir/ {
26342 /@datadir@/p
26343 /@docdir@/p
26344 /@infodir@/p
26345 /@localedir@/p
26346 /@mandir@/p'
26347 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26348 *datarootdir*) ac_datarootdir_seen=yes;;
26349 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26351 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26352 _ACEOF
26353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26354 ac_datarootdir_hack='
26355 s&@datadir@&$datadir&g
26356 s&@docdir@&$docdir&g
26357 s&@infodir@&$infodir&g
26358 s&@localedir@&$localedir&g
26359 s&@mandir@&$mandir&g
26360 s&\\\${datarootdir}&$datarootdir&g' ;;
26361 esac
26362 _ACEOF
26364 # Neutralize VPATH when `$srcdir' = `.'.
26365 # Shell code in configure.ac might set extrasub.
26366 # FIXME: do we really want to maintain this feature?
26367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26368 ac_sed_extra="$ac_vpsub
26369 $extrasub
26370 _ACEOF
26371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26373 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26374 s|@configure_input@|$ac_sed_conf_input|;t t
26375 s&@top_builddir@&$ac_top_builddir_sub&;t t
26376 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26377 s&@srcdir@&$ac_srcdir&;t t
26378 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26379 s&@top_srcdir@&$ac_top_srcdir&;t t
26380 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26381 s&@builddir@&$ac_builddir&;t t
26382 s&@abs_builddir@&$ac_abs_builddir&;t t
26383 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26384 s&@INSTALL@&$ac_INSTALL&;t t
26385 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26386 $ac_datarootdir_hack
26388 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26389 || as_fn_error "could not create $ac_file" "$LINENO" 5
26391 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26392 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26393 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26395 which seems to be undefined. Please make sure it is defined." >&5
26396 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26397 which seems to be undefined. Please make sure it is defined." >&2;}
26399 rm -f "$tmp/stdin"
26400 case $ac_file in
26401 -) cat "$tmp/out" && rm -f "$tmp/out";;
26402 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26403 esac \
26404 || as_fn_error "could not create $ac_file" "$LINENO" 5
26408 # CONFIG_HEADER
26410 if test x"$ac_file" != x-; then
26412 $as_echo "/* $configure_input */" \
26413 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26414 } >"$tmp/config.h" \
26415 || as_fn_error "could not create $ac_file" "$LINENO" 5
26416 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26418 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26419 else
26420 rm -f "$ac_file"
26421 mv "$tmp/config.h" "$ac_file" \
26422 || as_fn_error "could not create $ac_file" "$LINENO" 5
26424 else
26425 $as_echo "/* $configure_input */" \
26426 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26427 || as_fn_error "could not create -" "$LINENO" 5
26429 # Compute "$ac_file"'s index in $config_headers.
26430 _am_arg="$ac_file"
26431 _am_stamp_count=1
26432 for _am_header in $config_headers :; do
26433 case $_am_header in
26434 $_am_arg | $_am_arg:* )
26435 break ;;
26437 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26438 esac
26439 done
26440 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26441 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26442 X"$_am_arg" : 'X\(//\)[^/]' \| \
26443 X"$_am_arg" : 'X\(//\)$' \| \
26444 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26445 $as_echo X"$_am_arg" |
26446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26447 s//\1/
26450 /^X\(\/\/\)[^/].*/{
26451 s//\1/
26454 /^X\(\/\/\)$/{
26455 s//\1/
26458 /^X\(\/\).*/{
26459 s//\1/
26462 s/.*/./; q'`/stamp-h$_am_stamp_count
26466 # CONFIG_LINK
26469 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26471 else
26472 # Prefer the file from the source tree if names are identical.
26473 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26474 ac_source=$srcdir/$ac_source
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26478 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26480 if test ! -r "$ac_source"; then
26481 as_fn_error "$ac_source: file not found" "$LINENO" 5
26483 rm -f "$ac_file"
26485 # Try a relative symlink, then a hard link, then a copy.
26486 case $srcdir in
26487 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26488 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26489 esac
26490 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26491 ln "$ac_source" "$ac_file" 2>/dev/null ||
26492 cp -p "$ac_source" "$ac_file" ||
26493 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26496 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26497 $as_echo "$as_me: executing $ac_file commands" >&6;}
26499 esac
26502 case $ac_file$ac_mode in
26503 "default-1":C)
26504 # Only add multilib support code if we just rebuilt the top-level
26505 # Makefile.
26506 case " $CONFIG_FILES " in
26507 *" Makefile "*)
26508 ac_file=Makefile . ${multi_basedir}/config-ml.in
26510 esac ;;
26511 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26512 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26513 # are listed without --file. Let's play safe and only enable the eval
26514 # if we detect the quoting.
26515 case $CONFIG_FILES in
26516 *\'*) eval set x "$CONFIG_FILES" ;;
26517 *) set x $CONFIG_FILES ;;
26518 esac
26519 shift
26520 for mf
26522 # Strip MF so we end up with the name of the file.
26523 mf=`echo "$mf" | sed -e 's/:.*$//'`
26524 # Check whether this is an Automake generated Makefile or not.
26525 # We used to match only the files named `Makefile.in', but
26526 # some people rename them; so instead we look at the file content.
26527 # Grep'ing the first line is not enough: some people post-process
26528 # each Makefile.in and add a new line on top of each file to say so.
26529 # Grep'ing the whole file is not good either: AIX grep has a line
26530 # limit of 2048, but all sed's we know have understand at least 4000.
26531 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26532 dirpart=`$as_dirname -- "$mf" ||
26533 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26534 X"$mf" : 'X\(//\)[^/]' \| \
26535 X"$mf" : 'X\(//\)$' \| \
26536 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26537 $as_echo X"$mf" |
26538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26539 s//\1/
26542 /^X\(\/\/\)[^/].*/{
26543 s//\1/
26546 /^X\(\/\/\)$/{
26547 s//\1/
26550 /^X\(\/\).*/{
26551 s//\1/
26554 s/.*/./; q'`
26555 else
26556 continue
26558 # Extract the definition of DEPDIR, am__include, and am__quote
26559 # from the Makefile without running `make'.
26560 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26561 test -z "$DEPDIR" && continue
26562 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26563 test -z "am__include" && continue
26564 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26565 # When using ansi2knr, U may be empty or an underscore; expand it
26566 U=`sed -n 's/^U = //p' < "$mf"`
26567 # Find all dependency output files, they are included files with
26568 # $(DEPDIR) in their names. We invoke sed twice because it is the
26569 # simplest approach to changing $(DEPDIR) to its actual value in the
26570 # expansion.
26571 for file in `sed -n "
26572 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26573 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26574 # Make sure the directory exists.
26575 test -f "$dirpart/$file" && continue
26576 fdir=`$as_dirname -- "$file" ||
26577 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26578 X"$file" : 'X\(//\)[^/]' \| \
26579 X"$file" : 'X\(//\)$' \| \
26580 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26581 $as_echo X"$file" |
26582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26583 s//\1/
26586 /^X\(\/\/\)[^/].*/{
26587 s//\1/
26590 /^X\(\/\/\)$/{
26591 s//\1/
26594 /^X\(\/\).*/{
26595 s//\1/
26598 s/.*/./; q'`
26599 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26600 # echo "creating $dirpart/$file"
26601 echo '# dummy' > "$dirpart/$file"
26602 done
26603 done
26606 "libtool":C)
26608 # See if we are running on zsh, and set the options which allow our
26609 # commands through without removal of \ escapes.
26610 if test -n "${ZSH_VERSION+set}" ; then
26611 setopt NO_GLOB_SUBST
26614 cfgfile="${ofile}T"
26615 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26616 $RM "$cfgfile"
26618 cat <<_LT_EOF >> "$cfgfile"
26619 #! $SHELL
26621 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26622 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26623 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26624 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26626 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26627 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
26628 # Written by Gordon Matzigkeit, 1996
26630 # This file is part of GNU Libtool.
26632 # GNU Libtool is free software; you can redistribute it and/or
26633 # modify it under the terms of the GNU General Public License as
26634 # published by the Free Software Foundation; either version 2 of
26635 # the License, or (at your option) any later version.
26637 # As a special exception to the GNU General Public License,
26638 # if you distribute this file as part of a program or library that
26639 # is built using GNU Libtool, you may include this file under the
26640 # same distribution terms that you use for the rest of that program.
26642 # GNU Libtool is distributed in the hope that it will be useful,
26643 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26644 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26645 # GNU General Public License for more details.
26647 # You should have received a copy of the GNU General Public License
26648 # along with GNU Libtool; see the file COPYING. If not, a copy
26649 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26650 # obtained by writing to the Free Software Foundation, Inc.,
26651 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26654 # The names of the tagged configurations supported by this script.
26655 available_tags="CXX "
26657 # ### BEGIN LIBTOOL CONFIG
26659 # Whether or not to build static libraries.
26660 build_old_libs=$enable_static
26662 # Which release of libtool.m4 was used?
26663 macro_version=$macro_version
26664 macro_revision=$macro_revision
26666 # Whether or not to build shared libraries.
26667 build_libtool_libs=$enable_shared
26669 # What type of objects to build.
26670 pic_mode=$pic_mode
26672 # Whether or not to optimize for fast installation.
26673 fast_install=$enable_fast_install
26675 # Shell to use when invoking shell scripts.
26676 SHELL=$lt_SHELL
26678 # An echo program that protects backslashes.
26679 ECHO=$lt_ECHO
26681 # The host system.
26682 host_alias=$host_alias
26683 host=$host
26684 host_os=$host_os
26686 # The build system.
26687 build_alias=$build_alias
26688 build=$build
26689 build_os=$build_os
26691 # A sed program that does not truncate output.
26692 SED=$lt_SED
26694 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26695 Xsed="\$SED -e 1s/^X//"
26697 # A grep program that handles long lines.
26698 GREP=$lt_GREP
26700 # An ERE matcher.
26701 EGREP=$lt_EGREP
26703 # A literal string matcher.
26704 FGREP=$lt_FGREP
26706 # A BSD- or MS-compatible name lister.
26707 NM=$lt_NM
26709 # Whether we need soft or hard links.
26710 LN_S=$lt_LN_S
26712 # What is the maximum length of a command?
26713 max_cmd_len=$max_cmd_len
26715 # Object file suffix (normally "o").
26716 objext=$ac_objext
26718 # Executable file suffix (normally "").
26719 exeext=$exeext
26721 # whether the shell understands "unset".
26722 lt_unset=$lt_unset
26724 # turn spaces into newlines.
26725 SP2NL=$lt_lt_SP2NL
26727 # turn newlines into spaces.
26728 NL2SP=$lt_lt_NL2SP
26730 # An object symbol dumper.
26731 OBJDUMP=$lt_OBJDUMP
26733 # Method to check whether dependent libraries are shared objects.
26734 deplibs_check_method=$lt_deplibs_check_method
26736 # Command to use when deplibs_check_method == "file_magic".
26737 file_magic_cmd=$lt_file_magic_cmd
26739 # The archiver.
26740 AR=$lt_AR
26741 AR_FLAGS=$lt_AR_FLAGS
26743 # A symbol stripping program.
26744 STRIP=$lt_STRIP
26746 # Commands used to install an old-style archive.
26747 RANLIB=$lt_RANLIB
26748 old_postinstall_cmds=$lt_old_postinstall_cmds
26749 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26751 # Whether to use a lock for old archive extraction.
26752 lock_old_archive_extraction=$lock_old_archive_extraction
26754 # A C compiler.
26755 LTCC=$lt_CC
26757 # LTCC compiler flags.
26758 LTCFLAGS=$lt_CFLAGS
26760 # Take the output of nm and produce a listing of raw symbols and C names.
26761 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26763 # Transform the output of nm in a proper C declaration.
26764 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26766 # Transform the output of nm in a C name address pair.
26767 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26769 # Transform the output of nm in a C name address pair when lib prefix is needed.
26770 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26772 # The name of the directory that contains temporary libtool files.
26773 objdir=$objdir
26775 # Used to examine libraries when file_magic_cmd begins with "file".
26776 MAGIC_CMD=$MAGIC_CMD
26778 # Must we lock files when doing compilation?
26779 need_locks=$lt_need_locks
26781 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26782 DSYMUTIL=$lt_DSYMUTIL
26784 # Tool to change global to local symbols on Mac OS X.
26785 NMEDIT=$lt_NMEDIT
26787 # Tool to manipulate fat objects and archives on Mac OS X.
26788 LIPO=$lt_LIPO
26790 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26791 OTOOL=$lt_OTOOL
26793 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26794 OTOOL64=$lt_OTOOL64
26796 # Old archive suffix (normally "a").
26797 libext=$libext
26799 # Shared library suffix (normally ".so").
26800 shrext_cmds=$lt_shrext_cmds
26802 # The commands to extract the exported symbol list from a shared archive.
26803 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26805 # Variables whose values should be saved in libtool wrapper scripts and
26806 # restored at link time.
26807 variables_saved_for_relink=$lt_variables_saved_for_relink
26809 # Do we need the "lib" prefix for modules?
26810 need_lib_prefix=$need_lib_prefix
26812 # Do we need a version for libraries?
26813 need_version=$need_version
26815 # Library versioning type.
26816 version_type=$version_type
26818 # Shared library runtime path variable.
26819 runpath_var=$runpath_var
26821 # Shared library path variable.
26822 shlibpath_var=$shlibpath_var
26824 # Is shlibpath searched before the hard-coded library search path?
26825 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26827 # Format of library name prefix.
26828 libname_spec=$lt_libname_spec
26830 # List of archive names. First name is the real one, the rest are links.
26831 # The last name is the one that the linker finds with -lNAME
26832 library_names_spec=$lt_library_names_spec
26834 # The coded name of the library, if different from the real name.
26835 soname_spec=$lt_soname_spec
26837 # Permission mode override for installation of shared libraries.
26838 install_override_mode=$lt_install_override_mode
26840 # Command to use after installation of a shared archive.
26841 postinstall_cmds=$lt_postinstall_cmds
26843 # Command to use after uninstallation of a shared archive.
26844 postuninstall_cmds=$lt_postuninstall_cmds
26846 # Commands used to finish a libtool library installation in a directory.
26847 finish_cmds=$lt_finish_cmds
26849 # As "finish_cmds", except a single script fragment to be evaled but
26850 # not shown.
26851 finish_eval=$lt_finish_eval
26853 # Whether we should hardcode library paths into libraries.
26854 hardcode_into_libs=$hardcode_into_libs
26856 # Compile-time system search path for libraries.
26857 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26859 # Run-time system search path for libraries.
26860 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26862 # Whether dlopen is supported.
26863 dlopen_support=$enable_dlopen
26865 # Whether dlopen of programs is supported.
26866 dlopen_self=$enable_dlopen_self
26868 # Whether dlopen of statically linked programs is supported.
26869 dlopen_self_static=$enable_dlopen_self_static
26871 # Commands to strip libraries.
26872 old_striplib=$lt_old_striplib
26873 striplib=$lt_striplib
26876 # The linker used to build libraries.
26877 LD=$lt_LD
26879 # How to create reloadable object files.
26880 reload_flag=$lt_reload_flag
26881 reload_cmds=$lt_reload_cmds
26883 # Commands used to build an old-style archive.
26884 old_archive_cmds=$lt_old_archive_cmds
26886 # A language specific compiler.
26887 CC=$lt_compiler
26889 # Is the compiler the GNU compiler?
26890 with_gcc=$GCC
26892 # Compiler flag to turn off builtin functions.
26893 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26895 # How to pass a linker flag through the compiler.
26896 wl=$lt_lt_prog_compiler_wl
26898 # Additional compiler flags for building library objects.
26899 pic_flag=$lt_lt_prog_compiler_pic
26901 # Compiler flag to prevent dynamic linking.
26902 link_static_flag=$lt_lt_prog_compiler_static
26904 # Does compiler simultaneously support -c and -o options?
26905 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26907 # Whether or not to add -lc for building shared libraries.
26908 build_libtool_need_lc=$archive_cmds_need_lc
26910 # Whether or not to disallow shared libs when runtime libs are static.
26911 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26913 # Compiler flag to allow reflexive dlopens.
26914 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26916 # Compiler flag to generate shared objects directly from archives.
26917 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26919 # Whether the compiler copes with passing no objects directly.
26920 compiler_needs_object=$lt_compiler_needs_object
26922 # Create an old-style archive from a shared archive.
26923 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26925 # Create a temporary old-style archive to link instead of a shared archive.
26926 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26928 # Commands used to build a shared archive.
26929 archive_cmds=$lt_archive_cmds
26930 archive_expsym_cmds=$lt_archive_expsym_cmds
26932 # Commands used to build a loadable module if different from building
26933 # a shared archive.
26934 module_cmds=$lt_module_cmds
26935 module_expsym_cmds=$lt_module_expsym_cmds
26937 # Whether we are building with GNU ld or not.
26938 with_gnu_ld=$lt_with_gnu_ld
26940 # Flag that allows shared libraries with undefined symbols to be built.
26941 allow_undefined_flag=$lt_allow_undefined_flag
26943 # Flag that enforces no undefined symbols.
26944 no_undefined_flag=$lt_no_undefined_flag
26946 # Flag to hardcode \$libdir into a binary during linking.
26947 # This must work even if \$libdir does not exist
26948 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26950 # If ld is used when linking, flag to hardcode \$libdir into a binary
26951 # during linking. This must work even if \$libdir does not exist.
26952 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26954 # Whether we need a single "-rpath" flag with a separated argument.
26955 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26957 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26958 # DIR into the resulting binary.
26959 hardcode_direct=$hardcode_direct
26961 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26962 # DIR into the resulting binary and the resulting library dependency is
26963 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26964 # library is relocated.
26965 hardcode_direct_absolute=$hardcode_direct_absolute
26967 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26968 # into the resulting binary.
26969 hardcode_minus_L=$hardcode_minus_L
26971 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26972 # into the resulting binary.
26973 hardcode_shlibpath_var=$hardcode_shlibpath_var
26975 # Set to "yes" if building a shared library automatically hardcodes DIR
26976 # into the library and all subsequent libraries and executables linked
26977 # against it.
26978 hardcode_automatic=$hardcode_automatic
26980 # Set to yes if linker adds runtime paths of dependent libraries
26981 # to runtime path list.
26982 inherit_rpath=$inherit_rpath
26984 # Whether libtool must link a program against all its dependency libraries.
26985 link_all_deplibs=$link_all_deplibs
26987 # Fix the shell variable \$srcfile for the compiler.
26988 fix_srcfile_path=$lt_fix_srcfile_path
26990 # Set to "yes" if exported symbols are required.
26991 always_export_symbols=$always_export_symbols
26993 # The commands to list exported symbols.
26994 export_symbols_cmds=$lt_export_symbols_cmds
26996 # Symbols that should not be listed in the preloaded symbols.
26997 exclude_expsyms=$lt_exclude_expsyms
26999 # Symbols that must always be exported.
27000 include_expsyms=$lt_include_expsyms
27002 # Commands necessary for linking programs (against libraries) with templates.
27003 prelink_cmds=$lt_prelink_cmds
27005 # Specify filename containing input files.
27006 file_list_spec=$lt_file_list_spec
27008 # How to hardcode a shared library path into an executable.
27009 hardcode_action=$hardcode_action
27011 # The directories searched by this compiler when creating a shared library.
27012 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27014 # Dependencies to place before and after the objects being linked to
27015 # create a shared library.
27016 predep_objects=$lt_predep_objects
27017 postdep_objects=$lt_postdep_objects
27018 predeps=$lt_predeps
27019 postdeps=$lt_postdeps
27021 # The library search path used internally by the compiler when linking
27022 # a shared library.
27023 compiler_lib_search_path=$lt_compiler_lib_search_path
27025 # ### END LIBTOOL CONFIG
27027 _LT_EOF
27029 case $host_os in
27030 aix3*)
27031 cat <<\_LT_EOF >> "$cfgfile"
27032 # AIX sometimes has problems with the GCC collect2 program. For some
27033 # reason, if we set the COLLECT_NAMES environment variable, the problems
27034 # vanish in a puff of smoke.
27035 if test "X${COLLECT_NAMES+set}" != Xset; then
27036 COLLECT_NAMES=
27037 export COLLECT_NAMES
27039 _LT_EOF
27041 esac
27044 ltmain="$ac_aux_dir/ltmain.sh"
27047 # We use sed instead of cat because bash on DJGPP gets confused if
27048 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27049 # text mode, it properly converts lines to CR/LF. This bash problem
27050 # is reportedly fixed, but why not run on old versions too?
27051 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27052 || (rm -f "$cfgfile"; exit 1)
27054 case $xsi_shell in
27055 yes)
27056 cat << \_LT_EOF >> "$cfgfile"
27058 # func_dirname file append nondir_replacement
27059 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27060 # otherwise set result to NONDIR_REPLACEMENT.
27061 func_dirname ()
27063 case ${1} in
27064 */*) func_dirname_result="${1%/*}${2}" ;;
27065 * ) func_dirname_result="${3}" ;;
27066 esac
27069 # func_basename file
27070 func_basename ()
27072 func_basename_result="${1##*/}"
27075 # func_dirname_and_basename file append nondir_replacement
27076 # perform func_basename and func_dirname in a single function
27077 # call:
27078 # dirname: Compute the dirname of FILE. If nonempty,
27079 # add APPEND to the result, otherwise set result
27080 # to NONDIR_REPLACEMENT.
27081 # value returned in "$func_dirname_result"
27082 # basename: Compute filename of FILE.
27083 # value retuned in "$func_basename_result"
27084 # Implementation must be kept synchronized with func_dirname
27085 # and func_basename. For efficiency, we do not delegate to
27086 # those functions but instead duplicate the functionality here.
27087 func_dirname_and_basename ()
27089 case ${1} in
27090 */*) func_dirname_result="${1%/*}${2}" ;;
27091 * ) func_dirname_result="${3}" ;;
27092 esac
27093 func_basename_result="${1##*/}"
27096 # func_stripname prefix suffix name
27097 # strip PREFIX and SUFFIX off of NAME.
27098 # PREFIX and SUFFIX must not contain globbing or regex special
27099 # characters, hashes, percent signs, but SUFFIX may contain a leading
27100 # dot (in which case that matches only a dot).
27101 func_stripname ()
27103 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27104 # positional parameters, so assign one to ordinary parameter first.
27105 func_stripname_result=${3}
27106 func_stripname_result=${func_stripname_result#"${1}"}
27107 func_stripname_result=${func_stripname_result%"${2}"}
27110 # func_opt_split
27111 func_opt_split ()
27113 func_opt_split_opt=${1%%=*}
27114 func_opt_split_arg=${1#*=}
27117 # func_lo2o object
27118 func_lo2o ()
27120 case ${1} in
27121 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27122 *) func_lo2o_result=${1} ;;
27123 esac
27126 # func_xform libobj-or-source
27127 func_xform ()
27129 func_xform_result=${1%.*}.lo
27132 # func_arith arithmetic-term...
27133 func_arith ()
27135 func_arith_result=$(( $* ))
27138 # func_len string
27139 # STRING may not start with a hyphen.
27140 func_len ()
27142 func_len_result=${#1}
27145 _LT_EOF
27147 *) # Bourne compatible functions.
27148 cat << \_LT_EOF >> "$cfgfile"
27150 # func_dirname file append nondir_replacement
27151 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27152 # otherwise set result to NONDIR_REPLACEMENT.
27153 func_dirname ()
27155 # Extract subdirectory from the argument.
27156 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27157 if test "X$func_dirname_result" = "X${1}"; then
27158 func_dirname_result="${3}"
27159 else
27160 func_dirname_result="$func_dirname_result${2}"
27164 # func_basename file
27165 func_basename ()
27167 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27171 # func_stripname prefix suffix name
27172 # strip PREFIX and SUFFIX off of NAME.
27173 # PREFIX and SUFFIX must not contain globbing or regex special
27174 # characters, hashes, percent signs, but SUFFIX may contain a leading
27175 # dot (in which case that matches only a dot).
27176 # func_strip_suffix prefix name
27177 func_stripname ()
27179 case ${2} in
27180 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27181 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27182 esac
27185 # sed scripts:
27186 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27187 my_sed_long_arg='1s/^-[^=]*=//'
27189 # func_opt_split
27190 func_opt_split ()
27192 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27193 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27196 # func_lo2o object
27197 func_lo2o ()
27199 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27202 # func_xform libobj-or-source
27203 func_xform ()
27205 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27208 # func_arith arithmetic-term...
27209 func_arith ()
27211 func_arith_result=`expr "$@"`
27214 # func_len string
27215 # STRING may not start with a hyphen.
27216 func_len ()
27218 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27221 _LT_EOF
27222 esac
27224 case $lt_shell_append in
27225 yes)
27226 cat << \_LT_EOF >> "$cfgfile"
27228 # func_append var value
27229 # Append VALUE to the end of shell variable VAR.
27230 func_append ()
27232 eval "$1+=\$2"
27234 _LT_EOF
27237 cat << \_LT_EOF >> "$cfgfile"
27239 # func_append var value
27240 # Append VALUE to the end of shell variable VAR.
27241 func_append ()
27243 eval "$1=\$$1\$2"
27246 _LT_EOF
27248 esac
27251 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27252 || (rm -f "$cfgfile"; exit 1)
27254 mv -f "$cfgfile" "$ofile" ||
27255 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27256 chmod +x "$ofile"
27259 cat <<_LT_EOF >> "$ofile"
27261 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27263 # The linker used to build libraries.
27264 LD=$lt_LD_CXX
27266 # How to create reloadable object files.
27267 reload_flag=$lt_reload_flag_CXX
27268 reload_cmds=$lt_reload_cmds_CXX
27270 # Commands used to build an old-style archive.
27271 old_archive_cmds=$lt_old_archive_cmds_CXX
27273 # A language specific compiler.
27274 CC=$lt_compiler_CXX
27276 # Is the compiler the GNU compiler?
27277 with_gcc=$GCC_CXX
27279 # Compiler flag to turn off builtin functions.
27280 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27282 # How to pass a linker flag through the compiler.
27283 wl=$lt_lt_prog_compiler_wl_CXX
27285 # Additional compiler flags for building library objects.
27286 pic_flag=$lt_lt_prog_compiler_pic_CXX
27288 # Compiler flag to prevent dynamic linking.
27289 link_static_flag=$lt_lt_prog_compiler_static_CXX
27291 # Does compiler simultaneously support -c and -o options?
27292 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27294 # Whether or not to add -lc for building shared libraries.
27295 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27297 # Whether or not to disallow shared libs when runtime libs are static.
27298 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27300 # Compiler flag to allow reflexive dlopens.
27301 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27303 # Compiler flag to generate shared objects directly from archives.
27304 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27306 # Whether the compiler copes with passing no objects directly.
27307 compiler_needs_object=$lt_compiler_needs_object_CXX
27309 # Create an old-style archive from a shared archive.
27310 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27312 # Create a temporary old-style archive to link instead of a shared archive.
27313 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27315 # Commands used to build a shared archive.
27316 archive_cmds=$lt_archive_cmds_CXX
27317 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27319 # Commands used to build a loadable module if different from building
27320 # a shared archive.
27321 module_cmds=$lt_module_cmds_CXX
27322 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27324 # Whether we are building with GNU ld or not.
27325 with_gnu_ld=$lt_with_gnu_ld_CXX
27327 # Flag that allows shared libraries with undefined symbols to be built.
27328 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27330 # Flag that enforces no undefined symbols.
27331 no_undefined_flag=$lt_no_undefined_flag_CXX
27333 # Flag to hardcode \$libdir into a binary during linking.
27334 # This must work even if \$libdir does not exist
27335 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27337 # If ld is used when linking, flag to hardcode \$libdir into a binary
27338 # during linking. This must work even if \$libdir does not exist.
27339 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27341 # Whether we need a single "-rpath" flag with a separated argument.
27342 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27344 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27345 # DIR into the resulting binary.
27346 hardcode_direct=$hardcode_direct_CXX
27348 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27349 # DIR into the resulting binary and the resulting library dependency is
27350 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27351 # library is relocated.
27352 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27354 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27355 # into the resulting binary.
27356 hardcode_minus_L=$hardcode_minus_L_CXX
27358 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27359 # into the resulting binary.
27360 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27362 # Set to "yes" if building a shared library automatically hardcodes DIR
27363 # into the library and all subsequent libraries and executables linked
27364 # against it.
27365 hardcode_automatic=$hardcode_automatic_CXX
27367 # Set to yes if linker adds runtime paths of dependent libraries
27368 # to runtime path list.
27369 inherit_rpath=$inherit_rpath_CXX
27371 # Whether libtool must link a program against all its dependency libraries.
27372 link_all_deplibs=$link_all_deplibs_CXX
27374 # Fix the shell variable \$srcfile for the compiler.
27375 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27377 # Set to "yes" if exported symbols are required.
27378 always_export_symbols=$always_export_symbols_CXX
27380 # The commands to list exported symbols.
27381 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27383 # Symbols that should not be listed in the preloaded symbols.
27384 exclude_expsyms=$lt_exclude_expsyms_CXX
27386 # Symbols that must always be exported.
27387 include_expsyms=$lt_include_expsyms_CXX
27389 # Commands necessary for linking programs (against libraries) with templates.
27390 prelink_cmds=$lt_prelink_cmds_CXX
27392 # Specify filename containing input files.
27393 file_list_spec=$lt_file_list_spec_CXX
27395 # How to hardcode a shared library path into an executable.
27396 hardcode_action=$hardcode_action_CXX
27398 # The directories searched by this compiler when creating a shared library.
27399 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27401 # Dependencies to place before and after the objects being linked to
27402 # create a shared library.
27403 predep_objects=$lt_predep_objects_CXX
27404 postdep_objects=$lt_postdep_objects_CXX
27405 predeps=$lt_predeps_CXX
27406 postdeps=$lt_postdeps_CXX
27408 # The library search path used internally by the compiler when linking
27409 # a shared library.
27410 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27412 # ### END LIBTOOL TAG CONFIG: CXX
27413 _LT_EOF
27416 "mkcollections.pl":C) chmod 755 lib/mkcollections.pl ;;
27417 "$ac_stdint_h":C)
27418 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
27419 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
27420 ac_stdint=$tmp/_stdint.h
27422 echo "#ifndef" $_ac_stdint_h >$ac_stdint
27423 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
27424 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
27425 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
27426 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
27427 if test "_$ac_cv_header_stdint_t" != "_" ; then
27428 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
27429 echo "#include <stdint.h>" >>$ac_stdint
27430 echo "#endif" >>$ac_stdint
27431 echo "#endif" >>$ac_stdint
27432 else
27434 cat >>$ac_stdint <<STDINT_EOF
27436 /* ................... shortcircuit part ........................... */
27438 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
27439 #include <stdint.h>
27440 #else
27441 #include <stddef.h>
27443 /* .................... configured part ............................ */
27445 STDINT_EOF
27447 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
27448 if test "_$ac_cv_header_stdint_x" != "_" ; then
27449 ac_header="$ac_cv_header_stdint_x"
27450 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
27451 else
27452 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
27455 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
27456 if test "_$ac_cv_header_stdint_o" != "_" ; then
27457 ac_header="$ac_cv_header_stdint_o"
27458 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
27459 else
27460 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
27463 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
27464 if test "_$ac_cv_header_stdint_u" != "_" ; then
27465 ac_header="$ac_cv_header_stdint_u"
27466 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
27467 else
27468 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
27471 echo "" >>$ac_stdint
27473 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
27474 echo "#include <$ac_header>" >>$ac_stdint
27475 echo "" >>$ac_stdint
27476 fi fi
27478 echo "/* which 64bit typedef has been found */" >>$ac_stdint
27479 if test "$ac_cv_type_uint64_t" = "yes" ; then
27480 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
27481 else
27482 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
27484 if test "$ac_cv_type_u_int64_t" = "yes" ; then
27485 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
27486 else
27487 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
27489 echo "" >>$ac_stdint
27491 echo "/* which type model has been detected */" >>$ac_stdint
27492 if test "_$ac_cv_char_data_model" != "_" ; then
27493 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
27494 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
27495 else
27496 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
27497 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
27499 echo "" >>$ac_stdint
27501 echo "/* whether int_least types were detected */" >>$ac_stdint
27502 if test "$ac_cv_type_int_least32_t" = "yes"; then
27503 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
27504 else
27505 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
27507 echo "/* whether int_fast types were detected */" >>$ac_stdint
27508 if test "$ac_cv_type_int_fast32_t" = "yes"; then
27509 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
27510 else
27511 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
27513 echo "/* whether intmax_t type was detected */" >>$ac_stdint
27514 if test "$ac_cv_type_intmax_t" = "yes"; then
27515 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
27516 else
27517 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
27519 echo "" >>$ac_stdint
27521 cat >>$ac_stdint <<STDINT_EOF
27522 /* .................... detections part ............................ */
27524 /* whether we need to define bitspecific types from compiler base types */
27525 #ifndef _STDINT_HEADER_INTPTR
27526 #ifndef _STDINT_HEADER_UINT32
27527 #ifndef _STDINT_HEADER_U_INT32
27528 #define _STDINT_NEED_INT_MODEL_T
27529 #else
27530 #define _STDINT_HAVE_U_INT_TYPES
27531 #endif
27532 #endif
27533 #endif
27535 #ifdef _STDINT_HAVE_U_INT_TYPES
27536 #undef _STDINT_NEED_INT_MODEL_T
27537 #endif
27539 #ifdef _STDINT_CHAR_MODEL
27540 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
27541 #ifndef _STDINT_BYTE_MODEL
27542 #define _STDINT_BYTE_MODEL 12
27543 #endif
27544 #endif
27545 #endif
27547 #ifndef _STDINT_HAVE_INT_LEAST32_T
27548 #define _STDINT_NEED_INT_LEAST_T
27549 #endif
27551 #ifndef _STDINT_HAVE_INT_FAST32_T
27552 #define _STDINT_NEED_INT_FAST_T
27553 #endif
27555 #ifndef _STDINT_HEADER_INTPTR
27556 #define _STDINT_NEED_INTPTR_T
27557 #ifndef _STDINT_HAVE_INTMAX_T
27558 #define _STDINT_NEED_INTMAX_T
27559 #endif
27560 #endif
27563 /* .................... definition part ............................ */
27565 /* some system headers have good uint64_t */
27566 #ifndef _HAVE_UINT64_T
27567 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
27568 #define _HAVE_UINT64_T
27569 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
27570 #define _HAVE_UINT64_T
27571 typedef u_int64_t uint64_t;
27572 #endif
27573 #endif
27575 #ifndef _HAVE_UINT64_T
27576 /* .. here are some common heuristics using compiler runtime specifics */
27577 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
27578 #define _HAVE_UINT64_T
27579 #define _HAVE_LONGLONG_UINT64_T
27580 typedef long long int64_t;
27581 typedef unsigned long long uint64_t;
27583 #elif !defined __STRICT_ANSI__
27584 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
27585 #define _HAVE_UINT64_T
27586 typedef __int64 int64_t;
27587 typedef unsigned __int64 uint64_t;
27589 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
27590 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
27591 #if !defined _NO_LONGLONG
27592 #define _HAVE_UINT64_T
27593 #define _HAVE_LONGLONG_UINT64_T
27594 typedef long long int64_t;
27595 typedef unsigned long long uint64_t;
27596 #endif
27598 #elif defined __alpha || (defined __mips && defined _ABIN32)
27599 #if !defined _NO_LONGLONG
27600 typedef long int64_t;
27601 typedef unsigned long uint64_t;
27602 #endif
27603 /* compiler/cpu type to define int64_t */
27604 #endif
27605 #endif
27606 #endif
27608 #if defined _STDINT_HAVE_U_INT_TYPES
27609 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
27610 typedef u_int8_t uint8_t;
27611 typedef u_int16_t uint16_t;
27612 typedef u_int32_t uint32_t;
27614 /* glibc compatibility */
27615 #ifndef __int8_t_defined
27616 #define __int8_t_defined
27617 #endif
27618 #endif
27620 #ifdef _STDINT_NEED_INT_MODEL_T
27621 /* we must guess all the basic types. Apart from byte-adressable system, */
27622 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
27623 /* (btw, those nibble-addressable systems are way off, or so we assume) */
27626 #if defined _STDINT_BYTE_MODEL
27627 #if _STDINT_LONG_MODEL+0 == 242
27628 /* 2:4:2 = IP16 = a normal 16-bit system */
27629 typedef unsigned char uint8_t;
27630 typedef unsigned short uint16_t;
27631 typedef unsigned long uint32_t;
27632 #ifndef __int8_t_defined
27633 #define __int8_t_defined
27634 typedef char int8_t;
27635 typedef short int16_t;
27636 typedef long int32_t;
27637 #endif
27638 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
27639 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
27640 /* 4:4:4 = ILP32 = a normal 32-bit system */
27641 typedef unsigned char uint8_t;
27642 typedef unsigned short uint16_t;
27643 typedef unsigned int uint32_t;
27644 #ifndef __int8_t_defined
27645 #define __int8_t_defined
27646 typedef char int8_t;
27647 typedef short int16_t;
27648 typedef int int32_t;
27649 #endif
27650 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
27651 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
27652 /* 4:8:8 = LP64 = a normal 64-bit system */
27653 typedef unsigned char uint8_t;
27654 typedef unsigned short uint16_t;
27655 typedef unsigned int uint32_t;
27656 #ifndef __int8_t_defined
27657 #define __int8_t_defined
27658 typedef char int8_t;
27659 typedef short int16_t;
27660 typedef int int32_t;
27661 #endif
27662 /* this system has a "long" of 64bit */
27663 #ifndef _HAVE_UINT64_T
27664 #define _HAVE_UINT64_T
27665 typedef unsigned long uint64_t;
27666 typedef long int64_t;
27667 #endif
27668 #elif _STDINT_LONG_MODEL+0 == 448
27669 /* LLP64 a 64-bit system derived from a 32-bit system */
27670 typedef unsigned char uint8_t;
27671 typedef unsigned short uint16_t;
27672 typedef unsigned int uint32_t;
27673 #ifndef __int8_t_defined
27674 #define __int8_t_defined
27675 typedef char int8_t;
27676 typedef short int16_t;
27677 typedef int int32_t;
27678 #endif
27679 /* assuming the system has a "long long" */
27680 #ifndef _HAVE_UINT64_T
27681 #define _HAVE_UINT64_T
27682 #define _HAVE_LONGLONG_UINT64_T
27683 typedef unsigned long long uint64_t;
27684 typedef long long int64_t;
27685 #endif
27686 #else
27687 #define _STDINT_NO_INT32_T
27688 #endif
27689 #else
27690 #define _STDINT_NO_INT8_T
27691 #define _STDINT_NO_INT32_T
27692 #endif
27693 #endif
27696 * quote from SunOS-5.8 sys/inttypes.h:
27697 * Use at your own risk. As of February 1996, the committee is squarely
27698 * behind the fixed sized types; the "least" and "fast" types are still being
27699 * discussed. The probability that the "fast" types may be removed before
27700 * the standard is finalized is high enough that they are not currently
27701 * implemented.
27704 #if defined _STDINT_NEED_INT_LEAST_T
27705 typedef int8_t int_least8_t;
27706 typedef int16_t int_least16_t;
27707 typedef int32_t int_least32_t;
27708 #ifdef _HAVE_UINT64_T
27709 typedef int64_t int_least64_t;
27710 #endif
27712 typedef uint8_t uint_least8_t;
27713 typedef uint16_t uint_least16_t;
27714 typedef uint32_t uint_least32_t;
27715 #ifdef _HAVE_UINT64_T
27716 typedef uint64_t uint_least64_t;
27717 #endif
27718 /* least types */
27719 #endif
27721 #if defined _STDINT_NEED_INT_FAST_T
27722 typedef int8_t int_fast8_t;
27723 typedef int int_fast16_t;
27724 typedef int32_t int_fast32_t;
27725 #ifdef _HAVE_UINT64_T
27726 typedef int64_t int_fast64_t;
27727 #endif
27729 typedef uint8_t uint_fast8_t;
27730 typedef unsigned uint_fast16_t;
27731 typedef uint32_t uint_fast32_t;
27732 #ifdef _HAVE_UINT64_T
27733 typedef uint64_t uint_fast64_t;
27734 #endif
27735 /* fast types */
27736 #endif
27738 #ifdef _STDINT_NEED_INTMAX_T
27739 #ifdef _HAVE_UINT64_T
27740 typedef int64_t intmax_t;
27741 typedef uint64_t uintmax_t;
27742 #else
27743 typedef long intmax_t;
27744 typedef unsigned long uintmax_t;
27745 #endif
27746 #endif
27748 #ifdef _STDINT_NEED_INTPTR_T
27749 #ifndef __intptr_t_defined
27750 #define __intptr_t_defined
27751 /* we encourage using "long" to store pointer values, never use "int" ! */
27752 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
27753 typedef unsigned int uintptr_t;
27754 typedef int intptr_t;
27755 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
27756 typedef unsigned long uintptr_t;
27757 typedef long intptr_t;
27758 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
27759 typedef uint64_t uintptr_t;
27760 typedef int64_t intptr_t;
27761 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
27762 typedef unsigned long uintptr_t;
27763 typedef long intptr_t;
27764 #endif
27765 #endif
27766 #endif
27768 /* The ISO C99 standard specifies that in C++ implementations these
27769 should only be defined if explicitly requested. */
27770 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
27771 #ifndef UINT32_C
27773 /* Signed. */
27774 # define INT8_C(c) c
27775 # define INT16_C(c) c
27776 # define INT32_C(c) c
27777 # ifdef _HAVE_LONGLONG_UINT64_T
27778 # define INT64_C(c) c ## L
27779 # else
27780 # define INT64_C(c) c ## LL
27781 # endif
27783 /* Unsigned. */
27784 # define UINT8_C(c) c ## U
27785 # define UINT16_C(c) c ## U
27786 # define UINT32_C(c) c ## U
27787 # ifdef _HAVE_LONGLONG_UINT64_T
27788 # define UINT64_C(c) c ## UL
27789 # else
27790 # define UINT64_C(c) c ## ULL
27791 # endif
27793 /* Maximal type. */
27794 # ifdef _HAVE_LONGLONG_UINT64_T
27795 # define INTMAX_C(c) c ## L
27796 # define UINTMAX_C(c) c ## UL
27797 # else
27798 # define INTMAX_C(c) c ## LL
27799 # define UINTMAX_C(c) c ## ULL
27800 # endif
27802 /* literalnumbers */
27803 #endif
27804 #endif
27806 /* These limits are merily those of a two complement byte-oriented system */
27808 /* Minimum of signed integral types. */
27809 #ifndef INT8_MIN
27810 # define INT8_MIN (-128)
27811 #endif
27812 #ifndef INT16_MIN
27813 # define INT16_MIN (-32767-1)
27814 #endif
27815 #ifndef INT32_MIN
27816 # define INT32_MIN (-2147483647-1)
27817 #endif
27818 #ifndef INT64_MIN
27819 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
27820 #endif
27822 /* Maximum of signed integral types. */
27823 #ifndef INT8_MAX
27824 # define INT8_MAX (127)
27825 #endif
27826 #ifndef INT16_MAX
27827 # define INT16_MAX (32767)
27828 #endif
27829 #ifndef INT32_MAX
27830 # define INT32_MAX (2147483647)
27831 #endif
27832 #ifndef INT64_MAX
27833 # define INT64_MAX (__INT64_C(9223372036854775807))
27834 #endif
27836 /* Maximum of unsigned integral types. */
27837 #ifndef UINT8_MAX
27838 # define UINT8_MAX (255)
27839 #endif
27840 #ifndef UINT16_MAX
27841 # define UINT16_MAX (65535)
27842 #endif
27843 #ifndef UINT32_MAX
27844 # define UINT32_MAX (4294967295U)
27845 #endif
27846 #ifndef UINT64_MAX
27847 # define UINT64_MAX (__UINT64_C(18446744073709551615))
27848 #endif
27850 /* Minimum of signed integral types having a minimum size. */
27851 # define INT_LEAST8_MIN INT8_MIN
27852 # define INT_LEAST16_MIN INT16_MIN
27853 # define INT_LEAST32_MIN INT32_MIN
27854 # define INT_LEAST64_MIN INT64_MIN
27855 /* Maximum of signed integral types having a minimum size. */
27856 # define INT_LEAST8_MAX INT8_MAX
27857 # define INT_LEAST16_MAX INT16_MAX
27858 # define INT_LEAST32_MAX INT32_MAX
27859 # define INT_LEAST64_MAX INT64_MAX
27861 /* Maximum of unsigned integral types having a minimum size. */
27862 # define UINT_LEAST8_MAX UINT8_MAX
27863 # define UINT_LEAST16_MAX UINT16_MAX
27864 # define UINT_LEAST32_MAX UINT32_MAX
27865 # define UINT_LEAST64_MAX UINT64_MAX
27867 /* shortcircuit*/
27868 #endif
27869 /* once */
27870 #endif
27871 #endif
27872 STDINT_EOF
27874 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
27876 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
27877 else
27878 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
27879 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27880 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
27881 X"$ac_stdint_h" : 'X\(//\)$' \| \
27882 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
27883 $as_echo X"$ac_stdint_h" |
27884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27885 s//\1/
27888 /^X\(\/\/\)[^/].*/{
27889 s//\1/
27892 /^X\(\/\/\)$/{
27893 s//\1/
27896 /^X\(\/\).*/{
27897 s//\1/
27900 s/.*/./; q'`
27901 as_dir="$ac_dir"; as_fn_mkdir_p
27902 rm -f $ac_stdint_h
27903 mv $ac_stdint $ac_stdint_h
27906 "gappletviewer":C) chmod 755 tools/gappletviewer ;;
27907 "gjarsigner":C) chmod 755 tools/gjarsigner ;;
27908 "gkeytool":C) chmod 755 tools/gkeytool ;;
27909 "gjar":C) chmod 755 tools/gjar ;;
27910 "gnative2ascii":C) chmod 755 tools/gnative2ascii ;;
27911 "gserialver":C) chmod 755 tools/gserialver ;;
27912 "grmiregistry":C) chmod 755 tools/grmiregistry ;;
27913 "gtnameserv":C) chmod 755 tools/gtnameserv ;;
27914 "gorbd":C) chmod 755 tools/gorbd ;;
27915 "grmid":C) chmod 755 tools/grmid ;;
27916 "grmic":C) chmod 755 tools/grmic ;;
27917 "gjavah":C) chmod 755 tools/gjavah ;;
27918 "gjdoc":C) chmod 755 tools/gjdoc ;;
27919 "gen-classlist":C) chmod 755 lib/gen-classlist.sh ;;
27920 "copy-vmresources":C) chmod 755 lib/copy-vmresources.sh ;;
27922 esac
27923 done # for ac_tag
27926 as_fn_exit 0
27927 _ACEOF
27928 ac_clean_files=$ac_clean_files_save
27930 test $ac_write_fail = 0 ||
27931 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27934 # configure is writing to config.log, and then calls config.status.
27935 # config.status does its own redirection, appending to config.log.
27936 # Unfortunately, on DOS this fails, as config.log is still kept open
27937 # by configure, so config.status won't be able to write to it; its
27938 # output is simply discarded. So we exec the FD to /dev/null,
27939 # effectively closing config.log, so it can be properly (re)opened and
27940 # appended to by config.status. When coming back to configure, we
27941 # need to make the FD available again.
27942 if test "$no_create" != yes; then
27943 ac_cs_success=:
27944 ac_config_status_args=
27945 test "$silent" = yes &&
27946 ac_config_status_args="$ac_config_status_args --quiet"
27947 exec 5>/dev/null
27948 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27949 exec 5>>config.log
27950 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27951 # would make configure fail if this is the last instruction.
27952 $ac_cs_success || as_fn_exit $?
27954 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27956 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27960 # Create standard.omit based on decisions we just made.
27961 cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
27962 if test x$use_escher != xtrue; then
27963 echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit
27966 if test "x${COMPILE_PLUGIN}" = "xyes" ; then
27967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have enabled the browser plugin. Please note that this is no longer maintained as part of GNU Classpath; development has moved to the IcedTea project." >&5
27968 $as_echo "$as_me: WARNING: You have enabled the browser plugin. Please note that this is no longer maintained as part of GNU Classpath; development has moved to the IcedTea project." >&2;}