2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / libjava / classpath / configure
bloba25317d1dd4347dfd8eb1966242d1d106163b136
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 toolexecmainlibdir
750 toolexecdir
751 target_noncanonical
752 CREATE_GJDOC_FALSE
753 CREATE_GJDOC_TRUE
754 CREATE_PLUGIN_FALSE
755 CREATE_PLUGIN_TRUE
756 CREATE_QT_PEER_LIBRARIES_FALSE
757 CREATE_QT_PEER_LIBRARIES_TRUE
758 CREATE_GTK_PEER_LIBRARIES_FALSE
759 CREATE_GTK_PEER_LIBRARIES_TRUE
760 CREATE_DSSI_LIBRARIES_FALSE
761 CREATE_DSSI_LIBRARIES_TRUE
762 CREATE_ALSA_LIBRARIES_FALSE
763 CREATE_ALSA_LIBRARIES_TRUE
764 EGREP
765 GREP
767 am__fastdepCC_FALSE
768 am__fastdepCC_TRUE
769 CCDEPMODE
770 am__nodep
771 AMDEPBACKSLASH
772 AMDEP_FALSE
773 AMDEP_TRUE
774 am__quote
775 am__include
776 DEPDIR
777 OBJEXT
778 EXEEXT
779 ac_ct_CC
780 CPPFLAGS
781 LDFLAGS
782 CFLAGS
784 CREATE_XMLJ_LIBRARY_FALSE
785 CREATE_XMLJ_LIBRARY_TRUE
786 default_toolkit
787 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE
788 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE
789 CREATE_GCONF_PEER_LIBRARIES_FALSE
790 CREATE_GCONF_PEER_LIBRARIES_TRUE
791 CREATE_CORE_JNI_LIBRARIES_FALSE
792 CREATE_CORE_JNI_LIBRARIES_TRUE
793 CREATE_JNI_LIBRARIES_FALSE
794 CREATE_JNI_LIBRARIES_TRUE
795 CREATE_COLLECTIONS_FALSE
796 CREATE_COLLECTIONS_TRUE
797 am__untar
798 am__tar
799 AMTAR
800 am__leading_dot
801 SET_MAKE
803 mkdir_p
804 MKDIR_P
805 INSTALL_STRIP_PROGRAM
806 STRIP
807 install_sh
808 MAKEINFO
809 AUTOHEADER
810 AUTOMAKE
811 AUTOCONF
812 ACLOCAL
813 VERSION
814 PACKAGE
815 CYGPATH_W
816 am__isrc
817 INSTALL_DATA
818 INSTALL_SCRIPT
819 INSTALL_PROGRAM
820 CLASSPATH_CONVENIENCE
821 CLASSPATH_MODULE
822 LIBVERSION
823 INSTALL_BINARIES_FALSE
824 INSTALL_BINARIES_TRUE
825 multi_basedir
826 GENINSRC_FALSE
827 GENINSRC_TRUE
828 JAVA_MAINTAINER_MODE_FALSE
829 JAVA_MAINTAINER_MODE_TRUE
830 target_os
831 target_vendor
832 target_cpu
833 target
834 host_os
835 host_vendor
836 host_cpu
837 host
838 build_os
839 build_vendor
840 build_cpu
841 build
842 target_alias
843 host_alias
844 build_alias
845 LIBS
846 ECHO_T
847 ECHO_N
848 ECHO_C
849 DEFS
850 mandir
851 localedir
852 libdir
853 psdir
854 pdfdir
855 dvidir
856 htmldir
857 infodir
858 docdir
859 oldincludedir
860 includedir
861 localstatedir
862 sharedstatedir
863 sysconfdir
864 datadir
865 datarootdir
866 libexecdir
867 sbindir
868 bindir
869 program_transform_name
870 prefix
871 exec_prefix
872 PACKAGE_URL
873 PACKAGE_BUGREPORT
874 PACKAGE_STRING
875 PACKAGE_VERSION
876 PACKAGE_TARNAME
877 PACKAGE_NAME
878 PATH_SEPARATOR
879 SHELL'
880 ac_subst_files=''
881 ac_user_opts='
882 enable_option_checking
883 enable_java_maintainer_mode
884 enable_generated_files_in_srcdir
885 enable_multilib
886 enable_collections
887 enable_jni
888 enable_core_jni
889 enable_default_preferences_peer
890 enable_gconf_peer
891 enable_gconf_peers
892 enable_gstreamer_peer
893 enable_gstreamer_peers
894 enable_Werror
895 enable_default_toolkit
896 enable_xmlj
897 enable_alsa
898 enable_dependency_tracking
899 enable_dssi
900 enable_gtk_peer
901 enable_gtk_peers
902 enable_qt_peer
903 enable_plugin
904 enable_gmp
905 enable_gjdoc
906 enable_version_specific_runtime_libs
907 with_native_libdir
908 with_glibj_dir
909 with_antlr_jar
910 enable_regen_headers
911 enable_regen_gjdoc_parser
912 enable_tool_wrappers
913 enable_static
914 enable_shared
915 with_pic
916 enable_fast_install
917 with_gnu_ld
918 enable_libtool_lock
919 enable_rpath
920 with_libiconv_prefix
921 with_x
922 with_qt4dir
923 with_gmp
924 with_gmp_include
925 with_gmp_lib
926 with_javah
927 with_vm_classes
928 enable_maintainer_mode
929 enable_debug
930 enable_load_library
931 with_ecj_jar
932 enable_java_lang_system_explicit_initialization
933 with_jar
934 with_glibj
935 enable_examples
936 enable_tools
937 with_gjdoc
938 with_jay
939 enable_portable_native_sync
940 with_glibj_zip
941 with_escher
942 enable_local_sockets
944 ac_precious_vars='build_alias
945 host_alias
946 target_alias
948 CFLAGS
949 LDFLAGS
950 LIBS
951 CPPFLAGS
954 CXXFLAGS
956 CXXCPP
957 XMKMF'
960 # Initialize some variables set by options.
961 ac_init_help=
962 ac_init_version=false
963 ac_unrecognized_opts=
964 ac_unrecognized_sep=
965 # The variables have the same names as the options, with
966 # dashes changed to underlines.
967 cache_file=/dev/null
968 exec_prefix=NONE
969 no_create=
970 no_recursion=
971 prefix=NONE
972 program_prefix=NONE
973 program_suffix=NONE
974 program_transform_name=s,x,x,
975 silent=
976 site=
977 srcdir=
978 verbose=
979 x_includes=NONE
980 x_libraries=NONE
982 # Installation directory options.
983 # These are left unexpanded so users can "make install exec_prefix=/foo"
984 # and all the variables that are supposed to be based on exec_prefix
985 # by default will actually change.
986 # Use braces instead of parens because sh, perl, etc. also accept them.
987 # (The list follows the same order as the GNU Coding Standards.)
988 bindir='${exec_prefix}/bin'
989 sbindir='${exec_prefix}/sbin'
990 libexecdir='${exec_prefix}/libexec'
991 datarootdir='${prefix}/share'
992 datadir='${datarootdir}'
993 sysconfdir='${prefix}/etc'
994 sharedstatedir='${prefix}/com'
995 localstatedir='${prefix}/var'
996 includedir='${prefix}/include'
997 oldincludedir='/usr/include'
998 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
999 infodir='${datarootdir}/info'
1000 htmldir='${docdir}'
1001 dvidir='${docdir}'
1002 pdfdir='${docdir}'
1003 psdir='${docdir}'
1004 libdir='${exec_prefix}/lib'
1005 localedir='${datarootdir}/locale'
1006 mandir='${datarootdir}/man'
1008 ac_prev=
1009 ac_dashdash=
1010 for ac_option
1012 # If the previous option needs an argument, assign it.
1013 if test -n "$ac_prev"; then
1014 eval $ac_prev=\$ac_option
1015 ac_prev=
1016 continue
1019 case $ac_option in
1020 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1021 *) ac_optarg=yes ;;
1022 esac
1024 # Accept the important Cygnus configure options, so we can diagnose typos.
1026 case $ac_dashdash$ac_option in
1028 ac_dashdash=yes ;;
1030 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031 ac_prev=bindir ;;
1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033 bindir=$ac_optarg ;;
1035 -build | --build | --buil | --bui | --bu)
1036 ac_prev=build_alias ;;
1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038 build_alias=$ac_optarg ;;
1040 -cache-file | --cache-file | --cache-fil | --cache-fi \
1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042 ac_prev=cache_file ;;
1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045 cache_file=$ac_optarg ;;
1047 --config-cache | -C)
1048 cache_file=config.cache ;;
1050 -datadir | --datadir | --datadi | --datad)
1051 ac_prev=datadir ;;
1052 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1053 datadir=$ac_optarg ;;
1055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056 | --dataroo | --dataro | --datar)
1057 ac_prev=datarootdir ;;
1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060 datarootdir=$ac_optarg ;;
1062 -disable-* | --disable-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error "invalid feature name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1071 "enable_$ac_useropt"
1072 "*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1075 esac
1076 eval enable_$ac_useropt=no ;;
1078 -docdir | --docdir | --docdi | --doc | --do)
1079 ac_prev=docdir ;;
1080 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081 docdir=$ac_optarg ;;
1083 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084 ac_prev=dvidir ;;
1085 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086 dvidir=$ac_optarg ;;
1088 -enable-* | --enable-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error "invalid feature name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1097 "enable_$ac_useropt"
1098 "*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval enable_$ac_useropt=\$ac_optarg ;;
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1115 with_gas=yes ;;
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130 ac_prev=htmldir ;;
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132 | --ht=*)
1133 htmldir=$ac_optarg ;;
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1143 ac_prev=infodir ;;
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1147 -libdir | --libdir | --libdi | --libd)
1148 ac_prev=libdir ;;
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
1165 | --localstate | --localstat | --localsta | --localst | --locals)
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169 localstatedir=$ac_optarg ;;
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172 ac_prev=mandir ;;
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1178 with_fp=no ;;
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1182 no_create=yes ;;
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186 no_recursion=yes ;;
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198 ac_prev=prefix ;;
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234 ac_prev=pdfdir ;;
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1238 -psdir | --psdir | --psdi | --psd | --ps)
1239 ac_prev=psdir ;;
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241 psdir=$ac_optarg ;;
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 silent=yes ;;
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248 ac_prev=sbindir ;;
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250 | --sbi=* | --sb=*)
1251 sbindir=$ac_optarg ;;
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1256 | --sha | --sh)
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261 | --sha=* | --sh=*)
1262 sharedstatedir=$ac_optarg ;;
1264 -site | --site | --sit)
1265 ac_prev=site ;;
1266 -site=* | --site=* | --sit=*)
1267 site=$ac_optarg ;;
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270 ac_prev=srcdir ;;
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287 verbose=yes ;;
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1292 -with-* | --with-*)
1293 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error "invalid package name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1301 "with_$ac_useropt"
1302 "*) ;;
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1305 esac
1306 eval with_$ac_useropt=\$ac_optarg ;;
1308 -without-* | --without-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312 as_fn_error "invalid package name: $ac_useropt"
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1317 "with_$ac_useropt"
1318 "*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval with_$ac_useropt=no ;;
1324 --x)
1325 # Obsolete; use --with-x.
1326 with_x=yes ;;
1328 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1329 | --x-incl | --x-inc | --x-in | --x-i)
1330 ac_prev=x_includes ;;
1331 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1332 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1333 x_includes=$ac_optarg ;;
1335 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1336 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1337 ac_prev=x_libraries ;;
1338 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1339 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1340 x_libraries=$ac_optarg ;;
1342 -*) as_fn_error "unrecognized option: \`$ac_option'
1343 Try \`$0 --help' for more information."
1346 *=*)
1347 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1348 # Reject names that are not valid shell variable names.
1349 case $ac_envvar in #(
1350 '' | [0-9]* | *[!_$as_cr_alnum]* )
1351 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1352 esac
1353 eval $ac_envvar=\$ac_optarg
1354 export $ac_envvar ;;
1357 # FIXME: should be removed in autoconf 3.0.
1358 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1359 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1360 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1361 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1364 esac
1365 done
1367 if test -n "$ac_prev"; then
1368 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1369 as_fn_error "missing argument to $ac_option"
1372 if test -n "$ac_unrecognized_opts"; then
1373 case $enable_option_checking in
1374 no) ;;
1375 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1376 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1377 esac
1380 # Check all directory arguments for consistency.
1381 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1382 datadir sysconfdir sharedstatedir localstatedir includedir \
1383 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1384 libdir localedir mandir
1386 eval ac_val=\$$ac_var
1387 # Remove trailing slashes.
1388 case $ac_val in
1389 */ )
1390 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1391 eval $ac_var=\$ac_val;;
1392 esac
1393 # Be sure to have absolute directory names.
1394 case $ac_val in
1395 [\\/$]* | ?:[\\/]* ) continue;;
1396 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1397 esac
1398 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1399 done
1401 # There might be people who depend on the old broken behavior: `$host'
1402 # used to hold the argument of --host etc.
1403 # FIXME: To remove some day.
1404 build=$build_alias
1405 host=$host_alias
1406 target=$target_alias
1408 # FIXME: To remove some day.
1409 if test "x$host_alias" != x; then
1410 if test "x$build_alias" = x; then
1411 cross_compiling=maybe
1412 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1413 If a cross compiler is detected then cross compile mode will be used." >&2
1414 elif test "x$build_alias" != "x$host_alias"; then
1415 cross_compiling=yes
1419 ac_tool_prefix=
1420 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1422 test "$silent" = yes && exec 6>/dev/null
1425 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426 ac_ls_di=`ls -di .` &&
1427 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1428 as_fn_error "working directory cannot be determined"
1429 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430 as_fn_error "pwd does not report name of working directory"
1433 # Find the source files, if location was not specified.
1434 if test -z "$srcdir"; then
1435 ac_srcdir_defaulted=yes
1436 # Try the directory containing this script, then the parent directory.
1437 ac_confdir=`$as_dirname -- "$as_myself" ||
1438 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439 X"$as_myself" : 'X\(//\)[^/]' \| \
1440 X"$as_myself" : 'X\(//\)$' \| \
1441 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442 $as_echo X"$as_myself" |
1443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444 s//\1/
1447 /^X\(\/\/\)[^/].*/{
1448 s//\1/
1451 /^X\(\/\/\)$/{
1452 s//\1/
1455 /^X\(\/\).*/{
1456 s//\1/
1459 s/.*/./; q'`
1460 srcdir=$ac_confdir
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1462 srcdir=..
1464 else
1465 ac_srcdir_defaulted=no
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1468 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1469 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1471 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1472 ac_abs_confdir=`(
1473 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1474 pwd)`
1475 # When building in place, set srcdir=.
1476 if test "$ac_abs_confdir" = "$ac_pwd"; then
1477 srcdir=.
1479 # Remove unnecessary trailing slashes from srcdir.
1480 # Double slashes in file names in object file debugging info
1481 # mess up M-x gdb in Emacs.
1482 case $srcdir in
1483 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484 esac
1485 for ac_var in $ac_precious_vars; do
1486 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_env_${ac_var}_value=\$${ac_var}
1488 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490 done
1493 # Report the --help message.
1495 if test "$ac_init_help" = "long"; then
1496 # Omit some internal or obsolete options to make the list less imposing.
1497 # This message is too long to be a string in the A/UX 3.1 sh.
1498 cat <<_ACEOF
1499 \`configure' configures GNU Classpath 0.99.1-pre to adapt to many kinds of systems.
1501 Usage: $0 [OPTION]... [VAR=VALUE]...
1503 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504 VAR=VALUE. See below for descriptions of some of the useful variables.
1506 Defaults for the options are specified in brackets.
1508 Configuration:
1509 -h, --help display this help and exit
1510 --help=short display options specific to this package
1511 --help=recursive display the short help of all the included packages
1512 -V, --version display version information and exit
1513 -q, --quiet, --silent do not print \`checking...' messages
1514 --cache-file=FILE cache test results in FILE [disabled]
1515 -C, --config-cache alias for \`--cache-file=config.cache'
1516 -n, --no-create do not create output files
1517 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1519 Installation directories:
1520 --prefix=PREFIX install architecture-independent files in PREFIX
1521 [$ac_default_prefix]
1522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1523 [PREFIX]
1525 By default, \`make install' will install all the files in
1526 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1527 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528 for instance \`--prefix=\$HOME'.
1530 For better control, use the options below.
1532 Fine tuning of the installation directories:
1533 --bindir=DIR user executables [EPREFIX/bin]
1534 --sbindir=DIR system admin executables [EPREFIX/sbin]
1535 --libexecdir=DIR program executables [EPREFIX/libexec]
1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1539 --libdir=DIR object code libraries [EPREFIX/lib]
1540 --includedir=DIR C header files [PREFIX/include]
1541 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1542 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1543 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1544 --infodir=DIR info documentation [DATAROOTDIR/info]
1545 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1546 --mandir=DIR man documentation [DATAROOTDIR/man]
1547 --docdir=DIR documentation root [DATAROOTDIR/doc/classpath]
1548 --htmldir=DIR html documentation [DOCDIR]
1549 --dvidir=DIR dvi documentation [DOCDIR]
1550 --pdfdir=DIR pdf documentation [DOCDIR]
1551 --psdir=DIR ps documentation [DOCDIR]
1552 _ACEOF
1554 cat <<\_ACEOF
1556 Program names:
1557 --program-prefix=PREFIX prepend PREFIX to installed program names
1558 --program-suffix=SUFFIX append SUFFIX to installed program names
1559 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1561 X features:
1562 --x-includes=DIR X include files are in DIR
1563 --x-libraries=DIR X library files are in DIR
1565 System types:
1566 --build=BUILD configure for building on BUILD [guessed]
1567 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1568 --target=TARGET configure for building compilers for TARGET [HOST]
1569 _ACEOF
1572 if test -n "$ac_init_help"; then
1573 case $ac_init_help in
1574 short | recursive ) echo "Configuration of GNU Classpath 0.99.1-pre:";;
1575 esac
1576 cat <<\_ACEOF
1578 Optional Features:
1579 --disable-option-checking ignore unrecognized --enable/--with options
1580 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1581 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1582 --enable-java-maintainer-mode
1583 allow rebuilding of .class and .h files
1584 --enable-generated-files-in-srcdir
1585 put copies of generated files in source dir
1586 intended for creating source tarballs for users
1587 without texinfo, perl, bison or flex.
1588 --enable-multilib build many library versions (default)
1589 --enable-collections create collections.jar default=no
1590 --enable-jni compile JNI source default=yes
1591 --enable-core-jni compile JNI sources for core default=yes
1592 --enable-default-preferences-peer[=peer type or class name]
1593 specify one of: "gconf" [default] for a GConf based
1594 backend, "file" for a file based one, "memory" for a
1595 transient one, or a fully qualified class name
1596 implementing java.util.prefs.PreferencesFactory
1597 --disable-gconf-peer compile GConf native peers (disabled by
1598 --disable-jni) default=yes
1600 --enable-gstreamer-peer compile GStreamer native peers (disabled by
1601 --disable-jni) default=no
1602 --enable-Werror whether to compile C code with -Werror which turns
1603 any compiler warning into a compilation failure
1604 default=no
1605 --enable-default-toolkit
1606 fully qualified class name of default AWT toolkit
1607 --enable-xmlj compile native libxml/xslt library default=no
1608 --disable-alsa compile ALSA providers (enable by --enable-alsa)
1609 default=yes
1610 --disable-dependency-tracking speeds up one-time build
1611 --enable-dependency-tracking do not reject slow dependency extractors
1612 --disable-dssi compile DSSI providers (enable by --enable-dssi)
1613 default=yes
1614 --disable-gtk-peer compile GTK native peers (disabled by --disable-jni)
1615 default=yes
1616 --enable-qt-peer compile Qt4 native peers (disabled by --disable-jni)
1617 default=no
1618 --disable-plugin compile gcjwebplugin (disabled by --disable-plugin)
1619 default=yes
1620 --enable-gmp compile native java.math.BigInteger library
1621 (disabled by --disable-gmp) default=yes
1622 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1623 default=yes
1624 --enable-version-specific-runtime-libs
1625 specify that runtime libraries should be installed
1626 in a compiler-specific directory
1627 --enable-regen-headers automatically regenerate JNI headers default=yes if
1628 headers don't exist
1629 --enable-regen-gjdoc-parser
1630 automatically regenerate the GJDoc parser
1631 default=yes if generated source doesn't exist
1632 --enable-tool-wrappers create tool wrapper binaries default=no
1633 --enable-static[=PKGS] build static libraries [default=no]
1634 --enable-shared[=PKGS] build shared libraries [default=yes]
1635 --enable-fast-install[=PKGS]
1636 optimize for fast installation [default=yes]
1637 --disable-libtool-lock avoid locking (might break parallel builds)
1638 --disable-rpath do not hardcode runtime library paths
1639 --enable-maintainer-mode enable make rules and dependencies not useful
1640 (and sometimes confusing) to the casual installer
1641 --enable-debug enable runtime debugging code
1642 --enable-load-library enable to use JNI native methods default=yes
1643 --enable-java-lang-system-explicit-initialization
1644 will the VM explicitly invoke java.lang.System's
1645 static initialization methods default=no
1646 --enable-examples enable build of the examples default=yes
1647 --enable-tools enable build of the tools default=yes
1648 --enable-portable-native-sync
1649 synchronize VM threads portably
1650 --enable-local-sockets enables local (AF_LOCAL) socket API default: no
1652 Optional Packages:
1653 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1654 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1655 --with-native-libdir sets the installation directory for native libraries
1656 default='${libdir}/${PACKAGE}'
1657 --with-glibj-dir sets the installation directory for glibj.zip
1658 default='${libdir}/${PACKAGE}'
1659 --with-antlr-jar=file Use ANTLR from the specified jar file
1660 --with-pic try to use only PIC/non-PIC objects [default=use
1661 both]
1662 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1663 --with-gnu-ld assume the C compiler uses GNU ld default=no
1664 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1665 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1666 --with-x use the X Window System
1667 --with-qt4dir=DIR Qt4 installation directory used for OS-X. For other
1668 systems use pkg-config.
1669 --with-gmp=PATH specify prefix directory for the installed GMP package.
1670 Equivalent to --with-gmp-include=PATH/include
1671 plus --with-gmp-lib=PATH/lib
1672 --with-gmp-include=PATH specify directory for installed GMP include files
1673 --with-gmp-lib=PATH specify directory for the installed GMP library
1674 --with-javah specify path or name of a javah-like program
1675 --with-vm-classes specify path to VM override source files
1676 --with-ecj-jar=ABS.PATH specify jar file containing the Eclipse Java
1677 Compiler
1678 --with-jar=PATH define to use a jar style tool
1679 --with-glibj define what to install (zip|flat|both|none|build)
1680 [default=zip]
1681 --with-gjdoc generate documentation using gjdoc (default is NO)
1682 --with-jay=DIR|PATH Regenerate the parsers with jay
1683 --with-glibj-zip=ABS.PATH
1684 use prebuilt glibj.zip class library
1685 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1687 Some influential environment variables:
1688 CC C compiler command
1689 CFLAGS C compiler flags
1690 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1691 nonstandard directory <lib dir>
1692 LIBS libraries to pass to the linker, e.g. -l<library>
1693 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1694 you have headers in a nonstandard directory <include dir>
1695 CPP C preprocessor
1696 CXX C++ compiler command
1697 CXXFLAGS C++ compiler flags
1698 CXXCPP C++ preprocessor
1699 XMKMF Path to xmkmf, Makefile generator for X Window System
1701 Use these variables to override the choices made by `configure' or to help
1702 it to find libraries and programs with nonstandard names/locations.
1704 Report bugs to <classpath@gnu.org>.
1705 GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
1706 General help using GNU software: <http://www.gnu.org/gethelp/>.
1707 _ACEOF
1708 ac_status=$?
1711 if test "$ac_init_help" = "recursive"; then
1712 # If there are subdirs, report their specific --help.
1713 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1714 test -d "$ac_dir" ||
1715 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1716 continue
1717 ac_builddir=.
1719 case "$ac_dir" in
1720 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1722 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1723 # A ".." for each directory in $ac_dir_suffix.
1724 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1725 case $ac_top_builddir_sub in
1726 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1727 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1728 esac ;;
1729 esac
1730 ac_abs_top_builddir=$ac_pwd
1731 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1732 # for backward compatibility:
1733 ac_top_builddir=$ac_top_build_prefix
1735 case $srcdir in
1736 .) # We are building in place.
1737 ac_srcdir=.
1738 ac_top_srcdir=$ac_top_builddir_sub
1739 ac_abs_top_srcdir=$ac_pwd ;;
1740 [\\/]* | ?:[\\/]* ) # Absolute name.
1741 ac_srcdir=$srcdir$ac_dir_suffix;
1742 ac_top_srcdir=$srcdir
1743 ac_abs_top_srcdir=$srcdir ;;
1744 *) # Relative name.
1745 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1746 ac_top_srcdir=$ac_top_build_prefix$srcdir
1747 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1748 esac
1749 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1751 cd "$ac_dir" || { ac_status=$?; continue; }
1752 # Check for guested configure.
1753 if test -f "$ac_srcdir/configure.gnu"; then
1754 echo &&
1755 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1756 elif test -f "$ac_srcdir/configure"; then
1757 echo &&
1758 $SHELL "$ac_srcdir/configure" --help=recursive
1759 else
1760 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1761 fi || ac_status=$?
1762 cd "$ac_pwd" || { ac_status=$?; break; }
1763 done
1766 test -n "$ac_init_help" && exit $ac_status
1767 if $ac_init_version; then
1768 cat <<\_ACEOF
1769 GNU Classpath configure 0.99.1-pre
1770 generated by GNU Autoconf 2.64
1772 Copyright (C) 2009 Free Software Foundation, Inc.
1773 This configure script is free software; the Free Software Foundation
1774 gives unlimited permission to copy, distribute and modify it.
1775 _ACEOF
1776 exit
1779 ## ------------------------ ##
1780 ## Autoconf initialization. ##
1781 ## ------------------------ ##
1783 # ac_fn_c_try_compile LINENO
1784 # --------------------------
1785 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1786 ac_fn_c_try_compile ()
1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1789 rm -f conftest.$ac_objext
1790 if { { ac_try="$ac_compile"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_compile") 2>conftest.err
1798 ac_status=$?
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } && {
1806 test -z "$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1808 } && test -s conftest.$ac_objext; then :
1809 ac_retval=0
1810 else
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1814 ac_retval=1
1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817 return $ac_retval
1819 } # ac_fn_c_try_compile
1821 # ac_fn_c_try_cpp LINENO
1822 # ----------------------
1823 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_c_try_cpp ()
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 if { { ac_try="$ac_cpp conftest.$ac_ext"
1828 case "(($ac_try" in
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1831 esac
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1835 ac_status=$?
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } >/dev/null && {
1843 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1844 test ! -s conftest.err
1845 }; then :
1846 ac_retval=0
1847 else
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1851 ac_retval=1
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 return $ac_retval
1856 } # ac_fn_c_try_cpp
1858 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1859 # -------------------------------------------------------
1860 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1861 # the include files in INCLUDES and setting the cache variable VAR
1862 # accordingly.
1863 ac_fn_c_check_header_mongrel ()
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868 $as_echo_n "checking for $2... " >&6; }
1869 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1870 $as_echo_n "(cached) " >&6
1872 eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875 else
1876 # Is the header compilable?
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1878 $as_echo_n "checking $2 usability... " >&6; }
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1882 #include <$2>
1883 _ACEOF
1884 if ac_fn_c_try_compile "$LINENO"; then :
1885 ac_header_compiler=yes
1886 else
1887 ac_header_compiler=no
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1891 $as_echo "$ac_header_compiler" >&6; }
1893 # Is the header present?
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1895 $as_echo_n "checking $2 presence... " >&6; }
1896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1897 /* end confdefs.h. */
1898 #include <$2>
1899 _ACEOF
1900 if ac_fn_c_try_cpp "$LINENO"; then :
1901 ac_header_preproc=yes
1902 else
1903 ac_header_preproc=no
1905 rm -f conftest.err conftest.$ac_ext
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1907 $as_echo "$ac_header_preproc" >&6; }
1909 # So? What about this header?
1910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1911 yes:no: )
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1913 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1915 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1917 no:yes:* )
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1919 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1921 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1923 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1925 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1927 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1928 ( cat <<\_ASBOX
1929 ## -------------------------------- ##
1930 ## Report this to classpath@gnu.org ##
1931 ## -------------------------------- ##
1932 _ASBOX
1933 ) | sed "s/^/$as_me: WARNING: /" >&2
1935 esac
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937 $as_echo_n "checking for $2... " >&6; }
1938 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1939 $as_echo_n "(cached) " >&6
1940 else
1941 eval "$3=\$ac_header_compiler"
1943 eval ac_res=\$$3
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945 $as_echo "$ac_res" >&6; }
1947 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1949 } # ac_fn_c_check_header_mongrel
1951 # ac_fn_c_try_run LINENO
1952 # ----------------------
1953 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1954 # that executables *can* be run.
1955 ac_fn_c_try_run ()
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1958 if { { ac_try="$ac_link"
1959 case "(($ac_try" in
1960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1961 *) ac_try_echo=$ac_try;;
1962 esac
1963 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1964 $as_echo "$ac_try_echo"; } >&5
1965 (eval "$ac_link") 2>&5
1966 ac_status=$?
1967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1968 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1969 { { case "(($ac_try" in
1970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971 *) ac_try_echo=$ac_try;;
1972 esac
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975 (eval "$ac_try") 2>&5
1976 ac_status=$?
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; }; }; then :
1979 ac_retval=0
1980 else
1981 $as_echo "$as_me: program exited with status $ac_status" >&5
1982 $as_echo "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1985 ac_retval=$ac_status
1987 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1988 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1989 return $ac_retval
1991 } # ac_fn_c_try_run
1993 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1994 # -------------------------------------------------------
1995 # Tests whether HEADER exists and can be compiled using the include files in
1996 # INCLUDES, setting the cache variable VAR accordingly.
1997 ac_fn_c_check_header_compile ()
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 $as_echo_n "checking for $2... " >&6; }
2002 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2003 $as_echo_n "(cached) " >&6
2004 else
2005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2006 /* end confdefs.h. */
2008 #include <$2>
2009 _ACEOF
2010 if ac_fn_c_try_compile "$LINENO"; then :
2011 eval "$3=yes"
2012 else
2013 eval "$3=no"
2015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2017 eval ac_res=\$$3
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022 } # ac_fn_c_check_header_compile
2024 # ac_fn_c_try_link LINENO
2025 # -----------------------
2026 # Try to link conftest.$ac_ext, and return whether this succeeded.
2027 ac_fn_c_try_link ()
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 rm -f conftest.$ac_objext conftest$ac_exeext
2031 if { { ac_try="$ac_link"
2032 case "(($ac_try" in
2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2035 esac
2036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037 $as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_link") 2>conftest.err
2039 ac_status=$?
2040 if test -s conftest.err; then
2041 grep -v '^ *+' conftest.err >conftest.er1
2042 cat conftest.er1 >&5
2043 mv -f conftest.er1 conftest.err
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } && {
2047 test -z "$ac_c_werror_flag" ||
2048 test ! -s conftest.err
2049 } && test -s conftest$ac_exeext && {
2050 test "$cross_compiling" = yes ||
2051 $as_test_x conftest$ac_exeext
2052 }; then :
2053 ac_retval=0
2054 else
2055 $as_echo "$as_me: failed program was:" >&5
2056 sed 's/^/| /' conftest.$ac_ext >&5
2058 ac_retval=1
2060 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2061 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2062 # interfere with the next link command; also delete a directory that is
2063 # left behind by Apple's compiler. We do this before executing the actions.
2064 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2065 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2066 return $ac_retval
2068 } # ac_fn_c_try_link
2070 # ac_fn_c_check_func LINENO FUNC VAR
2071 # ----------------------------------
2072 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2073 ac_fn_c_check_func ()
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2077 $as_echo_n "checking for $2... " >&6; }
2078 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2079 $as_echo_n "(cached) " >&6
2080 else
2081 if test x$gcc_no_link = xyes; then
2082 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2086 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2088 #define $2 innocuous_$2
2090 /* System header to define __stub macros and hopefully few prototypes,
2091 which can conflict with char $2 (); below.
2092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2093 <limits.h> exists even on freestanding compilers. */
2095 #ifdef __STDC__
2096 # include <limits.h>
2097 #else
2098 # include <assert.h>
2099 #endif
2101 #undef $2
2103 /* Override any GCC internal prototype to avoid an error.
2104 Use char because int might match the return type of a GCC
2105 builtin and then its argument prototype would still apply. */
2106 #ifdef __cplusplus
2107 extern "C"
2108 #endif
2109 char $2 ();
2110 /* The GNU C library defines this for functions which it implements
2111 to always fail with ENOSYS. Some functions are actually named
2112 something starting with __ and the normal name is an alias. */
2113 #if defined __stub_$2 || defined __stub___$2
2114 choke me
2115 #endif
2118 main ()
2120 return $2 ();
2122 return 0;
2124 _ACEOF
2125 if ac_fn_c_try_link "$LINENO"; then :
2126 eval "$3=yes"
2127 else
2128 eval "$3=no"
2130 rm -f core conftest.err conftest.$ac_objext \
2131 conftest$ac_exeext conftest.$ac_ext
2133 eval ac_res=\$$3
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2135 $as_echo "$ac_res" >&6; }
2136 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2138 } # ac_fn_c_check_func
2140 # ac_fn_cxx_try_compile LINENO
2141 # ----------------------------
2142 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2143 ac_fn_cxx_try_compile ()
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2146 rm -f conftest.$ac_objext
2147 if { { ac_try="$ac_compile"
2148 case "(($ac_try" in
2149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2150 *) ac_try_echo=$ac_try;;
2151 esac
2152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2153 $as_echo "$ac_try_echo"; } >&5
2154 (eval "$ac_compile") 2>conftest.err
2155 ac_status=$?
2156 if test -s conftest.err; then
2157 grep -v '^ *+' conftest.err >conftest.er1
2158 cat conftest.er1 >&5
2159 mv -f conftest.er1 conftest.err
2161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2162 test $ac_status = 0; } && {
2163 test -z "$ac_cxx_werror_flag" ||
2164 test ! -s conftest.err
2165 } && test -s conftest.$ac_objext; then :
2166 ac_retval=0
2167 else
2168 $as_echo "$as_me: failed program was:" >&5
2169 sed 's/^/| /' conftest.$ac_ext >&5
2171 ac_retval=1
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174 return $ac_retval
2176 } # ac_fn_cxx_try_compile
2178 # ac_fn_cxx_try_cpp LINENO
2179 # ------------------------
2180 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2181 ac_fn_cxx_try_cpp ()
2183 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184 if { { ac_try="$ac_cpp conftest.$ac_ext"
2185 case "(($ac_try" in
2186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2187 *) ac_try_echo=$ac_try;;
2188 esac
2189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2190 $as_echo "$ac_try_echo"; } >&5
2191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2192 ac_status=$?
2193 if test -s conftest.err; then
2194 grep -v '^ *+' conftest.err >conftest.er1
2195 cat conftest.er1 >&5
2196 mv -f conftest.er1 conftest.err
2198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2199 test $ac_status = 0; } >/dev/null && {
2200 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2201 test ! -s conftest.err
2202 }; then :
2203 ac_retval=0
2204 else
2205 $as_echo "$as_me: failed program was:" >&5
2206 sed 's/^/| /' conftest.$ac_ext >&5
2208 ac_retval=1
2210 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2211 return $ac_retval
2213 } # ac_fn_cxx_try_cpp
2215 # ac_fn_cxx_try_link LINENO
2216 # -------------------------
2217 # Try to link conftest.$ac_ext, and return whether this succeeded.
2218 ac_fn_cxx_try_link ()
2220 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2221 rm -f conftest.$ac_objext conftest$ac_exeext
2222 if { { ac_try="$ac_link"
2223 case "(($ac_try" in
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2226 esac
2227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2228 $as_echo "$ac_try_echo"; } >&5
2229 (eval "$ac_link") 2>conftest.err
2230 ac_status=$?
2231 if test -s conftest.err; then
2232 grep -v '^ *+' conftest.err >conftest.er1
2233 cat conftest.er1 >&5
2234 mv -f conftest.er1 conftest.err
2236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2237 test $ac_status = 0; } && {
2238 test -z "$ac_cxx_werror_flag" ||
2239 test ! -s conftest.err
2240 } && test -s conftest$ac_exeext && {
2241 test "$cross_compiling" = yes ||
2242 $as_test_x conftest$ac_exeext
2243 }; then :
2244 ac_retval=0
2245 else
2246 $as_echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2249 ac_retval=1
2251 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2252 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2253 # interfere with the next link command; also delete a directory that is
2254 # left behind by Apple's compiler. We do this before executing the actions.
2255 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2256 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2257 return $ac_retval
2259 } # ac_fn_cxx_try_link
2261 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2262 # ----------------------------------------------------
2263 # Tries to find if the field MEMBER exists in type AGGR, after including
2264 # INCLUDES, setting cache variable VAR accordingly.
2265 ac_fn_c_check_member ()
2267 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2269 $as_echo_n "checking for $2.$3... " >&6; }
2270 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2271 $as_echo_n "(cached) " >&6
2272 else
2273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2274 /* end confdefs.h. */
2277 main ()
2279 static $2 ac_aggr;
2280 if (ac_aggr.$3)
2281 return 0;
2283 return 0;
2285 _ACEOF
2286 if ac_fn_c_try_compile "$LINENO"; then :
2287 eval "$4=yes"
2288 else
2289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h. */
2293 main ()
2295 static $2 ac_aggr;
2296 if (sizeof ac_aggr.$3)
2297 return 0;
2299 return 0;
2301 _ACEOF
2302 if ac_fn_c_try_compile "$LINENO"; then :
2303 eval "$4=yes"
2304 else
2305 eval "$4=no"
2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311 eval ac_res=\$$4
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2313 $as_echo "$ac_res" >&6; }
2314 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2316 } # ac_fn_c_check_member
2318 # ac_fn_c_check_decl LINENO SYMBOL VAR
2319 # ------------------------------------
2320 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2321 ac_fn_c_check_decl ()
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 as_decl_name=`echo $2|sed 's/ *(.*//'`
2325 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2327 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2328 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2329 $as_echo_n "(cached) " >&6
2330 else
2331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2332 /* end confdefs.h. */
2335 main ()
2337 #ifndef $as_decl_name
2338 #ifdef __cplusplus
2339 (void) $as_decl_use;
2340 #else
2341 (void) $as_decl_name;
2342 #endif
2343 #endif
2346 return 0;
2348 _ACEOF
2349 if ac_fn_c_try_compile "$LINENO"; then :
2350 eval "$3=yes"
2351 else
2352 eval "$3=no"
2354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 eval ac_res=\$$3
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2358 $as_echo "$ac_res" >&6; }
2359 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2361 } # ac_fn_c_check_decl
2363 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2364 # -------------------------------------------
2365 # Tests whether TYPE exists after having included INCLUDES, setting cache
2366 # variable VAR accordingly.
2367 ac_fn_c_check_type ()
2369 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2371 $as_echo_n "checking for $2... " >&6; }
2372 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2373 $as_echo_n "(cached) " >&6
2374 else
2375 eval "$3=no"
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2380 main ()
2382 if (sizeof ($2))
2383 return 0;
2385 return 0;
2387 _ACEOF
2388 if ac_fn_c_try_compile "$LINENO"; then :
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h. */
2393 main ()
2395 if (sizeof (($2)))
2396 return 0;
2398 return 0;
2400 _ACEOF
2401 if ac_fn_c_try_compile "$LINENO"; then :
2403 else
2404 eval "$3=yes"
2406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2410 eval ac_res=\$$3
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2412 $as_echo "$ac_res" >&6; }
2413 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2415 } # ac_fn_c_check_type
2417 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2418 # --------------------------------------------
2419 # Tries to find the compile-time value of EXPR in a program that includes
2420 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2421 # computed
2422 ac_fn_c_compute_int ()
2424 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2425 if test "$cross_compiling" = yes; then
2426 # Depending upon the size, compute the lo and hi bounds.
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h. */
2431 main ()
2433 static int test_array [1 - 2 * !(($2) >= 0)];
2434 test_array [0] = 0
2437 return 0;
2439 _ACEOF
2440 if ac_fn_c_try_compile "$LINENO"; then :
2441 ac_lo=0 ac_mid=0
2442 while :; do
2443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2444 /* end confdefs.h. */
2447 main ()
2449 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2450 test_array [0] = 0
2453 return 0;
2455 _ACEOF
2456 if ac_fn_c_try_compile "$LINENO"; then :
2457 ac_hi=$ac_mid; break
2458 else
2459 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2460 if test $ac_lo -le $ac_mid; then
2461 ac_lo= ac_hi=
2462 break
2464 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2467 done
2468 else
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2473 main ()
2475 static int test_array [1 - 2 * !(($2) < 0)];
2476 test_array [0] = 0
2479 return 0;
2481 _ACEOF
2482 if ac_fn_c_try_compile "$LINENO"; then :
2483 ac_hi=-1 ac_mid=-1
2484 while :; do
2485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2486 /* end confdefs.h. */
2489 main ()
2491 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2492 test_array [0] = 0
2495 return 0;
2497 _ACEOF
2498 if ac_fn_c_try_compile "$LINENO"; then :
2499 ac_lo=$ac_mid; break
2500 else
2501 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2502 if test $ac_mid -le $ac_hi; then
2503 ac_lo= ac_hi=
2504 break
2506 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2509 done
2510 else
2511 ac_lo= ac_hi=
2513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2516 # Binary search between lo and hi bounds.
2517 while test "x$ac_lo" != "x$ac_hi"; do
2518 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h. */
2523 main ()
2525 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2526 test_array [0] = 0
2529 return 0;
2531 _ACEOF
2532 if ac_fn_c_try_compile "$LINENO"; then :
2533 ac_hi=$ac_mid
2534 else
2535 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2538 done
2539 case $ac_lo in #((
2540 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2541 '') ac_retval=1 ;;
2542 esac
2543 else
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2547 static long int longval () { return $2; }
2548 static unsigned long int ulongval () { return $2; }
2549 #include <stdio.h>
2550 #include <stdlib.h>
2552 main ()
2555 FILE *f = fopen ("conftest.val", "w");
2556 if (! f)
2557 return 1;
2558 if (($2) < 0)
2560 long int i = longval ();
2561 if (i != ($2))
2562 return 1;
2563 fprintf (f, "%ld", i);
2565 else
2567 unsigned long int i = ulongval ();
2568 if (i != ($2))
2569 return 1;
2570 fprintf (f, "%lu", i);
2572 /* Do not output a trailing newline, as this causes \r\n confusion
2573 on some platforms. */
2574 return ferror (f) || fclose (f) != 0;
2577 return 0;
2579 _ACEOF
2580 if ac_fn_c_try_run "$LINENO"; then :
2581 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2582 else
2583 ac_retval=1
2585 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2586 conftest.$ac_objext conftest.beam conftest.$ac_ext
2587 rm -f conftest.val
2590 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2591 return $ac_retval
2593 } # ac_fn_c_compute_int
2594 cat >config.log <<_ACEOF
2595 This file contains any messages produced by compilers while
2596 running configure, to aid debugging if configure makes a mistake.
2598 It was created by GNU Classpath $as_me 0.99.1-pre, which was
2599 generated by GNU Autoconf 2.64. Invocation command line was
2601 $ $0 $@
2603 _ACEOF
2604 exec 5>>config.log
2606 cat <<_ASUNAME
2607 ## --------- ##
2608 ## Platform. ##
2609 ## --------- ##
2611 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2612 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2613 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2614 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2615 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2617 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2618 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2620 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2621 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2622 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2623 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2624 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2625 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2626 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2628 _ASUNAME
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 for as_dir in $PATH
2633 IFS=$as_save_IFS
2634 test -z "$as_dir" && as_dir=.
2635 $as_echo "PATH: $as_dir"
2636 done
2637 IFS=$as_save_IFS
2639 } >&5
2641 cat >&5 <<_ACEOF
2644 ## ----------- ##
2645 ## Core tests. ##
2646 ## ----------- ##
2648 _ACEOF
2651 # Keep a trace of the command line.
2652 # Strip out --no-create and --no-recursion so they do not pile up.
2653 # Strip out --silent because we don't want to record it for future runs.
2654 # Also quote any args containing shell meta-characters.
2655 # Make two passes to allow for proper duplicate-argument suppression.
2656 ac_configure_args=
2657 ac_configure_args0=
2658 ac_configure_args1=
2659 ac_must_keep_next=false
2660 for ac_pass in 1 2
2662 for ac_arg
2664 case $ac_arg in
2665 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2666 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2667 | -silent | --silent | --silen | --sile | --sil)
2668 continue ;;
2669 *\'*)
2670 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2671 esac
2672 case $ac_pass in
2673 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2675 as_fn_append ac_configure_args1 " '$ac_arg'"
2676 if test $ac_must_keep_next = true; then
2677 ac_must_keep_next=false # Got value, back to normal.
2678 else
2679 case $ac_arg in
2680 *=* | --config-cache | -C | -disable-* | --disable-* \
2681 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2682 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2683 | -with-* | --with-* | -without-* | --without-* | --x)
2684 case "$ac_configure_args0 " in
2685 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2686 esac
2688 -* ) ac_must_keep_next=true ;;
2689 esac
2691 as_fn_append ac_configure_args " '$ac_arg'"
2693 esac
2694 done
2695 done
2696 { ac_configure_args0=; unset ac_configure_args0;}
2697 { ac_configure_args1=; unset ac_configure_args1;}
2699 # When interrupted or exit'd, cleanup temporary files, and complete
2700 # config.log. We remove comments because anyway the quotes in there
2701 # would cause problems or look ugly.
2702 # WARNING: Use '\'' to represent an apostrophe within the trap.
2703 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2704 trap 'exit_status=$?
2705 # Save into config.log some information that might help in debugging.
2707 echo
2709 cat <<\_ASBOX
2710 ## ---------------- ##
2711 ## Cache variables. ##
2712 ## ---------------- ##
2713 _ASBOX
2714 echo
2715 # The following way of writing the cache mishandles newlines in values,
2717 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2718 eval ac_val=\$$ac_var
2719 case $ac_val in #(
2720 *${as_nl}*)
2721 case $ac_var in #(
2722 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2723 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2724 esac
2725 case $ac_var in #(
2726 _ | IFS | as_nl) ;; #(
2727 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2728 *) { eval $ac_var=; unset $ac_var;} ;;
2729 esac ;;
2730 esac
2731 done
2732 (set) 2>&1 |
2733 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2734 *${as_nl}ac_space=\ *)
2735 sed -n \
2736 "s/'\''/'\''\\\\'\'''\''/g;
2737 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2738 ;; #(
2740 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2742 esac |
2743 sort
2745 echo
2747 cat <<\_ASBOX
2748 ## ----------------- ##
2749 ## Output variables. ##
2750 ## ----------------- ##
2751 _ASBOX
2752 echo
2753 for ac_var in $ac_subst_vars
2755 eval ac_val=\$$ac_var
2756 case $ac_val in
2757 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2758 esac
2759 $as_echo "$ac_var='\''$ac_val'\''"
2760 done | sort
2761 echo
2763 if test -n "$ac_subst_files"; then
2764 cat <<\_ASBOX
2765 ## ------------------- ##
2766 ## File substitutions. ##
2767 ## ------------------- ##
2768 _ASBOX
2769 echo
2770 for ac_var in $ac_subst_files
2772 eval ac_val=\$$ac_var
2773 case $ac_val in
2774 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2775 esac
2776 $as_echo "$ac_var='\''$ac_val'\''"
2777 done | sort
2778 echo
2781 if test -s confdefs.h; then
2782 cat <<\_ASBOX
2783 ## ----------- ##
2784 ## confdefs.h. ##
2785 ## ----------- ##
2786 _ASBOX
2787 echo
2788 cat confdefs.h
2789 echo
2791 test "$ac_signal" != 0 &&
2792 $as_echo "$as_me: caught signal $ac_signal"
2793 $as_echo "$as_me: exit $exit_status"
2794 } >&5
2795 rm -f core *.core core.conftest.* &&
2796 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2797 exit $exit_status
2799 for ac_signal in 1 2 13 15; do
2800 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2801 done
2802 ac_signal=0
2804 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2805 rm -f -r conftest* confdefs.h
2807 $as_echo "/* confdefs.h */" > confdefs.h
2809 # Predefined preprocessor variables.
2811 cat >>confdefs.h <<_ACEOF
2812 #define PACKAGE_NAME "$PACKAGE_NAME"
2813 _ACEOF
2815 cat >>confdefs.h <<_ACEOF
2816 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2817 _ACEOF
2819 cat >>confdefs.h <<_ACEOF
2820 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2821 _ACEOF
2823 cat >>confdefs.h <<_ACEOF
2824 #define PACKAGE_STRING "$PACKAGE_STRING"
2825 _ACEOF
2827 cat >>confdefs.h <<_ACEOF
2828 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2829 _ACEOF
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_URL "$PACKAGE_URL"
2833 _ACEOF
2836 # Let the site file select an alternate cache file if it wants to.
2837 # Prefer an explicitly selected file to automatically selected ones.
2838 ac_site_file1=NONE
2839 ac_site_file2=NONE
2840 if test -n "$CONFIG_SITE"; then
2841 ac_site_file1=$CONFIG_SITE
2842 elif test "x$prefix" != xNONE; then
2843 ac_site_file1=$prefix/share/config.site
2844 ac_site_file2=$prefix/etc/config.site
2845 else
2846 ac_site_file1=$ac_default_prefix/share/config.site
2847 ac_site_file2=$ac_default_prefix/etc/config.site
2849 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2851 test "x$ac_site_file" = xNONE && continue
2852 if test -r "$ac_site_file"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2854 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2855 sed 's/^/| /' "$ac_site_file" >&5
2856 . "$ac_site_file"
2858 done
2860 if test -r "$cache_file"; then
2861 # Some versions of bash will fail to source /dev/null (special
2862 # files actually), so we avoid doing that.
2863 if test -f "$cache_file"; then
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2865 $as_echo "$as_me: loading cache $cache_file" >&6;}
2866 case $cache_file in
2867 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2868 *) . "./$cache_file";;
2869 esac
2871 else
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2873 $as_echo "$as_me: creating cache $cache_file" >&6;}
2874 >$cache_file
2877 # Check that the precious variables saved in the cache have kept the same
2878 # value.
2879 ac_cache_corrupted=false
2880 for ac_var in $ac_precious_vars; do
2881 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2882 eval ac_new_set=\$ac_env_${ac_var}_set
2883 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2884 eval ac_new_val=\$ac_env_${ac_var}_value
2885 case $ac_old_set,$ac_new_set in
2886 set,)
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2888 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2889 ac_cache_corrupted=: ;;
2890 ,set)
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2892 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2893 ac_cache_corrupted=: ;;
2894 ,);;
2896 if test "x$ac_old_val" != "x$ac_new_val"; then
2897 # differences in whitespace do not lead to failure.
2898 ac_old_val_w=`echo x $ac_old_val`
2899 ac_new_val_w=`echo x $ac_new_val`
2900 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2902 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2903 ac_cache_corrupted=:
2904 else
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2906 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2907 eval $ac_var=\$ac_old_val
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2910 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2912 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2913 fi;;
2914 esac
2915 # Pass precious variables to config.status.
2916 if test "$ac_new_set" = set; then
2917 case $ac_new_val in
2918 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2919 *) ac_arg=$ac_var=$ac_new_val ;;
2920 esac
2921 case " $ac_configure_args " in
2922 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2923 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2924 esac
2926 done
2927 if $ac_cache_corrupted; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2931 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2932 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2934 ## -------------------- ##
2935 ## Main body of script. ##
2936 ## -------------------- ##
2938 ac_ext=c
2939 ac_cpp='$CPP $CPPFLAGS'
2940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951 ac_aux_dir=
2952 for ac_dir in ../.. "$srcdir"/../..; do
2953 for ac_t in install-sh install.sh shtool; do
2954 if test -f "$ac_dir/$ac_t"; then
2955 ac_aux_dir=$ac_dir
2956 ac_install_sh="$ac_aux_dir/$ac_t -c"
2957 break 2
2959 done
2960 done
2961 if test -z "$ac_aux_dir"; then
2962 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2965 # These three variables are undocumented and unsupported,
2966 # and are intended to be withdrawn in a future Autoconf release.
2967 # They can cause serious problems if a builder's source tree is in a directory
2968 # whose full name contains unusual characters.
2969 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2970 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2971 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2975 # Make sure we can run config.sub.
2976 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2977 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2980 $as_echo_n "checking build system type... " >&6; }
2981 if test "${ac_cv_build+set}" = set; then :
2982 $as_echo_n "(cached) " >&6
2983 else
2984 ac_build_alias=$build_alias
2985 test "x$ac_build_alias" = x &&
2986 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2987 test "x$ac_build_alias" = x &&
2988 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2989 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2990 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2994 $as_echo "$ac_cv_build" >&6; }
2995 case $ac_cv_build in
2996 *-*-*) ;;
2997 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2998 esac
2999 build=$ac_cv_build
3000 ac_save_IFS=$IFS; IFS='-'
3001 set x $ac_cv_build
3002 shift
3003 build_cpu=$1
3004 build_vendor=$2
3005 shift; shift
3006 # Remember, the first character of IFS is used to create $*,
3007 # except with old shells:
3008 build_os=$*
3009 IFS=$ac_save_IFS
3010 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3014 $as_echo_n "checking host system type... " >&6; }
3015 if test "${ac_cv_host+set}" = set; then :
3016 $as_echo_n "(cached) " >&6
3017 else
3018 if test "x$host_alias" = x; then
3019 ac_cv_host=$ac_cv_build
3020 else
3021 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3022 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3027 $as_echo "$ac_cv_host" >&6; }
3028 case $ac_cv_host in
3029 *-*-*) ;;
3030 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3031 esac
3032 host=$ac_cv_host
3033 ac_save_IFS=$IFS; IFS='-'
3034 set x $ac_cv_host
3035 shift
3036 host_cpu=$1
3037 host_vendor=$2
3038 shift; shift
3039 # Remember, the first character of IFS is used to create $*,
3040 # except with old shells:
3041 host_os=$*
3042 IFS=$ac_save_IFS
3043 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3047 $as_echo_n "checking target system type... " >&6; }
3048 if test "${ac_cv_target+set}" = set; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 if test "x$target_alias" = x; then
3052 ac_cv_target=$ac_cv_host
3053 else
3054 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3055 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3060 $as_echo "$ac_cv_target" >&6; }
3061 case $ac_cv_target in
3062 *-*-*) ;;
3063 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3064 esac
3065 target=$ac_cv_target
3066 ac_save_IFS=$IFS; IFS='-'
3067 set x $ac_cv_target
3068 shift
3069 target_cpu=$1
3070 target_vendor=$2
3071 shift; shift
3072 # Remember, the first character of IFS is used to create $*,
3073 # except with old shells:
3074 target_os=$*
3075 IFS=$ac_save_IFS
3076 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3079 # The aliases save the names the user supplied, while $host etc.
3080 # will get canonicalized.
3081 test -n "$target_alias" &&
3082 test "$program_prefix$program_suffix$program_transform_name" = \
3083 NONENONEs,x,x, &&
3084 program_prefix=${target_alias}-
3086 # Check whether --enable-java-maintainer-mode was given.
3087 if test "${enable_java_maintainer_mode+set}" = set; then :
3088 enableval=$enable_java_maintainer_mode;
3091 if test "$enable_java_maintainer_mode" = yes; then
3092 JAVA_MAINTAINER_MODE_TRUE=
3093 JAVA_MAINTAINER_MODE_FALSE='#'
3094 else
3095 JAVA_MAINTAINER_MODE_TRUE='#'
3096 JAVA_MAINTAINER_MODE_FALSE=
3100 # We would like to our source tree to be readonly. However when releases or
3101 # pre-releases are generated, the man pages need to be included as they are
3102 # converted from the texi files via perl which we don't require end users to
3103 # have installed.
3104 # Therefore we have --enable-generated-files-in-srcdir to do just that.
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3107 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3108 # Check whether --enable-generated-files-in-srcdir was given.
3109 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3110 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3111 else
3112 generated_files_in_srcdir=no
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3117 $as_echo "$generated_files_in_srcdir" >&6; }
3118 if test x$generated_files_in_srcdir = xyes; then
3119 GENINSRC_TRUE=
3120 GENINSRC_FALSE='#'
3121 else
3122 GENINSRC_TRUE='#'
3123 GENINSRC_FALSE=
3127 # Find the rest of the source tree framework.
3128 # Default to --enable-multilib
3129 # Check whether --enable-multilib was given.
3130 if test "${enable_multilib+set}" = set; then :
3131 enableval=$enable_multilib; case "$enableval" in
3132 yes) multilib=yes ;;
3133 no) multilib=no ;;
3134 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3135 esac
3136 else
3137 multilib=yes
3141 # We may get other options which we leave undocumented:
3142 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3143 # See config-ml.in if you want the gory details.
3145 if test "$srcdir" = "."; then
3146 if test "$with_target_subdir" != "."; then
3147 multi_basedir="$srcdir/$with_multisrctop../../.."
3148 else
3149 multi_basedir="$srcdir/$with_multisrctop../.."
3151 else
3152 multi_basedir="$srcdir/../.."
3156 # Even if the default multilib is not a cross compilation,
3157 # it may be that some of the other multilibs are.
3158 if test $cross_compiling = no && test $multilib = yes \
3159 && test "x${with_multisubdir}" != x ; then
3160 cross_compiling=maybe
3163 ac_config_commands="$ac_config_commands default-1"
3166 if test -z "${with_multisubdir}"; then
3167 INSTALL_BINARIES_TRUE=
3168 INSTALL_BINARIES_FALSE='#'
3169 else
3170 INSTALL_BINARIES_TRUE='#'
3171 INSTALL_BINARIES_FALSE=
3175 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
3177 LIBVERSION="0:0:0"
3179 case "$host_os" in
3180 darwin*)
3181 cp_module=""
3184 cp_module="-module"
3186 esac
3188 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
3191 CLASSPATH_CONVENIENCE="-no-undefined"
3195 am__api_version='1.11'
3197 # Find a good install program. We prefer a C program (faster),
3198 # so one script is as good as another. But avoid the broken or
3199 # incompatible versions:
3200 # SysV /etc/install, /usr/sbin/install
3201 # SunOS /usr/etc/install
3202 # IRIX /sbin/install
3203 # AIX /bin/install
3204 # AmigaOS /C/install, which installs bootblocks on floppy discs
3205 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3206 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3207 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3208 # OS/2's system install, which has a completely different semantic
3209 # ./install, which can be erroneously created by make from ./install.sh.
3210 # Reject install programs that cannot install multiple files.
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3212 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3213 if test -z "$INSTALL"; then
3214 if test "${ac_cv_path_install+set}" = set; then :
3215 $as_echo_n "(cached) " >&6
3216 else
3217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3218 for as_dir in $PATH
3220 IFS=$as_save_IFS
3221 test -z "$as_dir" && as_dir=.
3222 # Account for people who put trailing slashes in PATH elements.
3223 case $as_dir/ in #((
3224 ./ | .// | /[cC]/* | \
3225 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3226 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3227 /usr/ucb/* ) ;;
3229 # OSF1 and SCO ODT 3.0 have their own names for install.
3230 # Don't use installbsd from OSF since it installs stuff as root
3231 # by default.
3232 for ac_prog in ginstall scoinst install; do
3233 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3235 if test $ac_prog = install &&
3236 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3237 # AIX install. It has an incompatible calling convention.
3239 elif test $ac_prog = install &&
3240 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3241 # program-specific install script used by HP pwplus--don't use.
3243 else
3244 rm -rf conftest.one conftest.two conftest.dir
3245 echo one > conftest.one
3246 echo two > conftest.two
3247 mkdir conftest.dir
3248 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3249 test -s conftest.one && test -s conftest.two &&
3250 test -s conftest.dir/conftest.one &&
3251 test -s conftest.dir/conftest.two
3252 then
3253 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3254 break 3
3258 done
3259 done
3261 esac
3263 done
3264 IFS=$as_save_IFS
3266 rm -rf conftest.one conftest.two conftest.dir
3269 if test "${ac_cv_path_install+set}" = set; then
3270 INSTALL=$ac_cv_path_install
3271 else
3272 # As a last resort, use the slow shell script. Don't cache a
3273 # value for INSTALL within a source directory, because that will
3274 # break other packages using the cache if that directory is
3275 # removed, or if the value is a relative name.
3276 INSTALL=$ac_install_sh
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3280 $as_echo "$INSTALL" >&6; }
3282 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3283 # It thinks the first close brace ends the variable substitution.
3284 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3286 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3288 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3291 $as_echo_n "checking whether build environment is sane... " >&6; }
3292 # Just in case
3293 sleep 1
3294 echo timestamp > conftest.file
3295 # Reject unsafe characters in $srcdir or the absolute working directory
3296 # name. Accept space and tab only in the latter.
3297 am_lf='
3299 case `pwd` in
3300 *[\\\"\#\$\&\'\`$am_lf]*)
3301 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3302 esac
3303 case $srcdir in
3304 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3305 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3306 esac
3308 # Do `set' in a subshell so we don't clobber the current shell's
3309 # arguments. Must try -L first in case configure is actually a
3310 # symlink; some systems play weird games with the mod time of symlinks
3311 # (eg FreeBSD returns the mod time of the symlink's containing
3312 # directory).
3313 if (
3314 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3315 if test "$*" = "X"; then
3316 # -L didn't work.
3317 set X `ls -t "$srcdir/configure" conftest.file`
3319 rm -f conftest.file
3320 if test "$*" != "X $srcdir/configure conftest.file" \
3321 && test "$*" != "X conftest.file $srcdir/configure"; then
3323 # If neither matched, then we have a broken ls. This can happen
3324 # if, for instance, CONFIG_SHELL is bash and it inherits a
3325 # broken ls alias from the environment. This has actually
3326 # happened. Such a system could not be considered "sane".
3327 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3328 alias in your environment" "$LINENO" 5
3331 test "$2" = conftest.file
3333 then
3334 # Ok.
3336 else
3337 as_fn_error "newly created file is older than distributed files!
3338 Check your system clock" "$LINENO" 5
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3341 $as_echo "yes" >&6; }
3342 test "$program_prefix" != NONE &&
3343 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3344 # Use a double $ so make ignores it.
3345 test "$program_suffix" != NONE &&
3346 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3347 # Double any \ or $.
3348 # By default was `s,x,x', remove it if useless.
3349 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3350 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3352 # expand $ac_aux_dir to an absolute path
3353 am_aux_dir=`cd $ac_aux_dir && pwd`
3355 if test x"${MISSING+set}" != xset; then
3356 case $am_aux_dir in
3357 *\ * | *\ *)
3358 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3360 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3361 esac
3363 # Use eval to expand $SHELL
3364 if eval "$MISSING --run true"; then
3365 am_missing_run="$MISSING --run "
3366 else
3367 am_missing_run=
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3369 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3372 if test x"${install_sh}" != xset; then
3373 case $am_aux_dir in
3374 *\ * | *\ *)
3375 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3377 install_sh="\${SHELL} $am_aux_dir/install-sh"
3378 esac
3381 # Installed binaries are usually stripped using `strip' when the user
3382 # run `make install-strip'. However `strip' might not be the right
3383 # tool to use in cross-compilation environments, therefore Automake
3384 # will honor the `STRIP' environment variable to overrule this program.
3385 if test "$cross_compiling" != no; then
3386 if test -n "$ac_tool_prefix"; then
3387 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3388 set dummy ${ac_tool_prefix}strip; ac_word=$2
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 $as_echo_n "checking for $ac_word... " >&6; }
3391 if test "${ac_cv_prog_STRIP+set}" = set; then :
3392 $as_echo_n "(cached) " >&6
3393 else
3394 if test -n "$STRIP"; then
3395 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3396 else
3397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3398 for as_dir in $PATH
3400 IFS=$as_save_IFS
3401 test -z "$as_dir" && as_dir=.
3402 for ac_exec_ext in '' $ac_executable_extensions; do
3403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3404 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3406 break 2
3408 done
3409 done
3410 IFS=$as_save_IFS
3414 STRIP=$ac_cv_prog_STRIP
3415 if test -n "$STRIP"; then
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3417 $as_echo "$STRIP" >&6; }
3418 else
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3420 $as_echo "no" >&6; }
3425 if test -z "$ac_cv_prog_STRIP"; then
3426 ac_ct_STRIP=$STRIP
3427 # Extract the first word of "strip", so it can be a program name with args.
3428 set dummy strip; ac_word=$2
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3430 $as_echo_n "checking for $ac_word... " >&6; }
3431 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3432 $as_echo_n "(cached) " >&6
3433 else
3434 if test -n "$ac_ct_STRIP"; then
3435 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3436 else
3437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3438 for as_dir in $PATH
3440 IFS=$as_save_IFS
3441 test -z "$as_dir" && as_dir=.
3442 for ac_exec_ext in '' $ac_executable_extensions; do
3443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3444 ac_cv_prog_ac_ct_STRIP="strip"
3445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 break 2
3448 done
3449 done
3450 IFS=$as_save_IFS
3454 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3455 if test -n "$ac_ct_STRIP"; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3457 $as_echo "$ac_ct_STRIP" >&6; }
3458 else
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3460 $as_echo "no" >&6; }
3463 if test "x$ac_ct_STRIP" = x; then
3464 STRIP=":"
3465 else
3466 case $cross_compiling:$ac_tool_warned in
3467 yes:)
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3470 ac_tool_warned=yes ;;
3471 esac
3472 STRIP=$ac_ct_STRIP
3474 else
3475 STRIP="$ac_cv_prog_STRIP"
3479 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3482 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3483 if test -z "$MKDIR_P"; then
3484 if test "${ac_cv_path_mkdir+set}" = set; then :
3485 $as_echo_n "(cached) " >&6
3486 else
3487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3488 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3490 IFS=$as_save_IFS
3491 test -z "$as_dir" && as_dir=.
3492 for ac_prog in mkdir gmkdir; do
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3495 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3496 'mkdir (GNU coreutils) '* | \
3497 'mkdir (coreutils) '* | \
3498 'mkdir (fileutils) '4.1*)
3499 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3500 break 3;;
3501 esac
3502 done
3503 done
3504 done
3505 IFS=$as_save_IFS
3509 if test "${ac_cv_path_mkdir+set}" = set; then
3510 MKDIR_P="$ac_cv_path_mkdir -p"
3511 else
3512 # As a last resort, use the slow shell script. Don't cache a
3513 # value for MKDIR_P within a source directory, because that will
3514 # break other packages using the cache if that directory is
3515 # removed, or if the value is a relative name.
3516 test -d ./--version && rmdir ./--version
3517 MKDIR_P="$ac_install_sh -d"
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3521 $as_echo "$MKDIR_P" >&6; }
3523 mkdir_p="$MKDIR_P"
3524 case $mkdir_p in
3525 [\\/$]* | ?:[\\/]*) ;;
3526 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3527 esac
3529 for ac_prog in gawk mawk nawk awk
3531 # Extract the first word of "$ac_prog", so it can be a program name with args.
3532 set dummy $ac_prog; ac_word=$2
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3534 $as_echo_n "checking for $ac_word... " >&6; }
3535 if test "${ac_cv_prog_AWK+set}" = set; then :
3536 $as_echo_n "(cached) " >&6
3537 else
3538 if test -n "$AWK"; then
3539 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548 ac_cv_prog_AWK="$ac_prog"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3552 done
3553 done
3554 IFS=$as_save_IFS
3558 AWK=$ac_cv_prog_AWK
3559 if test -n "$AWK"; then
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3561 $as_echo "$AWK" >&6; }
3562 else
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3568 test -n "$AWK" && break
3569 done
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3572 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3573 set x ${MAKE-make}
3574 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3575 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3576 $as_echo_n "(cached) " >&6
3577 else
3578 cat >conftest.make <<\_ACEOF
3579 SHELL = /bin/sh
3580 all:
3581 @echo '@@@%%%=$(MAKE)=@@@%%%'
3582 _ACEOF
3583 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3584 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3585 *@@@%%%=?*=@@@%%%*)
3586 eval ac_cv_prog_make_${ac_make}_set=yes;;
3588 eval ac_cv_prog_make_${ac_make}_set=no;;
3589 esac
3590 rm -f conftest.make
3592 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3594 $as_echo "yes" >&6; }
3595 SET_MAKE=
3596 else
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3598 $as_echo "no" >&6; }
3599 SET_MAKE="MAKE=${MAKE-make}"
3602 rm -rf .tst 2>/dev/null
3603 mkdir .tst 2>/dev/null
3604 if test -d .tst; then
3605 am__leading_dot=.
3606 else
3607 am__leading_dot=_
3609 rmdir .tst 2>/dev/null
3611 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3612 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3613 # is not polluted with repeated "-I."
3614 am__isrc=' -I$(srcdir)'
3615 # test to see if srcdir already configured
3616 if test -f $srcdir/config.status; then
3617 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3621 # test whether we have cygpath
3622 if test -z "$CYGPATH_W"; then
3623 if (cygpath --version) >/dev/null 2>/dev/null; then
3624 CYGPATH_W='cygpath -w'
3625 else
3626 CYGPATH_W=echo
3631 # Define the identity of the package.
3632 PACKAGE='classpath'
3633 VERSION='0.99.1-pre'
3636 cat >>confdefs.h <<_ACEOF
3637 #define PACKAGE "$PACKAGE"
3638 _ACEOF
3641 cat >>confdefs.h <<_ACEOF
3642 #define VERSION "$VERSION"
3643 _ACEOF
3645 # Some tools Automake needs.
3647 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3650 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3653 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3656 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3659 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3661 # We need awk for the "check" target. The system "awk" is bad on
3662 # some platforms.
3663 # Always define AMTAR for backward compatibility. Yes, it's still used
3664 # in the wild :-( We should find a proper way to deprecate it ...
3665 AMTAR='$${TAR-tar}'
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3669 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3670 # Loop over all known methods to create a tar archive until one works.
3671 _am_tools='gnutar plaintar pax cpio none'
3672 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3673 # Do not fold the above two line into one, because Tru64 sh and
3674 # Solaris sh will not grok spaces in the rhs of `-'.
3675 for _am_tool in $_am_tools
3677 case $_am_tool in
3678 gnutar)
3679 for _am_tar in tar gnutar gtar;
3681 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3682 ($_am_tar --version) >&5 2>&5
3683 ac_status=$?
3684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685 (exit $ac_status); } && break
3686 done
3687 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3688 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3689 am__untar="$_am_tar -xf -"
3691 plaintar)
3692 # Must skip GNU tar: if it does not support --format= it doesn't create
3693 # ustar tarball either.
3694 (tar --version) >/dev/null 2>&1 && continue
3695 am__tar='tar chf - "$$tardir"'
3696 am__tar_='tar chf - "$tardir"'
3697 am__untar='tar xf -'
3699 pax)
3700 am__tar='pax -L -x ustar -w "$$tardir"'
3701 am__tar_='pax -L -x ustar -w "$tardir"'
3702 am__untar='pax -r'
3704 cpio)
3705 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3706 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3707 am__untar='cpio -i -H ustar -d'
3709 none)
3710 am__tar=false
3711 am__tar_=false
3712 am__untar=false
3714 esac
3716 # If the value was cached, stop now. We just wanted to have am__tar
3717 # and am__untar set.
3718 test -n "${am_cv_prog_tar_ustar}" && break
3720 # tar/untar a dummy directory, and stop if the command works
3721 rm -rf conftest.dir
3722 mkdir conftest.dir
3723 echo GrepMe > conftest.dir/file
3724 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3725 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3726 ac_status=$?
3727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728 (exit $ac_status); }
3729 rm -rf conftest.dir
3730 if test -s conftest.tar; then
3731 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3732 ($am__untar <conftest.tar) >&5 2>&5
3733 ac_status=$?
3734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735 (exit $ac_status); }
3736 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3738 done
3739 rm -rf conftest.dir
3741 if test "${am_cv_prog_tar_ustar+set}" = set; then :
3742 $as_echo_n "(cached) " >&6
3743 else
3744 am_cv_prog_tar_ustar=$_am_tool
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3748 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3754 ac_config_headers="$ac_config_headers include/config.h"
3760 # Check whether --enable-collections was given.
3761 if test "${enable_collections+set}" = set; then :
3762 enableval=$enable_collections; case x"${enableval}" in
3763 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
3764 xno) COMPILE_COLLECTIONS=no ;;
3765 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
3766 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
3767 esac
3768 else
3769 COMPILE_COLLECTIONS=no
3772 if test "x${COMPILE_COLLECTIONS}" = xyes; then
3773 CREATE_COLLECTIONS_TRUE=
3774 CREATE_COLLECTIONS_FALSE='#'
3775 else
3776 CREATE_COLLECTIONS_TRUE='#'
3777 CREATE_COLLECTIONS_FALSE=
3781 # Check whether --enable-jni was given.
3782 if test "${enable_jni+set}" = set; then :
3783 enableval=$enable_jni; case "${enableval}" in
3784 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
3785 no) COMPILE_JNI=no ;;
3786 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
3787 esac
3788 else
3789 COMPILE_JNI=yes
3792 if test "x${COMPILE_JNI}" = xyes; then
3793 CREATE_JNI_LIBRARIES_TRUE=
3794 CREATE_JNI_LIBRARIES_FALSE='#'
3795 else
3796 CREATE_JNI_LIBRARIES_TRUE='#'
3797 CREATE_JNI_LIBRARIES_FALSE=
3801 # Check whether --enable-core-jni was given.
3802 if test "${enable_core_jni+set}" = set; then :
3803 enableval=$enable_core_jni; case "${enableval}" in
3804 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
3805 no) COMPILE_CORE_JNI=no ;;
3806 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
3807 esac
3808 else
3809 COMPILE_CORE_JNI=yes
3812 if test "x${COMPILE_CORE_JNI}" = xyes; then
3813 CREATE_CORE_JNI_LIBRARIES_TRUE=
3814 CREATE_CORE_JNI_LIBRARIES_FALSE='#'
3815 else
3816 CREATE_CORE_JNI_LIBRARIES_TRUE='#'
3817 CREATE_CORE_JNI_LIBRARIES_FALSE=
3821 # Check whether --enable-default-preferences-peer was given.
3822 if test "${enable_default_preferences_peer+set}" = set; then :
3823 enableval=$enable_default_preferences_peer; case "${enableval}" in
3824 file) DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory ;;
3825 gconf|yes|true) DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory ;;
3826 memory) DEFAULT_PREFS_PEER=gnu.java.util.prefs.MemoryBasedFactory ;;
3827 no|false) as_fn_error "bad value '${enableval}' for --enable-default-preferences-peer" "$LINENO" 5 ;;
3828 *) DEFAULT_PREFS_PEER=${enableval} ;;
3829 esac
3830 else
3831 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
3835 # Check whether --enable-gconf-peer was given.
3836 if test "${enable_gconf_peer+set}" = set; then :
3837 enableval=$enable_gconf_peer; case "${enableval}" in
3838 yes) COMPILE_GCONF_PEER=yes ;;
3839 no) COMPILE_GCONF_PEER=no ;;
3840 *) COMPILE_GCONF_PEER=yes ;;
3841 esac
3842 else
3843 COMPILE_GCONF_PEER=yes
3846 if test "x${COMPILE_GCONF_PEER}" = xyes; then
3847 CREATE_GCONF_PEER_LIBRARIES_TRUE=
3848 CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
3849 else
3850 CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
3851 CREATE_GCONF_PEER_LIBRARIES_FALSE=
3855 # Check whether --enable-gconf-peers was given.
3856 if test "${enable_gconf_peers+set}" = set; then :
3857 enableval=$enable_gconf_peers; as_fn_error "No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" "$LINENO" 5
3861 # Check whether --enable-gstreamer-peer was given.
3862 if test "${enable_gstreamer_peer+set}" = set; then :
3863 enableval=$enable_gstreamer_peer; case "${enableval}" in
3864 yes) COMPILE_GSTREAMER_PEER=yes ;;
3865 no) COMPILE_GSTREAMER_PEER=no ;;
3866 *) COMPILE_GSTREAMER_PEER=default ;;
3867 esac
3868 else
3869 COMPILE_GSTREAMER_PEER=default
3872 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
3873 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE=
3874 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE='#'
3875 else
3876 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE='#'
3877 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE=
3881 # Check whether --enable-gstreamer-peers was given.
3882 if test "${enable_gstreamer_peers+set}" = set; then :
3883 enableval=$enable_gstreamer_peers; as_fn_error "No --enable-gstreamer-peers (or --disable-gstreamer-peers) option; you want --enable-gstreamer-peer" "$LINENO" 5
3887 # Check whether --enable-Werror was given.
3888 if test "${enable_Werror+set}" = set; then :
3889 enableval=$enable_Werror; case "${enableval}" in
3890 yes) ENABLE_WERROR=yes ;;
3891 no) ENABLE_WERROR=no ;;
3892 *) ENABLE_WERROR=no ;;
3893 esac
3894 else
3895 ENABLE_WERROR=no
3899 # Check whether --enable-default-toolkit was given.
3900 if test "${enable_default_toolkit+set}" = set; then :
3901 enableval=$enable_default_toolkit;
3904 default_toolkit=$enable_default_toolkit
3905 if test "$default_toolkit" = ""; then
3906 default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
3910 # Check whether --enable-xmlj was given.
3911 if test "${enable_xmlj+set}" = set; then :
3912 enableval=$enable_xmlj; case "${enableval}" in
3913 yes) COMPILE_XMLJ=yes ;;
3914 no) COMPILE_XMLJ=no ;;
3915 *) COMPILE_XMLJ=no ;;
3916 esac
3917 else
3918 COMPILE_XMLJ=no
3921 if test "x${COMPILE_XMLJ}" = xyes; then
3922 CREATE_XMLJ_LIBRARY_TRUE=
3923 CREATE_XMLJ_LIBRARY_FALSE='#'
3924 else
3925 CREATE_XMLJ_LIBRARY_TRUE='#'
3926 CREATE_XMLJ_LIBRARY_FALSE=
3930 DEPDIR="${am__leading_dot}deps"
3932 ac_config_commands="$ac_config_commands depfiles"
3935 am_make=${MAKE-make}
3936 cat > confinc << 'END'
3937 am__doit:
3938 @echo this is the am__doit target
3939 .PHONY: am__doit
3941 # If we don't find an include directive, just comment out the code.
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3943 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3944 am__include="#"
3945 am__quote=
3946 _am_result=none
3947 # First try GNU make style include.
3948 echo "include confinc" > confmf
3949 # Ignore all kinds of additional output from `make'.
3950 case `$am_make -s -f confmf 2> /dev/null` in #(
3951 *the\ am__doit\ target*)
3952 am__include=include
3953 am__quote=
3954 _am_result=GNU
3956 esac
3957 # Now try BSD make style include.
3958 if test "$am__include" = "#"; then
3959 echo '.include "confinc"' > confmf
3960 case `$am_make -s -f confmf 2> /dev/null` in #(
3961 *the\ am__doit\ target*)
3962 am__include=.include
3963 am__quote="\""
3964 _am_result=BSD
3966 esac
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3971 $as_echo "$_am_result" >&6; }
3972 rm -f confinc confmf
3974 # Check whether --enable-dependency-tracking was given.
3975 if test "${enable_dependency_tracking+set}" = set; then :
3976 enableval=$enable_dependency_tracking;
3979 if test "x$enable_dependency_tracking" != xno; then
3980 am_depcomp="$ac_aux_dir/depcomp"
3981 AMDEPBACKSLASH='\'
3982 am__nodep='_no'
3984 if test "x$enable_dependency_tracking" != xno; then
3985 AMDEP_TRUE=
3986 AMDEP_FALSE='#'
3987 else
3988 AMDEP_TRUE='#'
3989 AMDEP_FALSE=
3993 ac_ext=c
3994 ac_cpp='$CPP $CPPFLAGS'
3995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3998 if test -n "$ac_tool_prefix"; then
3999 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4000 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4002 $as_echo_n "checking for $ac_word... " >&6; }
4003 if test "${ac_cv_prog_CC+set}" = set; then :
4004 $as_echo_n "(cached) " >&6
4005 else
4006 if test -n "$CC"; then
4007 ac_cv_prog_CC="$CC" # Let the user override the test.
4008 else
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4016 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4018 break 2
4020 done
4021 done
4022 IFS=$as_save_IFS
4026 CC=$ac_cv_prog_CC
4027 if test -n "$CC"; then
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4029 $as_echo "$CC" >&6; }
4030 else
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4032 $as_echo "no" >&6; }
4037 if test -z "$ac_cv_prog_CC"; then
4038 ac_ct_CC=$CC
4039 # Extract the first word of "gcc", so it can be a program name with args.
4040 set dummy gcc; ac_word=$2
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4042 $as_echo_n "checking for $ac_word... " >&6; }
4043 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 if test -n "$ac_ct_CC"; then
4047 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4048 else
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH
4052 IFS=$as_save_IFS
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4056 ac_cv_prog_ac_ct_CC="gcc"
4057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4058 break 2
4060 done
4061 done
4062 IFS=$as_save_IFS
4066 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4067 if test -n "$ac_ct_CC"; then
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4069 $as_echo "$ac_ct_CC" >&6; }
4070 else
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4072 $as_echo "no" >&6; }
4075 if test "x$ac_ct_CC" = x; then
4076 CC=""
4077 else
4078 case $cross_compiling:$ac_tool_warned in
4079 yes:)
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4082 ac_tool_warned=yes ;;
4083 esac
4084 CC=$ac_ct_CC
4086 else
4087 CC="$ac_cv_prog_CC"
4090 if test -z "$CC"; then
4091 if test -n "$ac_tool_prefix"; then
4092 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4093 set dummy ${ac_tool_prefix}cc; ac_word=$2
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4095 $as_echo_n "checking for $ac_word... " >&6; }
4096 if test "${ac_cv_prog_CC+set}" = set; then :
4097 $as_echo_n "(cached) " >&6
4098 else
4099 if test -n "$CC"; then
4100 ac_cv_prog_CC="$CC" # Let the user override the test.
4101 else
4102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103 for as_dir in $PATH
4105 IFS=$as_save_IFS
4106 test -z "$as_dir" && as_dir=.
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4109 ac_cv_prog_CC="${ac_tool_prefix}cc"
4110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4111 break 2
4113 done
4114 done
4115 IFS=$as_save_IFS
4119 CC=$ac_cv_prog_CC
4120 if test -n "$CC"; then
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4122 $as_echo "$CC" >&6; }
4123 else
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125 $as_echo "no" >&6; }
4131 if test -z "$CC"; then
4132 # Extract the first word of "cc", so it can be a program name with args.
4133 set dummy cc; ac_word=$2
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4135 $as_echo_n "checking for $ac_word... " >&6; }
4136 if test "${ac_cv_prog_CC+set}" = set; then :
4137 $as_echo_n "(cached) " >&6
4138 else
4139 if test -n "$CC"; then
4140 ac_cv_prog_CC="$CC" # Let the user override the test.
4141 else
4142 ac_prog_rejected=no
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 for as_dir in $PATH
4146 IFS=$as_save_IFS
4147 test -z "$as_dir" && as_dir=.
4148 for ac_exec_ext in '' $ac_executable_extensions; do
4149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4150 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4151 ac_prog_rejected=yes
4152 continue
4154 ac_cv_prog_CC="cc"
4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 break 2
4158 done
4159 done
4160 IFS=$as_save_IFS
4162 if test $ac_prog_rejected = yes; then
4163 # We found a bogon in the path, so make sure we never use it.
4164 set dummy $ac_cv_prog_CC
4165 shift
4166 if test $# != 0; then
4167 # We chose a different compiler from the bogus one.
4168 # However, it has the same basename, so the bogon will be chosen
4169 # first if we set CC to just the basename; use the full file name.
4170 shift
4171 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4176 CC=$ac_cv_prog_CC
4177 if test -n "$CC"; then
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4179 $as_echo "$CC" >&6; }
4180 else
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4182 $as_echo "no" >&6; }
4187 if test -z "$CC"; then
4188 if test -n "$ac_tool_prefix"; then
4189 for ac_prog in cl.exe
4191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4194 $as_echo_n "checking for $ac_word... " >&6; }
4195 if test "${ac_cv_prog_CC+set}" = set; then :
4196 $as_echo_n "(cached) " >&6
4197 else
4198 if test -n "$CC"; then
4199 ac_cv_prog_CC="$CC" # Let the user override the test.
4200 else
4201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202 for as_dir in $PATH
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
4206 for ac_exec_ext in '' $ac_executable_extensions; do
4207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4208 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 break 2
4212 done
4213 done
4214 IFS=$as_save_IFS
4218 CC=$ac_cv_prog_CC
4219 if test -n "$CC"; then
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4221 $as_echo "$CC" >&6; }
4222 else
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4224 $as_echo "no" >&6; }
4228 test -n "$CC" && break
4229 done
4231 if test -z "$CC"; then
4232 ac_ct_CC=$CC
4233 for ac_prog in cl.exe
4235 # Extract the first word of "$ac_prog", so it can be a program name with args.
4236 set dummy $ac_prog; ac_word=$2
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4238 $as_echo_n "checking for $ac_word... " >&6; }
4239 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 if test -n "$ac_ct_CC"; then
4243 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4244 else
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246 for as_dir in $PATH
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4252 ac_cv_prog_ac_ct_CC="$ac_prog"
4253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 break 2
4256 done
4257 done
4258 IFS=$as_save_IFS
4262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4263 if test -n "$ac_ct_CC"; then
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4265 $as_echo "$ac_ct_CC" >&6; }
4266 else
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 $as_echo "no" >&6; }
4272 test -n "$ac_ct_CC" && break
4273 done
4275 if test "x$ac_ct_CC" = x; then
4276 CC=""
4277 else
4278 case $cross_compiling:$ac_tool_warned in
4279 yes:)
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4282 ac_tool_warned=yes ;;
4283 esac
4284 CC=$ac_ct_CC
4291 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4293 as_fn_error "no acceptable C compiler found in \$PATH
4294 See \`config.log' for more details." "$LINENO" 5; }
4296 # Provide some information about the compiler.
4297 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4298 set X $ac_compile
4299 ac_compiler=$2
4300 for ac_option in --version -v -V -qversion; do
4301 { { ac_try="$ac_compiler $ac_option >&5"
4302 case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305 esac
4306 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4307 $as_echo "$ac_try_echo"; } >&5
4308 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4309 ac_status=$?
4310 if test -s conftest.err; then
4311 sed '10a\
4312 ... rest of stderr output deleted ...
4313 10q' conftest.err >conftest.er1
4314 cat conftest.er1 >&5
4315 rm -f conftest.er1 conftest.err
4317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4318 test $ac_status = 0; }
4319 done
4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h. */
4325 main ()
4329 return 0;
4331 _ACEOF
4332 # FIXME: Cleanup?
4333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4334 (eval $ac_link) 2>&5
4335 ac_status=$?
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; }; then :
4338 gcc_no_link=no
4339 else
4340 gcc_no_link=yes
4342 if test x$gcc_no_link = xyes; then
4343 # Setting cross_compile will disable run tests; it will
4344 # also disable AC_CHECK_FILE but that's generally
4345 # correct if we can't link.
4346 cross_compiling=yes
4347 EXEEXT=
4348 else
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4353 main ()
4357 return 0;
4359 _ACEOF
4360 ac_clean_files_save=$ac_clean_files
4361 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4362 # Try to create an executable without -o first, disregard a.out.
4363 # It will help us diagnose broken compilers, and finding out an intuition
4364 # of exeext.
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4366 $as_echo_n "checking for C compiler default output file name... " >&6; }
4367 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4369 # The possible output files:
4370 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4372 ac_rmfiles=
4373 for ac_file in $ac_files
4375 case $ac_file in
4376 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4377 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4378 esac
4379 done
4380 rm -f $ac_rmfiles
4382 if { { ac_try="$ac_link_default"
4383 case "(($ac_try" in
4384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4385 *) ac_try_echo=$ac_try;;
4386 esac
4387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4388 $as_echo "$ac_try_echo"; } >&5
4389 (eval "$ac_link_default") 2>&5
4390 ac_status=$?
4391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4392 test $ac_status = 0; }; then :
4393 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4394 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4395 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4396 # so that the user can short-circuit this test for compilers unknown to
4397 # Autoconf.
4398 for ac_file in $ac_files ''
4400 test -f "$ac_file" || continue
4401 case $ac_file in
4402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4404 [ab].out )
4405 # We found the default executable, but exeext='' is most
4406 # certainly right.
4407 break;;
4408 *.* )
4409 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4410 then :; else
4411 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4413 # We set ac_cv_exeext here because the later test for it is not
4414 # safe: cross compilers may not add the suffix if given an `-o'
4415 # argument, so we may need to know it at that point already.
4416 # Even if this section looks crufty: it has the advantage of
4417 # actually working.
4418 break;;
4420 break;;
4421 esac
4422 done
4423 test "$ac_cv_exeext" = no && ac_cv_exeext=
4425 else
4426 ac_file=''
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4429 $as_echo "$ac_file" >&6; }
4430 if test -z "$ac_file"; then :
4431 $as_echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4434 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4435 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4436 { as_fn_set_status 77
4437 as_fn_error "C compiler cannot create executables
4438 See \`config.log' for more details." "$LINENO" 5; }; }
4440 ac_exeext=$ac_cv_exeext
4442 # Check that the compiler produces executables we can run. If not, either
4443 # the compiler is broken, or we cross compile.
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4445 $as_echo_n "checking whether the C compiler works... " >&6; }
4446 # If not cross compiling, check that we can run a simple program.
4447 if test "$cross_compiling" != yes; then
4448 if { ac_try='./$ac_file'
4449 { { case "(($ac_try" in
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4452 esac
4453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4454 $as_echo "$ac_try_echo"; } >&5
4455 (eval "$ac_try") 2>&5
4456 ac_status=$?
4457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4458 test $ac_status = 0; }; }; then
4459 cross_compiling=no
4460 else
4461 if test "$cross_compiling" = maybe; then
4462 cross_compiling=yes
4463 else
4464 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4465 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4466 as_fn_error "cannot run C compiled programs.
4467 If you meant to cross compile, use \`--host'.
4468 See \`config.log' for more details." "$LINENO" 5; }
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4473 $as_echo "yes" >&6; }
4475 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4476 ac_clean_files=$ac_clean_files_save
4477 # Check that the compiler produces executables we can run. If not, either
4478 # the compiler is broken, or we cross compile.
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4480 $as_echo_n "checking whether we are cross compiling... " >&6; }
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4482 $as_echo "$cross_compiling" >&6; }
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4485 $as_echo_n "checking for suffix of executables... " >&6; }
4486 if { { ac_try="$ac_link"
4487 case "(($ac_try" in
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4490 esac
4491 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4492 $as_echo "$ac_try_echo"; } >&5
4493 (eval "$ac_link") 2>&5
4494 ac_status=$?
4495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4496 test $ac_status = 0; }; then :
4497 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4498 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4499 # work properly (i.e., refer to `conftest.exe'), while it won't with
4500 # `rm'.
4501 for ac_file in conftest.exe conftest conftest.*; do
4502 test -f "$ac_file" || continue
4503 case $ac_file in
4504 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4505 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4506 break;;
4507 * ) break;;
4508 esac
4509 done
4510 else
4511 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4513 as_fn_error "cannot compute suffix of executables: cannot compile and link
4514 See \`config.log' for more details." "$LINENO" 5; }
4516 rm -f conftest$ac_cv_exeext
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4518 $as_echo "$ac_cv_exeext" >&6; }
4520 rm -f conftest.$ac_ext
4521 EXEEXT=$ac_cv_exeext
4522 ac_exeext=$EXEEXT
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4525 $as_echo_n "checking for suffix of object files... " >&6; }
4526 if test "${ac_cv_objext+set}" = set; then :
4527 $as_echo_n "(cached) " >&6
4528 else
4529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h. */
4533 main ()
4537 return 0;
4539 _ACEOF
4540 rm -f conftest.o conftest.obj
4541 if { { ac_try="$ac_compile"
4542 case "(($ac_try" in
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4545 esac
4546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4547 $as_echo "$ac_try_echo"; } >&5
4548 (eval "$ac_compile") 2>&5
4549 ac_status=$?
4550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4551 test $ac_status = 0; }; then :
4552 for ac_file in conftest.o conftest.obj conftest.*; do
4553 test -f "$ac_file" || continue;
4554 case $ac_file in
4555 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4556 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4557 break;;
4558 esac
4559 done
4560 else
4561 $as_echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.$ac_ext >&5
4564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4566 as_fn_error "cannot compute suffix of object files: cannot compile
4567 See \`config.log' for more details." "$LINENO" 5; }
4569 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4572 $as_echo "$ac_cv_objext" >&6; }
4573 OBJEXT=$ac_cv_objext
4574 ac_objext=$OBJEXT
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4576 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4577 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4584 main ()
4586 #ifndef __GNUC__
4587 choke me
4588 #endif
4591 return 0;
4593 _ACEOF
4594 if ac_fn_c_try_compile "$LINENO"; then :
4595 ac_compiler_gnu=yes
4596 else
4597 ac_compiler_gnu=no
4599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4600 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4604 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4605 if test $ac_compiler_gnu = yes; then
4606 GCC=yes
4607 else
4608 GCC=
4610 ac_test_CFLAGS=${CFLAGS+set}
4611 ac_save_CFLAGS=$CFLAGS
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4613 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4614 if test "${ac_cv_prog_cc_g+set}" = set; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 ac_save_c_werror_flag=$ac_c_werror_flag
4618 ac_c_werror_flag=yes
4619 ac_cv_prog_cc_g=no
4620 CFLAGS="-g"
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4622 /* end confdefs.h. */
4625 main ()
4629 return 0;
4631 _ACEOF
4632 if ac_fn_c_try_compile "$LINENO"; then :
4633 ac_cv_prog_cc_g=yes
4634 else
4635 CFLAGS=""
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637 /* end confdefs.h. */
4640 main ()
4644 return 0;
4646 _ACEOF
4647 if ac_fn_c_try_compile "$LINENO"; then :
4649 else
4650 ac_c_werror_flag=$ac_save_c_werror_flag
4651 CFLAGS="-g"
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4656 main ()
4660 return 0;
4662 _ACEOF
4663 if ac_fn_c_try_compile "$LINENO"; then :
4664 ac_cv_prog_cc_g=yes
4666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 ac_c_werror_flag=$ac_save_c_werror_flag
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4674 $as_echo "$ac_cv_prog_cc_g" >&6; }
4675 if test "$ac_test_CFLAGS" = set; then
4676 CFLAGS=$ac_save_CFLAGS
4677 elif test $ac_cv_prog_cc_g = yes; then
4678 if test "$GCC" = yes; then
4679 CFLAGS="-g -O2"
4680 else
4681 CFLAGS="-g"
4683 else
4684 if test "$GCC" = yes; then
4685 CFLAGS="-O2"
4686 else
4687 CFLAGS=
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4691 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4692 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 ac_cv_prog_cc_c89=no
4696 ac_save_CC=$CC
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699 #include <stdarg.h>
4700 #include <stdio.h>
4701 #include <sys/types.h>
4702 #include <sys/stat.h>
4703 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4704 struct buf { int x; };
4705 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4706 static char *e (p, i)
4707 char **p;
4708 int i;
4710 return p[i];
4712 static char *f (char * (*g) (char **, int), char **p, ...)
4714 char *s;
4715 va_list v;
4716 va_start (v,p);
4717 s = g (p, va_arg (v,int));
4718 va_end (v);
4719 return s;
4722 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4723 function prototypes and stuff, but not '\xHH' hex character constants.
4724 These don't provoke an error unfortunately, instead are silently treated
4725 as 'x'. The following induces an error, until -std is added to get
4726 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4727 array size at least. It's necessary to write '\x00'==0 to get something
4728 that's true only with -std. */
4729 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4731 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4732 inside strings and character constants. */
4733 #define FOO(x) 'x'
4734 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4736 int test (int i, double x);
4737 struct s1 {int (*f) (int a);};
4738 struct s2 {int (*f) (double a);};
4739 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4740 int argc;
4741 char **argv;
4743 main ()
4745 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4747 return 0;
4749 _ACEOF
4750 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4751 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4753 CC="$ac_save_CC $ac_arg"
4754 if ac_fn_c_try_compile "$LINENO"; then :
4755 ac_cv_prog_cc_c89=$ac_arg
4757 rm -f core conftest.err conftest.$ac_objext
4758 test "x$ac_cv_prog_cc_c89" != "xno" && break
4759 done
4760 rm -f conftest.$ac_ext
4761 CC=$ac_save_CC
4764 # AC_CACHE_VAL
4765 case "x$ac_cv_prog_cc_c89" in
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4768 $as_echo "none needed" >&6; } ;;
4769 xno)
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4771 $as_echo "unsupported" >&6; } ;;
4773 CC="$CC $ac_cv_prog_cc_c89"
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4775 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4776 esac
4777 if test "x$ac_cv_prog_cc_c89" != xno; then :
4781 ac_ext=c
4782 ac_cpp='$CPP $CPPFLAGS'
4783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4787 depcc="$CC" am_compiler_list=
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4790 $as_echo_n "checking dependency style of $depcc... " >&6; }
4791 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4792 $as_echo_n "(cached) " >&6
4793 else
4794 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4795 # We make a subdir and do the tests there. Otherwise we can end up
4796 # making bogus files that we don't know about and never remove. For
4797 # instance it was reported that on HP-UX the gcc test will end up
4798 # making a dummy file named `D' -- because `-MD' means `put the output
4799 # in D'.
4800 rm -rf conftest.dir
4801 mkdir conftest.dir
4802 # Copy depcomp to subdir because otherwise we won't find it if we're
4803 # using a relative directory.
4804 cp "$am_depcomp" conftest.dir
4805 cd conftest.dir
4806 # We will build objects and dependencies in a subdirectory because
4807 # it helps to detect inapplicable dependency modes. For instance
4808 # both Tru64's cc and ICC support -MD to output dependencies as a
4809 # side effect of compilation, but ICC will put the dependencies in
4810 # the current directory while Tru64 will put them in the object
4811 # directory.
4812 mkdir sub
4814 am_cv_CC_dependencies_compiler_type=none
4815 if test "$am_compiler_list" = ""; then
4816 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4818 am__universal=false
4819 case " $depcc " in #(
4820 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4821 esac
4823 for depmode in $am_compiler_list; do
4824 # Setup a source with many dependencies, because some compilers
4825 # like to wrap large dependency lists on column 80 (with \), and
4826 # we should not choose a depcomp mode which is confused by this.
4828 # We need to recreate these files for each test, as the compiler may
4829 # overwrite some of them when testing with obscure command lines.
4830 # This happens at least with the AIX C compiler.
4831 : > sub/conftest.c
4832 for i in 1 2 3 4 5 6; do
4833 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4834 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4835 # Solaris 8's {/usr,}/bin/sh.
4836 touch sub/conftst$i.h
4837 done
4838 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4840 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4841 # mode. It turns out that the SunPro C++ compiler does not properly
4842 # handle `-M -o', and we need to detect this. Also, some Intel
4843 # versions had trouble with output in subdirs
4844 am__obj=sub/conftest.${OBJEXT-o}
4845 am__minus_obj="-o $am__obj"
4846 case $depmode in
4847 gcc)
4848 # This depmode causes a compiler race in universal mode.
4849 test "$am__universal" = false || continue
4851 nosideeffect)
4852 # after this tag, mechanisms are not by side-effect, so they'll
4853 # only be used when explicitly requested
4854 if test "x$enable_dependency_tracking" = xyes; then
4855 continue
4856 else
4857 break
4860 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4861 # This compiler won't grok `-c -o', but also, the minuso test has
4862 # not run yet. These depmodes are late enough in the game, and
4863 # so weak that their functioning should not be impacted.
4864 am__obj=conftest.${OBJEXT-o}
4865 am__minus_obj=
4867 none) break ;;
4868 esac
4869 if depmode=$depmode \
4870 source=sub/conftest.c object=$am__obj \
4871 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4872 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4873 >/dev/null 2>conftest.err &&
4874 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4875 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4876 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4877 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4878 # icc doesn't choke on unknown options, it will just issue warnings
4879 # or remarks (even with -Werror). So we grep stderr for any message
4880 # that says an option was ignored or not supported.
4881 # When given -MP, icc 7.0 and 7.1 complain thusly:
4882 # icc: Command line warning: ignoring option '-M'; no argument required
4883 # The diagnosis changed in icc 8.0:
4884 # icc: Command line remark: option '-MP' not supported
4885 if (grep 'ignoring option' conftest.err ||
4886 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4887 am_cv_CC_dependencies_compiler_type=$depmode
4888 break
4891 done
4893 cd ..
4894 rm -rf conftest.dir
4895 else
4896 am_cv_CC_dependencies_compiler_type=none
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4901 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4902 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4905 test "x$enable_dependency_tracking" != xno \
4906 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4907 am__fastdepCC_TRUE=
4908 am__fastdepCC_FALSE='#'
4909 else
4910 am__fastdepCC_TRUE='#'
4911 am__fastdepCC_FALSE=
4916 ac_ext=c
4917 ac_cpp='$CPP $CPPFLAGS'
4918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4922 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4923 # On Suns, sometimes $CPP names a directory.
4924 if test -n "$CPP" && test -d "$CPP"; then
4925 CPP=
4927 if test -z "$CPP"; then
4928 if test "${ac_cv_prog_CPP+set}" = set; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 # Double quotes because CPP needs to be expanded
4932 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4934 ac_preproc_ok=false
4935 for ac_c_preproc_warn_flag in '' yes
4937 # Use a header file that comes with gcc, so configuring glibc
4938 # with a fresh cross-compiler works.
4939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4940 # <limits.h> exists even on freestanding compilers.
4941 # On the NeXT, cc -E runs the code through the compiler's parser,
4942 # not just through cpp. "Syntax error" is here to catch this case.
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945 #ifdef __STDC__
4946 # include <limits.h>
4947 #else
4948 # include <assert.h>
4949 #endif
4950 Syntax error
4951 _ACEOF
4952 if ac_fn_c_try_cpp "$LINENO"; then :
4954 else
4955 # Broken: fails on valid input.
4956 continue
4958 rm -f conftest.err conftest.$ac_ext
4960 # OK, works on sane cases. Now check whether nonexistent headers
4961 # can be detected and how.
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4964 #include <ac_nonexistent.h>
4965 _ACEOF
4966 if ac_fn_c_try_cpp "$LINENO"; then :
4967 # Broken: success on invalid input.
4968 continue
4969 else
4970 # Passes both tests.
4971 ac_preproc_ok=:
4972 break
4974 rm -f conftest.err conftest.$ac_ext
4976 done
4977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4978 rm -f conftest.err conftest.$ac_ext
4979 if $ac_preproc_ok; then :
4980 break
4983 done
4984 ac_cv_prog_CPP=$CPP
4987 CPP=$ac_cv_prog_CPP
4988 else
4989 ac_cv_prog_CPP=$CPP
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4992 $as_echo "$CPP" >&6; }
4993 ac_preproc_ok=false
4994 for ac_c_preproc_warn_flag in '' yes
4996 # Use a header file that comes with gcc, so configuring glibc
4997 # with a fresh cross-compiler works.
4998 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4999 # <limits.h> exists even on freestanding compilers.
5000 # On the NeXT, cc -E runs the code through the compiler's parser,
5001 # not just through cpp. "Syntax error" is here to catch this case.
5002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004 #ifdef __STDC__
5005 # include <limits.h>
5006 #else
5007 # include <assert.h>
5008 #endif
5009 Syntax error
5010 _ACEOF
5011 if ac_fn_c_try_cpp "$LINENO"; then :
5013 else
5014 # Broken: fails on valid input.
5015 continue
5017 rm -f conftest.err conftest.$ac_ext
5019 # OK, works on sane cases. Now check whether nonexistent headers
5020 # can be detected and how.
5021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5022 /* end confdefs.h. */
5023 #include <ac_nonexistent.h>
5024 _ACEOF
5025 if ac_fn_c_try_cpp "$LINENO"; then :
5026 # Broken: success on invalid input.
5027 continue
5028 else
5029 # Passes both tests.
5030 ac_preproc_ok=:
5031 break
5033 rm -f conftest.err conftest.$ac_ext
5035 done
5036 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5037 rm -f conftest.err conftest.$ac_ext
5038 if $ac_preproc_ok; then :
5040 else
5041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5043 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5044 See \`config.log' for more details." "$LINENO" 5; }
5047 ac_ext=c
5048 ac_cpp='$CPP $CPPFLAGS'
5049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5055 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5056 if test "${ac_cv_path_GREP+set}" = set; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 if test -z "$GREP"; then
5060 ac_path_GREP_found=false
5061 # Loop through the user's path and test for each of PROGNAME-LIST
5062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5063 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5065 IFS=$as_save_IFS
5066 test -z "$as_dir" && as_dir=.
5067 for ac_prog in grep ggrep; do
5068 for ac_exec_ext in '' $ac_executable_extensions; do
5069 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5070 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5071 # Check for GNU ac_path_GREP and select it if it is found.
5072 # Check for GNU $ac_path_GREP
5073 case `"$ac_path_GREP" --version 2>&1` in
5074 *GNU*)
5075 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5077 ac_count=0
5078 $as_echo_n 0123456789 >"conftest.in"
5079 while :
5081 cat "conftest.in" "conftest.in" >"conftest.tmp"
5082 mv "conftest.tmp" "conftest.in"
5083 cp "conftest.in" "conftest.nl"
5084 $as_echo 'GREP' >> "conftest.nl"
5085 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5086 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5087 as_fn_arith $ac_count + 1 && ac_count=$as_val
5088 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5089 # Best one so far, save it but keep looking for a better one
5090 ac_cv_path_GREP="$ac_path_GREP"
5091 ac_path_GREP_max=$ac_count
5093 # 10*(2^10) chars as input seems more than enough
5094 test $ac_count -gt 10 && break
5095 done
5096 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5097 esac
5099 $ac_path_GREP_found && break 3
5100 done
5101 done
5102 done
5103 IFS=$as_save_IFS
5104 if test -z "$ac_cv_path_GREP"; then
5105 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5107 else
5108 ac_cv_path_GREP=$GREP
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5113 $as_echo "$ac_cv_path_GREP" >&6; }
5114 GREP="$ac_cv_path_GREP"
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5118 $as_echo_n "checking for egrep... " >&6; }
5119 if test "${ac_cv_path_EGREP+set}" = set; then :
5120 $as_echo_n "(cached) " >&6
5121 else
5122 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5123 then ac_cv_path_EGREP="$GREP -E"
5124 else
5125 if test -z "$EGREP"; then
5126 ac_path_EGREP_found=false
5127 # Loop through the user's path and test for each of PROGNAME-LIST
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_prog in egrep; do
5134 for ac_exec_ext in '' $ac_executable_extensions; do
5135 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5136 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5137 # Check for GNU ac_path_EGREP and select it if it is found.
5138 # Check for GNU $ac_path_EGREP
5139 case `"$ac_path_EGREP" --version 2>&1` in
5140 *GNU*)
5141 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5143 ac_count=0
5144 $as_echo_n 0123456789 >"conftest.in"
5145 while :
5147 cat "conftest.in" "conftest.in" >"conftest.tmp"
5148 mv "conftest.tmp" "conftest.in"
5149 cp "conftest.in" "conftest.nl"
5150 $as_echo 'EGREP' >> "conftest.nl"
5151 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5153 as_fn_arith $ac_count + 1 && ac_count=$as_val
5154 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5155 # Best one so far, save it but keep looking for a better one
5156 ac_cv_path_EGREP="$ac_path_EGREP"
5157 ac_path_EGREP_max=$ac_count
5159 # 10*(2^10) chars as input seems more than enough
5160 test $ac_count -gt 10 && break
5161 done
5162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5163 esac
5165 $ac_path_EGREP_found && break 3
5166 done
5167 done
5168 done
5169 IFS=$as_save_IFS
5170 if test -z "$ac_cv_path_EGREP"; then
5171 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5173 else
5174 ac_cv_path_EGREP=$EGREP
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5180 $as_echo "$ac_cv_path_EGREP" >&6; }
5181 EGREP="$ac_cv_path_EGREP"
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5185 $as_echo_n "checking for ANSI C header files... " >&6; }
5186 if test "${ac_cv_header_stdc+set}" = set; then :
5187 $as_echo_n "(cached) " >&6
5188 else
5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h. */
5191 #include <stdlib.h>
5192 #include <stdarg.h>
5193 #include <string.h>
5194 #include <float.h>
5197 main ()
5201 return 0;
5203 _ACEOF
5204 if ac_fn_c_try_compile "$LINENO"; then :
5205 ac_cv_header_stdc=yes
5206 else
5207 ac_cv_header_stdc=no
5209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5211 if test $ac_cv_header_stdc = yes; then
5212 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215 #include <string.h>
5217 _ACEOF
5218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5219 $EGREP "memchr" >/dev/null 2>&1; then :
5221 else
5222 ac_cv_header_stdc=no
5224 rm -f conftest*
5228 if test $ac_cv_header_stdc = yes; then
5229 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5231 /* end confdefs.h. */
5232 #include <stdlib.h>
5234 _ACEOF
5235 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5236 $EGREP "free" >/dev/null 2>&1; then :
5238 else
5239 ac_cv_header_stdc=no
5241 rm -f conftest*
5245 if test $ac_cv_header_stdc = yes; then
5246 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5247 if test "$cross_compiling" = yes; then :
5249 else
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5252 #include <ctype.h>
5253 #include <stdlib.h>
5254 #if ((' ' & 0x0FF) == 0x020)
5255 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5256 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5257 #else
5258 # define ISLOWER(c) \
5259 (('a' <= (c) && (c) <= 'i') \
5260 || ('j' <= (c) && (c) <= 'r') \
5261 || ('s' <= (c) && (c) <= 'z'))
5262 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5263 #endif
5265 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5267 main ()
5269 int i;
5270 for (i = 0; i < 256; i++)
5271 if (XOR (islower (i), ISLOWER (i))
5272 || toupper (i) != TOUPPER (i))
5273 return 2;
5274 return 0;
5276 _ACEOF
5277 if ac_fn_c_try_run "$LINENO"; then :
5279 else
5280 ac_cv_header_stdc=no
5282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5283 conftest.$ac_objext conftest.beam conftest.$ac_ext
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5289 $as_echo "$ac_cv_header_stdc" >&6; }
5290 if test $ac_cv_header_stdc = yes; then
5292 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5296 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5297 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5298 inttypes.h stdint.h unistd.h
5299 do :
5300 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5301 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5303 eval as_val=\$$as_ac_Header
5304 if test "x$as_val" = x""yes; then :
5305 cat >>confdefs.h <<_ACEOF
5306 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5307 _ACEOF
5311 done
5314 # Check whether --enable-alsa was given.
5315 if test "${enable_alsa+set}" = set; then :
5316 enableval=$enable_alsa; case "${enableval}" in
5317 yes) COMPILE_ALSA=yes ;;
5318 no) COMPILE_ALSA=no ;;
5319 *) COMPILE_ALSA=yes ;;
5320 esac
5321 else
5322 for ac_header in alsa/asoundlib.h
5323 do :
5324 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
5325 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
5326 cat >>confdefs.h <<_ACEOF
5327 #define HAVE_ALSA_ASOUNDLIB_H 1
5328 _ACEOF
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_seq_open in -lasound" >&5
5330 $as_echo_n "checking for snd_seq_open in -lasound... " >&6; }
5331 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 ac_check_lib_save_LIBS=$LIBS
5335 LIBS="-lasound $LIBS"
5336 if test x$gcc_no_link = xyes; then
5337 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5342 /* Override any GCC internal prototype to avoid an error.
5343 Use char because int might match the return type of a GCC
5344 builtin and then its argument prototype would still apply. */
5345 #ifdef __cplusplus
5346 extern "C"
5347 #endif
5348 char snd_seq_open ();
5350 main ()
5352 return snd_seq_open ();
5354 return 0;
5356 _ACEOF
5357 if ac_fn_c_try_link "$LINENO"; then :
5358 ac_cv_lib_asound_snd_seq_open=yes
5359 else
5360 ac_cv_lib_asound_snd_seq_open=no
5362 rm -f core conftest.err conftest.$ac_objext \
5363 conftest$ac_exeext conftest.$ac_ext
5364 LIBS=$ac_check_lib_save_LIBS
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_seq_open" >&5
5367 $as_echo "$ac_cv_lib_asound_snd_seq_open" >&6; }
5368 if test "x$ac_cv_lib_asound_snd_seq_open" = x""yes; then :
5369 COMPILE_ALSA=yes
5370 else
5371 COMPILE_ALSA=no
5374 else
5375 COMPILE_ALSA=no
5378 done
5382 if test "x${COMPILE_ALSA}" = xyes; then
5383 CREATE_ALSA_LIBRARIES_TRUE=
5384 CREATE_ALSA_LIBRARIES_FALSE='#'
5385 else
5386 CREATE_ALSA_LIBRARIES_TRUE='#'
5387 CREATE_ALSA_LIBRARIES_FALSE=
5391 # Check whether --enable-dssi was given.
5392 if test "${enable_dssi+set}" = set; then :
5393 enableval=$enable_dssi; case "${enableval}" in
5394 yes) COMPILE_DSSI=yes ;;
5395 no) COMPILE_DSSI=no ;;
5396 *) COMPILE_DSSI=yes ;;
5397 esac
5398 else
5399 COMPILE_DSSI=no
5400 for ac_header in dssi.h
5401 do :
5402 ac_fn_c_check_header_mongrel "$LINENO" "dssi.h" "ac_cv_header_dssi_h" "$ac_includes_default"
5403 if test "x$ac_cv_header_dssi_h" = x""yes; then :
5404 cat >>confdefs.h <<_ACEOF
5405 #define HAVE_DSSI_H 1
5406 _ACEOF
5408 for ac_header in jack/jack.h
5409 do :
5410 ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
5411 if test "x$ac_cv_header_jack_jack_h" = x""yes; then :
5412 cat >>confdefs.h <<_ACEOF
5413 #define HAVE_JACK_JACK_H 1
5414 _ACEOF
5415 COMPILE_DSSI=yes
5418 done
5422 done
5426 if test "x${COMPILE_DSSI}" = xyes; then
5427 CREATE_DSSI_LIBRARIES_TRUE=
5428 CREATE_DSSI_LIBRARIES_FALSE='#'
5429 else
5430 CREATE_DSSI_LIBRARIES_TRUE='#'
5431 CREATE_DSSI_LIBRARIES_FALSE=
5435 # Check whether --enable-gtk-peer was given.
5436 if test "${enable_gtk_peer+set}" = set; then :
5437 enableval=$enable_gtk_peer; case "${enableval}" in
5438 yes) COMPILE_GTK_PEER=yes ;;
5439 no) COMPILE_GTK_PEER=no ;;
5440 *) COMPILE_GTK_PEER=yes ;;
5441 esac
5442 else
5443 COMPILE_GTK_PEER=yes
5446 if test "x${COMPILE_GTK_PEER}" = xyes; then
5447 CREATE_GTK_PEER_LIBRARIES_TRUE=
5448 CREATE_GTK_PEER_LIBRARIES_FALSE='#'
5449 else
5450 CREATE_GTK_PEER_LIBRARIES_TRUE='#'
5451 CREATE_GTK_PEER_LIBRARIES_FALSE=
5455 # Check whether --enable-gtk-peers was given.
5456 if test "${enable_gtk_peers+set}" = set; then :
5457 enableval=$enable_gtk_peers; as_fn_error "No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" "$LINENO" 5
5461 # Check whether --enable-qt-peer was given.
5462 if test "${enable_qt_peer+set}" = set; then :
5463 enableval=$enable_qt_peer; case "${enableval}" in
5464 yes) COMPILE_QT_PEER=yes ;;
5465 no) COMPILE_QT_PEER=no ;;
5466 *) COMPILE_QT_PEER=yes ;;
5467 esac
5468 else
5469 COMPILE_QT_PEER=no
5472 if test "x${COMPILE_QT_PEER}" = xyes; then
5473 CREATE_QT_PEER_LIBRARIES_TRUE=
5474 CREATE_QT_PEER_LIBRARIES_FALSE='#'
5475 else
5476 CREATE_QT_PEER_LIBRARIES_TRUE='#'
5477 CREATE_QT_PEER_LIBRARIES_FALSE=
5481 # Check whether --enable-plugin was given.
5482 if test "${enable_plugin+set}" = set; then :
5483 enableval=$enable_plugin; case "${enableval}" in
5484 yes) COMPILE_PLUGIN=yes ;;
5485 no) COMPILE_PLUGIN=no ;;
5486 *) COMPILE_PLUGIN=yes ;;
5487 esac
5488 else
5489 COMPILE_PLUGIN=no
5492 if test "x${COMPILE_PLUGIN}" = xyes; then
5493 CREATE_PLUGIN_TRUE=
5494 CREATE_PLUGIN_FALSE='#'
5495 else
5496 CREATE_PLUGIN_TRUE='#'
5497 CREATE_PLUGIN_FALSE=
5501 # Check whether --enable-gmp was given.
5502 if test "${enable_gmp+set}" = set; then :
5503 enableval=$enable_gmp; case "${enableval}" in
5504 yes|true) COMPILE_GMP=yes ;;
5505 no|false) COMPILE_GMP=no ;;
5506 *) COMPILE_GMP=yes ;;
5507 esac
5508 else
5509 COMPILE_GMP=yes
5513 # Check whether --enable-gjdoc was given.
5514 if test "${enable_gjdoc+set}" = set; then :
5515 enableval=$enable_gjdoc; case "${enableval}" in
5516 yes) COMPILE_GJDOC=yes ;;
5517 no) COMPILE_GJDOC=no ;;
5518 *) COMPILE_GJDOC=yes ;;
5519 esac
5520 else
5521 COMPILE_GJDOC=yes
5524 if test "x${COMPILE_GJDOC}" = xyes; then
5525 CREATE_GJDOC_TRUE=
5526 CREATE_GJDOC_FALSE='#'
5527 else
5528 CREATE_GJDOC_TRUE='#'
5529 CREATE_GJDOC_FALSE=
5533 case ${host_alias} in
5534 "") host_noncanonical=${build_noncanonical} ;;
5535 *) host_noncanonical=${host_alias} ;;
5536 esac
5537 case ${target_alias} in
5538 "") target_noncanonical=${host_noncanonical} ;;
5539 *) target_noncanonical=${target_alias} ;;
5540 esac
5543 # Check whether --enable-version-specific-runtime-libs was given.
5544 if test "${enable_version_specific_runtime_libs+set}" = set; then :
5545 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
5546 yes) version_specific_libs=yes ;;
5547 no) version_specific_libs=no ;;
5548 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
5549 esac
5550 else
5551 version_specific_libs=no
5556 case ${version_specific_libs} in
5557 yes)
5558 # Need the gcc compiler version to know where to install libraries
5559 # and header files if --enable-version-specific-runtime-libs option
5560 # is selected.
5561 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
5562 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
5563 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5564 toolexeclibdir=$toolexecmainlibdir
5567 if test -n "$with_cross_host" &&
5568 test x"$with_cross_host" != x"no"; then
5569 # Install a library built with a cross compiler in tooldir, not libdir.
5570 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
5571 toolexecmainlibdir='$(toolexecdir)/lib'
5572 else
5573 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
5574 toolexecmainlibdir='$(libdir)'
5576 multi_os_directory=`$CC -print-multi-os-directory`
5577 case $multi_os_directory in
5578 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
5579 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
5580 esac
5582 esac
5589 # Check whether --with-native-libdir was given.
5590 if test "${with_native_libdir+set}" = set; then :
5591 withval=$with_native_libdir;
5592 nativeexeclibdir=${withval}
5594 else
5596 nativeexeclibdir='${toolexeclibdir}/gcj-'`cat ${srcdir}/../../gcc/BASE-VER`-`awk -F: '/^[^#].*:/ { print $1 }' ${srcdir}/../libtool-version`
5604 # Check whether --with-glibj-dir was given.
5605 if test "${with_glibj_dir+set}" = set; then :
5606 withval=$with_glibj_dir;
5607 glibjdir=${withval}
5609 else
5611 glibjdir='${datadir}/${PACKAGE}'
5619 # Check whether --with-antlr-jar was given.
5620 if test "${with_antlr_jar+set}" = set; then :
5621 withval=$with_antlr_jar;
5622 ANTLR_JAR=$withval
5624 else
5626 ANTLR_JAR="$ANTLR_JAR"
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the headers" >&5
5632 $as_echo_n "checking whether to regenerate the headers... " >&6; }
5633 # Check whether --enable-regen-headers was given.
5634 if test "${enable_regen_headers+set}" = set; then :
5635 enableval=$enable_regen_headers; case "${enableval}" in
5636 yes) REGENERATE_JNI_HEADERS=yes ;;
5637 no) REGENERATE_JNI_HEADERS=no ;;
5638 *) REGENERATE_JNI_HEADERS=yes ;;
5639 esac
5640 else
5641 if test -e ${srcdir}/include/java_lang_VMSystem.h; then
5642 REGENERATE_JNI_HEADERS=no ;
5643 else
5644 REGENERATE_JNI_HEADERS=yes ;
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_JNI_HEADERS}" >&5
5649 $as_echo "${REGENERATE_JNI_HEADERS}" >&6; }
5650 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
5651 CREATE_JNI_HEADERS_TRUE=
5652 CREATE_JNI_HEADERS_FALSE='#'
5653 else
5654 CREATE_JNI_HEADERS_TRUE='#'
5655 CREATE_JNI_HEADERS_FALSE=
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the GJDoc parser" >&5
5660 $as_echo_n "checking whether to regenerate the GJDoc parser... " >&6; }
5661 # Check whether --enable-regen-gjdoc-parser was given.
5662 if test "${enable_regen_gjdoc_parser+set}" = set; then :
5663 enableval=$enable_regen_gjdoc_parser; case "${enableval}" in
5664 yes) REGENERATE_GJDOC_PARSER=yes ;;
5665 no) REGENERATE_GJDOC_PARSER=no ;;
5666 *) REGENERATE_GJDOC_PARSER=yes ;;
5667 esac
5668 else
5669 if test -e ${srcdir}/tools/generated/gnu/classpath/tools/gjdoc/expr/JavaLexer.java; then
5670 REGENERATE_GJDOC_PARSER=no ;
5671 else
5672 REGENERATE_GJDOC_PARSER=yes ;
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_GJDOC_PARSER}" >&5
5677 $as_echo "${REGENERATE_GJDOC_PARSER}" >&6; }
5678 if test "x${REGENERATE_GJDOC_PARSER}" = xyes; then
5679 CREATE_GJDOC_PARSER_TRUE=
5680 CREATE_GJDOC_PARSER_FALSE='#'
5681 else
5682 CREATE_GJDOC_PARSER_TRUE='#'
5683 CREATE_GJDOC_PARSER_FALSE=
5687 # Check whether --enable-tool-wrappers was given.
5688 if test "${enable_tool_wrappers+set}" = set; then :
5689 enableval=$enable_tool_wrappers; case x"${enableval}" in
5690 xyes)
5691 COMPILE_WRAPPERS=yes;
5692 for ac_header in ltdl.h
5693 do :
5694 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
5695 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
5696 cat >>confdefs.h <<_ACEOF
5697 #define HAVE_LTDL_H 1
5698 _ACEOF
5700 else
5701 as_fn_error "cannot find ltdl.h" "$LINENO" 5
5704 done
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
5707 $as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
5708 if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 ac_check_lib_save_LIBS=$LIBS
5712 LIBS="-lltdl $LIBS"
5713 if test x$gcc_no_link = xyes; then
5714 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5717 /* end confdefs.h. */
5719 /* Override any GCC internal prototype to avoid an error.
5720 Use char because int might match the return type of a GCC
5721 builtin and then its argument prototype would still apply. */
5722 #ifdef __cplusplus
5723 extern "C"
5724 #endif
5725 char lt_dlopen ();
5727 main ()
5729 return lt_dlopen ();
5731 return 0;
5733 _ACEOF
5734 if ac_fn_c_try_link "$LINENO"; then :
5735 ac_cv_lib_ltdl_lt_dlopen=yes
5736 else
5737 ac_cv_lib_ltdl_lt_dlopen=no
5739 rm -f core conftest.err conftest.$ac_objext \
5740 conftest$ac_exeext conftest.$ac_ext
5741 LIBS=$ac_check_lib_save_LIBS
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
5744 $as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
5745 if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
5746 cat >>confdefs.h <<_ACEOF
5747 #define HAVE_LIBLTDL 1
5748 _ACEOF
5750 LIBS="-lltdl $LIBS"
5752 else
5753 as_fn_error "cannot find libltdl" "$LINENO" 5
5757 xno) COMPILE_WRAPPERS=no ;;
5758 x) COMPILE_WRAPPERS=yes ;;
5759 *) COMPILE_WRAPPERS=yes ;;
5760 esac
5761 else
5762 COMPILE_WRAPPERS=no
5765 if test "x${COMPILE_WRAPPERS}" = xyes; then
5766 CREATE_WRAPPERS_TRUE=
5767 CREATE_WRAPPERS_FALSE='#'
5768 else
5769 CREATE_WRAPPERS_TRUE='#'
5770 CREATE_WRAPPERS_FALSE=
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5775 $as_echo_n "checking whether ln -s works... " >&6; }
5776 LN_S=$as_ln_s
5777 if test "$LN_S" = "ln -s"; then
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5779 $as_echo "yes" >&6; }
5780 else
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5782 $as_echo "no, using $LN_S" >&6; }
5788 # Check whether --enable-static was given.
5789 if test "${enable_static+set}" = set; then :
5790 enableval=$enable_static; p=${PACKAGE-default}
5791 case $enableval in
5792 yes) enable_static=yes ;;
5793 no) enable_static=no ;;
5795 enable_static=no
5796 # Look at the argument we got. We use all the common list separators.
5797 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5798 for pkg in $enableval; do
5799 IFS="$lt_save_ifs"
5800 if test "X$pkg" = "X$p"; then
5801 enable_static=yes
5803 done
5804 IFS="$lt_save_ifs"
5806 esac
5807 else
5808 enable_static=no
5819 case `pwd` in
5820 *\ * | *\ *)
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5822 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5823 esac
5827 macro_version='2.2.7a'
5828 macro_revision='1.3134'
5842 ltmain="$ac_aux_dir/ltmain.sh"
5844 # Backslashify metacharacters that are still active within
5845 # double-quoted strings.
5846 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5848 # Same as above, but do not quote variable references.
5849 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5851 # Sed substitution to delay expansion of an escaped shell variable in a
5852 # double_quote_subst'ed string.
5853 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5855 # Sed substitution to delay expansion of an escaped single quote.
5856 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5858 # Sed substitution to avoid accidental globbing in evaled expressions
5859 no_glob_subst='s/\*/\\\*/g'
5861 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5862 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5863 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5866 $as_echo_n "checking how to print strings... " >&6; }
5867 # Test print first, because it will be a builtin if present.
5868 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5869 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5870 ECHO='print -r --'
5871 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5872 ECHO='printf %s\n'
5873 else
5874 # Use this function as a fallback that always works.
5875 func_fallback_echo ()
5877 eval 'cat <<_LTECHO_EOF
5879 _LTECHO_EOF'
5881 ECHO='func_fallback_echo'
5884 # func_echo_all arg...
5885 # Invoke $ECHO with all args, space-separated.
5886 func_echo_all ()
5888 $ECHO ""
5891 case "$ECHO" in
5892 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5893 $as_echo "printf" >&6; } ;;
5894 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5895 $as_echo "print -r" >&6; } ;;
5896 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5897 $as_echo "cat" >&6; } ;;
5898 esac
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5914 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5915 if test "${ac_cv_path_SED+set}" = set; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5919 for ac_i in 1 2 3 4 5 6 7; do
5920 ac_script="$ac_script$as_nl$ac_script"
5921 done
5922 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5923 { ac_script=; unset ac_script;}
5924 if test -z "$SED"; then
5925 ac_path_SED_found=false
5926 # Loop through the user's path and test for each of PROGNAME-LIST
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 for ac_prog in sed gsed; do
5933 for ac_exec_ext in '' $ac_executable_extensions; do
5934 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5935 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5936 # Check for GNU ac_path_SED and select it if it is found.
5937 # Check for GNU $ac_path_SED
5938 case `"$ac_path_SED" --version 2>&1` in
5939 *GNU*)
5940 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5942 ac_count=0
5943 $as_echo_n 0123456789 >"conftest.in"
5944 while :
5946 cat "conftest.in" "conftest.in" >"conftest.tmp"
5947 mv "conftest.tmp" "conftest.in"
5948 cp "conftest.in" "conftest.nl"
5949 $as_echo '' >> "conftest.nl"
5950 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5951 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5952 as_fn_arith $ac_count + 1 && ac_count=$as_val
5953 if test $ac_count -gt ${ac_path_SED_max-0}; then
5954 # Best one so far, save it but keep looking for a better one
5955 ac_cv_path_SED="$ac_path_SED"
5956 ac_path_SED_max=$ac_count
5958 # 10*(2^10) chars as input seems more than enough
5959 test $ac_count -gt 10 && break
5960 done
5961 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5962 esac
5964 $ac_path_SED_found && break 3
5965 done
5966 done
5967 done
5968 IFS=$as_save_IFS
5969 if test -z "$ac_cv_path_SED"; then
5970 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5972 else
5973 ac_cv_path_SED=$SED
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5978 $as_echo "$ac_cv_path_SED" >&6; }
5979 SED="$ac_cv_path_SED"
5980 rm -f conftest.sed
5982 test -z "$SED" && SED=sed
5983 Xsed="$SED -e 1s/^X//"
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5996 $as_echo_n "checking for fgrep... " >&6; }
5997 if test "${ac_cv_path_FGREP+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6001 then ac_cv_path_FGREP="$GREP -F"
6002 else
6003 if test -z "$FGREP"; then
6004 ac_path_FGREP_found=false
6005 # Loop through the user's path and test for each of PROGNAME-LIST
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6009 IFS=$as_save_IFS
6010 test -z "$as_dir" && as_dir=.
6011 for ac_prog in fgrep; do
6012 for ac_exec_ext in '' $ac_executable_extensions; do
6013 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6014 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6015 # Check for GNU ac_path_FGREP and select it if it is found.
6016 # Check for GNU $ac_path_FGREP
6017 case `"$ac_path_FGREP" --version 2>&1` in
6018 *GNU*)
6019 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6021 ac_count=0
6022 $as_echo_n 0123456789 >"conftest.in"
6023 while :
6025 cat "conftest.in" "conftest.in" >"conftest.tmp"
6026 mv "conftest.tmp" "conftest.in"
6027 cp "conftest.in" "conftest.nl"
6028 $as_echo 'FGREP' >> "conftest.nl"
6029 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6030 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6031 as_fn_arith $ac_count + 1 && ac_count=$as_val
6032 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6033 # Best one so far, save it but keep looking for a better one
6034 ac_cv_path_FGREP="$ac_path_FGREP"
6035 ac_path_FGREP_max=$ac_count
6037 # 10*(2^10) chars as input seems more than enough
6038 test $ac_count -gt 10 && break
6039 done
6040 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6041 esac
6043 $ac_path_FGREP_found && break 3
6044 done
6045 done
6046 done
6047 IFS=$as_save_IFS
6048 if test -z "$ac_cv_path_FGREP"; then
6049 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6051 else
6052 ac_cv_path_FGREP=$FGREP
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6058 $as_echo "$ac_cv_path_FGREP" >&6; }
6059 FGREP="$ac_cv_path_FGREP"
6062 test -z "$GREP" && GREP=grep
6082 # Check whether --with-gnu-ld was given.
6083 if test "${with_gnu_ld+set}" = set; then :
6084 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6085 else
6086 with_gnu_ld=no
6089 ac_prog=ld
6090 if test "$GCC" = yes; then
6091 # Check if gcc -print-prog-name=ld gives a path.
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6093 $as_echo_n "checking for ld used by $CC... " >&6; }
6094 case $host in
6095 *-*-mingw*)
6096 # gcc leaves a trailing carriage return which upsets mingw
6097 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6099 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6100 esac
6101 case $ac_prog in
6102 # Accept absolute paths.
6103 [\\/]* | ?:[\\/]*)
6104 re_direlt='/[^/][^/]*/\.\./'
6105 # Canonicalize the pathname of ld
6106 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6107 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6108 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6109 done
6110 test -z "$LD" && LD="$ac_prog"
6113 # If it fails, then pretend we aren't using GCC.
6114 ac_prog=ld
6117 # If it is relative, then search for the first ld in PATH.
6118 with_gnu_ld=unknown
6120 esac
6121 elif test "$with_gnu_ld" = yes; then
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6123 $as_echo_n "checking for GNU ld... " >&6; }
6124 else
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6126 $as_echo_n "checking for non-GNU ld... " >&6; }
6128 if test "${lt_cv_path_LD+set}" = set; then :
6129 $as_echo_n "(cached) " >&6
6130 else
6131 if test -z "$LD"; then
6132 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6133 for ac_dir in $PATH; do
6134 IFS="$lt_save_ifs"
6135 test -z "$ac_dir" && ac_dir=.
6136 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6137 lt_cv_path_LD="$ac_dir/$ac_prog"
6138 # Check to see if the program is GNU ld. I'd rather use --version,
6139 # but apparently some variants of GNU ld only accept -v.
6140 # Break only if it was the GNU/non-GNU ld that we prefer.
6141 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6142 *GNU* | *'with BFD'*)
6143 test "$with_gnu_ld" != no && break
6146 test "$with_gnu_ld" != yes && break
6148 esac
6150 done
6151 IFS="$lt_save_ifs"
6152 else
6153 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6157 LD="$lt_cv_path_LD"
6158 if test -n "$LD"; then
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6160 $as_echo "$LD" >&6; }
6161 else
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163 $as_echo "no" >&6; }
6165 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6167 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6168 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6172 case `$LD -v 2>&1 </dev/null` in
6173 *GNU* | *'with BFD'*)
6174 lt_cv_prog_gnu_ld=yes
6177 lt_cv_prog_gnu_ld=no
6179 esac
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6182 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6183 with_gnu_ld=$lt_cv_prog_gnu_ld
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6194 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6195 if test "${lt_cv_path_NM+set}" = set; then :
6196 $as_echo_n "(cached) " >&6
6197 else
6198 if test -n "$NM"; then
6199 # Let the user override the test.
6200 lt_cv_path_NM="$NM"
6201 else
6202 lt_nm_to_check="${ac_tool_prefix}nm"
6203 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6204 lt_nm_to_check="$lt_nm_to_check nm"
6206 for lt_tmp_nm in $lt_nm_to_check; do
6207 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6208 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6209 IFS="$lt_save_ifs"
6210 test -z "$ac_dir" && ac_dir=.
6211 tmp_nm="$ac_dir/$lt_tmp_nm"
6212 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6213 # Check to see if the nm accepts a BSD-compat flag.
6214 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6215 # nm: unknown option "B" ignored
6216 # Tru64's nm complains that /dev/null is an invalid object file
6217 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6218 */dev/null* | *'Invalid file or object type'*)
6219 lt_cv_path_NM="$tmp_nm -B"
6220 break
6223 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6224 */dev/null*)
6225 lt_cv_path_NM="$tmp_nm -p"
6226 break
6229 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6230 continue # so that we can try to find one that supports BSD flags
6232 esac
6234 esac
6236 done
6237 IFS="$lt_save_ifs"
6238 done
6239 : ${lt_cv_path_NM=no}
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6243 $as_echo "$lt_cv_path_NM" >&6; }
6244 if test "$lt_cv_path_NM" != "no"; then
6245 NM="$lt_cv_path_NM"
6246 else
6247 # Didn't find any BSD compatible name lister, look for dumpbin.
6248 if test -n "$DUMPBIN"; then :
6249 # Let the user override the test.
6250 else
6251 if test -n "$ac_tool_prefix"; then
6252 for ac_prog in dumpbin "link -dump"
6254 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6255 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6257 $as_echo_n "checking for $ac_word... " >&6; }
6258 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6259 $as_echo_n "(cached) " >&6
6260 else
6261 if test -n "$DUMPBIN"; then
6262 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6263 else
6264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6265 for as_dir in $PATH
6267 IFS=$as_save_IFS
6268 test -z "$as_dir" && as_dir=.
6269 for ac_exec_ext in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 break 2
6275 done
6276 done
6277 IFS=$as_save_IFS
6281 DUMPBIN=$ac_cv_prog_DUMPBIN
6282 if test -n "$DUMPBIN"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6284 $as_echo "$DUMPBIN" >&6; }
6285 else
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6291 test -n "$DUMPBIN" && break
6292 done
6294 if test -z "$DUMPBIN"; then
6295 ac_ct_DUMPBIN=$DUMPBIN
6296 for ac_prog in dumpbin "link -dump"
6298 # Extract the first word of "$ac_prog", so it can be a program name with args.
6299 set dummy $ac_prog; ac_word=$2
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6301 $as_echo_n "checking for $ac_word... " >&6; }
6302 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6303 $as_echo_n "(cached) " >&6
6304 else
6305 if test -n "$ac_ct_DUMPBIN"; then
6306 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6307 else
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309 for as_dir in $PATH
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
6314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6315 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 break 2
6319 done
6320 done
6321 IFS=$as_save_IFS
6325 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6326 if test -n "$ac_ct_DUMPBIN"; then
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6328 $as_echo "$ac_ct_DUMPBIN" >&6; }
6329 else
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6331 $as_echo "no" >&6; }
6335 test -n "$ac_ct_DUMPBIN" && break
6336 done
6338 if test "x$ac_ct_DUMPBIN" = x; then
6339 DUMPBIN=":"
6340 else
6341 case $cross_compiling:$ac_tool_warned in
6342 yes:)
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6345 ac_tool_warned=yes ;;
6346 esac
6347 DUMPBIN=$ac_ct_DUMPBIN
6351 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6352 *COFF*)
6353 DUMPBIN="$DUMPBIN -symbols"
6356 DUMPBIN=:
6358 esac
6361 if test "$DUMPBIN" != ":"; then
6362 NM="$DUMPBIN"
6365 test -z "$NM" && NM=nm
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6373 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6374 if test "${lt_cv_nm_interface+set}" = set; then :
6375 $as_echo_n "(cached) " >&6
6376 else
6377 lt_cv_nm_interface="BSD nm"
6378 echo "int some_variable = 0;" > conftest.$ac_ext
6379 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6380 (eval "$ac_compile" 2>conftest.err)
6381 cat conftest.err >&5
6382 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6383 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6384 cat conftest.err >&5
6385 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6386 cat conftest.out >&5
6387 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6388 lt_cv_nm_interface="MS dumpbin"
6390 rm -f conftest*
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6393 $as_echo "$lt_cv_nm_interface" >&6; }
6395 # find the maximum length of command line arguments
6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6397 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6398 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6399 $as_echo_n "(cached) " >&6
6400 else
6402 teststring="ABCD"
6404 case $build_os in
6405 msdosdjgpp*)
6406 # On DJGPP, this test can blow up pretty badly due to problems in libc
6407 # (any single argument exceeding 2000 bytes causes a buffer overrun
6408 # during glob expansion). Even if it were fixed, the result of this
6409 # check would be larger than it should be.
6410 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6413 gnu*)
6414 # Under GNU Hurd, this test is not required because there is
6415 # no limit to the length of command line arguments.
6416 # Libtool will interpret -1 as no limit whatsoever
6417 lt_cv_sys_max_cmd_len=-1;
6420 cygwin* | mingw* | cegcc*)
6421 # On Win9x/ME, this test blows up -- it succeeds, but takes
6422 # about 5 minutes as the teststring grows exponentially.
6423 # Worse, since 9x/ME are not pre-emptively multitasking,
6424 # you end up with a "frozen" computer, even though with patience
6425 # the test eventually succeeds (with a max line length of 256k).
6426 # Instead, let's just punt: use the minimum linelength reported by
6427 # all of the supported platforms: 8192 (on NT/2K/XP).
6428 lt_cv_sys_max_cmd_len=8192;
6431 mint*)
6432 # On MiNT this can take a long time and run out of memory.
6433 lt_cv_sys_max_cmd_len=8192;
6436 amigaos*)
6437 # On AmigaOS with pdksh, this test takes hours, literally.
6438 # So we just punt and use a minimum line length of 8192.
6439 lt_cv_sys_max_cmd_len=8192;
6442 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6443 # This has been around since 386BSD, at least. Likely further.
6444 if test -x /sbin/sysctl; then
6445 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6446 elif test -x /usr/sbin/sysctl; then
6447 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6448 else
6449 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6451 # And add a safety zone
6452 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6453 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6456 interix*)
6457 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6458 lt_cv_sys_max_cmd_len=196608
6461 osf*)
6462 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6463 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6464 # nice to cause kernel panics so lets avoid the loop below.
6465 # First set a reasonable default.
6466 lt_cv_sys_max_cmd_len=16384
6468 if test -x /sbin/sysconfig; then
6469 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6470 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6471 esac
6474 sco3.2v5*)
6475 lt_cv_sys_max_cmd_len=102400
6477 sysv5* | sco5v6* | sysv4.2uw2*)
6478 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6479 if test -n "$kargmax"; then
6480 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6481 else
6482 lt_cv_sys_max_cmd_len=32768
6486 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6487 if test -n "$lt_cv_sys_max_cmd_len"; then
6488 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6490 else
6491 # Make teststring a little bigger before we do anything with it.
6492 # a 1K string should be a reasonable start.
6493 for i in 1 2 3 4 5 6 7 8 ; do
6494 teststring=$teststring$teststring
6495 done
6496 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6497 # If test is not a shell built-in, we'll probably end up computing a
6498 # maximum length that is only half of the actual maximum length, but
6499 # we can't tell.
6500 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6501 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6502 test $i != 17 # 1/2 MB should be enough
6504 i=`expr $i + 1`
6505 teststring=$teststring$teststring
6506 done
6507 # Only check the string length outside the loop.
6508 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6509 teststring=
6510 # Add a significant safety factor because C++ compilers can tack on
6511 # massive amounts of additional arguments before passing them to the
6512 # linker. It appears as though 1/2 is a usable value.
6513 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6516 esac
6520 if test -n $lt_cv_sys_max_cmd_len ; then
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6522 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6523 else
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6525 $as_echo "none" >&6; }
6527 max_cmd_len=$lt_cv_sys_max_cmd_len
6534 : ${CP="cp -f"}
6535 : ${MV="mv -f"}
6536 : ${RM="rm -f"}
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6539 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6540 # Try some XSI features
6541 xsi_shell=no
6542 ( _lt_dummy="a/b/c"
6543 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6544 = c,a/b,, \
6545 && eval 'test $(( 1 + 1 )) -eq 2 \
6546 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6547 && xsi_shell=yes
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6549 $as_echo "$xsi_shell" >&6; }
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6553 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6554 lt_shell_append=no
6555 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6556 >/dev/null 2>&1 \
6557 && lt_shell_append=yes
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6559 $as_echo "$lt_shell_append" >&6; }
6562 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6563 lt_unset=unset
6564 else
6565 lt_unset=false
6572 # test EBCDIC or ASCII
6573 case `echo X|tr X '\101'` in
6574 A) # ASCII based system
6575 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6576 lt_SP2NL='tr \040 \012'
6577 lt_NL2SP='tr \015\012 \040\040'
6579 *) # EBCDIC based system
6580 lt_SP2NL='tr \100 \n'
6581 lt_NL2SP='tr \r\n \100\100'
6583 esac
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6594 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6595 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6596 $as_echo_n "(cached) " >&6
6597 else
6598 lt_cv_ld_reload_flag='-r'
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6601 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6602 reload_flag=$lt_cv_ld_reload_flag
6603 case $reload_flag in
6604 "" | " "*) ;;
6605 *) reload_flag=" $reload_flag" ;;
6606 esac
6607 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6608 case $host_os in
6609 darwin*)
6610 if test "$GCC" = yes; then
6611 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6612 else
6613 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6616 esac
6626 if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6630 $as_echo_n "checking for $ac_word... " >&6; }
6631 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6632 $as_echo_n "(cached) " >&6
6633 else
6634 if test -n "$OBJDUMP"; then
6635 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6636 else
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638 for as_dir in $PATH
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 break 2
6648 done
6649 done
6650 IFS=$as_save_IFS
6654 OBJDUMP=$ac_cv_prog_OBJDUMP
6655 if test -n "$OBJDUMP"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6657 $as_echo "$OBJDUMP" >&6; }
6658 else
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6660 $as_echo "no" >&6; }
6665 if test -z "$ac_cv_prog_OBJDUMP"; then
6666 ac_ct_OBJDUMP=$OBJDUMP
6667 # Extract the first word of "objdump", so it can be a program name with args.
6668 set dummy objdump; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6670 $as_echo_n "checking for $ac_word... " >&6; }
6671 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6672 $as_echo_n "(cached) " >&6
6673 else
6674 if test -n "$ac_ct_OBJDUMP"; then
6675 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6676 else
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678 for as_dir in $PATH
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6686 break 2
6688 done
6689 done
6690 IFS=$as_save_IFS
6694 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6695 if test -n "$ac_ct_OBJDUMP"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6697 $as_echo "$ac_ct_OBJDUMP" >&6; }
6698 else
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6700 $as_echo "no" >&6; }
6703 if test "x$ac_ct_OBJDUMP" = x; then
6704 OBJDUMP="false"
6705 else
6706 case $cross_compiling:$ac_tool_warned in
6707 yes:)
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6709 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6710 ac_tool_warned=yes ;;
6711 esac
6712 OBJDUMP=$ac_ct_OBJDUMP
6714 else
6715 OBJDUMP="$ac_cv_prog_OBJDUMP"
6718 test -z "$OBJDUMP" && OBJDUMP=objdump
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6729 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6730 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6731 $as_echo_n "(cached) " >&6
6732 else
6733 lt_cv_file_magic_cmd='$MAGIC_CMD'
6734 lt_cv_file_magic_test_file=
6735 lt_cv_deplibs_check_method='unknown'
6736 # Need to set the preceding variable on all platforms that support
6737 # interlibrary dependencies.
6738 # 'none' -- dependencies not supported.
6739 # `unknown' -- same as none, but documents that we really don't know.
6740 # 'pass_all' -- all dependencies passed with no checks.
6741 # 'test_compile' -- check by making test program.
6742 # 'file_magic [[regex]]' -- check by looking for files in library path
6743 # which responds to the $file_magic_cmd with a given extended regex.
6744 # If you have `file' or equivalent on your system and you're not sure
6745 # whether `pass_all' will *always* work, you probably want this one.
6747 case $host_os in
6748 aix[4-9]*)
6749 lt_cv_deplibs_check_method=pass_all
6752 beos*)
6753 lt_cv_deplibs_check_method=pass_all
6756 bsdi[45]*)
6757 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6758 lt_cv_file_magic_cmd='/usr/bin/file -L'
6759 lt_cv_file_magic_test_file=/shlib/libc.so
6762 cygwin*)
6763 # func_win32_libid is a shell function defined in ltmain.sh
6764 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6765 lt_cv_file_magic_cmd='func_win32_libid'
6768 mingw* | pw32*)
6769 # Base MSYS/MinGW do not provide the 'file' command needed by
6770 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6771 # unless we find 'file', for example because we are cross-compiling.
6772 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6773 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6774 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6775 lt_cv_file_magic_cmd='func_win32_libid'
6776 else
6777 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6778 lt_cv_file_magic_cmd='$OBJDUMP -f'
6782 cegcc*)
6783 # use the weaker test based on 'objdump'. See mingw*.
6784 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6785 lt_cv_file_magic_cmd='$OBJDUMP -f'
6788 darwin* | rhapsody*)
6789 lt_cv_deplibs_check_method=pass_all
6792 freebsd* | dragonfly*)
6793 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6794 case $host_cpu in
6795 i*86 )
6796 # Not sure whether the presence of OpenBSD here was a mistake.
6797 # Let's accept both of them until this is cleared up.
6798 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6799 lt_cv_file_magic_cmd=/usr/bin/file
6800 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6802 esac
6803 else
6804 lt_cv_deplibs_check_method=pass_all
6808 gnu*)
6809 lt_cv_deplibs_check_method=pass_all
6812 haiku*)
6813 lt_cv_deplibs_check_method=pass_all
6816 hpux10.20* | hpux11*)
6817 lt_cv_file_magic_cmd=/usr/bin/file
6818 case $host_cpu in
6819 ia64*)
6820 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6821 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6823 hppa*64*)
6824 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]'
6825 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6828 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6829 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6831 esac
6834 interix[3-9]*)
6835 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6836 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6839 irix5* | irix6* | nonstopux*)
6840 case $LD in
6841 *-32|*"-32 ") libmagic=32-bit;;
6842 *-n32|*"-n32 ") libmagic=N32;;
6843 *-64|*"-64 ") libmagic=64-bit;;
6844 *) libmagic=never-match;;
6845 esac
6846 lt_cv_deplibs_check_method=pass_all
6849 # This must be Linux ELF.
6850 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6851 lt_cv_deplibs_check_method=pass_all
6854 netbsd*)
6855 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6856 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6857 else
6858 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6862 newos6*)
6863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6864 lt_cv_file_magic_cmd=/usr/bin/file
6865 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6868 *nto* | *qnx*)
6869 lt_cv_deplibs_check_method=pass_all
6872 openbsd*)
6873 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6874 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6875 else
6876 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6880 osf3* | osf4* | osf5*)
6881 lt_cv_deplibs_check_method=pass_all
6884 rdos*)
6885 lt_cv_deplibs_check_method=pass_all
6888 solaris*)
6889 lt_cv_deplibs_check_method=pass_all
6892 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6893 lt_cv_deplibs_check_method=pass_all
6896 sysv4 | sysv4.3*)
6897 case $host_vendor in
6898 motorola)
6899 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]'
6900 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6902 ncr)
6903 lt_cv_deplibs_check_method=pass_all
6905 sequent)
6906 lt_cv_file_magic_cmd='/bin/file'
6907 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6909 sni)
6910 lt_cv_file_magic_cmd='/bin/file'
6911 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6912 lt_cv_file_magic_test_file=/lib/libc.so
6914 siemens)
6915 lt_cv_deplibs_check_method=pass_all
6918 lt_cv_deplibs_check_method=pass_all
6920 esac
6923 tpf*)
6924 lt_cv_deplibs_check_method=pass_all
6926 esac
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6930 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6931 file_magic_cmd=$lt_cv_file_magic_cmd
6932 deplibs_check_method=$lt_cv_deplibs_check_method
6933 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6946 if test -n "$ac_tool_prefix"; then
6947 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6948 set dummy ${ac_tool_prefix}ar; ac_word=$2
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950 $as_echo_n "checking for $ac_word... " >&6; }
6951 if test "${ac_cv_prog_AR+set}" = set; then :
6952 $as_echo_n "(cached) " >&6
6953 else
6954 if test -n "$AR"; then
6955 ac_cv_prog_AR="$AR" # Let the user override the test.
6956 else
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_prog_AR="${ac_tool_prefix}ar"
6965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6968 done
6969 done
6970 IFS=$as_save_IFS
6974 AR=$ac_cv_prog_AR
6975 if test -n "$AR"; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6977 $as_echo "$AR" >&6; }
6978 else
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6985 if test -z "$ac_cv_prog_AR"; then
6986 ac_ct_AR=$AR
6987 # Extract the first word of "ar", so it can be a program name with args.
6988 set dummy ar; ac_word=$2
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 $as_echo_n "checking for $ac_word... " >&6; }
6991 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6992 $as_echo_n "(cached) " >&6
6993 else
6994 if test -n "$ac_ct_AR"; then
6995 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6996 else
6997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6998 for as_dir in $PATH
7000 IFS=$as_save_IFS
7001 test -z "$as_dir" && as_dir=.
7002 for ac_exec_ext in '' $ac_executable_extensions; do
7003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7004 ac_cv_prog_ac_ct_AR="ar"
7005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7006 break 2
7008 done
7009 done
7010 IFS=$as_save_IFS
7014 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7015 if test -n "$ac_ct_AR"; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7017 $as_echo "$ac_ct_AR" >&6; }
7018 else
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7023 if test "x$ac_ct_AR" = x; then
7024 AR="false"
7025 else
7026 case $cross_compiling:$ac_tool_warned in
7027 yes:)
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7030 ac_tool_warned=yes ;;
7031 esac
7032 AR=$ac_ct_AR
7034 else
7035 AR="$ac_cv_prog_AR"
7038 test -z "$AR" && AR=ar
7039 test -z "$AR_FLAGS" && AR_FLAGS=cru
7051 if test -n "$ac_tool_prefix"; then
7052 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7053 set dummy ${ac_tool_prefix}strip; ac_word=$2
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055 $as_echo_n "checking for $ac_word... " >&6; }
7056 if test "${ac_cv_prog_STRIP+set}" = set; then :
7057 $as_echo_n "(cached) " >&6
7058 else
7059 if test -n "$STRIP"; then
7060 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7061 else
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7069 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 break 2
7073 done
7074 done
7075 IFS=$as_save_IFS
7079 STRIP=$ac_cv_prog_STRIP
7080 if test -n "$STRIP"; then
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7082 $as_echo "$STRIP" >&6; }
7083 else
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085 $as_echo "no" >&6; }
7090 if test -z "$ac_cv_prog_STRIP"; then
7091 ac_ct_STRIP=$STRIP
7092 # Extract the first word of "strip", so it can be a program name with args.
7093 set dummy strip; ac_word=$2
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095 $as_echo_n "checking for $ac_word... " >&6; }
7096 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7097 $as_echo_n "(cached) " >&6
7098 else
7099 if test -n "$ac_ct_STRIP"; then
7100 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7101 else
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7105 IFS=$as_save_IFS
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109 ac_cv_prog_ac_ct_STRIP="strip"
7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111 break 2
7113 done
7114 done
7115 IFS=$as_save_IFS
7119 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7120 if test -n "$ac_ct_STRIP"; then
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7122 $as_echo "$ac_ct_STRIP" >&6; }
7123 else
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7128 if test "x$ac_ct_STRIP" = x; then
7129 STRIP=":"
7130 else
7131 case $cross_compiling:$ac_tool_warned in
7132 yes:)
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7135 ac_tool_warned=yes ;;
7136 esac
7137 STRIP=$ac_ct_STRIP
7139 else
7140 STRIP="$ac_cv_prog_STRIP"
7143 test -z "$STRIP" && STRIP=:
7150 if test -n "$ac_tool_prefix"; then
7151 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7152 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7154 $as_echo_n "checking for $ac_word... " >&6; }
7155 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7156 $as_echo_n "(cached) " >&6
7157 else
7158 if test -n "$RANLIB"; then
7159 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7160 else
7161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 for as_dir in $PATH
7164 IFS=$as_save_IFS
7165 test -z "$as_dir" && as_dir=.
7166 for ac_exec_ext in '' $ac_executable_extensions; do
7167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7168 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 break 2
7172 done
7173 done
7174 IFS=$as_save_IFS
7178 RANLIB=$ac_cv_prog_RANLIB
7179 if test -n "$RANLIB"; then
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7181 $as_echo "$RANLIB" >&6; }
7182 else
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }
7189 if test -z "$ac_cv_prog_RANLIB"; then
7190 ac_ct_RANLIB=$RANLIB
7191 # Extract the first word of "ranlib", so it can be a program name with args.
7192 set dummy ranlib; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7194 $as_echo_n "checking for $ac_word... " >&6; }
7195 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7196 $as_echo_n "(cached) " >&6
7197 else
7198 if test -n "$ac_ct_RANLIB"; then
7199 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7200 else
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7202 for as_dir in $PATH
7204 IFS=$as_save_IFS
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7208 ac_cv_prog_ac_ct_RANLIB="ranlib"
7209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7210 break 2
7212 done
7213 done
7214 IFS=$as_save_IFS
7218 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7219 if test -n "$ac_ct_RANLIB"; then
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7221 $as_echo "$ac_ct_RANLIB" >&6; }
7222 else
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224 $as_echo "no" >&6; }
7227 if test "x$ac_ct_RANLIB" = x; then
7228 RANLIB=":"
7229 else
7230 case $cross_compiling:$ac_tool_warned in
7231 yes:)
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7234 ac_tool_warned=yes ;;
7235 esac
7236 RANLIB=$ac_ct_RANLIB
7238 else
7239 RANLIB="$ac_cv_prog_RANLIB"
7242 test -z "$RANLIB" && RANLIB=:
7249 # Determine commands to create old-style static archives.
7250 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7251 old_postinstall_cmds='chmod 644 $oldlib'
7252 old_postuninstall_cmds=
7254 if test -n "$RANLIB"; then
7255 case $host_os in
7256 openbsd*)
7257 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7260 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7262 esac
7263 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7266 case $host_os in
7267 darwin*)
7268 lock_old_archive_extraction=yes ;;
7270 lock_old_archive_extraction=no ;;
7271 esac
7311 # If no C compiler was specified, use CC.
7312 LTCC=${LTCC-"$CC"}
7314 # If no C compiler flags were specified, use CFLAGS.
7315 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7317 # Allow CC to be a program name with arguments.
7318 compiler=$CC
7321 # Check for command to grab the raw symbol name followed by C symbol from nm.
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7323 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7324 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7325 $as_echo_n "(cached) " >&6
7326 else
7328 # These are sane defaults that work on at least a few old systems.
7329 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7331 # Character class describing NM global symbol codes.
7332 symcode='[BCDEGRST]'
7334 # Regexp to match symbols that can be accessed directly from C.
7335 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7337 # Define system-specific variables.
7338 case $host_os in
7339 aix*)
7340 symcode='[BCDT]'
7342 cygwin* | mingw* | pw32* | cegcc*)
7343 symcode='[ABCDGISTW]'
7345 hpux*)
7346 if test "$host_cpu" = ia64; then
7347 symcode='[ABCDEGRST]'
7350 irix* | nonstopux*)
7351 symcode='[BCDEGRST]'
7353 osf*)
7354 symcode='[BCDEGQRST]'
7356 solaris*)
7357 symcode='[BDRT]'
7359 sco3.2v5*)
7360 symcode='[DT]'
7362 sysv4.2uw2*)
7363 symcode='[DT]'
7365 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7366 symcode='[ABDT]'
7368 sysv4)
7369 symcode='[DFNSTU]'
7371 esac
7373 # If we're using GNU nm, then use its standard symbol codes.
7374 case `$NM -V 2>&1` in
7375 *GNU* | *'with BFD'*)
7376 symcode='[ABCDGIRSTW]' ;;
7377 esac
7379 # Transform an extracted symbol line into a proper C declaration.
7380 # Some systems (esp. on ia64) link data and code symbols differently,
7381 # so use this general approach.
7382 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7384 # Transform an extracted symbol line into symbol name and symbol address
7385 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7386 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'"
7388 # Handle CRLF in mingw tool chain
7389 opt_cr=
7390 case $build_os in
7391 mingw*)
7392 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7394 esac
7396 # Try without a prefix underscore, then with it.
7397 for ac_symprfx in "" "_"; do
7399 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7400 symxfrm="\\1 $ac_symprfx\\2 \\2"
7402 # Write the raw and C identifiers.
7403 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7404 # Fake it for dumpbin and say T for any non-static function
7405 # and D for any global variable.
7406 # Also find C++ and __fastcall symbols from MSVC++,
7407 # which start with @ or ?.
7408 lt_cv_sys_global_symbol_pipe="$AWK '"\
7409 " {last_section=section; section=\$ 3};"\
7410 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7411 " \$ 0!~/External *\|/{next};"\
7412 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7413 " {if(hide[section]) next};"\
7414 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7415 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7416 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7417 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7418 " ' prfx=^$ac_symprfx"
7419 else
7420 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7423 # Check to see that the pipe works correctly.
7424 pipe_works=no
7426 rm -f conftest*
7427 cat > conftest.$ac_ext <<_LT_EOF
7428 #ifdef __cplusplus
7429 extern "C" {
7430 #endif
7431 char nm_test_var;
7432 void nm_test_func(void);
7433 void nm_test_func(void){}
7434 #ifdef __cplusplus
7436 #endif
7437 int main(){nm_test_var='a';nm_test_func();return(0);}
7438 _LT_EOF
7440 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7441 (eval $ac_compile) 2>&5
7442 ac_status=$?
7443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7444 test $ac_status = 0; }; then
7445 # Now try to grab the symbols.
7446 nlist=conftest.nm
7447 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7448 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7449 ac_status=$?
7450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7451 test $ac_status = 0; } && test -s "$nlist"; then
7452 # Try sorting and uniquifying the output.
7453 if sort "$nlist" | uniq > "$nlist"T; then
7454 mv -f "$nlist"T "$nlist"
7455 else
7456 rm -f "$nlist"T
7459 # Make sure that we snagged all the symbols we need.
7460 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7461 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7462 cat <<_LT_EOF > conftest.$ac_ext
7463 #ifdef __cplusplus
7464 extern "C" {
7465 #endif
7467 _LT_EOF
7468 # Now generate the symbol file.
7469 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7471 cat <<_LT_EOF >> conftest.$ac_ext
7473 /* The mapping between symbol names and symbols. */
7474 const struct {
7475 const char *name;
7476 void *address;
7478 lt__PROGRAM__LTX_preloaded_symbols[] =
7480 { "@PROGRAM@", (void *) 0 },
7481 _LT_EOF
7482 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7483 cat <<\_LT_EOF >> conftest.$ac_ext
7484 {0, (void *) 0}
7487 /* This works around a problem in FreeBSD linker */
7488 #ifdef FREEBSD_WORKAROUND
7489 static const void *lt_preloaded_setup() {
7490 return lt__PROGRAM__LTX_preloaded_symbols;
7492 #endif
7494 #ifdef __cplusplus
7496 #endif
7497 _LT_EOF
7498 # Now try linking the two files.
7499 mv conftest.$ac_objext conftstm.$ac_objext
7500 lt_save_LIBS="$LIBS"
7501 lt_save_CFLAGS="$CFLAGS"
7502 LIBS="conftstm.$ac_objext"
7503 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7505 (eval $ac_link) 2>&5
7506 ac_status=$?
7507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7508 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7509 pipe_works=yes
7511 LIBS="$lt_save_LIBS"
7512 CFLAGS="$lt_save_CFLAGS"
7513 else
7514 echo "cannot find nm_test_func in $nlist" >&5
7516 else
7517 echo "cannot find nm_test_var in $nlist" >&5
7519 else
7520 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7522 else
7523 echo "$progname: failed program was:" >&5
7524 cat conftest.$ac_ext >&5
7526 rm -rf conftest* conftst*
7528 # Do not use the global_symbol_pipe unless it works.
7529 if test "$pipe_works" = yes; then
7530 break
7531 else
7532 lt_cv_sys_global_symbol_pipe=
7534 done
7538 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7539 lt_cv_sys_global_symbol_to_cdecl=
7541 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7543 $as_echo "failed" >&6; }
7544 else
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7546 $as_echo "ok" >&6; }
7570 # Check whether --enable-libtool-lock was given.
7571 if test "${enable_libtool_lock+set}" = set; then :
7572 enableval=$enable_libtool_lock;
7575 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7577 # Some flags need to be propagated to the compiler or linker for good
7578 # libtool support.
7579 case $host in
7580 ia64-*-hpux*)
7581 # Find out which ABI we are using.
7582 echo 'int i;' > conftest.$ac_ext
7583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7584 (eval $ac_compile) 2>&5
7585 ac_status=$?
7586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7587 test $ac_status = 0; }; then
7588 case `/usr/bin/file conftest.$ac_objext` in
7589 *ELF-32*)
7590 HPUX_IA64_MODE="32"
7592 *ELF-64*)
7593 HPUX_IA64_MODE="64"
7595 esac
7597 rm -rf conftest*
7599 *-*-irix6*)
7600 # Find out which ABI we are using.
7601 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7603 (eval $ac_compile) 2>&5
7604 ac_status=$?
7605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7606 test $ac_status = 0; }; then
7607 if test "$lt_cv_prog_gnu_ld" = yes; then
7608 case `/usr/bin/file conftest.$ac_objext` in
7609 *32-bit*)
7610 LD="${LD-ld} -melf32bsmip"
7612 *N32*)
7613 LD="${LD-ld} -melf32bmipn32"
7615 *64-bit*)
7616 LD="${LD-ld} -melf64bmip"
7618 esac
7619 else
7620 case `/usr/bin/file conftest.$ac_objext` in
7621 *32-bit*)
7622 LD="${LD-ld} -32"
7624 *N32*)
7625 LD="${LD-ld} -n32"
7627 *64-bit*)
7628 LD="${LD-ld} -64"
7630 esac
7633 rm -rf conftest*
7636 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7637 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7638 # Find out which ABI we are using.
7639 echo 'int i;' > conftest.$ac_ext
7640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7641 (eval $ac_compile) 2>&5
7642 ac_status=$?
7643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7644 test $ac_status = 0; }; then
7645 case `/usr/bin/file conftest.o` in
7646 *32-bit*)
7647 case $host in
7648 x86_64-*kfreebsd*-gnu)
7649 LD="${LD-ld} -m elf_i386_fbsd"
7651 x86_64-*linux*)
7652 case `/usr/bin/file conftest.o` in
7653 *x86-64*)
7654 LD="${LD-ld} -m elf32_x86_64"
7657 LD="${LD-ld} -m elf_i386"
7659 esac
7661 powerpc64le-*linux*)
7662 LD="${LD-ld} -m elf32lppclinux"
7664 powerpc64-*linux*)
7665 LD="${LD-ld} -m elf32ppclinux"
7667 s390x-*linux*)
7668 LD="${LD-ld} -m elf_s390"
7670 sparc64-*linux*)
7671 LD="${LD-ld} -m elf32_sparc"
7673 esac
7675 *64-bit*)
7676 case $host in
7677 x86_64-*kfreebsd*-gnu)
7678 LD="${LD-ld} -m elf_x86_64_fbsd"
7680 x86_64-*linux*)
7681 LD="${LD-ld} -m elf_x86_64"
7683 powerpcle-*linux*)
7684 LD="${LD-ld} -m elf64lppc"
7686 powerpc-*linux*)
7687 LD="${LD-ld} -m elf64ppc"
7689 s390*-*linux*|s390*-*tpf*)
7690 LD="${LD-ld} -m elf64_s390"
7692 sparc*-*linux*)
7693 LD="${LD-ld} -m elf64_sparc"
7695 esac
7697 esac
7699 rm -rf conftest*
7702 *-*-sco3.2v5*)
7703 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7704 SAVE_CFLAGS="$CFLAGS"
7705 CFLAGS="$CFLAGS -belf"
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7707 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7708 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 ac_ext=c
7712 ac_cpp='$CPP $CPPFLAGS'
7713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7717 if test x$gcc_no_link = xyes; then
7718 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7724 main ()
7728 return 0;
7730 _ACEOF
7731 if ac_fn_c_try_link "$LINENO"; then :
7732 lt_cv_cc_needs_belf=yes
7733 else
7734 lt_cv_cc_needs_belf=no
7736 rm -f core conftest.err conftest.$ac_objext \
7737 conftest$ac_exeext conftest.$ac_ext
7738 ac_ext=c
7739 ac_cpp='$CPP $CPPFLAGS'
7740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7746 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7747 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7748 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7749 CFLAGS="$SAVE_CFLAGS"
7752 sparc*-*solaris*)
7753 # Find out which ABI we are using.
7754 echo 'int i;' > conftest.$ac_ext
7755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7756 (eval $ac_compile) 2>&5
7757 ac_status=$?
7758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7759 test $ac_status = 0; }; then
7760 case `/usr/bin/file conftest.o` in
7761 *64-bit*)
7762 case $lt_cv_prog_gnu_ld in
7763 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7765 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7766 LD="${LD-ld} -64"
7769 esac
7771 esac
7773 rm -rf conftest*
7775 esac
7777 need_locks="$enable_libtool_lock"
7780 case $host_os in
7781 rhapsody* | darwin*)
7782 if test -n "$ac_tool_prefix"; then
7783 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7784 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786 $as_echo_n "checking for $ac_word... " >&6; }
7787 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7788 $as_echo_n "(cached) " >&6
7789 else
7790 if test -n "$DSYMUTIL"; then
7791 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7792 else
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7800 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7804 done
7805 done
7806 IFS=$as_save_IFS
7810 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7811 if test -n "$DSYMUTIL"; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7813 $as_echo "$DSYMUTIL" >&6; }
7814 else
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7821 if test -z "$ac_cv_prog_DSYMUTIL"; then
7822 ac_ct_DSYMUTIL=$DSYMUTIL
7823 # Extract the first word of "dsymutil", so it can be a program name with args.
7824 set dummy dsymutil; ac_word=$2
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 $as_echo_n "checking for $ac_word... " >&6; }
7827 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7828 $as_echo_n "(cached) " >&6
7829 else
7830 if test -n "$ac_ct_DSYMUTIL"; then
7831 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7832 else
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 for as_dir in $PATH
7836 IFS=$as_save_IFS
7837 test -z "$as_dir" && as_dir=.
7838 for ac_exec_ext in '' $ac_executable_extensions; do
7839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7840 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842 break 2
7844 done
7845 done
7846 IFS=$as_save_IFS
7850 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7851 if test -n "$ac_ct_DSYMUTIL"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7853 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7854 else
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7859 if test "x$ac_ct_DSYMUTIL" = x; then
7860 DSYMUTIL=":"
7861 else
7862 case $cross_compiling:$ac_tool_warned in
7863 yes:)
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7866 ac_tool_warned=yes ;;
7867 esac
7868 DSYMUTIL=$ac_ct_DSYMUTIL
7870 else
7871 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7874 if test -n "$ac_tool_prefix"; then
7875 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7876 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 if test -n "$NMEDIT"; then
7883 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7884 else
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7888 IFS=$as_save_IFS
7889 test -z "$as_dir" && as_dir=.
7890 for ac_exec_ext in '' $ac_executable_extensions; do
7891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7892 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894 break 2
7896 done
7897 done
7898 IFS=$as_save_IFS
7902 NMEDIT=$ac_cv_prog_NMEDIT
7903 if test -n "$NMEDIT"; then
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7905 $as_echo "$NMEDIT" >&6; }
7906 else
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7913 if test -z "$ac_cv_prog_NMEDIT"; then
7914 ac_ct_NMEDIT=$NMEDIT
7915 # Extract the first word of "nmedit", so it can be a program name with args.
7916 set dummy nmedit; ac_word=$2
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7918 $as_echo_n "checking for $ac_word... " >&6; }
7919 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7920 $as_echo_n "(cached) " >&6
7921 else
7922 if test -n "$ac_ct_NMEDIT"; then
7923 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7924 else
7925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 for as_dir in $PATH
7928 IFS=$as_save_IFS
7929 test -z "$as_dir" && as_dir=.
7930 for ac_exec_ext in '' $ac_executable_extensions; do
7931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7932 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7934 break 2
7936 done
7937 done
7938 IFS=$as_save_IFS
7942 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7943 if test -n "$ac_ct_NMEDIT"; then
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7945 $as_echo "$ac_ct_NMEDIT" >&6; }
7946 else
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7951 if test "x$ac_ct_NMEDIT" = x; then
7952 NMEDIT=":"
7953 else
7954 case $cross_compiling:$ac_tool_warned in
7955 yes:)
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7958 ac_tool_warned=yes ;;
7959 esac
7960 NMEDIT=$ac_ct_NMEDIT
7962 else
7963 NMEDIT="$ac_cv_prog_NMEDIT"
7966 if test -n "$ac_tool_prefix"; then
7967 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7968 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7970 $as_echo_n "checking for $ac_word... " >&6; }
7971 if test "${ac_cv_prog_LIPO+set}" = set; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 if test -n "$LIPO"; then
7975 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7976 else
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7978 for as_dir in $PATH
7980 IFS=$as_save_IFS
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7984 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7986 break 2
7988 done
7989 done
7990 IFS=$as_save_IFS
7994 LIPO=$ac_cv_prog_LIPO
7995 if test -n "$LIPO"; then
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7997 $as_echo "$LIPO" >&6; }
7998 else
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8000 $as_echo "no" >&6; }
8005 if test -z "$ac_cv_prog_LIPO"; then
8006 ac_ct_LIPO=$LIPO
8007 # Extract the first word of "lipo", so it can be a program name with args.
8008 set dummy lipo; ac_word=$2
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8010 $as_echo_n "checking for $ac_word... " >&6; }
8011 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8012 $as_echo_n "(cached) " >&6
8013 else
8014 if test -n "$ac_ct_LIPO"; then
8015 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8016 else
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 for as_dir in $PATH
8020 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8024 ac_cv_prog_ac_ct_LIPO="lipo"
8025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 break 2
8028 done
8029 done
8030 IFS=$as_save_IFS
8034 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8035 if test -n "$ac_ct_LIPO"; then
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8037 $as_echo "$ac_ct_LIPO" >&6; }
8038 else
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040 $as_echo "no" >&6; }
8043 if test "x$ac_ct_LIPO" = x; then
8044 LIPO=":"
8045 else
8046 case $cross_compiling:$ac_tool_warned in
8047 yes:)
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8050 ac_tool_warned=yes ;;
8051 esac
8052 LIPO=$ac_ct_LIPO
8054 else
8055 LIPO="$ac_cv_prog_LIPO"
8058 if test -n "$ac_tool_prefix"; then
8059 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8060 set dummy ${ac_tool_prefix}otool; ac_word=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 $as_echo_n "checking for $ac_word... " >&6; }
8063 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8064 $as_echo_n "(cached) " >&6
8065 else
8066 if test -n "$OTOOL"; then
8067 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8068 else
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 for as_dir in $PATH
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8076 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 break 2
8080 done
8081 done
8082 IFS=$as_save_IFS
8086 OTOOL=$ac_cv_prog_OTOOL
8087 if test -n "$OTOOL"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8089 $as_echo "$OTOOL" >&6; }
8090 else
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 $as_echo "no" >&6; }
8097 if test -z "$ac_cv_prog_OTOOL"; then
8098 ac_ct_OTOOL=$OTOOL
8099 # Extract the first word of "otool", so it can be a program name with args.
8100 set dummy otool; ac_word=$2
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8102 $as_echo_n "checking for $ac_word... " >&6; }
8103 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8104 $as_echo_n "(cached) " >&6
8105 else
8106 if test -n "$ac_ct_OTOOL"; then
8107 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8108 else
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 for as_dir in $PATH
8112 IFS=$as_save_IFS
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8116 ac_cv_prog_ac_ct_OTOOL="otool"
8117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8118 break 2
8120 done
8121 done
8122 IFS=$as_save_IFS
8126 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8127 if test -n "$ac_ct_OTOOL"; then
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8129 $as_echo "$ac_ct_OTOOL" >&6; }
8130 else
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132 $as_echo "no" >&6; }
8135 if test "x$ac_ct_OTOOL" = x; then
8136 OTOOL=":"
8137 else
8138 case $cross_compiling:$ac_tool_warned in
8139 yes:)
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8142 ac_tool_warned=yes ;;
8143 esac
8144 OTOOL=$ac_ct_OTOOL
8146 else
8147 OTOOL="$ac_cv_prog_OTOOL"
8150 if test -n "$ac_tool_prefix"; then
8151 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8152 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 $as_echo_n "checking for $ac_word... " >&6; }
8155 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8156 $as_echo_n "(cached) " >&6
8157 else
8158 if test -n "$OTOOL64"; then
8159 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8160 else
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8162 for as_dir in $PATH
8164 IFS=$as_save_IFS
8165 test -z "$as_dir" && as_dir=.
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8168 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8170 break 2
8172 done
8173 done
8174 IFS=$as_save_IFS
8178 OTOOL64=$ac_cv_prog_OTOOL64
8179 if test -n "$OTOOL64"; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8181 $as_echo "$OTOOL64" >&6; }
8182 else
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8189 if test -z "$ac_cv_prog_OTOOL64"; then
8190 ac_ct_OTOOL64=$OTOOL64
8191 # Extract the first word of "otool64", so it can be a program name with args.
8192 set dummy otool64; ac_word=$2
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8194 $as_echo_n "checking for $ac_word... " >&6; }
8195 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 if test -n "$ac_ct_OTOOL64"; then
8199 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8200 else
8201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8202 for as_dir in $PATH
8204 IFS=$as_save_IFS
8205 test -z "$as_dir" && as_dir=.
8206 for ac_exec_ext in '' $ac_executable_extensions; do
8207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8208 ac_cv_prog_ac_ct_OTOOL64="otool64"
8209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8210 break 2
8212 done
8213 done
8214 IFS=$as_save_IFS
8218 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8219 if test -n "$ac_ct_OTOOL64"; then
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8221 $as_echo "$ac_ct_OTOOL64" >&6; }
8222 else
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8224 $as_echo "no" >&6; }
8227 if test "x$ac_ct_OTOOL64" = x; then
8228 OTOOL64=":"
8229 else
8230 case $cross_compiling:$ac_tool_warned in
8231 yes:)
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8234 ac_tool_warned=yes ;;
8235 esac
8236 OTOOL64=$ac_ct_OTOOL64
8238 else
8239 OTOOL64="$ac_cv_prog_OTOOL64"
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8269 $as_echo_n "checking for -single_module linker flag... " >&6; }
8270 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 lt_cv_apple_cc_single_mod=no
8274 if test -z "${LT_MULTI_MODULE}"; then
8275 # By default we will add the -single_module flag. You can override
8276 # by either setting the environment variable LT_MULTI_MODULE
8277 # non-empty at configure time, or by adding -multi_module to the
8278 # link flags.
8279 rm -rf libconftest.dylib*
8280 echo "int foo(void){return 1;}" > conftest.c
8281 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8282 -dynamiclib -Wl,-single_module conftest.c" >&5
8283 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8284 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8285 _lt_result=$?
8286 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8287 lt_cv_apple_cc_single_mod=yes
8288 else
8289 cat conftest.err >&5
8291 rm -rf libconftest.dylib*
8292 rm -f conftest.*
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8296 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8298 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8299 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8300 $as_echo_n "(cached) " >&6
8301 else
8302 lt_cv_ld_exported_symbols_list=no
8303 save_LDFLAGS=$LDFLAGS
8304 echo "_main" > conftest.sym
8305 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8306 if test x$gcc_no_link = xyes; then
8307 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8310 /* end confdefs.h. */
8313 main ()
8317 return 0;
8319 _ACEOF
8320 if ac_fn_c_try_link "$LINENO"; then :
8321 lt_cv_ld_exported_symbols_list=yes
8322 else
8323 lt_cv_ld_exported_symbols_list=no
8325 rm -f core conftest.err conftest.$ac_objext \
8326 conftest$ac_exeext conftest.$ac_ext
8327 LDFLAGS="$save_LDFLAGS"
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8331 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8333 $as_echo_n "checking for -force_load linker flag... " >&6; }
8334 if test "${lt_cv_ld_force_load+set}" = set; then :
8335 $as_echo_n "(cached) " >&6
8336 else
8337 lt_cv_ld_force_load=no
8338 cat > conftest.c << _LT_EOF
8339 int forced_loaded() { return 2;}
8340 _LT_EOF
8341 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8342 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8343 echo "$AR cru libconftest.a conftest.o" >&5
8344 $AR cru libconftest.a conftest.o 2>&5
8345 cat > conftest.c << _LT_EOF
8346 int main() { return 0;}
8347 _LT_EOF
8348 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8349 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8350 _lt_result=$?
8351 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8352 lt_cv_ld_force_load=yes
8353 else
8354 cat conftest.err >&5
8356 rm -f conftest.err libconftest.a conftest conftest.c
8357 rm -rf conftest.dSYM
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8361 $as_echo "$lt_cv_ld_force_load" >&6; }
8362 case $host_os in
8363 rhapsody* | darwin1.[012])
8364 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8365 darwin1.*)
8366 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8367 darwin*) # darwin 5.x on
8368 # if running on 10.5 or later, the deployment target defaults
8369 # to the OS version, if on x86, and 10.4, the deployment
8370 # target defaults to 10.4. Don't you love it?
8371 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8372 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8373 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8374 10.[012][,.]*)
8375 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8376 10.*)
8377 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8378 esac
8380 esac
8381 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8382 _lt_dar_single_mod='$single_module'
8384 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8385 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8386 else
8387 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8389 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8390 _lt_dsymutil='~$DSYMUTIL $lib || :'
8391 else
8392 _lt_dsymutil=
8395 esac
8397 for ac_header in dlfcn.h
8398 do :
8399 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8401 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8402 cat >>confdefs.h <<_ACEOF
8403 #define HAVE_DLFCN_H 1
8404 _ACEOF
8408 done
8414 # Set options
8418 enable_dlopen=no
8421 enable_win32_dll=no
8424 # Check whether --enable-shared was given.
8425 if test "${enable_shared+set}" = set; then :
8426 enableval=$enable_shared; p=${PACKAGE-default}
8427 case $enableval in
8428 yes) enable_shared=yes ;;
8429 no) enable_shared=no ;;
8431 enable_shared=no
8432 # Look at the argument we got. We use all the common list separators.
8433 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8434 for pkg in $enableval; do
8435 IFS="$lt_save_ifs"
8436 if test "X$pkg" = "X$p"; then
8437 enable_shared=yes
8439 done
8440 IFS="$lt_save_ifs"
8442 esac
8443 else
8444 enable_shared=yes
8457 # Check whether --with-pic was given.
8458 if test "${with_pic+set}" = set; then :
8459 withval=$with_pic; pic_mode="$withval"
8460 else
8461 pic_mode=default
8465 test -z "$pic_mode" && pic_mode=default
8473 # Check whether --enable-fast-install was given.
8474 if test "${enable_fast_install+set}" = set; then :
8475 enableval=$enable_fast_install; p=${PACKAGE-default}
8476 case $enableval in
8477 yes) enable_fast_install=yes ;;
8478 no) enable_fast_install=no ;;
8480 enable_fast_install=no
8481 # Look at the argument we got. We use all the common list separators.
8482 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8483 for pkg in $enableval; do
8484 IFS="$lt_save_ifs"
8485 if test "X$pkg" = "X$p"; then
8486 enable_fast_install=yes
8488 done
8489 IFS="$lt_save_ifs"
8491 esac
8492 else
8493 enable_fast_install=yes
8506 # This can be used to rebuild libtool when needed
8507 LIBTOOL_DEPS="$ltmain"
8509 # Always use our own libtool.
8510 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8537 test -z "$LN_S" && LN_S="ln -s"
8552 if test -n "${ZSH_VERSION+set}" ; then
8553 setopt NO_GLOB_SUBST
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8557 $as_echo_n "checking for objdir... " >&6; }
8558 if test "${lt_cv_objdir+set}" = set; then :
8559 $as_echo_n "(cached) " >&6
8560 else
8561 rm -f .libs 2>/dev/null
8562 mkdir .libs 2>/dev/null
8563 if test -d .libs; then
8564 lt_cv_objdir=.libs
8565 else
8566 # MS-DOS does not allow filenames that begin with a dot.
8567 lt_cv_objdir=_libs
8569 rmdir .libs 2>/dev/null
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8572 $as_echo "$lt_cv_objdir" >&6; }
8573 objdir=$lt_cv_objdir
8579 cat >>confdefs.h <<_ACEOF
8580 #define LT_OBJDIR "$lt_cv_objdir/"
8581 _ACEOF
8586 case $host_os in
8587 aix3*)
8588 # AIX sometimes has problems with the GCC collect2 program. For some
8589 # reason, if we set the COLLECT_NAMES environment variable, the problems
8590 # vanish in a puff of smoke.
8591 if test "X${COLLECT_NAMES+set}" != Xset; then
8592 COLLECT_NAMES=
8593 export COLLECT_NAMES
8596 esac
8598 # Global variables:
8599 ofile=libtool
8600 can_build_shared=yes
8602 # All known linkers require a `.a' archive for static linking (except MSVC,
8603 # which needs '.lib').
8604 libext=a
8606 with_gnu_ld="$lt_cv_prog_gnu_ld"
8608 old_CC="$CC"
8609 old_CFLAGS="$CFLAGS"
8611 # Set sane defaults for various variables
8612 test -z "$CC" && CC=cc
8613 test -z "$LTCC" && LTCC=$CC
8614 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8615 test -z "$LD" && LD=ld
8616 test -z "$ac_objext" && ac_objext=o
8618 for cc_temp in $compiler""; do
8619 case $cc_temp in
8620 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8621 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8622 \-*) ;;
8623 *) break;;
8624 esac
8625 done
8626 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8629 # Only perform the check for file, if the check method requires it
8630 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8631 case $deplibs_check_method in
8632 file_magic*)
8633 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8635 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8636 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8637 $as_echo_n "(cached) " >&6
8638 else
8639 case $MAGIC_CMD in
8640 [\\/*] | ?:[\\/]*)
8641 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8644 lt_save_MAGIC_CMD="$MAGIC_CMD"
8645 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8646 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8647 for ac_dir in $ac_dummy; do
8648 IFS="$lt_save_ifs"
8649 test -z "$ac_dir" && ac_dir=.
8650 if test -f $ac_dir/${ac_tool_prefix}file; then
8651 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8652 if test -n "$file_magic_test_file"; then
8653 case $deplibs_check_method in
8654 "file_magic "*)
8655 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8656 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8657 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8658 $EGREP "$file_magic_regex" > /dev/null; then
8660 else
8661 cat <<_LT_EOF 1>&2
8663 *** Warning: the command libtool uses to detect shared libraries,
8664 *** $file_magic_cmd, produces output that libtool cannot recognize.
8665 *** The result is that libtool may fail to recognize shared libraries
8666 *** as such. This will affect the creation of libtool libraries that
8667 *** depend on shared libraries, but programs linked with such libtool
8668 *** libraries will work regardless of this problem. Nevertheless, you
8669 *** may want to report the problem to your system manager and/or to
8670 *** bug-libtool@gnu.org
8672 _LT_EOF
8673 fi ;;
8674 esac
8676 break
8678 done
8679 IFS="$lt_save_ifs"
8680 MAGIC_CMD="$lt_save_MAGIC_CMD"
8682 esac
8685 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8686 if test -n "$MAGIC_CMD"; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8688 $as_echo "$MAGIC_CMD" >&6; }
8689 else
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8691 $as_echo "no" >&6; }
8698 if test -z "$lt_cv_path_MAGIC_CMD"; then
8699 if test -n "$ac_tool_prefix"; then
8700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8701 $as_echo_n "checking for file... " >&6; }
8702 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8703 $as_echo_n "(cached) " >&6
8704 else
8705 case $MAGIC_CMD in
8706 [\\/*] | ?:[\\/]*)
8707 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8710 lt_save_MAGIC_CMD="$MAGIC_CMD"
8711 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8712 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8713 for ac_dir in $ac_dummy; do
8714 IFS="$lt_save_ifs"
8715 test -z "$ac_dir" && ac_dir=.
8716 if test -f $ac_dir/file; then
8717 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8718 if test -n "$file_magic_test_file"; then
8719 case $deplibs_check_method in
8720 "file_magic "*)
8721 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8722 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8723 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8724 $EGREP "$file_magic_regex" > /dev/null; then
8726 else
8727 cat <<_LT_EOF 1>&2
8729 *** Warning: the command libtool uses to detect shared libraries,
8730 *** $file_magic_cmd, produces output that libtool cannot recognize.
8731 *** The result is that libtool may fail to recognize shared libraries
8732 *** as such. This will affect the creation of libtool libraries that
8733 *** depend on shared libraries, but programs linked with such libtool
8734 *** libraries will work regardless of this problem. Nevertheless, you
8735 *** may want to report the problem to your system manager and/or to
8736 *** bug-libtool@gnu.org
8738 _LT_EOF
8739 fi ;;
8740 esac
8742 break
8744 done
8745 IFS="$lt_save_ifs"
8746 MAGIC_CMD="$lt_save_MAGIC_CMD"
8748 esac
8751 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8752 if test -n "$MAGIC_CMD"; then
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8754 $as_echo "$MAGIC_CMD" >&6; }
8755 else
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8757 $as_echo "no" >&6; }
8761 else
8762 MAGIC_CMD=:
8768 esac
8770 # Use C for the default configuration in the libtool script
8772 lt_save_CC="$CC"
8773 ac_ext=c
8774 ac_cpp='$CPP $CPPFLAGS'
8775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8780 # Source file extension for C test sources.
8781 ac_ext=c
8783 # Object file extension for compiled C test sources.
8784 objext=o
8785 objext=$objext
8787 # Code to be used in simple compile tests
8788 lt_simple_compile_test_code="int some_variable = 0;"
8790 # Code to be used in simple link tests
8791 lt_simple_link_test_code='int main(){return(0);}'
8799 # If no C compiler was specified, use CC.
8800 LTCC=${LTCC-"$CC"}
8802 # If no C compiler flags were specified, use CFLAGS.
8803 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8805 # Allow CC to be a program name with arguments.
8806 compiler=$CC
8808 # Save the default compiler, since it gets overwritten when the other
8809 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8810 compiler_DEFAULT=$CC
8812 # save warnings/boilerplate of simple test code
8813 ac_outfile=conftest.$ac_objext
8814 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8815 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8816 _lt_compiler_boilerplate=`cat conftest.err`
8817 $RM conftest*
8819 ac_outfile=conftest.$ac_objext
8820 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8821 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8822 _lt_linker_boilerplate=`cat conftest.err`
8823 $RM -r conftest*
8826 ## CAVEAT EMPTOR:
8827 ## There is no encapsulation within the following macros, do not change
8828 ## the running order or otherwise move them around unless you know exactly
8829 ## what you are doing...
8830 if test -n "$compiler"; then
8832 lt_prog_compiler_no_builtin_flag=
8834 if test "$GCC" = yes; then
8835 case $cc_basename in
8836 nvcc*)
8837 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8839 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8840 esac
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8843 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8844 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8845 $as_echo_n "(cached) " >&6
8846 else
8847 lt_cv_prog_compiler_rtti_exceptions=no
8848 ac_outfile=conftest.$ac_objext
8849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8850 lt_compiler_flag="-fno-rtti -fno-exceptions"
8851 # Insert the option either (1) after the last *FLAGS variable, or
8852 # (2) before a word containing "conftest.", or (3) at the end.
8853 # Note that $ac_compile itself does not contain backslashes and begins
8854 # with a dollar sign (not a hyphen), so the echo should work correctly.
8855 # The option is referenced via a variable to avoid confusing sed.
8856 lt_compile=`echo "$ac_compile" | $SED \
8857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8859 -e 's:$: $lt_compiler_flag:'`
8860 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8861 (eval "$lt_compile" 2>conftest.err)
8862 ac_status=$?
8863 cat conftest.err >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 if (exit $ac_status) && test -s "$ac_outfile"; then
8866 # The compiler can only warn and ignore the option if not recognized
8867 # So say no if there are warnings other than the usual output.
8868 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8869 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8870 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8871 lt_cv_prog_compiler_rtti_exceptions=yes
8874 $RM conftest*
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8878 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8880 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8881 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8882 else
8893 lt_prog_compiler_wl=
8894 lt_prog_compiler_pic=
8895 lt_prog_compiler_static=
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8898 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8900 if test "$GCC" = yes; then
8901 lt_prog_compiler_wl='-Wl,'
8902 lt_prog_compiler_static='-static'
8904 case $host_os in
8905 aix*)
8906 # All AIX code is PIC.
8907 if test "$host_cpu" = ia64; then
8908 # AIX 5 now supports IA64 processor
8909 lt_prog_compiler_static='-Bstatic'
8911 lt_prog_compiler_pic='-fPIC'
8914 amigaos*)
8915 case $host_cpu in
8916 powerpc)
8917 # see comment about AmigaOS4 .so support
8918 lt_prog_compiler_pic='-fPIC'
8920 m68k)
8921 # FIXME: we need at least 68020 code to build shared libraries, but
8922 # adding the `-m68020' flag to GCC prevents building anything better,
8923 # like `-m68040'.
8924 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8926 esac
8929 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8930 # PIC is the default for these OSes.
8933 mingw* | cygwin* | pw32* | os2* | cegcc*)
8934 # This hack is so that the source file can tell whether it is being
8935 # built for inclusion in a dll (and should export symbols for example).
8936 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8937 # (--disable-auto-import) libraries
8938 lt_prog_compiler_pic='-DDLL_EXPORT'
8941 darwin* | rhapsody*)
8942 # PIC is the default on this platform
8943 # Common symbols not allowed in MH_DYLIB files
8944 lt_prog_compiler_pic='-fno-common'
8947 haiku*)
8948 # PIC is the default for Haiku.
8949 # The "-static" flag exists, but is broken.
8950 lt_prog_compiler_static=
8953 hpux*)
8954 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8955 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8956 # sets the default TLS model and affects inlining.
8957 case $host_cpu in
8958 hppa*64*)
8959 # +Z the default
8962 lt_prog_compiler_pic='-fPIC'
8964 esac
8967 interix[3-9]*)
8968 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8969 # Instead, we relocate shared libraries at runtime.
8972 msdosdjgpp*)
8973 # Just because we use GCC doesn't mean we suddenly get shared libraries
8974 # on systems that don't support them.
8975 lt_prog_compiler_can_build_shared=no
8976 enable_shared=no
8979 *nto* | *qnx*)
8980 # QNX uses GNU C++, but need to define -shared option too, otherwise
8981 # it will coredump.
8982 lt_prog_compiler_pic='-fPIC -shared'
8985 sysv4*MP*)
8986 if test -d /usr/nec; then
8987 lt_prog_compiler_pic=-Kconform_pic
8992 lt_prog_compiler_pic='-fPIC'
8994 esac
8996 case $cc_basename in
8997 nvcc*) # Cuda Compiler Driver 2.2
8998 lt_prog_compiler_wl='-Xlinker '
8999 lt_prog_compiler_pic='-Xcompiler -fPIC'
9001 esac
9002 else
9003 # PORTME Check for flag to pass linker flags through the system compiler.
9004 case $host_os in
9005 aix*)
9006 lt_prog_compiler_wl='-Wl,'
9007 if test "$host_cpu" = ia64; then
9008 # AIX 5 now supports IA64 processor
9009 lt_prog_compiler_static='-Bstatic'
9010 else
9011 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9015 mingw* | cygwin* | pw32* | os2* | cegcc*)
9016 # This hack is so that the source file can tell whether it is being
9017 # built for inclusion in a dll (and should export symbols for example).
9018 lt_prog_compiler_pic='-DDLL_EXPORT'
9021 hpux9* | hpux10* | hpux11*)
9022 lt_prog_compiler_wl='-Wl,'
9023 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9024 # not for PA HP-UX.
9025 case $host_cpu in
9026 hppa*64*|ia64*)
9027 # +Z the default
9030 lt_prog_compiler_pic='+Z'
9032 esac
9033 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9034 lt_prog_compiler_static='${wl}-a ${wl}archive'
9037 irix5* | irix6* | nonstopux*)
9038 lt_prog_compiler_wl='-Wl,'
9039 # PIC (with -KPIC) is the default.
9040 lt_prog_compiler_static='-non_shared'
9043 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9044 case $cc_basename in
9045 # old Intel for x86_64 which still supported -KPIC.
9046 ecc*)
9047 lt_prog_compiler_wl='-Wl,'
9048 lt_prog_compiler_pic='-KPIC'
9049 lt_prog_compiler_static='-static'
9051 # icc used to be incompatible with GCC.
9052 # ICC 10 doesn't accept -KPIC any more.
9053 icc* | ifort*)
9054 lt_prog_compiler_wl='-Wl,'
9055 lt_prog_compiler_pic='-fPIC'
9056 lt_prog_compiler_static='-static'
9058 # Lahey Fortran 8.1.
9059 lf95*)
9060 lt_prog_compiler_wl='-Wl,'
9061 lt_prog_compiler_pic='--shared'
9062 lt_prog_compiler_static='--static'
9064 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9065 # Portland Group compilers (*not* the Pentium gcc compiler,
9066 # which looks to be a dead project)
9067 lt_prog_compiler_wl='-Wl,'
9068 lt_prog_compiler_pic='-fpic'
9069 lt_prog_compiler_static='-Bstatic'
9071 ccc*)
9072 lt_prog_compiler_wl='-Wl,'
9073 # All Alpha code is PIC.
9074 lt_prog_compiler_static='-non_shared'
9076 xl* | bgxl* | bgf* | mpixl*)
9077 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9078 lt_prog_compiler_wl='-Wl,'
9079 lt_prog_compiler_pic='-qpic'
9080 lt_prog_compiler_static='-qstaticlink'
9083 case `$CC -V 2>&1 | sed 5q` in
9084 *Sun\ F* | *Sun*Fortran*)
9085 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9086 lt_prog_compiler_pic='-KPIC'
9087 lt_prog_compiler_static='-Bstatic'
9088 lt_prog_compiler_wl=''
9090 *Sun\ C*)
9091 # Sun C 5.9
9092 lt_prog_compiler_pic='-KPIC'
9093 lt_prog_compiler_static='-Bstatic'
9094 lt_prog_compiler_wl='-Wl,'
9096 esac
9098 esac
9101 newsos6)
9102 lt_prog_compiler_pic='-KPIC'
9103 lt_prog_compiler_static='-Bstatic'
9106 *nto* | *qnx*)
9107 # QNX uses GNU C++, but need to define -shared option too, otherwise
9108 # it will coredump.
9109 lt_prog_compiler_pic='-fPIC -shared'
9112 osf3* | osf4* | osf5*)
9113 lt_prog_compiler_wl='-Wl,'
9114 # All OSF/1 code is PIC.
9115 lt_prog_compiler_static='-non_shared'
9118 rdos*)
9119 lt_prog_compiler_static='-non_shared'
9122 solaris*)
9123 lt_prog_compiler_pic='-KPIC'
9124 lt_prog_compiler_static='-Bstatic'
9125 case $cc_basename in
9126 f77* | f90* | f95*)
9127 lt_prog_compiler_wl='-Qoption ld ';;
9129 lt_prog_compiler_wl='-Wl,';;
9130 esac
9133 sunos4*)
9134 lt_prog_compiler_wl='-Qoption ld '
9135 lt_prog_compiler_pic='-PIC'
9136 lt_prog_compiler_static='-Bstatic'
9139 sysv4 | sysv4.2uw2* | sysv4.3*)
9140 lt_prog_compiler_wl='-Wl,'
9141 lt_prog_compiler_pic='-KPIC'
9142 lt_prog_compiler_static='-Bstatic'
9145 sysv4*MP*)
9146 if test -d /usr/nec ;then
9147 lt_prog_compiler_pic='-Kconform_pic'
9148 lt_prog_compiler_static='-Bstatic'
9152 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9153 lt_prog_compiler_wl='-Wl,'
9154 lt_prog_compiler_pic='-KPIC'
9155 lt_prog_compiler_static='-Bstatic'
9158 unicos*)
9159 lt_prog_compiler_wl='-Wl,'
9160 lt_prog_compiler_can_build_shared=no
9163 uts4*)
9164 lt_prog_compiler_pic='-pic'
9165 lt_prog_compiler_static='-Bstatic'
9169 lt_prog_compiler_can_build_shared=no
9171 esac
9174 case $host_os in
9175 # For platforms which do not support PIC, -DPIC is meaningless:
9176 *djgpp*)
9177 lt_prog_compiler_pic=
9180 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9182 esac
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9184 $as_echo "$lt_prog_compiler_pic" >&6; }
9192 # Check to make sure the PIC flag actually works.
9194 if test -n "$lt_prog_compiler_pic"; then
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9196 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9197 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9198 $as_echo_n "(cached) " >&6
9199 else
9200 lt_cv_prog_compiler_pic_works=no
9201 ac_outfile=conftest.$ac_objext
9202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9203 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9204 # Insert the option either (1) after the last *FLAGS variable, or
9205 # (2) before a word containing "conftest.", or (3) at the end.
9206 # Note that $ac_compile itself does not contain backslashes and begins
9207 # with a dollar sign (not a hyphen), so the echo should work correctly.
9208 # The option is referenced via a variable to avoid confusing sed.
9209 lt_compile=`echo "$ac_compile" | $SED \
9210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9212 -e 's:$: $lt_compiler_flag:'`
9213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9214 (eval "$lt_compile" 2>conftest.err)
9215 ac_status=$?
9216 cat conftest.err >&5
9217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9218 if (exit $ac_status) && test -s "$ac_outfile"; then
9219 # The compiler can only warn and ignore the option if not recognized
9220 # So say no if there are warnings other than the usual output.
9221 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9223 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9224 lt_cv_prog_compiler_pic_works=yes
9227 $RM conftest*
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9231 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9233 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9234 case $lt_prog_compiler_pic in
9235 "" | " "*) ;;
9236 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9237 esac
9238 else
9239 lt_prog_compiler_pic=
9240 lt_prog_compiler_can_build_shared=no
9251 # Check to make sure the static flag actually works.
9253 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9255 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9256 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9257 $as_echo_n "(cached) " >&6
9258 else
9259 lt_cv_prog_compiler_static_works=no
9260 save_LDFLAGS="$LDFLAGS"
9261 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9262 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9263 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9264 # The linker can only warn and ignore the option if not recognized
9265 # So say no if there are warnings
9266 if test -s conftest.err; then
9267 # Append any errors to the config.log.
9268 cat conftest.err 1>&5
9269 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9271 if diff conftest.exp conftest.er2 >/dev/null; then
9272 lt_cv_prog_compiler_static_works=yes
9274 else
9275 lt_cv_prog_compiler_static_works=yes
9278 $RM -r conftest*
9279 LDFLAGS="$save_LDFLAGS"
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9283 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9285 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9287 else
9288 lt_prog_compiler_static=
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9298 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9299 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9300 $as_echo_n "(cached) " >&6
9301 else
9302 lt_cv_prog_compiler_c_o=no
9303 $RM -r conftest 2>/dev/null
9304 mkdir conftest
9305 cd conftest
9306 mkdir out
9307 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9309 lt_compiler_flag="-o out/conftest2.$ac_objext"
9310 # Insert the option either (1) after the last *FLAGS variable, or
9311 # (2) before a word containing "conftest.", or (3) at the end.
9312 # Note that $ac_compile itself does not contain backslashes and begins
9313 # with a dollar sign (not a hyphen), so the echo should work correctly.
9314 lt_compile=`echo "$ac_compile" | $SED \
9315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9317 -e 's:$: $lt_compiler_flag:'`
9318 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9319 (eval "$lt_compile" 2>out/conftest.err)
9320 ac_status=$?
9321 cat out/conftest.err >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9324 then
9325 # The compiler can only warn and ignore the option if not recognized
9326 # So say no if there are warnings
9327 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9328 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9329 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9330 lt_cv_prog_compiler_c_o=yes
9333 chmod u+w . 2>&5
9334 $RM conftest*
9335 # SGI C++ compiler will create directory out/ii_files/ for
9336 # template instantiation
9337 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9338 $RM out/* && rmdir out
9339 cd ..
9340 $RM -r conftest
9341 $RM conftest*
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9345 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9353 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9354 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9355 $as_echo_n "(cached) " >&6
9356 else
9357 lt_cv_prog_compiler_c_o=no
9358 $RM -r conftest 2>/dev/null
9359 mkdir conftest
9360 cd conftest
9361 mkdir out
9362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9364 lt_compiler_flag="-o out/conftest2.$ac_objext"
9365 # Insert the option either (1) after the last *FLAGS variable, or
9366 # (2) before a word containing "conftest.", or (3) at the end.
9367 # Note that $ac_compile itself does not contain backslashes and begins
9368 # with a dollar sign (not a hyphen), so the echo should work correctly.
9369 lt_compile=`echo "$ac_compile" | $SED \
9370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9372 -e 's:$: $lt_compiler_flag:'`
9373 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9374 (eval "$lt_compile" 2>out/conftest.err)
9375 ac_status=$?
9376 cat out/conftest.err >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9379 then
9380 # The compiler can only warn and ignore the option if not recognized
9381 # So say no if there are warnings
9382 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9383 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9384 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9385 lt_cv_prog_compiler_c_o=yes
9388 chmod u+w . 2>&5
9389 $RM conftest*
9390 # SGI C++ compiler will create directory out/ii_files/ for
9391 # template instantiation
9392 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9393 $RM out/* && rmdir out
9394 cd ..
9395 $RM -r conftest
9396 $RM conftest*
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9400 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9405 hard_links="nottested"
9406 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9407 # do not overwrite the value of need_locks provided by the user
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9409 $as_echo_n "checking if we can lock with hard links... " >&6; }
9410 hard_links=yes
9411 $RM conftest*
9412 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9413 touch conftest.a
9414 ln conftest.a conftest.b 2>&5 || hard_links=no
9415 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9417 $as_echo "$hard_links" >&6; }
9418 if test "$hard_links" = no; then
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9420 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9421 need_locks=warn
9423 else
9424 need_locks=no
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9433 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9435 runpath_var=
9436 allow_undefined_flag=
9437 always_export_symbols=no
9438 archive_cmds=
9439 archive_expsym_cmds=
9440 compiler_needs_object=no
9441 enable_shared_with_static_runtimes=no
9442 export_dynamic_flag_spec=
9443 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9444 hardcode_automatic=no
9445 hardcode_direct=no
9446 hardcode_direct_absolute=no
9447 hardcode_libdir_flag_spec=
9448 hardcode_libdir_flag_spec_ld=
9449 hardcode_libdir_separator=
9450 hardcode_minus_L=no
9451 hardcode_shlibpath_var=unsupported
9452 inherit_rpath=no
9453 link_all_deplibs=unknown
9454 module_cmds=
9455 module_expsym_cmds=
9456 old_archive_from_new_cmds=
9457 old_archive_from_expsyms_cmds=
9458 thread_safe_flag_spec=
9459 whole_archive_flag_spec=
9460 # include_expsyms should be a list of space-separated symbols to be *always*
9461 # included in the symbol list
9462 include_expsyms=
9463 # exclude_expsyms can be an extended regexp of symbols to exclude
9464 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9465 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9466 # as well as any symbol that contains `d'.
9467 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9468 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9469 # platforms (ab)use it in PIC code, but their linkers get confused if
9470 # the symbol is explicitly referenced. Since portable code cannot
9471 # rely on this symbol name, it's probably fine to never include it in
9472 # preloaded symbol tables.
9473 # Exclude shared library initialization/finalization symbols.
9474 extract_expsyms_cmds=
9476 case $host_os in
9477 cygwin* | mingw* | pw32* | cegcc*)
9478 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9479 # When not using gcc, we currently assume that we are using
9480 # Microsoft Visual C++.
9481 if test "$GCC" != yes; then
9482 with_gnu_ld=no
9485 interix*)
9486 # we just hope/assume this is gcc and not c89 (= MSVC++)
9487 with_gnu_ld=yes
9489 openbsd*)
9490 with_gnu_ld=no
9492 esac
9494 ld_shlibs=yes
9496 # On some targets, GNU ld is compatible enough with the native linker
9497 # that we're better off using the native interface for both.
9498 lt_use_gnu_ld_interface=no
9499 if test "$with_gnu_ld" = yes; then
9500 case $host_os in
9501 aix*)
9502 # The AIX port of GNU ld has always aspired to compatibility
9503 # with the native linker. However, as the warning in the GNU ld
9504 # block says, versions before 2.19.5* couldn't really create working
9505 # shared libraries, regardless of the interface used.
9506 case `$LD -v 2>&1` in
9507 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9508 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9509 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9511 lt_use_gnu_ld_interface=yes
9513 esac
9516 lt_use_gnu_ld_interface=yes
9518 esac
9521 if test "$lt_use_gnu_ld_interface" = yes; then
9522 # If archive_cmds runs LD, not CC, wlarc should be empty
9523 wlarc='${wl}'
9525 # Set some defaults for GNU ld with shared library support. These
9526 # are reset later if shared libraries are not supported. Putting them
9527 # here allows them to be overridden if necessary.
9528 runpath_var=LD_RUN_PATH
9529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9530 export_dynamic_flag_spec='${wl}--export-dynamic'
9531 # ancient GNU ld didn't support --whole-archive et. al.
9532 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9533 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9534 else
9535 whole_archive_flag_spec=
9537 supports_anon_versioning=no
9538 case `$LD -v 2>&1` in
9539 *GNU\ gold*) supports_anon_versioning=yes ;;
9540 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9541 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9542 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9543 *\ 2.11.*) ;; # other 2.11 versions
9544 *) supports_anon_versioning=yes ;;
9545 esac
9547 # See if GNU ld supports shared libraries.
9548 case $host_os in
9549 aix[3-9]*)
9550 # On AIX/PPC, the GNU linker is very broken
9551 if test "$host_cpu" != ia64; then
9552 ld_shlibs=no
9553 cat <<_LT_EOF 1>&2
9555 *** Warning: the GNU linker, at least up to release 2.19, is reported
9556 *** to be unable to reliably create shared libraries on AIX.
9557 *** Therefore, libtool is disabling shared libraries support. If you
9558 *** really care for shared libraries, you may want to install binutils
9559 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9560 *** You will then need to restart the configuration process.
9562 _LT_EOF
9566 amigaos*)
9567 case $host_cpu in
9568 powerpc)
9569 # see comment about AmigaOS4 .so support
9570 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9571 archive_expsym_cmds=''
9573 m68k)
9574 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)'
9575 hardcode_libdir_flag_spec='-L$libdir'
9576 hardcode_minus_L=yes
9578 esac
9581 beos*)
9582 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9583 allow_undefined_flag=unsupported
9584 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9585 # support --undefined. This deserves some investigation. FIXME
9586 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9587 else
9588 ld_shlibs=no
9592 cygwin* | mingw* | pw32* | cegcc*)
9593 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9594 # as there is no search path for DLLs.
9595 hardcode_libdir_flag_spec='-L$libdir'
9596 export_dynamic_flag_spec='${wl}--export-all-symbols'
9597 allow_undefined_flag=unsupported
9598 always_export_symbols=no
9599 enable_shared_with_static_runtimes=yes
9600 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9602 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9603 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9604 # If the export-symbols file already is a .def file (1st line
9605 # is EXPORTS), use it as is; otherwise, prepend...
9606 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9607 cp $export_symbols $output_objdir/$soname.def;
9608 else
9609 echo EXPORTS > $output_objdir/$soname.def;
9610 cat $export_symbols >> $output_objdir/$soname.def;
9612 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9613 else
9614 ld_shlibs=no
9618 haiku*)
9619 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9620 link_all_deplibs=yes
9623 interix[3-9]*)
9624 hardcode_direct=no
9625 hardcode_shlibpath_var=no
9626 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9627 export_dynamic_flag_spec='${wl}-E'
9628 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9629 # Instead, shared libraries are loaded at an image base (0x10000000 by
9630 # default) and relocated if they conflict, which is a slow very memory
9631 # consuming and fragmenting process. To avoid this, we pick a random,
9632 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9633 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9634 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9635 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'
9638 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9639 tmp_diet=no
9640 if test "$host_os" = linux-dietlibc; then
9641 case $cc_basename in
9642 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9643 esac
9645 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9646 && test "$tmp_diet" = no
9647 then
9648 tmp_addflag=' $pic_flag'
9649 tmp_sharedflag='-shared'
9650 case $cc_basename,$host_cpu in
9651 pgcc*) # Portland Group C compiler
9652 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'
9653 tmp_addflag=' $pic_flag'
9655 pgf77* | pgf90* | pgf95* | pgfortran*)
9656 # Portland Group f77 and f90 compilers
9657 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'
9658 tmp_addflag=' $pic_flag -Mnomain' ;;
9659 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9660 tmp_addflag=' -i_dynamic' ;;
9661 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9662 tmp_addflag=' -i_dynamic -nofor_main' ;;
9663 ifc* | ifort*) # Intel Fortran compiler
9664 tmp_addflag=' -nofor_main' ;;
9665 lf95*) # Lahey Fortran 8.1
9666 whole_archive_flag_spec=
9667 tmp_sharedflag='--shared' ;;
9668 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9669 tmp_sharedflag='-qmkshrobj'
9670 tmp_addflag= ;;
9671 nvcc*) # Cuda Compiler Driver 2.2
9672 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'
9673 compiler_needs_object=yes
9675 esac
9676 case `$CC -V 2>&1 | sed 5q` in
9677 *Sun\ C*) # Sun C 5.9
9678 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'
9679 compiler_needs_object=yes
9680 tmp_sharedflag='-G' ;;
9681 *Sun\ F*) # Sun Fortran 8.3
9682 tmp_sharedflag='-G' ;;
9683 esac
9684 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9686 if test "x$supports_anon_versioning" = xyes; then
9687 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9688 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9689 echo "local: *; };" >> $output_objdir/$libname.ver~
9690 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9693 case $cc_basename in
9694 xlf* | bgf* | bgxlf* | mpixlf*)
9695 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9696 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9697 hardcode_libdir_flag_spec=
9698 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9699 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9700 if test "x$supports_anon_versioning" = xyes; then
9701 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9702 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9703 echo "local: *; };" >> $output_objdir/$libname.ver~
9704 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9707 esac
9708 else
9709 ld_shlibs=no
9713 netbsd*)
9714 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9715 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9716 wlarc=
9717 else
9718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9719 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9723 solaris*)
9724 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9725 ld_shlibs=no
9726 cat <<_LT_EOF 1>&2
9728 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9729 *** create shared libraries on Solaris systems. Therefore, libtool
9730 *** is disabling shared libraries support. We urge you to upgrade GNU
9731 *** binutils to release 2.9.1 or newer. Another option is to modify
9732 *** your PATH or compiler configuration so that the native linker is
9733 *** used, and then restart.
9735 _LT_EOF
9736 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9737 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9738 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9739 else
9740 ld_shlibs=no
9744 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9745 case `$LD -v 2>&1` in
9746 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9747 ld_shlibs=no
9748 cat <<_LT_EOF 1>&2
9750 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9751 *** reliably create shared libraries on SCO systems. Therefore, libtool
9752 *** is disabling shared libraries support. We urge you to upgrade GNU
9753 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9754 *** your PATH or compiler configuration so that the native linker is
9755 *** used, and then restart.
9757 _LT_EOF
9760 # For security reasons, it is highly recommended that you always
9761 # use absolute paths for naming shared libraries, and exclude the
9762 # DT_RUNPATH tag from executables and libraries. But doing so
9763 # requires that you compile everything twice, which is a pain.
9764 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9765 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9766 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9767 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9768 else
9769 ld_shlibs=no
9772 esac
9775 sunos4*)
9776 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9777 wlarc=
9778 hardcode_direct=yes
9779 hardcode_shlibpath_var=no
9783 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9785 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9786 else
9787 ld_shlibs=no
9790 esac
9792 if test "$ld_shlibs" = no; then
9793 runpath_var=
9794 hardcode_libdir_flag_spec=
9795 export_dynamic_flag_spec=
9796 whole_archive_flag_spec=
9798 else
9799 # PORTME fill in a description of your system's linker (not GNU ld)
9800 case $host_os in
9801 aix3*)
9802 allow_undefined_flag=unsupported
9803 always_export_symbols=yes
9804 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'
9805 # Note: this linker hardcodes the directories in LIBPATH if there
9806 # are no directories specified by -L.
9807 hardcode_minus_L=yes
9808 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9809 # Neither direct hardcoding nor static linking is supported with a
9810 # broken collect2.
9811 hardcode_direct=unsupported
9815 aix[4-9]*)
9816 if test "$host_cpu" = ia64; then
9817 # On IA64, the linker does run time linking by default, so we don't
9818 # have to do anything special.
9819 aix_use_runtimelinking=no
9820 exp_sym_flag='-Bexport'
9821 no_entry_flag=""
9822 else
9823 # If we're using GNU nm, then we don't want the "-C" option.
9824 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9825 # Also, AIX nm treats weak defined symbols like other global
9826 # defined symbols, whereas GNU nm marks them as "W".
9827 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9828 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'
9829 else
9830 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'
9832 aix_use_runtimelinking=no
9834 # Test if we are trying to use run time linking or normal
9835 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9836 # need to do runtime linking.
9837 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9838 for ld_flag in $LDFLAGS; do
9839 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9840 aix_use_runtimelinking=yes
9841 break
9843 done
9845 esac
9847 exp_sym_flag='-bexport'
9848 no_entry_flag='-bnoentry'
9851 # When large executables or shared objects are built, AIX ld can
9852 # have problems creating the table of contents. If linking a library
9853 # or program results in "error TOC overflow" add -mminimal-toc to
9854 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9855 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9857 archive_cmds=''
9858 hardcode_direct=yes
9859 hardcode_direct_absolute=yes
9860 hardcode_libdir_separator=':'
9861 link_all_deplibs=yes
9862 file_list_spec='${wl}-f,'
9864 if test "$GCC" = yes; then
9865 case $host_os in aix4.[012]|aix4.[012].*)
9866 # We only want to do this on AIX 4.2 and lower, the check
9867 # below for broken collect2 doesn't work under 4.3+
9868 collect2name=`${CC} -print-prog-name=collect2`
9869 if test -f "$collect2name" &&
9870 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9871 then
9872 # We have reworked collect2
9874 else
9875 # We have old collect2
9876 hardcode_direct=unsupported
9877 # It fails to find uninstalled libraries when the uninstalled
9878 # path is not listed in the libpath. Setting hardcode_minus_L
9879 # to unsupported forces relinking
9880 hardcode_minus_L=yes
9881 hardcode_libdir_flag_spec='-L$libdir'
9882 hardcode_libdir_separator=
9885 esac
9886 shared_flag='-shared'
9887 if test "$aix_use_runtimelinking" = yes; then
9888 shared_flag="$shared_flag "'${wl}-G'
9890 else
9891 # not using gcc
9892 if test "$host_cpu" = ia64; then
9893 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9894 # chokes on -Wl,-G. The following line is correct:
9895 shared_flag='-G'
9896 else
9897 if test "$aix_use_runtimelinking" = yes; then
9898 shared_flag='${wl}-G'
9899 else
9900 shared_flag='${wl}-bM:SRE'
9905 export_dynamic_flag_spec='${wl}-bexpall'
9906 # It seems that -bexpall does not export symbols beginning with
9907 # underscore (_), so it is better to generate a list of symbols to export.
9908 always_export_symbols=yes
9909 if test "$aix_use_runtimelinking" = yes; then
9910 # Warning - without using the other runtime loading flags (-brtl),
9911 # -berok will link without error, but may produce a broken library.
9912 allow_undefined_flag='-berok'
9913 # Determine the default libpath from the value encoded in an
9914 # empty executable.
9915 if test x$gcc_no_link = xyes; then
9916 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h. */
9922 main ()
9926 return 0;
9928 _ACEOF
9929 if ac_fn_c_try_link "$LINENO"; then :
9931 lt_aix_libpath_sed='
9932 /Import File Strings/,/^$/ {
9933 /^0/ {
9934 s/^0 *\(.*\)$/\1/
9938 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9939 # Check for a 64-bit object if we didn't find anything.
9940 if test -z "$aix_libpath"; then
9941 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9944 rm -f core conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9946 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9948 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9949 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"
9950 else
9951 if test "$host_cpu" = ia64; then
9952 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9953 allow_undefined_flag="-z nodefs"
9954 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"
9955 else
9956 # Determine the default libpath from the value encoded in an
9957 # empty executable.
9958 if test x$gcc_no_link = xyes; then
9959 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962 /* end confdefs.h. */
9965 main ()
9969 return 0;
9971 _ACEOF
9972 if ac_fn_c_try_link "$LINENO"; then :
9974 lt_aix_libpath_sed='
9975 /Import File Strings/,/^$/ {
9976 /^0/ {
9977 s/^0 *\(.*\)$/\1/
9981 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9982 # Check for a 64-bit object if we didn't find anything.
9983 if test -z "$aix_libpath"; then
9984 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9987 rm -f core conftest.err conftest.$ac_objext \
9988 conftest$ac_exeext conftest.$ac_ext
9989 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9991 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9992 # Warning - without using the other run time loading flags,
9993 # -berok will link without error, but may produce a broken library.
9994 no_undefined_flag=' ${wl}-bernotok'
9995 allow_undefined_flag=' ${wl}-berok'
9996 if test "$with_gnu_ld" = yes; then
9997 # We only use this code for GNU lds that support --whole-archive.
9998 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9999 else
10000 # Exported symbols can be pulled into shared objects from archives
10001 whole_archive_flag_spec='$convenience'
10003 archive_cmds_need_lc=yes
10004 # This is similar to how AIX traditionally builds its shared libraries.
10005 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'
10010 amigaos*)
10011 case $host_cpu in
10012 powerpc)
10013 # see comment about AmigaOS4 .so support
10014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10015 archive_expsym_cmds=''
10017 m68k)
10018 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)'
10019 hardcode_libdir_flag_spec='-L$libdir'
10020 hardcode_minus_L=yes
10022 esac
10025 bsdi[45]*)
10026 export_dynamic_flag_spec=-rdynamic
10029 cygwin* | mingw* | pw32* | cegcc*)
10030 # When not using gcc, we currently assume that we are using
10031 # Microsoft Visual C++.
10032 # hardcode_libdir_flag_spec is actually meaningless, as there is
10033 # no search path for DLLs.
10034 hardcode_libdir_flag_spec=' '
10035 allow_undefined_flag=unsupported
10036 # Tell ltmain to make .lib files, not .a files.
10037 libext=lib
10038 # Tell ltmain to make .dll files, not .so files.
10039 shrext_cmds=".dll"
10040 # FIXME: Setting linknames here is a bad hack.
10041 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10042 # The linker will automatically build a .lib file if we build a DLL.
10043 old_archive_from_new_cmds='true'
10044 # FIXME: Should let the user specify the lib program.
10045 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10046 fix_srcfile_path='`cygpath -w "$srcfile"`'
10047 enable_shared_with_static_runtimes=yes
10050 darwin* | rhapsody*)
10053 archive_cmds_need_lc=no
10054 hardcode_direct=no
10055 hardcode_automatic=yes
10056 hardcode_shlibpath_var=unsupported
10057 if test "$lt_cv_ld_force_load" = "yes"; then
10058 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\"`'
10059 else
10060 whole_archive_flag_spec=''
10062 link_all_deplibs=yes
10063 allow_undefined_flag="$_lt_dar_allow_undefined"
10064 case $cc_basename in
10065 ifort*) _lt_dar_can_shared=yes ;;
10066 *) _lt_dar_can_shared=$GCC ;;
10067 esac
10068 if test "$_lt_dar_can_shared" = "yes"; then
10069 output_verbose_link_cmd=func_echo_all
10070 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10071 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10072 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}"
10073 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}"
10075 else
10076 ld_shlibs=no
10081 dgux*)
10082 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10083 hardcode_libdir_flag_spec='-L$libdir'
10084 hardcode_shlibpath_var=no
10087 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10088 # support. Future versions do this automatically, but an explicit c++rt0.o
10089 # does not break anything, and helps significantly (at the cost of a little
10090 # extra space).
10091 freebsd2.2*)
10092 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10093 hardcode_libdir_flag_spec='-R$libdir'
10094 hardcode_direct=yes
10095 hardcode_shlibpath_var=no
10098 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10099 freebsd2.*)
10100 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10101 hardcode_direct=yes
10102 hardcode_minus_L=yes
10103 hardcode_shlibpath_var=no
10106 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10107 freebsd* | dragonfly*)
10108 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10109 hardcode_libdir_flag_spec='-R$libdir'
10110 hardcode_direct=yes
10111 hardcode_shlibpath_var=no
10114 hpux9*)
10115 if test "$GCC" = yes; then
10116 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'
10117 else
10118 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'
10120 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10121 hardcode_libdir_separator=:
10122 hardcode_direct=yes
10124 # hardcode_minus_L: Not really in the search PATH,
10125 # but as the default location of the library.
10126 hardcode_minus_L=yes
10127 export_dynamic_flag_spec='${wl}-E'
10130 hpux10*)
10131 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10132 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10133 else
10134 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10136 if test "$with_gnu_ld" = no; then
10137 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10138 hardcode_libdir_flag_spec_ld='+b $libdir'
10139 hardcode_libdir_separator=:
10140 hardcode_direct=yes
10141 hardcode_direct_absolute=yes
10142 export_dynamic_flag_spec='${wl}-E'
10143 # hardcode_minus_L: Not really in the search PATH,
10144 # but as the default location of the library.
10145 hardcode_minus_L=yes
10149 hpux11*)
10150 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10151 case $host_cpu in
10152 hppa*64*)
10153 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10155 ia64*)
10156 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10159 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10161 esac
10162 else
10163 case $host_cpu in
10164 hppa*64*)
10165 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10167 ia64*)
10168 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10172 # Older versions of the 11.00 compiler do not understand -b yet
10173 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10175 $as_echo_n "checking if $CC understands -b... " >&6; }
10176 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10177 $as_echo_n "(cached) " >&6
10178 else
10179 lt_cv_prog_compiler__b=no
10180 save_LDFLAGS="$LDFLAGS"
10181 LDFLAGS="$LDFLAGS -b"
10182 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10184 # The linker can only warn and ignore the option if not recognized
10185 # So say no if there are warnings
10186 if test -s conftest.err; then
10187 # Append any errors to the config.log.
10188 cat conftest.err 1>&5
10189 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10191 if diff conftest.exp conftest.er2 >/dev/null; then
10192 lt_cv_prog_compiler__b=yes
10194 else
10195 lt_cv_prog_compiler__b=yes
10198 $RM -r conftest*
10199 LDFLAGS="$save_LDFLAGS"
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10203 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10205 if test x"$lt_cv_prog_compiler__b" = xyes; then
10206 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10207 else
10208 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10212 esac
10214 if test "$with_gnu_ld" = no; then
10215 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10216 hardcode_libdir_separator=:
10218 case $host_cpu in
10219 hppa*64*|ia64*)
10220 hardcode_direct=no
10221 hardcode_shlibpath_var=no
10224 hardcode_direct=yes
10225 hardcode_direct_absolute=yes
10226 export_dynamic_flag_spec='${wl}-E'
10228 # hardcode_minus_L: Not really in the search PATH,
10229 # but as the default location of the library.
10230 hardcode_minus_L=yes
10232 esac
10236 irix5* | irix6* | nonstopux*)
10237 if test "$GCC" = yes; then
10238 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'
10239 # Try to use the -exported_symbol ld option, if it does not
10240 # work, assume that -exports_file does not work either and
10241 # implicitly export all symbols.
10242 save_LDFLAGS="$LDFLAGS"
10243 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10244 if test x$gcc_no_link = xyes; then
10245 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10248 /* end confdefs.h. */
10249 int foo(void) {}
10250 _ACEOF
10251 if ac_fn_c_try_link "$LINENO"; then :
10252 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'
10255 rm -f core conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
10257 LDFLAGS="$save_LDFLAGS"
10258 else
10259 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'
10260 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'
10262 archive_cmds_need_lc='no'
10263 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10264 hardcode_libdir_separator=:
10265 inherit_rpath=yes
10266 link_all_deplibs=yes
10269 netbsd*)
10270 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10271 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10272 else
10273 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10275 hardcode_libdir_flag_spec='-R$libdir'
10276 hardcode_direct=yes
10277 hardcode_shlibpath_var=no
10280 newsos6)
10281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10282 hardcode_direct=yes
10283 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10284 hardcode_libdir_separator=:
10285 hardcode_shlibpath_var=no
10288 *nto* | *qnx*)
10291 openbsd*)
10292 if test -f /usr/libexec/ld.so; then
10293 hardcode_direct=yes
10294 hardcode_shlibpath_var=no
10295 hardcode_direct_absolute=yes
10296 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10297 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10298 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10299 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10300 export_dynamic_flag_spec='${wl}-E'
10301 else
10302 case $host_os in
10303 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10304 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10305 hardcode_libdir_flag_spec='-R$libdir'
10308 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10309 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10311 esac
10313 else
10314 ld_shlibs=no
10318 os2*)
10319 hardcode_libdir_flag_spec='-L$libdir'
10320 hardcode_minus_L=yes
10321 allow_undefined_flag=unsupported
10322 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'
10323 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10326 osf3*)
10327 if test "$GCC" = yes; then
10328 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10329 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'
10330 else
10331 allow_undefined_flag=' -expect_unresolved \*'
10332 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'
10334 archive_cmds_need_lc='no'
10335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10336 hardcode_libdir_separator=:
10339 osf4* | osf5*) # as osf3* with the addition of -msym flag
10340 if test "$GCC" = yes; then
10341 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10342 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'
10343 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10344 else
10345 allow_undefined_flag=' -expect_unresolved \*'
10346 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'
10347 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~
10348 $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'
10350 # Both c and cxx compiler support -rpath directly
10351 hardcode_libdir_flag_spec='-rpath $libdir'
10353 archive_cmds_need_lc='no'
10354 hardcode_libdir_separator=:
10357 solaris*)
10358 no_undefined_flag=' -z defs'
10359 if test "$GCC" = yes; then
10360 wlarc='${wl}'
10361 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10362 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10363 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10364 else
10365 case `$CC -V 2>&1` in
10366 *"Compilers 5.0"*)
10367 wlarc=''
10368 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10369 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10370 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10373 wlarc='${wl}'
10374 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10375 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10376 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10378 esac
10380 hardcode_libdir_flag_spec='-R$libdir'
10381 hardcode_shlibpath_var=no
10382 case $host_os in
10383 solaris2.[0-5] | solaris2.[0-5].*) ;;
10385 # The compiler driver will combine and reorder linker options,
10386 # but understands `-z linker_flag'. GCC discards it without `$wl',
10387 # but is careful enough not to reorder.
10388 # Supported since Solaris 2.6 (maybe 2.5.1?)
10389 if test "$GCC" = yes; then
10390 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10391 else
10392 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10395 esac
10396 link_all_deplibs=yes
10399 sunos4*)
10400 if test "x$host_vendor" = xsequent; then
10401 # Use $CC to link under sequent, because it throws in some extra .o
10402 # files that make .init and .fini sections work.
10403 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10404 else
10405 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10407 hardcode_libdir_flag_spec='-L$libdir'
10408 hardcode_direct=yes
10409 hardcode_minus_L=yes
10410 hardcode_shlibpath_var=no
10413 sysv4)
10414 case $host_vendor in
10415 sni)
10416 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10417 hardcode_direct=yes # is this really true???
10419 siemens)
10420 ## LD is ld it makes a PLAMLIB
10421 ## CC just makes a GrossModule.
10422 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10423 reload_cmds='$CC -r -o $output$reload_objs'
10424 hardcode_direct=no
10426 motorola)
10427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10428 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10430 esac
10431 runpath_var='LD_RUN_PATH'
10432 hardcode_shlibpath_var=no
10435 sysv4.3*)
10436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10437 hardcode_shlibpath_var=no
10438 export_dynamic_flag_spec='-Bexport'
10441 sysv4*MP*)
10442 if test -d /usr/nec; then
10443 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10444 hardcode_shlibpath_var=no
10445 runpath_var=LD_RUN_PATH
10446 hardcode_runpath_var=yes
10447 ld_shlibs=yes
10451 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10452 no_undefined_flag='${wl}-z,text'
10453 archive_cmds_need_lc=no
10454 hardcode_shlibpath_var=no
10455 runpath_var='LD_RUN_PATH'
10457 if test "$GCC" = yes; then
10458 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10459 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10460 else
10461 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10462 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10466 sysv5* | sco3.2v5* | sco5v6*)
10467 # Note: We can NOT use -z defs as we might desire, because we do not
10468 # link with -lc, and that would cause any symbols used from libc to
10469 # always be unresolved, which means just about no library would
10470 # ever link correctly. If we're not using GNU ld we use -z text
10471 # though, which does catch some bad symbols but isn't as heavy-handed
10472 # as -z defs.
10473 no_undefined_flag='${wl}-z,text'
10474 allow_undefined_flag='${wl}-z,nodefs'
10475 archive_cmds_need_lc=no
10476 hardcode_shlibpath_var=no
10477 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10478 hardcode_libdir_separator=':'
10479 link_all_deplibs=yes
10480 export_dynamic_flag_spec='${wl}-Bexport'
10481 runpath_var='LD_RUN_PATH'
10483 if test "$GCC" = yes; then
10484 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10485 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10486 else
10487 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10488 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10492 uts4*)
10493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10494 hardcode_libdir_flag_spec='-L$libdir'
10495 hardcode_shlibpath_var=no
10499 ld_shlibs=no
10501 esac
10503 if test x$host_vendor = xsni; then
10504 case $host in
10505 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10506 export_dynamic_flag_spec='${wl}-Blargedynsym'
10508 esac
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10513 $as_echo "$ld_shlibs" >&6; }
10514 test "$ld_shlibs" = no && can_build_shared=no
10516 with_gnu_ld=$with_gnu_ld
10533 # Do we need to explicitly link libc?
10535 case "x$archive_cmds_need_lc" in
10536 x|xyes)
10537 # Assume -lc should be added
10538 archive_cmds_need_lc=yes
10540 if test "$enable_shared" = yes && test "$GCC" = yes; then
10541 case $archive_cmds in
10542 *'~'*)
10543 # FIXME: we may have to deal with multi-command sequences.
10545 '$CC '*)
10546 # Test whether the compiler implicitly links with -lc since on some
10547 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10548 # to ld, don't add -lc before -lgcc.
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10550 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10551 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10552 $as_echo_n "(cached) " >&6
10553 else
10554 $RM conftest*
10555 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10558 (eval $ac_compile) 2>&5
10559 ac_status=$?
10560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10561 test $ac_status = 0; } 2>conftest.err; then
10562 soname=conftest
10563 lib=conftest
10564 libobjs=conftest.$ac_objext
10565 deplibs=
10566 wl=$lt_prog_compiler_wl
10567 pic_flag=$lt_prog_compiler_pic
10568 compiler_flags=-v
10569 linker_flags=-v
10570 verstring=
10571 output_objdir=.
10572 libname=conftest
10573 lt_save_allow_undefined_flag=$allow_undefined_flag
10574 allow_undefined_flag=
10575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10576 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10577 ac_status=$?
10578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10579 test $ac_status = 0; }
10580 then
10581 lt_cv_archive_cmds_need_lc=no
10582 else
10583 lt_cv_archive_cmds_need_lc=yes
10585 allow_undefined_flag=$lt_save_allow_undefined_flag
10586 else
10587 cat conftest.err 1>&5
10589 $RM conftest*
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10593 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10594 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10596 esac
10599 esac
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10758 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10760 if test "$GCC" = yes; then
10761 case $host_os in
10762 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10763 *) lt_awk_arg="/^libraries:/" ;;
10764 esac
10765 case $host_os in
10766 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10767 *) lt_sed_strip_eq="s,=/,/,g" ;;
10768 esac
10769 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10770 case $lt_search_path_spec in
10771 *\;*)
10772 # if the path contains ";" then we assume it to be the separator
10773 # otherwise default to the standard path separator (i.e. ":") - it is
10774 # assumed that no part of a normal pathname contains ";" but that should
10775 # okay in the real world where ";" in dirpaths is itself problematic.
10776 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10779 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10781 esac
10782 # Ok, now we have the path, separated by spaces, we can step through it
10783 # and add multilib dir if necessary.
10784 lt_tmp_lt_search_path_spec=
10785 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10786 for lt_sys_path in $lt_search_path_spec; do
10787 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10788 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10789 else
10790 test -d "$lt_sys_path" && \
10791 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10793 done
10794 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10795 BEGIN {RS=" "; FS="/|\n";} {
10796 lt_foo="";
10797 lt_count=0;
10798 for (lt_i = NF; lt_i > 0; lt_i--) {
10799 if ($lt_i != "" && $lt_i != ".") {
10800 if ($lt_i == "..") {
10801 lt_count++;
10802 } else {
10803 if (lt_count == 0) {
10804 lt_foo="/" $lt_i lt_foo;
10805 } else {
10806 lt_count--;
10811 if (lt_foo != "") { lt_freq[lt_foo]++; }
10812 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10814 # AWK program above erroneously prepends '/' to C:/dos/paths
10815 # for these hosts.
10816 case $host_os in
10817 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10818 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10819 esac
10820 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10821 else
10822 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10824 library_names_spec=
10825 libname_spec='lib$name'
10826 soname_spec=
10827 shrext_cmds=".so"
10828 postinstall_cmds=
10829 postuninstall_cmds=
10830 finish_cmds=
10831 finish_eval=
10832 shlibpath_var=
10833 shlibpath_overrides_runpath=unknown
10834 version_type=none
10835 dynamic_linker="$host_os ld.so"
10836 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10837 need_lib_prefix=unknown
10838 hardcode_into_libs=no
10840 # when you set need_version to no, make sure it does not cause -set_version
10841 # flags to be left without arguments
10842 need_version=unknown
10844 case $host_os in
10845 aix3*)
10846 version_type=linux
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10848 shlibpath_var=LIBPATH
10850 # AIX 3 has no versioning support, so we append a major version to the name.
10851 soname_spec='${libname}${release}${shared_ext}$major'
10854 aix[4-9]*)
10855 version_type=linux
10856 need_lib_prefix=no
10857 need_version=no
10858 hardcode_into_libs=yes
10859 if test "$host_cpu" = ia64; then
10860 # AIX 5 supports IA64
10861 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10862 shlibpath_var=LD_LIBRARY_PATH
10863 else
10864 # With GCC up to 2.95.x, collect2 would create an import file
10865 # for dependence libraries. The import file would start with
10866 # the line `#! .'. This would cause the generated library to
10867 # depend on `.', always an invalid library. This was fixed in
10868 # development snapshots of GCC prior to 3.0.
10869 case $host_os in
10870 aix4 | aix4.[01] | aix4.[01].*)
10871 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10872 echo ' yes '
10873 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10875 else
10876 can_build_shared=no
10879 esac
10880 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10881 # soname into executable. Probably we can add versioning support to
10882 # collect2, so additional links can be useful in future.
10883 if test "$aix_use_runtimelinking" = yes; then
10884 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10885 # instead of lib<name>.a to let people know that these are not
10886 # typical AIX shared libraries.
10887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10888 else
10889 # We preserve .a as extension for shared libraries through AIX4.2
10890 # and later when we are not doing run time linking.
10891 library_names_spec='${libname}${release}.a $libname.a'
10892 soname_spec='${libname}${release}${shared_ext}$major'
10894 shlibpath_var=LIBPATH
10898 amigaos*)
10899 case $host_cpu in
10900 powerpc)
10901 # Since July 2007 AmigaOS4 officially supports .so libraries.
10902 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905 m68k)
10906 library_names_spec='$libname.ixlibrary $libname.a'
10907 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10908 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'
10910 esac
10913 beos*)
10914 library_names_spec='${libname}${shared_ext}'
10915 dynamic_linker="$host_os ld.so"
10916 shlibpath_var=LIBRARY_PATH
10919 bsdi[45]*)
10920 version_type=linux
10921 need_version=no
10922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923 soname_spec='${libname}${release}${shared_ext}$major'
10924 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10925 shlibpath_var=LD_LIBRARY_PATH
10926 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10927 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10928 # the default ld.so.conf also contains /usr/contrib/lib and
10929 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10930 # libtool to hard-code these into programs
10933 cygwin* | mingw* | pw32* | cegcc*)
10934 version_type=windows
10935 shrext_cmds=".dll"
10936 need_version=no
10937 need_lib_prefix=no
10939 case $GCC,$host_os in
10940 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10941 library_names_spec='$libname.dll.a'
10942 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10943 postinstall_cmds='base_file=`basename \${file}`~
10944 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10945 dldir=$destdir/`dirname \$dlpath`~
10946 test -d \$dldir || mkdir -p \$dldir~
10947 $install_prog $dir/$dlname \$dldir/$dlname~
10948 chmod a+x \$dldir/$dlname~
10949 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10950 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10952 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10953 dlpath=$dir/\$dldll~
10954 $RM \$dlpath'
10955 shlibpath_overrides_runpath=yes
10957 case $host_os in
10958 cygwin*)
10959 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10960 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10962 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10964 mingw* | cegcc*)
10965 # MinGW DLLs use traditional 'lib' prefix
10966 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10968 pw32*)
10969 # pw32 DLLs use 'pw' prefix rather than 'lib'
10970 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10972 esac
10976 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10978 esac
10979 dynamic_linker='Win32 ld.exe'
10980 # FIXME: first we should search . and the directory the executable is in
10981 shlibpath_var=PATH
10984 darwin* | rhapsody*)
10985 dynamic_linker="$host_os dyld"
10986 version_type=darwin
10987 need_lib_prefix=no
10988 need_version=no
10989 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10990 soname_spec='${libname}${release}${major}$shared_ext'
10991 shlibpath_overrides_runpath=yes
10992 shlibpath_var=DYLD_LIBRARY_PATH
10993 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10995 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10996 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10999 dgux*)
11000 version_type=linux
11001 need_lib_prefix=no
11002 need_version=no
11003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11004 soname_spec='${libname}${release}${shared_ext}$major'
11005 shlibpath_var=LD_LIBRARY_PATH
11008 freebsd* | dragonfly*)
11009 # DragonFly does not have aout. When/if they implement a new
11010 # versioning mechanism, adjust this.
11011 if test -x /usr/bin/objformat; then
11012 objformat=`/usr/bin/objformat`
11013 else
11014 case $host_os in
11015 freebsd[23].*) objformat=aout ;;
11016 *) objformat=elf ;;
11017 esac
11019 version_type=freebsd-$objformat
11020 case $version_type in
11021 freebsd-elf*)
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11023 need_version=no
11024 need_lib_prefix=no
11026 freebsd-*)
11027 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11028 need_version=yes
11030 esac
11031 shlibpath_var=LD_LIBRARY_PATH
11032 case $host_os in
11033 freebsd2.*)
11034 shlibpath_overrides_runpath=yes
11036 freebsd3.[01]* | freebsdelf3.[01]*)
11037 shlibpath_overrides_runpath=yes
11038 hardcode_into_libs=yes
11040 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11041 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11042 shlibpath_overrides_runpath=no
11043 hardcode_into_libs=yes
11045 *) # from 4.6 on, and DragonFly
11046 shlibpath_overrides_runpath=yes
11047 hardcode_into_libs=yes
11049 esac
11052 gnu*)
11053 version_type=linux
11054 need_lib_prefix=no
11055 need_version=no
11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11057 soname_spec='${libname}${release}${shared_ext}$major'
11058 shlibpath_var=LD_LIBRARY_PATH
11059 hardcode_into_libs=yes
11062 haiku*)
11063 version_type=linux
11064 need_lib_prefix=no
11065 need_version=no
11066 dynamic_linker="$host_os runtime_loader"
11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11068 soname_spec='${libname}${release}${shared_ext}$major'
11069 shlibpath_var=LIBRARY_PATH
11070 shlibpath_overrides_runpath=yes
11071 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11072 hardcode_into_libs=yes
11075 hpux9* | hpux10* | hpux11*)
11076 # Give a soname corresponding to the major version so that dld.sl refuses to
11077 # link against other versions.
11078 version_type=sunos
11079 need_lib_prefix=no
11080 need_version=no
11081 case $host_cpu in
11082 ia64*)
11083 shrext_cmds='.so'
11084 hardcode_into_libs=yes
11085 dynamic_linker="$host_os dld.so"
11086 shlibpath_var=LD_LIBRARY_PATH
11087 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11089 soname_spec='${libname}${release}${shared_ext}$major'
11090 if test "X$HPUX_IA64_MODE" = X32; then
11091 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11092 else
11093 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11095 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11097 hppa*64*)
11098 shrext_cmds='.sl'
11099 hardcode_into_libs=yes
11100 dynamic_linker="$host_os dld.sl"
11101 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11102 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11104 soname_spec='${libname}${release}${shared_ext}$major'
11105 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11109 shrext_cmds='.sl'
11110 dynamic_linker="$host_os dld.sl"
11111 shlibpath_var=SHLIB_PATH
11112 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11114 soname_spec='${libname}${release}${shared_ext}$major'
11116 esac
11117 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11118 postinstall_cmds='chmod 555 $lib'
11119 # or fails outright, so override atomically:
11120 install_override_mode=555
11123 interix[3-9]*)
11124 version_type=linux
11125 need_lib_prefix=no
11126 need_version=no
11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11128 soname_spec='${libname}${release}${shared_ext}$major'
11129 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11130 shlibpath_var=LD_LIBRARY_PATH
11131 shlibpath_overrides_runpath=no
11132 hardcode_into_libs=yes
11135 irix5* | irix6* | nonstopux*)
11136 case $host_os in
11137 nonstopux*) version_type=nonstopux ;;
11139 if test "$lt_cv_prog_gnu_ld" = yes; then
11140 version_type=linux
11141 else
11142 version_type=irix
11143 fi ;;
11144 esac
11145 need_lib_prefix=no
11146 need_version=no
11147 soname_spec='${libname}${release}${shared_ext}$major'
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11149 case $host_os in
11150 irix5* | nonstopux*)
11151 libsuff= shlibsuff=
11154 case $LD in # libtool.m4 will add one of these switches to LD
11155 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11156 libsuff= shlibsuff= libmagic=32-bit;;
11157 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11158 libsuff=32 shlibsuff=N32 libmagic=N32;;
11159 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11160 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11161 *) libsuff= shlibsuff= libmagic=never-match;;
11162 esac
11164 esac
11165 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11166 shlibpath_overrides_runpath=no
11167 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11168 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11169 hardcode_into_libs=yes
11172 # No shared lib support for Linux oldld, aout, or coff.
11173 linux*oldld* | linux*aout* | linux*coff*)
11174 dynamic_linker=no
11177 # This must be Linux ELF.
11178 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11179 version_type=linux
11180 need_lib_prefix=no
11181 need_version=no
11182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183 soname_spec='${libname}${release}${shared_ext}$major'
11184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11185 shlibpath_var=LD_LIBRARY_PATH
11186 shlibpath_overrides_runpath=no
11188 # Some binutils ld are patched to set DT_RUNPATH
11189 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11190 $as_echo_n "(cached) " >&6
11191 else
11192 lt_cv_shlibpath_overrides_runpath=no
11193 save_LDFLAGS=$LDFLAGS
11194 save_libdir=$libdir
11195 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11196 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11197 if test x$gcc_no_link = xyes; then
11198 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11201 /* end confdefs.h. */
11204 main ()
11208 return 0;
11210 _ACEOF
11211 if ac_fn_c_try_link "$LINENO"; then :
11212 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11213 lt_cv_shlibpath_overrides_runpath=yes
11216 rm -f core conftest.err conftest.$ac_objext \
11217 conftest$ac_exeext conftest.$ac_ext
11218 LDFLAGS=$save_LDFLAGS
11219 libdir=$save_libdir
11223 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11225 # This implies no fast_install, which is unacceptable.
11226 # Some rework will be needed to allow for fast_install
11227 # before this can be enabled.
11228 hardcode_into_libs=yes
11230 # Append ld.so.conf contents to the search path
11231 if test -f /etc/ld.so.conf; then
11232 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' ' '`
11233 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11236 # We used to test for /lib/ld.so.1 and disable shared libraries on
11237 # powerpc, because MkLinux only supported shared libraries with the
11238 # GNU dynamic linker. Since this was broken with cross compilers,
11239 # most powerpc-linux boxes support dynamic linking these days and
11240 # people can always --disable-shared, the test was removed, and we
11241 # assume the GNU/Linux dynamic linker is in use.
11242 dynamic_linker='GNU/Linux ld.so'
11245 netbsd*)
11246 version_type=sunos
11247 need_lib_prefix=no
11248 need_version=no
11249 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11251 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11252 dynamic_linker='NetBSD (a.out) ld.so'
11253 else
11254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11255 soname_spec='${libname}${release}${shared_ext}$major'
11256 dynamic_linker='NetBSD ld.elf_so'
11258 shlibpath_var=LD_LIBRARY_PATH
11259 shlibpath_overrides_runpath=yes
11260 hardcode_into_libs=yes
11263 newsos6)
11264 version_type=linux
11265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11266 shlibpath_var=LD_LIBRARY_PATH
11267 shlibpath_overrides_runpath=yes
11270 *nto* | *qnx*)
11271 version_type=qnx
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=no
11278 hardcode_into_libs=yes
11279 dynamic_linker='ldqnx.so'
11282 openbsd*)
11283 version_type=sunos
11284 sys_lib_dlsearch_path_spec="/usr/lib"
11285 need_lib_prefix=no
11286 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11287 case $host_os in
11288 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11289 *) need_version=no ;;
11290 esac
11291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11292 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11293 shlibpath_var=LD_LIBRARY_PATH
11294 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11295 case $host_os in
11296 openbsd2.[89] | openbsd2.[89].*)
11297 shlibpath_overrides_runpath=no
11300 shlibpath_overrides_runpath=yes
11302 esac
11303 else
11304 shlibpath_overrides_runpath=yes
11308 os2*)
11309 libname_spec='$name'
11310 shrext_cmds=".dll"
11311 need_lib_prefix=no
11312 library_names_spec='$libname${shared_ext} $libname.a'
11313 dynamic_linker='OS/2 ld.exe'
11314 shlibpath_var=LIBPATH
11317 osf3* | osf4* | osf5*)
11318 version_type=osf
11319 need_lib_prefix=no
11320 need_version=no
11321 soname_spec='${libname}${release}${shared_ext}$major'
11322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11323 shlibpath_var=LD_LIBRARY_PATH
11324 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11325 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11328 rdos*)
11329 dynamic_linker=no
11332 solaris*)
11333 version_type=linux
11334 need_lib_prefix=no
11335 need_version=no
11336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11337 soname_spec='${libname}${release}${shared_ext}$major'
11338 shlibpath_var=LD_LIBRARY_PATH
11339 shlibpath_overrides_runpath=yes
11340 hardcode_into_libs=yes
11341 # ldd complains unless libraries are executable
11342 postinstall_cmds='chmod +x $lib'
11345 sunos4*)
11346 version_type=sunos
11347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11348 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11349 shlibpath_var=LD_LIBRARY_PATH
11350 shlibpath_overrides_runpath=yes
11351 if test "$with_gnu_ld" = yes; then
11352 need_lib_prefix=no
11354 need_version=yes
11357 sysv4 | sysv4.3*)
11358 version_type=linux
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360 soname_spec='${libname}${release}${shared_ext}$major'
11361 shlibpath_var=LD_LIBRARY_PATH
11362 case $host_vendor in
11363 sni)
11364 shlibpath_overrides_runpath=no
11365 need_lib_prefix=no
11366 runpath_var=LD_RUN_PATH
11368 siemens)
11369 need_lib_prefix=no
11371 motorola)
11372 need_lib_prefix=no
11373 need_version=no
11374 shlibpath_overrides_runpath=no
11375 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11377 esac
11380 sysv4*MP*)
11381 if test -d /usr/nec ;then
11382 version_type=linux
11383 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11384 soname_spec='$libname${shared_ext}.$major'
11385 shlibpath_var=LD_LIBRARY_PATH
11389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11390 version_type=freebsd-elf
11391 need_lib_prefix=no
11392 need_version=no
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11394 soname_spec='${libname}${release}${shared_ext}$major'
11395 shlibpath_var=LD_LIBRARY_PATH
11396 shlibpath_overrides_runpath=yes
11397 hardcode_into_libs=yes
11398 if test "$with_gnu_ld" = yes; then
11399 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11400 else
11401 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11402 case $host_os in
11403 sco3.2v5*)
11404 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11406 esac
11408 sys_lib_dlsearch_path_spec='/usr/lib'
11411 tpf*)
11412 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11413 version_type=linux
11414 need_lib_prefix=no
11415 need_version=no
11416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11417 shlibpath_var=LD_LIBRARY_PATH
11418 shlibpath_overrides_runpath=no
11419 hardcode_into_libs=yes
11422 uts4*)
11423 version_type=linux
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11425 soname_spec='${libname}${release}${shared_ext}$major'
11426 shlibpath_var=LD_LIBRARY_PATH
11430 dynamic_linker=no
11432 esac
11433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11434 $as_echo "$dynamic_linker" >&6; }
11435 test "$dynamic_linker" = no && can_build_shared=no
11437 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11438 if test "$GCC" = yes; then
11439 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11442 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11443 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11445 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11446 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11541 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11542 hardcode_action=
11543 if test -n "$hardcode_libdir_flag_spec" ||
11544 test -n "$runpath_var" ||
11545 test "X$hardcode_automatic" = "Xyes" ; then
11547 # We can hardcode non-existent directories.
11548 if test "$hardcode_direct" != no &&
11549 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11550 # have to relink, otherwise we might link with an installed library
11551 # when we should be linking with a yet-to-be-installed one
11552 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11553 test "$hardcode_minus_L" != no; then
11554 # Linking always hardcodes the temporary library directory.
11555 hardcode_action=relink
11556 else
11557 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11558 hardcode_action=immediate
11560 else
11561 # We cannot hardcode anything, or else we can only hardcode existing
11562 # directories.
11563 hardcode_action=unsupported
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11566 $as_echo "$hardcode_action" >&6; }
11568 if test "$hardcode_action" = relink ||
11569 test "$inherit_rpath" = yes; then
11570 # Fast installation is not supported
11571 enable_fast_install=no
11572 elif test "$shlibpath_overrides_runpath" = yes ||
11573 test "$enable_shared" = no; then
11574 # Fast installation is not necessary
11575 enable_fast_install=needless
11583 if test "x$enable_dlopen" != xyes; then
11584 enable_dlopen=unknown
11585 enable_dlopen_self=unknown
11586 enable_dlopen_self_static=unknown
11587 else
11588 lt_cv_dlopen=no
11589 lt_cv_dlopen_libs=
11591 case $host_os in
11592 beos*)
11593 lt_cv_dlopen="load_add_on"
11594 lt_cv_dlopen_libs=
11595 lt_cv_dlopen_self=yes
11598 mingw* | pw32* | cegcc*)
11599 lt_cv_dlopen="LoadLibrary"
11600 lt_cv_dlopen_libs=
11603 cygwin*)
11604 lt_cv_dlopen="dlopen"
11605 lt_cv_dlopen_libs=
11608 darwin*)
11609 # if libdl is installed we need to link against it
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11611 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11612 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11613 $as_echo_n "(cached) " >&6
11614 else
11615 ac_check_lib_save_LIBS=$LIBS
11616 LIBS="-ldl $LIBS"
11617 if test x$gcc_no_link = xyes; then
11618 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621 /* end confdefs.h. */
11623 /* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
11626 #ifdef __cplusplus
11627 extern "C"
11628 #endif
11629 char dlopen ();
11631 main ()
11633 return dlopen ();
11635 return 0;
11637 _ACEOF
11638 if ac_fn_c_try_link "$LINENO"; then :
11639 ac_cv_lib_dl_dlopen=yes
11640 else
11641 ac_cv_lib_dl_dlopen=no
11643 rm -f core conftest.err conftest.$ac_objext \
11644 conftest$ac_exeext conftest.$ac_ext
11645 LIBS=$ac_check_lib_save_LIBS
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11648 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11649 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11650 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11651 else
11653 lt_cv_dlopen="dyld"
11654 lt_cv_dlopen_libs=
11655 lt_cv_dlopen_self=yes
11662 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11663 if test "x$ac_cv_func_shl_load" = x""yes; then :
11664 lt_cv_dlopen="shl_load"
11665 else
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11667 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11668 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11669 $as_echo_n "(cached) " >&6
11670 else
11671 ac_check_lib_save_LIBS=$LIBS
11672 LIBS="-ldld $LIBS"
11673 if test x$gcc_no_link = xyes; then
11674 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11677 /* end confdefs.h. */
11679 /* Override any GCC internal prototype to avoid an error.
11680 Use char because int might match the return type of a GCC
11681 builtin and then its argument prototype would still apply. */
11682 #ifdef __cplusplus
11683 extern "C"
11684 #endif
11685 char shl_load ();
11687 main ()
11689 return shl_load ();
11691 return 0;
11693 _ACEOF
11694 if ac_fn_c_try_link "$LINENO"; then :
11695 ac_cv_lib_dld_shl_load=yes
11696 else
11697 ac_cv_lib_dld_shl_load=no
11699 rm -f core conftest.err conftest.$ac_objext \
11700 conftest$ac_exeext conftest.$ac_ext
11701 LIBS=$ac_check_lib_save_LIBS
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11704 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11705 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11706 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11707 else
11708 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11709 if test "x$ac_cv_func_dlopen" = x""yes; then :
11710 lt_cv_dlopen="dlopen"
11711 else
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11713 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11714 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11715 $as_echo_n "(cached) " >&6
11716 else
11717 ac_check_lib_save_LIBS=$LIBS
11718 LIBS="-ldl $LIBS"
11719 if test x$gcc_no_link = xyes; then
11720 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11723 /* end confdefs.h. */
11725 /* Override any GCC internal prototype to avoid an error.
11726 Use char because int might match the return type of a GCC
11727 builtin and then its argument prototype would still apply. */
11728 #ifdef __cplusplus
11729 extern "C"
11730 #endif
11731 char dlopen ();
11733 main ()
11735 return dlopen ();
11737 return 0;
11739 _ACEOF
11740 if ac_fn_c_try_link "$LINENO"; then :
11741 ac_cv_lib_dl_dlopen=yes
11742 else
11743 ac_cv_lib_dl_dlopen=no
11745 rm -f core conftest.err conftest.$ac_objext \
11746 conftest$ac_exeext conftest.$ac_ext
11747 LIBS=$ac_check_lib_save_LIBS
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11750 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11751 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11752 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11753 else
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11755 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11756 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11757 $as_echo_n "(cached) " >&6
11758 else
11759 ac_check_lib_save_LIBS=$LIBS
11760 LIBS="-lsvld $LIBS"
11761 if test x$gcc_no_link = xyes; then
11762 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11765 /* end confdefs.h. */
11767 /* Override any GCC internal prototype to avoid an error.
11768 Use char because int might match the return type of a GCC
11769 builtin and then its argument prototype would still apply. */
11770 #ifdef __cplusplus
11771 extern "C"
11772 #endif
11773 char dlopen ();
11775 main ()
11777 return dlopen ();
11779 return 0;
11781 _ACEOF
11782 if ac_fn_c_try_link "$LINENO"; then :
11783 ac_cv_lib_svld_dlopen=yes
11784 else
11785 ac_cv_lib_svld_dlopen=no
11787 rm -f core conftest.err conftest.$ac_objext \
11788 conftest$ac_exeext conftest.$ac_ext
11789 LIBS=$ac_check_lib_save_LIBS
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11792 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11793 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11794 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11795 else
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11797 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11798 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 ac_check_lib_save_LIBS=$LIBS
11802 LIBS="-ldld $LIBS"
11803 if test x$gcc_no_link = xyes; then
11804 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807 /* end confdefs.h. */
11809 /* Override any GCC internal prototype to avoid an error.
11810 Use char because int might match the return type of a GCC
11811 builtin and then its argument prototype would still apply. */
11812 #ifdef __cplusplus
11813 extern "C"
11814 #endif
11815 char dld_link ();
11817 main ()
11819 return dld_link ();
11821 return 0;
11823 _ACEOF
11824 if ac_fn_c_try_link "$LINENO"; then :
11825 ac_cv_lib_dld_dld_link=yes
11826 else
11827 ac_cv_lib_dld_dld_link=no
11829 rm -f core conftest.err conftest.$ac_objext \
11830 conftest$ac_exeext conftest.$ac_ext
11831 LIBS=$ac_check_lib_save_LIBS
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11834 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11835 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11836 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11855 esac
11857 if test "x$lt_cv_dlopen" != xno; then
11858 enable_dlopen=yes
11859 else
11860 enable_dlopen=no
11863 case $lt_cv_dlopen in
11864 dlopen)
11865 save_CPPFLAGS="$CPPFLAGS"
11866 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11868 save_LDFLAGS="$LDFLAGS"
11869 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11871 save_LIBS="$LIBS"
11872 LIBS="$lt_cv_dlopen_libs $LIBS"
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11875 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11876 if test "${lt_cv_dlopen_self+set}" = set; then :
11877 $as_echo_n "(cached) " >&6
11878 else
11879 if test "$cross_compiling" = yes; then :
11880 lt_cv_dlopen_self=cross
11881 else
11882 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11883 lt_status=$lt_dlunknown
11884 cat > conftest.$ac_ext <<_LT_EOF
11885 #line 11885 "configure"
11886 #include "confdefs.h"
11888 #if HAVE_DLFCN_H
11889 #include <dlfcn.h>
11890 #endif
11892 #include <stdio.h>
11894 #ifdef RTLD_GLOBAL
11895 # define LT_DLGLOBAL RTLD_GLOBAL
11896 #else
11897 # ifdef DL_GLOBAL
11898 # define LT_DLGLOBAL DL_GLOBAL
11899 # else
11900 # define LT_DLGLOBAL 0
11901 # endif
11902 #endif
11904 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11905 find out it does not work in some platform. */
11906 #ifndef LT_DLLAZY_OR_NOW
11907 # ifdef RTLD_LAZY
11908 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11909 # else
11910 # ifdef DL_LAZY
11911 # define LT_DLLAZY_OR_NOW DL_LAZY
11912 # else
11913 # ifdef RTLD_NOW
11914 # define LT_DLLAZY_OR_NOW RTLD_NOW
11915 # else
11916 # ifdef DL_NOW
11917 # define LT_DLLAZY_OR_NOW DL_NOW
11918 # else
11919 # define LT_DLLAZY_OR_NOW 0
11920 # endif
11921 # endif
11922 # endif
11923 # endif
11924 #endif
11926 /* When -fvisbility=hidden is used, assume the code has been annotated
11927 correspondingly for the symbols needed. */
11928 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11929 void fnord () __attribute__((visibility("default")));
11930 #endif
11932 void fnord () { int i=42; }
11933 int main ()
11935 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11936 int status = $lt_dlunknown;
11938 if (self)
11940 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11941 else
11943 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11944 else puts (dlerror ());
11946 /* dlclose (self); */
11948 else
11949 puts (dlerror ());
11951 return status;
11953 _LT_EOF
11954 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11955 (eval $ac_link) 2>&5
11956 ac_status=$?
11957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11958 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11959 (./conftest; exit; ) >&5 2>/dev/null
11960 lt_status=$?
11961 case x$lt_status in
11962 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11963 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11964 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11965 esac
11966 else :
11967 # compilation failed
11968 lt_cv_dlopen_self=no
11971 rm -fr conftest*
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11976 $as_echo "$lt_cv_dlopen_self" >&6; }
11978 if test "x$lt_cv_dlopen_self" = xyes; then
11979 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11981 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11982 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11983 $as_echo_n "(cached) " >&6
11984 else
11985 if test "$cross_compiling" = yes; then :
11986 lt_cv_dlopen_self_static=cross
11987 else
11988 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11989 lt_status=$lt_dlunknown
11990 cat > conftest.$ac_ext <<_LT_EOF
11991 #line 11991 "configure"
11992 #include "confdefs.h"
11994 #if HAVE_DLFCN_H
11995 #include <dlfcn.h>
11996 #endif
11998 #include <stdio.h>
12000 #ifdef RTLD_GLOBAL
12001 # define LT_DLGLOBAL RTLD_GLOBAL
12002 #else
12003 # ifdef DL_GLOBAL
12004 # define LT_DLGLOBAL DL_GLOBAL
12005 # else
12006 # define LT_DLGLOBAL 0
12007 # endif
12008 #endif
12010 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12011 find out it does not work in some platform. */
12012 #ifndef LT_DLLAZY_OR_NOW
12013 # ifdef RTLD_LAZY
12014 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12015 # else
12016 # ifdef DL_LAZY
12017 # define LT_DLLAZY_OR_NOW DL_LAZY
12018 # else
12019 # ifdef RTLD_NOW
12020 # define LT_DLLAZY_OR_NOW RTLD_NOW
12021 # else
12022 # ifdef DL_NOW
12023 # define LT_DLLAZY_OR_NOW DL_NOW
12024 # else
12025 # define LT_DLLAZY_OR_NOW 0
12026 # endif
12027 # endif
12028 # endif
12029 # endif
12030 #endif
12032 /* When -fvisbility=hidden is used, assume the code has been annotated
12033 correspondingly for the symbols needed. */
12034 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12035 void fnord () __attribute__((visibility("default")));
12036 #endif
12038 void fnord () { int i=42; }
12039 int main ()
12041 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12042 int status = $lt_dlunknown;
12044 if (self)
12046 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12047 else
12049 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12050 else puts (dlerror ());
12052 /* dlclose (self); */
12054 else
12055 puts (dlerror ());
12057 return status;
12059 _LT_EOF
12060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12061 (eval $ac_link) 2>&5
12062 ac_status=$?
12063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12064 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12065 (./conftest; exit; ) >&5 2>/dev/null
12066 lt_status=$?
12067 case x$lt_status in
12068 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12069 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12070 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12071 esac
12072 else :
12073 # compilation failed
12074 lt_cv_dlopen_self_static=no
12077 rm -fr conftest*
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12082 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12085 CPPFLAGS="$save_CPPFLAGS"
12086 LDFLAGS="$save_LDFLAGS"
12087 LIBS="$save_LIBS"
12089 esac
12091 case $lt_cv_dlopen_self in
12092 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12093 *) enable_dlopen_self=unknown ;;
12094 esac
12096 case $lt_cv_dlopen_self_static in
12097 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12098 *) enable_dlopen_self_static=unknown ;;
12099 esac
12118 striplib=
12119 old_striplib=
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12121 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12122 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12123 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12124 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12126 $as_echo "yes" >&6; }
12127 else
12128 # FIXME - insert some real tests, host_os isn't really good enough
12129 case $host_os in
12130 darwin*)
12131 if test -n "$STRIP" ; then
12132 striplib="$STRIP -x"
12133 old_striplib="$STRIP -S"
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12135 $as_echo "yes" >&6; }
12136 else
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12138 $as_echo "no" >&6; }
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12143 $as_echo "no" >&6; }
12145 esac
12159 # Report which library types will actually be built
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12161 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12163 $as_echo "$can_build_shared" >&6; }
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12166 $as_echo_n "checking whether to build shared libraries... " >&6; }
12167 test "$can_build_shared" = "no" && enable_shared=no
12169 # On AIX, shared libraries and static libraries use the same namespace, and
12170 # are all built from PIC.
12171 case $host_os in
12172 aix3*)
12173 test "$enable_shared" = yes && enable_static=no
12174 if test -n "$RANLIB"; then
12175 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12176 postinstall_cmds='$RANLIB $lib'
12180 aix[4-9]*)
12181 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12182 test "$enable_shared" = yes && enable_static=no
12185 esac
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12187 $as_echo "$enable_shared" >&6; }
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12190 $as_echo_n "checking whether to build static libraries... " >&6; }
12191 # Make sure either enable_shared or enable_static is yes.
12192 test "$enable_shared" = yes || enable_static=yes
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12194 $as_echo "$enable_static" >&6; }
12200 ac_ext=c
12201 ac_cpp='$CPP $CPPFLAGS'
12202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12206 CC="$lt_save_CC"
12220 ac_config_commands="$ac_config_commands libtool"
12225 # Only expand once:
12228 for ac_prog in gawk mawk nawk awk
12230 # Extract the first word of "$ac_prog", so it can be a program name with args.
12231 set dummy $ac_prog; ac_word=$2
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12233 $as_echo_n "checking for $ac_word... " >&6; }
12234 if test "${ac_cv_prog_AWK+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
12236 else
12237 if test -n "$AWK"; then
12238 ac_cv_prog_AWK="$AWK" # Let the user override the test.
12239 else
12240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241 for as_dir in $PATH
12243 IFS=$as_save_IFS
12244 test -z "$as_dir" && as_dir=.
12245 for ac_exec_ext in '' $ac_executable_extensions; do
12246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12247 ac_cv_prog_AWK="$ac_prog"
12248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12249 break 2
12251 done
12252 done
12253 IFS=$as_save_IFS
12257 AWK=$ac_cv_prog_AWK
12258 if test -n "$AWK"; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12260 $as_echo "$AWK" >&6; }
12261 else
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12263 $as_echo "no" >&6; }
12267 test -n "$AWK" && break
12268 done
12270 ac_ext=c
12271 ac_cpp='$CPP $CPPFLAGS'
12272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12275 if test -n "$ac_tool_prefix"; then
12276 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12277 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12279 $as_echo_n "checking for $ac_word... " >&6; }
12280 if test "${ac_cv_prog_CC+set}" = set; then :
12281 $as_echo_n "(cached) " >&6
12282 else
12283 if test -n "$CC"; then
12284 ac_cv_prog_CC="$CC" # Let the user override the test.
12285 else
12286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12287 for as_dir in $PATH
12289 IFS=$as_save_IFS
12290 test -z "$as_dir" && as_dir=.
12291 for ac_exec_ext in '' $ac_executable_extensions; do
12292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12293 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12295 break 2
12297 done
12298 done
12299 IFS=$as_save_IFS
12303 CC=$ac_cv_prog_CC
12304 if test -n "$CC"; then
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12306 $as_echo "$CC" >&6; }
12307 else
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12309 $as_echo "no" >&6; }
12314 if test -z "$ac_cv_prog_CC"; then
12315 ac_ct_CC=$CC
12316 # Extract the first word of "gcc", so it can be a program name with args.
12317 set dummy gcc; ac_word=$2
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12319 $as_echo_n "checking for $ac_word... " >&6; }
12320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12321 $as_echo_n "(cached) " >&6
12322 else
12323 if test -n "$ac_ct_CC"; then
12324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12325 else
12326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12327 for as_dir in $PATH
12329 IFS=$as_save_IFS
12330 test -z "$as_dir" && as_dir=.
12331 for ac_exec_ext in '' $ac_executable_extensions; do
12332 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12333 ac_cv_prog_ac_ct_CC="gcc"
12334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12335 break 2
12337 done
12338 done
12339 IFS=$as_save_IFS
12343 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12344 if test -n "$ac_ct_CC"; then
12345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12346 $as_echo "$ac_ct_CC" >&6; }
12347 else
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12349 $as_echo "no" >&6; }
12352 if test "x$ac_ct_CC" = x; then
12353 CC=""
12354 else
12355 case $cross_compiling:$ac_tool_warned in
12356 yes:)
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12359 ac_tool_warned=yes ;;
12360 esac
12361 CC=$ac_ct_CC
12363 else
12364 CC="$ac_cv_prog_CC"
12367 if test -z "$CC"; then
12368 if test -n "$ac_tool_prefix"; then
12369 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12370 set dummy ${ac_tool_prefix}cc; ac_word=$2
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12372 $as_echo_n "checking for $ac_word... " >&6; }
12373 if test "${ac_cv_prog_CC+set}" = set; then :
12374 $as_echo_n "(cached) " >&6
12375 else
12376 if test -n "$CC"; then
12377 ac_cv_prog_CC="$CC" # Let the user override the test.
12378 else
12379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12380 for as_dir in $PATH
12382 IFS=$as_save_IFS
12383 test -z "$as_dir" && as_dir=.
12384 for ac_exec_ext in '' $ac_executable_extensions; do
12385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12386 ac_cv_prog_CC="${ac_tool_prefix}cc"
12387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12388 break 2
12390 done
12391 done
12392 IFS=$as_save_IFS
12396 CC=$ac_cv_prog_CC
12397 if test -n "$CC"; then
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12399 $as_echo "$CC" >&6; }
12400 else
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12402 $as_echo "no" >&6; }
12408 if test -z "$CC"; then
12409 # Extract the first word of "cc", so it can be a program name with args.
12410 set dummy cc; ac_word=$2
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12412 $as_echo_n "checking for $ac_word... " >&6; }
12413 if test "${ac_cv_prog_CC+set}" = set; then :
12414 $as_echo_n "(cached) " >&6
12415 else
12416 if test -n "$CC"; then
12417 ac_cv_prog_CC="$CC" # Let the user override the test.
12418 else
12419 ac_prog_rejected=no
12420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421 for as_dir in $PATH
12423 IFS=$as_save_IFS
12424 test -z "$as_dir" && as_dir=.
12425 for ac_exec_ext in '' $ac_executable_extensions; do
12426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12427 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12428 ac_prog_rejected=yes
12429 continue
12431 ac_cv_prog_CC="cc"
12432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12433 break 2
12435 done
12436 done
12437 IFS=$as_save_IFS
12439 if test $ac_prog_rejected = yes; then
12440 # We found a bogon in the path, so make sure we never use it.
12441 set dummy $ac_cv_prog_CC
12442 shift
12443 if test $# != 0; then
12444 # We chose a different compiler from the bogus one.
12445 # However, it has the same basename, so the bogon will be chosen
12446 # first if we set CC to just the basename; use the full file name.
12447 shift
12448 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12453 CC=$ac_cv_prog_CC
12454 if test -n "$CC"; then
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12456 $as_echo "$CC" >&6; }
12457 else
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12459 $as_echo "no" >&6; }
12464 if test -z "$CC"; then
12465 if test -n "$ac_tool_prefix"; then
12466 for ac_prog in cl.exe
12468 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12469 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12471 $as_echo_n "checking for $ac_word... " >&6; }
12472 if test "${ac_cv_prog_CC+set}" = set; then :
12473 $as_echo_n "(cached) " >&6
12474 else
12475 if test -n "$CC"; then
12476 ac_cv_prog_CC="$CC" # Let the user override the test.
12477 else
12478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12479 for as_dir in $PATH
12481 IFS=$as_save_IFS
12482 test -z "$as_dir" && as_dir=.
12483 for ac_exec_ext in '' $ac_executable_extensions; do
12484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12485 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12487 break 2
12489 done
12490 done
12491 IFS=$as_save_IFS
12495 CC=$ac_cv_prog_CC
12496 if test -n "$CC"; then
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12498 $as_echo "$CC" >&6; }
12499 else
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501 $as_echo "no" >&6; }
12505 test -n "$CC" && break
12506 done
12508 if test -z "$CC"; then
12509 ac_ct_CC=$CC
12510 for ac_prog in cl.exe
12512 # Extract the first word of "$ac_prog", so it can be a program name with args.
12513 set dummy $ac_prog; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12515 $as_echo_n "checking for $ac_word... " >&6; }
12516 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12517 $as_echo_n "(cached) " >&6
12518 else
12519 if test -n "$ac_ct_CC"; then
12520 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12521 else
12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in $PATH
12525 IFS=$as_save_IFS
12526 test -z "$as_dir" && as_dir=.
12527 for ac_exec_ext in '' $ac_executable_extensions; do
12528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12529 ac_cv_prog_ac_ct_CC="$ac_prog"
12530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12531 break 2
12533 done
12534 done
12535 IFS=$as_save_IFS
12539 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12540 if test -n "$ac_ct_CC"; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12542 $as_echo "$ac_ct_CC" >&6; }
12543 else
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545 $as_echo "no" >&6; }
12549 test -n "$ac_ct_CC" && break
12550 done
12552 if test "x$ac_ct_CC" = x; then
12553 CC=""
12554 else
12555 case $cross_compiling:$ac_tool_warned in
12556 yes:)
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12559 ac_tool_warned=yes ;;
12560 esac
12561 CC=$ac_ct_CC
12568 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12570 as_fn_error "no acceptable C compiler found in \$PATH
12571 See \`config.log' for more details." "$LINENO" 5; }
12573 # Provide some information about the compiler.
12574 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12575 set X $ac_compile
12576 ac_compiler=$2
12577 for ac_option in --version -v -V -qversion; do
12578 { { ac_try="$ac_compiler $ac_option >&5"
12579 case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582 esac
12583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12584 $as_echo "$ac_try_echo"; } >&5
12585 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12586 ac_status=$?
12587 if test -s conftest.err; then
12588 sed '10a\
12589 ... rest of stderr output deleted ...
12590 10q' conftest.err >conftest.er1
12591 cat conftest.er1 >&5
12592 rm -f conftest.er1 conftest.err
12594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12595 test $ac_status = 0; }
12596 done
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12599 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12600 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
12601 $as_echo_n "(cached) " >&6
12602 else
12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h. */
12607 main ()
12609 #ifndef __GNUC__
12610 choke me
12611 #endif
12614 return 0;
12616 _ACEOF
12617 if ac_fn_c_try_compile "$LINENO"; then :
12618 ac_compiler_gnu=yes
12619 else
12620 ac_compiler_gnu=no
12622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12623 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12627 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12628 if test $ac_compiler_gnu = yes; then
12629 GCC=yes
12630 else
12631 GCC=
12633 ac_test_CFLAGS=${CFLAGS+set}
12634 ac_save_CFLAGS=$CFLAGS
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12636 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12637 if test "${ac_cv_prog_cc_g+set}" = set; then :
12638 $as_echo_n "(cached) " >&6
12639 else
12640 ac_save_c_werror_flag=$ac_c_werror_flag
12641 ac_c_werror_flag=yes
12642 ac_cv_prog_cc_g=no
12643 CFLAGS="-g"
12644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12645 /* end confdefs.h. */
12648 main ()
12652 return 0;
12654 _ACEOF
12655 if ac_fn_c_try_compile "$LINENO"; then :
12656 ac_cv_prog_cc_g=yes
12657 else
12658 CFLAGS=""
12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h. */
12663 main ()
12667 return 0;
12669 _ACEOF
12670 if ac_fn_c_try_compile "$LINENO"; then :
12672 else
12673 ac_c_werror_flag=$ac_save_c_werror_flag
12674 CFLAGS="-g"
12675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12676 /* end confdefs.h. */
12679 main ()
12683 return 0;
12685 _ACEOF
12686 if ac_fn_c_try_compile "$LINENO"; then :
12687 ac_cv_prog_cc_g=yes
12689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12694 ac_c_werror_flag=$ac_save_c_werror_flag
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12697 $as_echo "$ac_cv_prog_cc_g" >&6; }
12698 if test "$ac_test_CFLAGS" = set; then
12699 CFLAGS=$ac_save_CFLAGS
12700 elif test $ac_cv_prog_cc_g = yes; then
12701 if test "$GCC" = yes; then
12702 CFLAGS="-g -O2"
12703 else
12704 CFLAGS="-g"
12706 else
12707 if test "$GCC" = yes; then
12708 CFLAGS="-O2"
12709 else
12710 CFLAGS=
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12714 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12715 if test "${ac_cv_prog_cc_c89+set}" = set; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 ac_cv_prog_cc_c89=no
12719 ac_save_CC=$CC
12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12722 #include <stdarg.h>
12723 #include <stdio.h>
12724 #include <sys/types.h>
12725 #include <sys/stat.h>
12726 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12727 struct buf { int x; };
12728 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12729 static char *e (p, i)
12730 char **p;
12731 int i;
12733 return p[i];
12735 static char *f (char * (*g) (char **, int), char **p, ...)
12737 char *s;
12738 va_list v;
12739 va_start (v,p);
12740 s = g (p, va_arg (v,int));
12741 va_end (v);
12742 return s;
12745 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12746 function prototypes and stuff, but not '\xHH' hex character constants.
12747 These don't provoke an error unfortunately, instead are silently treated
12748 as 'x'. The following induces an error, until -std is added to get
12749 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12750 array size at least. It's necessary to write '\x00'==0 to get something
12751 that's true only with -std. */
12752 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12754 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12755 inside strings and character constants. */
12756 #define FOO(x) 'x'
12757 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12759 int test (int i, double x);
12760 struct s1 {int (*f) (int a);};
12761 struct s2 {int (*f) (double a);};
12762 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12763 int argc;
12764 char **argv;
12766 main ()
12768 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12770 return 0;
12772 _ACEOF
12773 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12774 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12776 CC="$ac_save_CC $ac_arg"
12777 if ac_fn_c_try_compile "$LINENO"; then :
12778 ac_cv_prog_cc_c89=$ac_arg
12780 rm -f core conftest.err conftest.$ac_objext
12781 test "x$ac_cv_prog_cc_c89" != "xno" && break
12782 done
12783 rm -f conftest.$ac_ext
12784 CC=$ac_save_CC
12787 # AC_CACHE_VAL
12788 case "x$ac_cv_prog_cc_c89" in
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12791 $as_echo "none needed" >&6; } ;;
12792 xno)
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12794 $as_echo "unsupported" >&6; } ;;
12796 CC="$CC $ac_cv_prog_cc_c89"
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12798 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12799 esac
12800 if test "x$ac_cv_prog_cc_c89" != xno; then :
12804 ac_ext=c
12805 ac_cpp='$CPP $CPPFLAGS'
12806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12810 depcc="$CC" am_compiler_list=
12812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12813 $as_echo_n "checking dependency style of $depcc... " >&6; }
12814 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
12815 $as_echo_n "(cached) " >&6
12816 else
12817 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12818 # We make a subdir and do the tests there. Otherwise we can end up
12819 # making bogus files that we don't know about and never remove. For
12820 # instance it was reported that on HP-UX the gcc test will end up
12821 # making a dummy file named `D' -- because `-MD' means `put the output
12822 # in D'.
12823 rm -rf conftest.dir
12824 mkdir conftest.dir
12825 # Copy depcomp to subdir because otherwise we won't find it if we're
12826 # using a relative directory.
12827 cp "$am_depcomp" conftest.dir
12828 cd conftest.dir
12829 # We will build objects and dependencies in a subdirectory because
12830 # it helps to detect inapplicable dependency modes. For instance
12831 # both Tru64's cc and ICC support -MD to output dependencies as a
12832 # side effect of compilation, but ICC will put the dependencies in
12833 # the current directory while Tru64 will put them in the object
12834 # directory.
12835 mkdir sub
12837 am_cv_CC_dependencies_compiler_type=none
12838 if test "$am_compiler_list" = ""; then
12839 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12841 am__universal=false
12842 case " $depcc " in #(
12843 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12844 esac
12846 for depmode in $am_compiler_list; do
12847 # Setup a source with many dependencies, because some compilers
12848 # like to wrap large dependency lists on column 80 (with \), and
12849 # we should not choose a depcomp mode which is confused by this.
12851 # We need to recreate these files for each test, as the compiler may
12852 # overwrite some of them when testing with obscure command lines.
12853 # This happens at least with the AIX C compiler.
12854 : > sub/conftest.c
12855 for i in 1 2 3 4 5 6; do
12856 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12857 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12858 # Solaris 8's {/usr,}/bin/sh.
12859 touch sub/conftst$i.h
12860 done
12861 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12863 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12864 # mode. It turns out that the SunPro C++ compiler does not properly
12865 # handle `-M -o', and we need to detect this. Also, some Intel
12866 # versions had trouble with output in subdirs
12867 am__obj=sub/conftest.${OBJEXT-o}
12868 am__minus_obj="-o $am__obj"
12869 case $depmode in
12870 gcc)
12871 # This depmode causes a compiler race in universal mode.
12872 test "$am__universal" = false || continue
12874 nosideeffect)
12875 # after this tag, mechanisms are not by side-effect, so they'll
12876 # only be used when explicitly requested
12877 if test "x$enable_dependency_tracking" = xyes; then
12878 continue
12879 else
12880 break
12883 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12884 # This compiler won't grok `-c -o', but also, the minuso test has
12885 # not run yet. These depmodes are late enough in the game, and
12886 # so weak that their functioning should not be impacted.
12887 am__obj=conftest.${OBJEXT-o}
12888 am__minus_obj=
12890 none) break ;;
12891 esac
12892 if depmode=$depmode \
12893 source=sub/conftest.c object=$am__obj \
12894 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12895 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12896 >/dev/null 2>conftest.err &&
12897 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12898 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12899 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12900 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12901 # icc doesn't choke on unknown options, it will just issue warnings
12902 # or remarks (even with -Werror). So we grep stderr for any message
12903 # that says an option was ignored or not supported.
12904 # When given -MP, icc 7.0 and 7.1 complain thusly:
12905 # icc: Command line warning: ignoring option '-M'; no argument required
12906 # The diagnosis changed in icc 8.0:
12907 # icc: Command line remark: option '-MP' not supported
12908 if (grep 'ignoring option' conftest.err ||
12909 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12910 am_cv_CC_dependencies_compiler_type=$depmode
12911 break
12914 done
12916 cd ..
12917 rm -rf conftest.dir
12918 else
12919 am_cv_CC_dependencies_compiler_type=none
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12924 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12925 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12928 test "x$enable_dependency_tracking" != xno \
12929 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12930 am__fastdepCC_TRUE=
12931 am__fastdepCC_FALSE='#'
12932 else
12933 am__fastdepCC_TRUE='#'
12934 am__fastdepCC_FALSE=
12938 if test "x$CC" != xcc; then
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12940 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12941 else
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12943 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12945 set dummy $CC; ac_cc=`$as_echo "$2" |
12946 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12947 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
12948 $as_echo_n "(cached) " >&6
12949 else
12950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12951 /* end confdefs.h. */
12954 main ()
12958 return 0;
12960 _ACEOF
12961 # Make sure it works both with $CC and with simple cc.
12962 # We do the test twice because some compilers refuse to overwrite an
12963 # existing .o file with -o, though they will create one.
12964 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12965 rm -f conftest2.*
12966 if { { case "(($ac_try" in
12967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12968 *) ac_try_echo=$ac_try;;
12969 esac
12970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12971 $as_echo "$ac_try_echo"; } >&5
12972 (eval "$ac_try") 2>&5
12973 ac_status=$?
12974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12975 test $ac_status = 0; } &&
12976 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12978 *) ac_try_echo=$ac_try;;
12979 esac
12980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12981 $as_echo "$ac_try_echo"; } >&5
12982 (eval "$ac_try") 2>&5
12983 ac_status=$?
12984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12985 test $ac_status = 0; };
12986 then
12987 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12988 if test "x$CC" != xcc; then
12989 # Test first that cc exists at all.
12990 if { ac_try='cc -c conftest.$ac_ext >&5'
12991 { { case "(($ac_try" in
12992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12993 *) ac_try_echo=$ac_try;;
12994 esac
12995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12996 $as_echo "$ac_try_echo"; } >&5
12997 (eval "$ac_try") 2>&5
12998 ac_status=$?
12999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13000 test $ac_status = 0; }; }; then
13001 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
13002 rm -f conftest2.*
13003 if { { case "(($ac_try" in
13004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13005 *) ac_try_echo=$ac_try;;
13006 esac
13007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13008 $as_echo "$ac_try_echo"; } >&5
13009 (eval "$ac_try") 2>&5
13010 ac_status=$?
13011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13012 test $ac_status = 0; } &&
13013 test -f conftest2.$ac_objext && { { case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13016 esac
13017 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13018 $as_echo "$ac_try_echo"; } >&5
13019 (eval "$ac_try") 2>&5
13020 ac_status=$?
13021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13022 test $ac_status = 0; };
13023 then
13024 # cc works too.
13026 else
13027 # cc exists but doesn't like -o.
13028 eval ac_cv_prog_cc_${ac_cc}_c_o=no
13032 else
13033 eval ac_cv_prog_cc_${ac_cc}_c_o=no
13035 rm -f core conftest*
13038 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13040 $as_echo "yes" >&6; }
13041 else
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13043 $as_echo "no" >&6; }
13045 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
13049 # FIXME: we rely on the cache variable name because
13050 # there is no other way.
13051 set dummy $CC
13052 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
13053 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
13054 if test "$am_t" != yes; then
13055 # Losing compiler, so override with the script.
13056 # FIXME: It is wrong to rewrite CC.
13057 # But if we don't then we get into trouble of one sort or another.
13058 # A longer-term fix would be to have automake use am__CC in this case,
13059 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13060 CC="$am_aux_dir/compile $CC"
13064 ac_ext=c
13065 ac_cpp='$CPP $CPPFLAGS'
13066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13070 $as_echo_n "checking how to run the C preprocessor... " >&6; }
13071 # On Suns, sometimes $CPP names a directory.
13072 if test -n "$CPP" && test -d "$CPP"; then
13073 CPP=
13075 if test -z "$CPP"; then
13076 if test "${ac_cv_prog_CPP+set}" = set; then :
13077 $as_echo_n "(cached) " >&6
13078 else
13079 # Double quotes because CPP needs to be expanded
13080 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13082 ac_preproc_ok=false
13083 for ac_c_preproc_warn_flag in '' yes
13085 # Use a header file that comes with gcc, so configuring glibc
13086 # with a fresh cross-compiler works.
13087 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13088 # <limits.h> exists even on freestanding compilers.
13089 # On the NeXT, cc -E runs the code through the compiler's parser,
13090 # not just through cpp. "Syntax error" is here to catch this case.
13091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h. */
13093 #ifdef __STDC__
13094 # include <limits.h>
13095 #else
13096 # include <assert.h>
13097 #endif
13098 Syntax error
13099 _ACEOF
13100 if ac_fn_c_try_cpp "$LINENO"; then :
13102 else
13103 # Broken: fails on valid input.
13104 continue
13106 rm -f conftest.err conftest.$ac_ext
13108 # OK, works on sane cases. Now check whether nonexistent headers
13109 # can be detected and how.
13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13112 #include <ac_nonexistent.h>
13113 _ACEOF
13114 if ac_fn_c_try_cpp "$LINENO"; then :
13115 # Broken: success on invalid input.
13116 continue
13117 else
13118 # Passes both tests.
13119 ac_preproc_ok=:
13120 break
13122 rm -f conftest.err conftest.$ac_ext
13124 done
13125 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13126 rm -f conftest.err conftest.$ac_ext
13127 if $ac_preproc_ok; then :
13128 break
13131 done
13132 ac_cv_prog_CPP=$CPP
13135 CPP=$ac_cv_prog_CPP
13136 else
13137 ac_cv_prog_CPP=$CPP
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13140 $as_echo "$CPP" >&6; }
13141 ac_preproc_ok=false
13142 for ac_c_preproc_warn_flag in '' yes
13144 # Use a header file that comes with gcc, so configuring glibc
13145 # with a fresh cross-compiler works.
13146 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13147 # <limits.h> exists even on freestanding compilers.
13148 # On the NeXT, cc -E runs the code through the compiler's parser,
13149 # not just through cpp. "Syntax error" is here to catch this case.
13150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13151 /* end confdefs.h. */
13152 #ifdef __STDC__
13153 # include <limits.h>
13154 #else
13155 # include <assert.h>
13156 #endif
13157 Syntax error
13158 _ACEOF
13159 if ac_fn_c_try_cpp "$LINENO"; then :
13161 else
13162 # Broken: fails on valid input.
13163 continue
13165 rm -f conftest.err conftest.$ac_ext
13167 # OK, works on sane cases. Now check whether nonexistent headers
13168 # can be detected and how.
13169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13170 /* end confdefs.h. */
13171 #include <ac_nonexistent.h>
13172 _ACEOF
13173 if ac_fn_c_try_cpp "$LINENO"; then :
13174 # Broken: success on invalid input.
13175 continue
13176 else
13177 # Passes both tests.
13178 ac_preproc_ok=:
13179 break
13181 rm -f conftest.err conftest.$ac_ext
13183 done
13184 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13185 rm -f conftest.err conftest.$ac_ext
13186 if $ac_preproc_ok; then :
13188 else
13189 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13190 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13191 as_fn_error "C preprocessor \"$CPP\" fails sanity check
13192 See \`config.log' for more details." "$LINENO" 5; }
13195 ac_ext=c
13196 ac_cpp='$CPP $CPPFLAGS'
13197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13201 ac_ext=cpp
13202 ac_cpp='$CXXCPP $CPPFLAGS'
13203 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13204 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13205 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13206 if test -z "$CXX"; then
13207 if test -n "$CCC"; then
13208 CXX=$CCC
13209 else
13210 if test -n "$ac_tool_prefix"; then
13211 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13213 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13214 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13216 $as_echo_n "checking for $ac_word... " >&6; }
13217 if test "${ac_cv_prog_CXX+set}" = set; then :
13218 $as_echo_n "(cached) " >&6
13219 else
13220 if test -n "$CXX"; then
13221 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13222 else
13223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13224 for as_dir in $PATH
13226 IFS=$as_save_IFS
13227 test -z "$as_dir" && as_dir=.
13228 for ac_exec_ext in '' $ac_executable_extensions; do
13229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13230 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13232 break 2
13234 done
13235 done
13236 IFS=$as_save_IFS
13240 CXX=$ac_cv_prog_CXX
13241 if test -n "$CXX"; then
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13243 $as_echo "$CXX" >&6; }
13244 else
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13246 $as_echo "no" >&6; }
13250 test -n "$CXX" && break
13251 done
13253 if test -z "$CXX"; then
13254 ac_ct_CXX=$CXX
13255 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13257 # Extract the first word of "$ac_prog", so it can be a program name with args.
13258 set dummy $ac_prog; ac_word=$2
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13260 $as_echo_n "checking for $ac_word... " >&6; }
13261 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13262 $as_echo_n "(cached) " >&6
13263 else
13264 if test -n "$ac_ct_CXX"; then
13265 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13266 else
13267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13268 for as_dir in $PATH
13270 IFS=$as_save_IFS
13271 test -z "$as_dir" && as_dir=.
13272 for ac_exec_ext in '' $ac_executable_extensions; do
13273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13274 ac_cv_prog_ac_ct_CXX="$ac_prog"
13275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13276 break 2
13278 done
13279 done
13280 IFS=$as_save_IFS
13284 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13285 if test -n "$ac_ct_CXX"; then
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13287 $as_echo "$ac_ct_CXX" >&6; }
13288 else
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13290 $as_echo "no" >&6; }
13294 test -n "$ac_ct_CXX" && break
13295 done
13297 if test "x$ac_ct_CXX" = x; then
13298 CXX="g++"
13299 else
13300 case $cross_compiling:$ac_tool_warned in
13301 yes:)
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13304 ac_tool_warned=yes ;;
13305 esac
13306 CXX=$ac_ct_CXX
13312 # Provide some information about the compiler.
13313 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13314 set X $ac_compile
13315 ac_compiler=$2
13316 for ac_option in --version -v -V -qversion; do
13317 { { ac_try="$ac_compiler $ac_option >&5"
13318 case "(($ac_try" in
13319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320 *) ac_try_echo=$ac_try;;
13321 esac
13322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13323 $as_echo "$ac_try_echo"; } >&5
13324 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13325 ac_status=$?
13326 if test -s conftest.err; then
13327 sed '10a\
13328 ... rest of stderr output deleted ...
13329 10q' conftest.err >conftest.er1
13330 cat conftest.er1 >&5
13331 rm -f conftest.er1 conftest.err
13333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13334 test $ac_status = 0; }
13335 done
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13338 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13339 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13340 $as_echo_n "(cached) " >&6
13341 else
13342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13343 /* end confdefs.h. */
13346 main ()
13348 #ifndef __GNUC__
13349 choke me
13350 #endif
13353 return 0;
13355 _ACEOF
13356 if ac_fn_cxx_try_compile "$LINENO"; then :
13357 ac_compiler_gnu=yes
13358 else
13359 ac_compiler_gnu=no
13361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13362 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13366 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13367 if test $ac_compiler_gnu = yes; then
13368 GXX=yes
13369 else
13370 GXX=
13372 ac_test_CXXFLAGS=${CXXFLAGS+set}
13373 ac_save_CXXFLAGS=$CXXFLAGS
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13375 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13376 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13377 $as_echo_n "(cached) " >&6
13378 else
13379 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13380 ac_cxx_werror_flag=yes
13381 ac_cv_prog_cxx_g=no
13382 CXXFLAGS="-g"
13383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13384 /* end confdefs.h. */
13387 main ()
13391 return 0;
13393 _ACEOF
13394 if ac_fn_cxx_try_compile "$LINENO"; then :
13395 ac_cv_prog_cxx_g=yes
13396 else
13397 CXXFLAGS=""
13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13399 /* end confdefs.h. */
13402 main ()
13406 return 0;
13408 _ACEOF
13409 if ac_fn_cxx_try_compile "$LINENO"; then :
13411 else
13412 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13413 CXXFLAGS="-g"
13414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13415 /* end confdefs.h. */
13418 main ()
13422 return 0;
13424 _ACEOF
13425 if ac_fn_cxx_try_compile "$LINENO"; then :
13426 ac_cv_prog_cxx_g=yes
13428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13433 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13436 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13437 if test "$ac_test_CXXFLAGS" = set; then
13438 CXXFLAGS=$ac_save_CXXFLAGS
13439 elif test $ac_cv_prog_cxx_g = yes; then
13440 if test "$GXX" = yes; then
13441 CXXFLAGS="-g -O2"
13442 else
13443 CXXFLAGS="-g"
13445 else
13446 if test "$GXX" = yes; then
13447 CXXFLAGS="-O2"
13448 else
13449 CXXFLAGS=
13452 ac_ext=c
13453 ac_cpp='$CPP $CPPFLAGS'
13454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13458 depcc="$CXX" am_compiler_list=
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13461 $as_echo_n "checking dependency style of $depcc... " >&6; }
13462 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13463 $as_echo_n "(cached) " >&6
13464 else
13465 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13466 # We make a subdir and do the tests there. Otherwise we can end up
13467 # making bogus files that we don't know about and never remove. For
13468 # instance it was reported that on HP-UX the gcc test will end up
13469 # making a dummy file named `D' -- because `-MD' means `put the output
13470 # in D'.
13471 rm -rf conftest.dir
13472 mkdir conftest.dir
13473 # Copy depcomp to subdir because otherwise we won't find it if we're
13474 # using a relative directory.
13475 cp "$am_depcomp" conftest.dir
13476 cd conftest.dir
13477 # We will build objects and dependencies in a subdirectory because
13478 # it helps to detect inapplicable dependency modes. For instance
13479 # both Tru64's cc and ICC support -MD to output dependencies as a
13480 # side effect of compilation, but ICC will put the dependencies in
13481 # the current directory while Tru64 will put them in the object
13482 # directory.
13483 mkdir sub
13485 am_cv_CXX_dependencies_compiler_type=none
13486 if test "$am_compiler_list" = ""; then
13487 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13489 am__universal=false
13490 case " $depcc " in #(
13491 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13492 esac
13494 for depmode in $am_compiler_list; do
13495 # Setup a source with many dependencies, because some compilers
13496 # like to wrap large dependency lists on column 80 (with \), and
13497 # we should not choose a depcomp mode which is confused by this.
13499 # We need to recreate these files for each test, as the compiler may
13500 # overwrite some of them when testing with obscure command lines.
13501 # This happens at least with the AIX C compiler.
13502 : > sub/conftest.c
13503 for i in 1 2 3 4 5 6; do
13504 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13505 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13506 # Solaris 8's {/usr,}/bin/sh.
13507 touch sub/conftst$i.h
13508 done
13509 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13511 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13512 # mode. It turns out that the SunPro C++ compiler does not properly
13513 # handle `-M -o', and we need to detect this. Also, some Intel
13514 # versions had trouble with output in subdirs
13515 am__obj=sub/conftest.${OBJEXT-o}
13516 am__minus_obj="-o $am__obj"
13517 case $depmode in
13518 gcc)
13519 # This depmode causes a compiler race in universal mode.
13520 test "$am__universal" = false || continue
13522 nosideeffect)
13523 # after this tag, mechanisms are not by side-effect, so they'll
13524 # only be used when explicitly requested
13525 if test "x$enable_dependency_tracking" = xyes; then
13526 continue
13527 else
13528 break
13531 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13532 # This compiler won't grok `-c -o', but also, the minuso test has
13533 # not run yet. These depmodes are late enough in the game, and
13534 # so weak that their functioning should not be impacted.
13535 am__obj=conftest.${OBJEXT-o}
13536 am__minus_obj=
13538 none) break ;;
13539 esac
13540 if depmode=$depmode \
13541 source=sub/conftest.c object=$am__obj \
13542 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13543 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13544 >/dev/null 2>conftest.err &&
13545 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13546 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13547 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13548 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13549 # icc doesn't choke on unknown options, it will just issue warnings
13550 # or remarks (even with -Werror). So we grep stderr for any message
13551 # that says an option was ignored or not supported.
13552 # When given -MP, icc 7.0 and 7.1 complain thusly:
13553 # icc: Command line warning: ignoring option '-M'; no argument required
13554 # The diagnosis changed in icc 8.0:
13555 # icc: Command line remark: option '-MP' not supported
13556 if (grep 'ignoring option' conftest.err ||
13557 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13558 am_cv_CXX_dependencies_compiler_type=$depmode
13559 break
13562 done
13564 cd ..
13565 rm -rf conftest.dir
13566 else
13567 am_cv_CXX_dependencies_compiler_type=none
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13572 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13573 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13576 test "x$enable_dependency_tracking" != xno \
13577 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13578 am__fastdepCXX_TRUE=
13579 am__fastdepCXX_FALSE='#'
13580 else
13581 am__fastdepCXX_TRUE='#'
13582 am__fastdepCXX_FALSE=
13586 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13587 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13588 (test "X$CXX" != "Xg++"))) ; then
13589 ac_ext=cpp
13590 ac_cpp='$CXXCPP $CPPFLAGS'
13591 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13592 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13593 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13595 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13596 if test -z "$CXXCPP"; then
13597 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13598 $as_echo_n "(cached) " >&6
13599 else
13600 # Double quotes because CXXCPP needs to be expanded
13601 for CXXCPP in "$CXX -E" "/lib/cpp"
13603 ac_preproc_ok=false
13604 for ac_cxx_preproc_warn_flag in '' yes
13606 # Use a header file that comes with gcc, so configuring glibc
13607 # with a fresh cross-compiler works.
13608 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13609 # <limits.h> exists even on freestanding compilers.
13610 # On the NeXT, cc -E runs the code through the compiler's parser,
13611 # not just through cpp. "Syntax error" is here to catch this case.
13612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13613 /* end confdefs.h. */
13614 #ifdef __STDC__
13615 # include <limits.h>
13616 #else
13617 # include <assert.h>
13618 #endif
13619 Syntax error
13620 _ACEOF
13621 if ac_fn_cxx_try_cpp "$LINENO"; then :
13623 else
13624 # Broken: fails on valid input.
13625 continue
13627 rm -f conftest.err conftest.$ac_ext
13629 # OK, works on sane cases. Now check whether nonexistent headers
13630 # can be detected and how.
13631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13632 /* end confdefs.h. */
13633 #include <ac_nonexistent.h>
13634 _ACEOF
13635 if ac_fn_cxx_try_cpp "$LINENO"; then :
13636 # Broken: success on invalid input.
13637 continue
13638 else
13639 # Passes both tests.
13640 ac_preproc_ok=:
13641 break
13643 rm -f conftest.err conftest.$ac_ext
13645 done
13646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13647 rm -f conftest.err conftest.$ac_ext
13648 if $ac_preproc_ok; then :
13649 break
13652 done
13653 ac_cv_prog_CXXCPP=$CXXCPP
13656 CXXCPP=$ac_cv_prog_CXXCPP
13657 else
13658 ac_cv_prog_CXXCPP=$CXXCPP
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13661 $as_echo "$CXXCPP" >&6; }
13662 ac_preproc_ok=false
13663 for ac_cxx_preproc_warn_flag in '' yes
13665 # Use a header file that comes with gcc, so configuring glibc
13666 # with a fresh cross-compiler works.
13667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13668 # <limits.h> exists even on freestanding compilers.
13669 # On the NeXT, cc -E runs the code through the compiler's parser,
13670 # not just through cpp. "Syntax error" is here to catch this case.
13671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672 /* end confdefs.h. */
13673 #ifdef __STDC__
13674 # include <limits.h>
13675 #else
13676 # include <assert.h>
13677 #endif
13678 Syntax error
13679 _ACEOF
13680 if ac_fn_cxx_try_cpp "$LINENO"; then :
13682 else
13683 # Broken: fails on valid input.
13684 continue
13686 rm -f conftest.err conftest.$ac_ext
13688 # OK, works on sane cases. Now check whether nonexistent headers
13689 # can be detected and how.
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13692 #include <ac_nonexistent.h>
13693 _ACEOF
13694 if ac_fn_cxx_try_cpp "$LINENO"; then :
13695 # Broken: success on invalid input.
13696 continue
13697 else
13698 # Passes both tests.
13699 ac_preproc_ok=:
13700 break
13702 rm -f conftest.err conftest.$ac_ext
13704 done
13705 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13706 rm -f conftest.err conftest.$ac_ext
13707 if $ac_preproc_ok; then :
13709 else
13710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13712 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13713 See \`config.log' for more details." "$LINENO" 5; }
13716 ac_ext=c
13717 ac_cpp='$CPP $CPPFLAGS'
13718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13722 else
13723 _lt_caught_CXX_error=yes
13726 ac_ext=cpp
13727 ac_cpp='$CXXCPP $CPPFLAGS'
13728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13732 archive_cmds_need_lc_CXX=no
13733 allow_undefined_flag_CXX=
13734 always_export_symbols_CXX=no
13735 archive_expsym_cmds_CXX=
13736 compiler_needs_object_CXX=no
13737 export_dynamic_flag_spec_CXX=
13738 hardcode_direct_CXX=no
13739 hardcode_direct_absolute_CXX=no
13740 hardcode_libdir_flag_spec_CXX=
13741 hardcode_libdir_flag_spec_ld_CXX=
13742 hardcode_libdir_separator_CXX=
13743 hardcode_minus_L_CXX=no
13744 hardcode_shlibpath_var_CXX=unsupported
13745 hardcode_automatic_CXX=no
13746 inherit_rpath_CXX=no
13747 module_cmds_CXX=
13748 module_expsym_cmds_CXX=
13749 link_all_deplibs_CXX=unknown
13750 old_archive_cmds_CXX=$old_archive_cmds
13751 reload_flag_CXX=$reload_flag
13752 reload_cmds_CXX=$reload_cmds
13753 no_undefined_flag_CXX=
13754 whole_archive_flag_spec_CXX=
13755 enable_shared_with_static_runtimes_CXX=no
13757 # Source file extension for C++ test sources.
13758 ac_ext=cpp
13760 # Object file extension for compiled C++ test sources.
13761 objext=o
13762 objext_CXX=$objext
13764 # No sense in running all these tests if we already determined that
13765 # the CXX compiler isn't working. Some variables (like enable_shared)
13766 # are currently assumed to apply to all compilers on this platform,
13767 # and will be corrupted by setting them based on a non-working compiler.
13768 if test "$_lt_caught_CXX_error" != yes; then
13769 # Code to be used in simple compile tests
13770 lt_simple_compile_test_code="int some_variable = 0;"
13772 # Code to be used in simple link tests
13773 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13775 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13782 # If no C compiler was specified, use CC.
13783 LTCC=${LTCC-"$CC"}
13785 # If no C compiler flags were specified, use CFLAGS.
13786 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13788 # Allow CC to be a program name with arguments.
13789 compiler=$CC
13792 # save warnings/boilerplate of simple test code
13793 ac_outfile=conftest.$ac_objext
13794 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13795 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13796 _lt_compiler_boilerplate=`cat conftest.err`
13797 $RM conftest*
13799 ac_outfile=conftest.$ac_objext
13800 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13801 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13802 _lt_linker_boilerplate=`cat conftest.err`
13803 $RM -r conftest*
13806 # Allow CC to be a program name with arguments.
13807 lt_save_CC=$CC
13808 lt_save_LD=$LD
13809 lt_save_GCC=$GCC
13810 GCC=$GXX
13811 lt_save_with_gnu_ld=$with_gnu_ld
13812 lt_save_path_LD=$lt_cv_path_LD
13813 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13814 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13815 else
13816 $as_unset lt_cv_prog_gnu_ld
13818 if test -n "${lt_cv_path_LDCXX+set}"; then
13819 lt_cv_path_LD=$lt_cv_path_LDCXX
13820 else
13821 $as_unset lt_cv_path_LD
13823 test -z "${LDCXX+set}" || LD=$LDCXX
13824 CC=${CXX-"c++"}
13825 compiler=$CC
13826 compiler_CXX=$CC
13827 for cc_temp in $compiler""; do
13828 case $cc_temp in
13829 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13830 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13831 \-*) ;;
13832 *) break;;
13833 esac
13834 done
13835 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13838 if test -n "$compiler"; then
13839 # We don't want -fno-exception when compiling C++ code, so set the
13840 # no_builtin_flag separately
13841 if test "$GXX" = yes; then
13842 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13843 else
13844 lt_prog_compiler_no_builtin_flag_CXX=
13847 if test "$GXX" = yes; then
13848 # Set up default GNU C++ configuration
13852 # Check whether --with-gnu-ld was given.
13853 if test "${with_gnu_ld+set}" = set; then :
13854 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13855 else
13856 with_gnu_ld=no
13859 ac_prog=ld
13860 if test "$GCC" = yes; then
13861 # Check if gcc -print-prog-name=ld gives a path.
13862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13863 $as_echo_n "checking for ld used by $CC... " >&6; }
13864 case $host in
13865 *-*-mingw*)
13866 # gcc leaves a trailing carriage return which upsets mingw
13867 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13869 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13870 esac
13871 case $ac_prog in
13872 # Accept absolute paths.
13873 [\\/]* | ?:[\\/]*)
13874 re_direlt='/[^/][^/]*/\.\./'
13875 # Canonicalize the pathname of ld
13876 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13877 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13878 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13879 done
13880 test -z "$LD" && LD="$ac_prog"
13883 # If it fails, then pretend we aren't using GCC.
13884 ac_prog=ld
13887 # If it is relative, then search for the first ld in PATH.
13888 with_gnu_ld=unknown
13890 esac
13891 elif test "$with_gnu_ld" = yes; then
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13893 $as_echo_n "checking for GNU ld... " >&6; }
13894 else
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13896 $as_echo_n "checking for non-GNU ld... " >&6; }
13898 if test "${lt_cv_path_LD+set}" = set; then :
13899 $as_echo_n "(cached) " >&6
13900 else
13901 if test -z "$LD"; then
13902 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13903 for ac_dir in $PATH; do
13904 IFS="$lt_save_ifs"
13905 test -z "$ac_dir" && ac_dir=.
13906 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13907 lt_cv_path_LD="$ac_dir/$ac_prog"
13908 # Check to see if the program is GNU ld. I'd rather use --version,
13909 # but apparently some variants of GNU ld only accept -v.
13910 # Break only if it was the GNU/non-GNU ld that we prefer.
13911 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13912 *GNU* | *'with BFD'*)
13913 test "$with_gnu_ld" != no && break
13916 test "$with_gnu_ld" != yes && break
13918 esac
13920 done
13921 IFS="$lt_save_ifs"
13922 else
13923 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13927 LD="$lt_cv_path_LD"
13928 if test -n "$LD"; then
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13930 $as_echo "$LD" >&6; }
13931 else
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13933 $as_echo "no" >&6; }
13935 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13937 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13938 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13939 $as_echo_n "(cached) " >&6
13940 else
13941 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13942 case `$LD -v 2>&1 </dev/null` in
13943 *GNU* | *'with BFD'*)
13944 lt_cv_prog_gnu_ld=yes
13947 lt_cv_prog_gnu_ld=no
13949 esac
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13952 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13953 with_gnu_ld=$lt_cv_prog_gnu_ld
13961 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13962 # archiving commands below assume that GNU ld is being used.
13963 if test "$with_gnu_ld" = yes; then
13964 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13965 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13967 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13968 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13970 # If archive_cmds runs LD, not CC, wlarc should be empty
13971 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13972 # investigate it a little bit more. (MM)
13973 wlarc='${wl}'
13975 # ancient GNU ld didn't support --whole-archive et. al.
13976 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13977 $GREP 'no-whole-archive' > /dev/null; then
13978 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13979 else
13980 whole_archive_flag_spec_CXX=
13982 else
13983 with_gnu_ld=no
13984 wlarc=
13986 # A generic and very simple default shared library creation
13987 # command for GNU C++ for the case where it uses the native
13988 # linker, instead of GNU ld. If possible, this setting should
13989 # overridden to take advantage of the native linker features on
13990 # the platform it is being used on.
13991 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13994 # Commands to make compiler produce verbose output that lists
13995 # what "hidden" libraries, object files and flags are used when
13996 # linking a shared library.
13997 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13999 else
14000 GXX=no
14001 with_gnu_ld=no
14002 wlarc=
14005 # PORTME: fill in a description of your system's C++ link characteristics
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14007 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14008 ld_shlibs_CXX=yes
14009 case $host_os in
14010 aix3*)
14011 # FIXME: insert proper C++ library support
14012 ld_shlibs_CXX=no
14014 aix[4-9]*)
14015 if test "$host_cpu" = ia64; then
14016 # On IA64, the linker does run time linking by default, so we don't
14017 # have to do anything special.
14018 aix_use_runtimelinking=no
14019 exp_sym_flag='-Bexport'
14020 no_entry_flag=""
14021 else
14022 aix_use_runtimelinking=no
14024 # Test if we are trying to use run time linking or normal
14025 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14026 # need to do runtime linking.
14027 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14028 for ld_flag in $LDFLAGS; do
14029 case $ld_flag in
14030 *-brtl*)
14031 aix_use_runtimelinking=yes
14032 break
14034 esac
14035 done
14037 esac
14039 exp_sym_flag='-bexport'
14040 no_entry_flag='-bnoentry'
14043 # When large executables or shared objects are built, AIX ld can
14044 # have problems creating the table of contents. If linking a library
14045 # or program results in "error TOC overflow" add -mminimal-toc to
14046 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14047 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14049 archive_cmds_CXX=''
14050 hardcode_direct_CXX=yes
14051 hardcode_direct_absolute_CXX=yes
14052 hardcode_libdir_separator_CXX=':'
14053 link_all_deplibs_CXX=yes
14054 file_list_spec_CXX='${wl}-f,'
14056 if test "$GXX" = yes; then
14057 case $host_os in aix4.[012]|aix4.[012].*)
14058 # We only want to do this on AIX 4.2 and lower, the check
14059 # below for broken collect2 doesn't work under 4.3+
14060 collect2name=`${CC} -print-prog-name=collect2`
14061 if test -f "$collect2name" &&
14062 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14063 then
14064 # We have reworked collect2
14066 else
14067 # We have old collect2
14068 hardcode_direct_CXX=unsupported
14069 # It fails to find uninstalled libraries when the uninstalled
14070 # path is not listed in the libpath. Setting hardcode_minus_L
14071 # to unsupported forces relinking
14072 hardcode_minus_L_CXX=yes
14073 hardcode_libdir_flag_spec_CXX='-L$libdir'
14074 hardcode_libdir_separator_CXX=
14076 esac
14077 shared_flag='-shared'
14078 if test "$aix_use_runtimelinking" = yes; then
14079 shared_flag="$shared_flag "'${wl}-G'
14081 else
14082 # not using gcc
14083 if test "$host_cpu" = ia64; then
14084 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14085 # chokes on -Wl,-G. The following line is correct:
14086 shared_flag='-G'
14087 else
14088 if test "$aix_use_runtimelinking" = yes; then
14089 shared_flag='${wl}-G'
14090 else
14091 shared_flag='${wl}-bM:SRE'
14096 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14097 # It seems that -bexpall does not export symbols beginning with
14098 # underscore (_), so it is better to generate a list of symbols to
14099 # export.
14100 always_export_symbols_CXX=yes
14101 if test "$aix_use_runtimelinking" = yes; then
14102 # Warning - without using the other runtime loading flags (-brtl),
14103 # -berok will link without error, but may produce a broken library.
14104 allow_undefined_flag_CXX='-berok'
14105 # Determine the default libpath from the value encoded in an empty
14106 # executable.
14107 if test x$gcc_no_link = xyes; then
14108 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14111 /* end confdefs.h. */
14114 main ()
14118 return 0;
14120 _ACEOF
14121 if ac_fn_cxx_try_link "$LINENO"; then :
14123 lt_aix_libpath_sed='
14124 /Import File Strings/,/^$/ {
14125 /^0/ {
14126 s/^0 *\(.*\)$/\1/
14130 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14131 # Check for a 64-bit object if we didn't find anything.
14132 if test -z "$aix_libpath"; then
14133 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14136 rm -f core conftest.err conftest.$ac_objext \
14137 conftest$ac_exeext conftest.$ac_ext
14138 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14140 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14142 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"
14143 else
14144 if test "$host_cpu" = ia64; then
14145 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14146 allow_undefined_flag_CXX="-z nodefs"
14147 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"
14148 else
14149 # Determine the default libpath from the value encoded in an
14150 # empty executable.
14151 if test x$gcc_no_link = xyes; then
14152 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14155 /* end confdefs.h. */
14158 main ()
14162 return 0;
14164 _ACEOF
14165 if ac_fn_cxx_try_link "$LINENO"; then :
14167 lt_aix_libpath_sed='
14168 /Import File Strings/,/^$/ {
14169 /^0/ {
14170 s/^0 *\(.*\)$/\1/
14174 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14175 # Check for a 64-bit object if we didn't find anything.
14176 if test -z "$aix_libpath"; then
14177 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14180 rm -f core conftest.err conftest.$ac_objext \
14181 conftest$ac_exeext conftest.$ac_ext
14182 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14184 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14185 # Warning - without using the other run time loading flags,
14186 # -berok will link without error, but may produce a broken library.
14187 no_undefined_flag_CXX=' ${wl}-bernotok'
14188 allow_undefined_flag_CXX=' ${wl}-berok'
14189 if test "$with_gnu_ld" = yes; then
14190 # We only use this code for GNU lds that support --whole-archive.
14191 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14192 else
14193 # Exported symbols can be pulled into shared objects from archives
14194 whole_archive_flag_spec_CXX='$convenience'
14196 archive_cmds_need_lc_CXX=yes
14197 # This is similar to how AIX traditionally builds its shared
14198 # libraries.
14199 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'
14204 beos*)
14205 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14206 allow_undefined_flag_CXX=unsupported
14207 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14208 # support --undefined. This deserves some investigation. FIXME
14209 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14210 else
14211 ld_shlibs_CXX=no
14215 chorus*)
14216 case $cc_basename in
14218 # FIXME: insert proper C++ library support
14219 ld_shlibs_CXX=no
14221 esac
14224 cygwin* | mingw* | pw32* | cegcc*)
14225 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14226 # as there is no search path for DLLs.
14227 hardcode_libdir_flag_spec_CXX='-L$libdir'
14228 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14229 allow_undefined_flag_CXX=unsupported
14230 always_export_symbols_CXX=no
14231 enable_shared_with_static_runtimes_CXX=yes
14233 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14234 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'
14235 # If the export-symbols file already is a .def file (1st line
14236 # is EXPORTS), use it as is; otherwise, prepend...
14237 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14238 cp $export_symbols $output_objdir/$soname.def;
14239 else
14240 echo EXPORTS > $output_objdir/$soname.def;
14241 cat $export_symbols >> $output_objdir/$soname.def;
14243 $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'
14244 else
14245 ld_shlibs_CXX=no
14248 darwin* | rhapsody*)
14251 archive_cmds_need_lc_CXX=no
14252 hardcode_direct_CXX=no
14253 hardcode_automatic_CXX=yes
14254 hardcode_shlibpath_var_CXX=unsupported
14255 if test "$lt_cv_ld_force_load" = "yes"; then
14256 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\"`'
14257 else
14258 whole_archive_flag_spec_CXX=''
14260 link_all_deplibs_CXX=yes
14261 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14262 case $cc_basename in
14263 ifort*) _lt_dar_can_shared=yes ;;
14264 *) _lt_dar_can_shared=$GCC ;;
14265 esac
14266 if test "$_lt_dar_can_shared" = "yes"; then
14267 output_verbose_link_cmd=func_echo_all
14268 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}"
14269 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14270 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}"
14271 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}"
14272 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14273 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}"
14274 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}"
14277 else
14278 ld_shlibs_CXX=no
14283 dgux*)
14284 case $cc_basename in
14285 ec++*)
14286 # FIXME: insert proper C++ library support
14287 ld_shlibs_CXX=no
14289 ghcx*)
14290 # Green Hills C++ Compiler
14291 # FIXME: insert proper C++ library support
14292 ld_shlibs_CXX=no
14295 # FIXME: insert proper C++ library support
14296 ld_shlibs_CXX=no
14298 esac
14301 freebsd2.*)
14302 # C++ shared libraries reported to be fairly broken before
14303 # switch to ELF
14304 ld_shlibs_CXX=no
14307 freebsd-elf*)
14308 archive_cmds_need_lc_CXX=no
14311 freebsd* | dragonfly*)
14312 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14313 # conventions
14314 ld_shlibs_CXX=yes
14317 gnu*)
14320 haiku*)
14321 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14322 link_all_deplibs_CXX=yes
14325 hpux9*)
14326 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14327 hardcode_libdir_separator_CXX=:
14328 export_dynamic_flag_spec_CXX='${wl}-E'
14329 hardcode_direct_CXX=yes
14330 hardcode_minus_L_CXX=yes # Not in the search PATH,
14331 # but as the default
14332 # location of the library.
14334 case $cc_basename in
14335 CC*)
14336 # FIXME: insert proper C++ library support
14337 ld_shlibs_CXX=no
14339 aCC*)
14340 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'
14341 # Commands to make compiler produce verbose output that lists
14342 # what "hidden" libraries, object files and flags are used when
14343 # linking a shared library.
14345 # There doesn't appear to be a way to prevent this compiler from
14346 # explicitly linking system object files so we need to strip them
14347 # from the output so that they don't get included in the library
14348 # dependencies.
14349 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"'
14352 if test "$GXX" = yes; then
14353 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'
14354 else
14355 # FIXME: insert proper C++ library support
14356 ld_shlibs_CXX=no
14359 esac
14362 hpux10*|hpux11*)
14363 if test $with_gnu_ld = no; then
14364 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14365 hardcode_libdir_separator_CXX=:
14367 case $host_cpu in
14368 hppa*64*|ia64*)
14371 export_dynamic_flag_spec_CXX='${wl}-E'
14373 esac
14375 case $host_cpu in
14376 hppa*64*|ia64*)
14377 hardcode_direct_CXX=no
14378 hardcode_shlibpath_var_CXX=no
14381 hardcode_direct_CXX=yes
14382 hardcode_direct_absolute_CXX=yes
14383 hardcode_minus_L_CXX=yes # Not in the search PATH,
14384 # but as the default
14385 # location of the library.
14387 esac
14389 case $cc_basename in
14390 CC*)
14391 # FIXME: insert proper C++ library support
14392 ld_shlibs_CXX=no
14394 aCC*)
14395 case $host_cpu in
14396 hppa*64*)
14397 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14399 ia64*)
14400 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14403 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14405 esac
14406 # Commands to make compiler produce verbose output that lists
14407 # what "hidden" libraries, object files and flags are used when
14408 # linking a shared library.
14410 # There doesn't appear to be a way to prevent this compiler from
14411 # explicitly linking system object files so we need to strip them
14412 # from the output so that they don't get included in the library
14413 # dependencies.
14414 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"'
14417 if test "$GXX" = yes; then
14418 if test $with_gnu_ld = no; then
14419 case $host_cpu in
14420 hppa*64*)
14421 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14423 ia64*)
14424 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14427 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'
14429 esac
14431 else
14432 # FIXME: insert proper C++ library support
14433 ld_shlibs_CXX=no
14436 esac
14439 interix[3-9]*)
14440 hardcode_direct_CXX=no
14441 hardcode_shlibpath_var_CXX=no
14442 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14443 export_dynamic_flag_spec_CXX='${wl}-E'
14444 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14445 # Instead, shared libraries are loaded at an image base (0x10000000 by
14446 # default) and relocated if they conflict, which is a slow very memory
14447 # consuming and fragmenting process. To avoid this, we pick a random,
14448 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14449 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14450 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'
14451 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'
14453 irix5* | irix6*)
14454 case $cc_basename in
14455 CC*)
14456 # SGI C++
14457 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'
14459 # Archives containing C++ object files must be created using
14460 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14461 # necessary to make sure instantiated templates are included
14462 # in the archive.
14463 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14466 if test "$GXX" = yes; then
14467 if test "$with_gnu_ld" = no; then
14468 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'
14469 else
14470 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'
14473 link_all_deplibs_CXX=yes
14475 esac
14476 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14477 hardcode_libdir_separator_CXX=:
14478 inherit_rpath_CXX=yes
14481 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14482 case $cc_basename in
14483 KCC*)
14484 # Kuck and Associates, Inc. (KAI) C++ Compiler
14486 # KCC will only create a shared library if the output file
14487 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14488 # to its proper name (with version) after linking.
14489 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'
14490 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'
14491 # Commands to make compiler produce verbose output that lists
14492 # what "hidden" libraries, object files and flags are used when
14493 # linking a shared library.
14495 # There doesn't appear to be a way to prevent this compiler from
14496 # explicitly linking system object files so we need to strip them
14497 # from the output so that they don't get included in the library
14498 # dependencies.
14499 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"'
14501 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14502 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14504 # Archives containing C++ object files must be created using
14505 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14506 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14508 icpc* | ecpc* )
14509 # Intel C++
14510 with_gnu_ld=yes
14511 # version 8.0 and above of icpc choke on multiply defined symbols
14512 # if we add $predep_objects and $postdep_objects, however 7.1 and
14513 # earlier do not add the objects themselves.
14514 case `$CC -V 2>&1` in
14515 *"Version 7."*)
14516 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14517 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'
14519 *) # Version 8.0 or newer
14520 tmp_idyn=
14521 case $host_cpu in
14522 ia64*) tmp_idyn=' -i_dynamic';;
14523 esac
14524 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14525 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'
14527 esac
14528 archive_cmds_need_lc_CXX=no
14529 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14530 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14531 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14533 pgCC* | pgcpp*)
14534 # Portland Group C++ compiler
14535 case `$CC -V` in
14536 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14537 prelink_cmds_CXX='tpldir=Template.dir~
14538 rm -rf $tpldir~
14539 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14540 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14541 old_archive_cmds_CXX='tpldir=Template.dir~
14542 rm -rf $tpldir~
14543 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14544 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14545 $RANLIB $oldlib'
14546 archive_cmds_CXX='tpldir=Template.dir~
14547 rm -rf $tpldir~
14548 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14549 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14550 archive_expsym_cmds_CXX='tpldir=Template.dir~
14551 rm -rf $tpldir~
14552 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14553 $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'
14555 *) # Version 6 and above use weak symbols
14556 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14557 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'
14559 esac
14561 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14562 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14563 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'
14565 cxx*)
14566 # Compaq C++
14567 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14568 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'
14570 runpath_var=LD_RUN_PATH
14571 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14572 hardcode_libdir_separator_CXX=:
14574 # Commands to make compiler produce verbose output that lists
14575 # what "hidden" libraries, object files and flags are used when
14576 # linking a shared library.
14578 # There doesn't appear to be a way to prevent this compiler from
14579 # explicitly linking system object files so we need to strip them
14580 # from the output so that they don't get included in the library
14581 # dependencies.
14582 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'
14584 xl* | mpixl* | bgxl*)
14585 # IBM XL 8.0 on PPC, with GNU ld
14586 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14587 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14588 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14589 if test "x$supports_anon_versioning" = xyes; then
14590 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14591 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14592 echo "local: *; };" >> $output_objdir/$libname.ver~
14593 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14597 case `$CC -V 2>&1 | sed 5q` in
14598 *Sun\ C*)
14599 # Sun C++ 5.9
14600 no_undefined_flag_CXX=' -zdefs'
14601 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14602 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'
14603 hardcode_libdir_flag_spec_CXX='-R$libdir'
14604 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'
14605 compiler_needs_object_CXX=yes
14607 # Not sure whether something based on
14608 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14609 # would be better.
14610 output_verbose_link_cmd='func_echo_all'
14612 # Archives containing C++ object files must be created using
14613 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14614 # necessary to make sure instantiated templates are included
14615 # in the archive.
14616 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14618 esac
14620 esac
14623 lynxos*)
14624 # FIXME: insert proper C++ library support
14625 ld_shlibs_CXX=no
14628 m88k*)
14629 # FIXME: insert proper C++ library support
14630 ld_shlibs_CXX=no
14633 mvs*)
14634 case $cc_basename in
14635 cxx*)
14636 # FIXME: insert proper C++ library support
14637 ld_shlibs_CXX=no
14640 # FIXME: insert proper C++ library support
14641 ld_shlibs_CXX=no
14643 esac
14646 netbsd*)
14647 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14648 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14649 wlarc=
14650 hardcode_libdir_flag_spec_CXX='-R$libdir'
14651 hardcode_direct_CXX=yes
14652 hardcode_shlibpath_var_CXX=no
14654 # Workaround some broken pre-1.5 toolchains
14655 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14658 *nto* | *qnx*)
14659 ld_shlibs_CXX=yes
14662 openbsd2*)
14663 # C++ shared libraries are fairly broken
14664 ld_shlibs_CXX=no
14667 openbsd*)
14668 if test -f /usr/libexec/ld.so; then
14669 hardcode_direct_CXX=yes
14670 hardcode_shlibpath_var_CXX=no
14671 hardcode_direct_absolute_CXX=yes
14672 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14673 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14674 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14675 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14676 export_dynamic_flag_spec_CXX='${wl}-E'
14677 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14679 output_verbose_link_cmd=func_echo_all
14680 else
14681 ld_shlibs_CXX=no
14685 osf3* | osf4* | osf5*)
14686 case $cc_basename in
14687 KCC*)
14688 # Kuck and Associates, Inc. (KAI) C++ Compiler
14690 # KCC will only create a shared library if the output file
14691 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14692 # to its proper name (with version) after linking.
14693 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'
14695 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14696 hardcode_libdir_separator_CXX=:
14698 # Archives containing C++ object files must be created using
14699 # the KAI C++ compiler.
14700 case $host in
14701 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14702 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14703 esac
14705 RCC*)
14706 # Rational C++ 2.4.1
14707 # FIXME: insert proper C++ library support
14708 ld_shlibs_CXX=no
14710 cxx*)
14711 case $host in
14712 osf3*)
14713 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14714 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'
14715 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14718 allow_undefined_flag_CXX=' -expect_unresolved \*'
14719 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'
14720 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14721 echo "-hidden">> $lib.exp~
14722 $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~
14723 $RM $lib.exp'
14724 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14726 esac
14728 hardcode_libdir_separator_CXX=:
14730 # Commands to make compiler produce verbose output that lists
14731 # what "hidden" libraries, object files and flags are used when
14732 # linking a shared library.
14734 # There doesn't appear to be a way to prevent this compiler from
14735 # explicitly linking system object files so we need to strip them
14736 # from the output so that they don't get included in the library
14737 # dependencies.
14738 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"'
14741 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14742 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14743 case $host in
14744 osf3*)
14745 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'
14748 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'
14750 esac
14752 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14753 hardcode_libdir_separator_CXX=:
14755 # Commands to make compiler produce verbose output that lists
14756 # what "hidden" libraries, object files and flags are used when
14757 # linking a shared library.
14758 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14760 else
14761 # FIXME: insert proper C++ library support
14762 ld_shlibs_CXX=no
14765 esac
14768 psos*)
14769 # FIXME: insert proper C++ library support
14770 ld_shlibs_CXX=no
14773 sunos4*)
14774 case $cc_basename in
14775 CC*)
14776 # Sun C++ 4.x
14777 # FIXME: insert proper C++ library support
14778 ld_shlibs_CXX=no
14780 lcc*)
14781 # Lucid
14782 # FIXME: insert proper C++ library support
14783 ld_shlibs_CXX=no
14786 # FIXME: insert proper C++ library support
14787 ld_shlibs_CXX=no
14789 esac
14792 solaris*)
14793 case $cc_basename in
14794 CC*)
14795 # Sun C++ 4.2, 5.x and Centerline C++
14796 archive_cmds_need_lc_CXX=yes
14797 no_undefined_flag_CXX=' -zdefs'
14798 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14799 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14800 $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'
14802 hardcode_libdir_flag_spec_CXX='-R$libdir'
14803 hardcode_shlibpath_var_CXX=no
14804 case $host_os in
14805 solaris2.[0-5] | solaris2.[0-5].*) ;;
14807 # The compiler driver will combine and reorder linker options,
14808 # but understands `-z linker_flag'.
14809 # Supported since Solaris 2.6 (maybe 2.5.1?)
14810 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14812 esac
14813 link_all_deplibs_CXX=yes
14815 output_verbose_link_cmd='func_echo_all'
14817 # Archives containing C++ object files must be created using
14818 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14819 # necessary to make sure instantiated templates are included
14820 # in the archive.
14821 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14823 gcx*)
14824 # Green Hills C++ Compiler
14825 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14827 # The C++ compiler must be used to create the archive.
14828 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14831 # GNU C++ compiler with Solaris linker
14832 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14833 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14834 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14835 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14836 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14837 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14839 # Commands to make compiler produce verbose output that lists
14840 # what "hidden" libraries, object files and flags are used when
14841 # linking a shared library.
14842 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14843 else
14844 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14845 # platform.
14846 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14847 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14848 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14850 # Commands to make compiler produce verbose output that lists
14851 # what "hidden" libraries, object files and flags are used when
14852 # linking a shared library.
14853 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14856 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14857 case $host_os in
14858 solaris2.[0-5] | solaris2.[0-5].*) ;;
14860 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14862 esac
14865 esac
14868 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14869 no_undefined_flag_CXX='${wl}-z,text'
14870 archive_cmds_need_lc_CXX=no
14871 hardcode_shlibpath_var_CXX=no
14872 runpath_var='LD_RUN_PATH'
14874 case $cc_basename in
14875 CC*)
14876 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14877 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14880 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14881 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14883 esac
14886 sysv5* | sco3.2v5* | sco5v6*)
14887 # Note: We can NOT use -z defs as we might desire, because we do not
14888 # link with -lc, and that would cause any symbols used from libc to
14889 # always be unresolved, which means just about no library would
14890 # ever link correctly. If we're not using GNU ld we use -z text
14891 # though, which does catch some bad symbols but isn't as heavy-handed
14892 # as -z defs.
14893 no_undefined_flag_CXX='${wl}-z,text'
14894 allow_undefined_flag_CXX='${wl}-z,nodefs'
14895 archive_cmds_need_lc_CXX=no
14896 hardcode_shlibpath_var_CXX=no
14897 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14898 hardcode_libdir_separator_CXX=':'
14899 link_all_deplibs_CXX=yes
14900 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14901 runpath_var='LD_RUN_PATH'
14903 case $cc_basename in
14904 CC*)
14905 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14906 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14907 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14908 '"$old_archive_cmds_CXX"
14909 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14910 '"$reload_cmds_CXX"
14913 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14914 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14916 esac
14919 tandem*)
14920 case $cc_basename in
14921 NCC*)
14922 # NonStop-UX NCC 3.20
14923 # FIXME: insert proper C++ library support
14924 ld_shlibs_CXX=no
14927 # FIXME: insert proper C++ library support
14928 ld_shlibs_CXX=no
14930 esac
14933 vxworks*)
14934 # FIXME: insert proper C++ library support
14935 ld_shlibs_CXX=no
14939 # FIXME: insert proper C++ library support
14940 ld_shlibs_CXX=no
14942 esac
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14945 $as_echo "$ld_shlibs_CXX" >&6; }
14946 test "$ld_shlibs_CXX" = no && can_build_shared=no
14948 GCC_CXX="$GXX"
14949 LD_CXX="$LD"
14951 ## CAVEAT EMPTOR:
14952 ## There is no encapsulation within the following macros, do not change
14953 ## the running order or otherwise move them around unless you know exactly
14954 ## what you are doing...
14955 # Dependencies to place before and after the object being linked:
14956 predep_objects_CXX=
14957 postdep_objects_CXX=
14958 predeps_CXX=
14959 postdeps_CXX=
14960 compiler_lib_search_path_CXX=
14962 cat > conftest.$ac_ext <<_LT_EOF
14963 class Foo
14965 public:
14966 Foo (void) { a = 0; }
14967 private:
14968 int a;
14970 _LT_EOF
14972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14973 (eval $ac_compile) 2>&5
14974 ac_status=$?
14975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14976 test $ac_status = 0; }; then
14977 # Parse the compiler output and extract the necessary
14978 # objects, libraries and library flags.
14980 # Sentinel used to keep track of whether or not we are before
14981 # the conftest object file.
14982 pre_test_object_deps_done=no
14984 for p in `eval "$output_verbose_link_cmd"`; do
14985 case $p in
14987 -L* | -R* | -l*)
14988 # Some compilers place space between "-{L,R}" and the path.
14989 # Remove the space.
14990 if test $p = "-L" ||
14991 test $p = "-R"; then
14992 prev=$p
14993 continue
14994 else
14995 prev=
14998 if test "$pre_test_object_deps_done" = no; then
14999 case $p in
15000 -L* | -R*)
15001 # Internal compiler library paths should come after those
15002 # provided the user. The postdeps already come after the
15003 # user supplied libs so there is no need to process them.
15004 if test -z "$compiler_lib_search_path_CXX"; then
15005 compiler_lib_search_path_CXX="${prev}${p}"
15006 else
15007 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15010 # The "-l" case would never come before the object being
15011 # linked, so don't bother handling this case.
15012 esac
15013 else
15014 if test -z "$postdeps_CXX"; then
15015 postdeps_CXX="${prev}${p}"
15016 else
15017 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15022 *.$objext)
15023 # This assumes that the test object file only shows up
15024 # once in the compiler output.
15025 if test "$p" = "conftest.$objext"; then
15026 pre_test_object_deps_done=yes
15027 continue
15030 if test "$pre_test_object_deps_done" = no; then
15031 if test -z "$predep_objects_CXX"; then
15032 predep_objects_CXX="$p"
15033 else
15034 predep_objects_CXX="$predep_objects_CXX $p"
15036 else
15037 if test -z "$postdep_objects_CXX"; then
15038 postdep_objects_CXX="$p"
15039 else
15040 postdep_objects_CXX="$postdep_objects_CXX $p"
15045 *) ;; # Ignore the rest.
15047 esac
15048 done
15050 # Clean up.
15051 rm -f a.out a.exe
15052 else
15053 echo "libtool.m4: error: problem compiling CXX test program"
15056 $RM -f confest.$objext
15058 # PORTME: override above test on systems where it is broken
15059 case $host_os in
15060 interix[3-9]*)
15061 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15062 # hack all around it, let's just trust "g++" to DTRT.
15063 predep_objects_CXX=
15064 postdep_objects_CXX=
15065 postdeps_CXX=
15068 linux*)
15069 case `$CC -V 2>&1 | sed 5q` in
15070 *Sun\ C*)
15071 # Sun C++ 5.9
15073 # The more standards-conforming stlport4 library is
15074 # incompatible with the Cstd library. Avoid specifying
15075 # it if it's in CXXFLAGS. Ignore libCrun as
15076 # -library=stlport4 depends on it.
15077 case " $CXX $CXXFLAGS " in
15078 *" -library=stlport4 "*)
15079 solaris_use_stlport4=yes
15081 esac
15083 if test "$solaris_use_stlport4" != yes; then
15084 postdeps_CXX='-library=Cstd -library=Crun'
15087 esac
15090 solaris*)
15091 case $cc_basename in
15092 CC*)
15093 # The more standards-conforming stlport4 library is
15094 # incompatible with the Cstd library. Avoid specifying
15095 # it if it's in CXXFLAGS. Ignore libCrun as
15096 # -library=stlport4 depends on it.
15097 case " $CXX $CXXFLAGS " in
15098 *" -library=stlport4 "*)
15099 solaris_use_stlport4=yes
15101 esac
15103 # Adding this requires a known-good setup of shared libraries for
15104 # Sun compiler versions before 5.6, else PIC objects from an old
15105 # archive will be linked into the output, leading to subtle bugs.
15106 if test "$solaris_use_stlport4" != yes; then
15107 postdeps_CXX='-library=Cstd -library=Crun'
15110 esac
15112 esac
15115 case " $postdeps_CXX " in
15116 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15117 esac
15118 compiler_lib_search_dirs_CXX=
15119 if test -n "${compiler_lib_search_path_CXX}"; then
15120 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15153 lt_prog_compiler_wl_CXX=
15154 lt_prog_compiler_pic_CXX=
15155 lt_prog_compiler_static_CXX=
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15158 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15160 # C++ specific cases for pic, static, wl, etc.
15161 if test "$GXX" = yes; then
15162 lt_prog_compiler_wl_CXX='-Wl,'
15163 lt_prog_compiler_static_CXX='-static'
15165 case $host_os in
15166 aix*)
15167 # All AIX code is PIC.
15168 if test "$host_cpu" = ia64; then
15169 # AIX 5 now supports IA64 processor
15170 lt_prog_compiler_static_CXX='-Bstatic'
15172 lt_prog_compiler_pic_CXX='-fPIC'
15175 amigaos*)
15176 case $host_cpu in
15177 powerpc)
15178 # see comment about AmigaOS4 .so support
15179 lt_prog_compiler_pic_CXX='-fPIC'
15181 m68k)
15182 # FIXME: we need at least 68020 code to build shared libraries, but
15183 # adding the `-m68020' flag to GCC prevents building anything better,
15184 # like `-m68040'.
15185 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15187 esac
15190 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15191 # PIC is the default for these OSes.
15193 mingw* | cygwin* | os2* | pw32* | cegcc*)
15194 # This hack is so that the source file can tell whether it is being
15195 # built for inclusion in a dll (and should export symbols for example).
15196 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15197 # (--disable-auto-import) libraries
15198 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15200 darwin* | rhapsody*)
15201 # PIC is the default on this platform
15202 # Common symbols not allowed in MH_DYLIB files
15203 lt_prog_compiler_pic_CXX='-fno-common'
15205 *djgpp*)
15206 # DJGPP does not support shared libraries at all
15207 lt_prog_compiler_pic_CXX=
15209 haiku*)
15210 # PIC is the default for Haiku.
15211 # The "-static" flag exists, but is broken.
15212 lt_prog_compiler_static_CXX=
15214 interix[3-9]*)
15215 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15216 # Instead, we relocate shared libraries at runtime.
15218 sysv4*MP*)
15219 if test -d /usr/nec; then
15220 lt_prog_compiler_pic_CXX=-Kconform_pic
15223 hpux*)
15224 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15225 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15226 # sets the default TLS model and affects inlining.
15227 case $host_cpu in
15228 hppa*64*)
15231 lt_prog_compiler_pic_CXX='-fPIC'
15233 esac
15235 *qnx* | *nto*)
15236 # QNX uses GNU C++, but need to define -shared option too, otherwise
15237 # it will coredump.
15238 lt_prog_compiler_pic_CXX='-fPIC -shared'
15241 lt_prog_compiler_pic_CXX='-fPIC'
15243 esac
15244 else
15245 case $host_os in
15246 aix[4-9]*)
15247 # All AIX code is PIC.
15248 if test "$host_cpu" = ia64; then
15249 # AIX 5 now supports IA64 processor
15250 lt_prog_compiler_static_CXX='-Bstatic'
15251 else
15252 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15255 chorus*)
15256 case $cc_basename in
15257 cxch68*)
15258 # Green Hills C++ Compiler
15259 # _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"
15261 esac
15263 dgux*)
15264 case $cc_basename in
15265 ec++*)
15266 lt_prog_compiler_pic_CXX='-KPIC'
15268 ghcx*)
15269 # Green Hills C++ Compiler
15270 lt_prog_compiler_pic_CXX='-pic'
15274 esac
15276 freebsd* | dragonfly*)
15277 # FreeBSD uses GNU C++
15279 hpux9* | hpux10* | hpux11*)
15280 case $cc_basename in
15281 CC*)
15282 lt_prog_compiler_wl_CXX='-Wl,'
15283 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15284 if test "$host_cpu" != ia64; then
15285 lt_prog_compiler_pic_CXX='+Z'
15288 aCC*)
15289 lt_prog_compiler_wl_CXX='-Wl,'
15290 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15291 case $host_cpu in
15292 hppa*64*|ia64*)
15293 # +Z the default
15296 lt_prog_compiler_pic_CXX='+Z'
15298 esac
15302 esac
15304 interix*)
15305 # This is c89, which is MS Visual C++ (no shared libs)
15306 # Anyone wants to do a port?
15308 irix5* | irix6* | nonstopux*)
15309 case $cc_basename in
15310 CC*)
15311 lt_prog_compiler_wl_CXX='-Wl,'
15312 lt_prog_compiler_static_CXX='-non_shared'
15313 # CC pic flag -KPIC is the default.
15317 esac
15319 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15320 case $cc_basename in
15321 KCC*)
15322 # KAI C++ Compiler
15323 lt_prog_compiler_wl_CXX='--backend -Wl,'
15324 lt_prog_compiler_pic_CXX='-fPIC'
15326 ecpc* )
15327 # old Intel C++ for x86_64 which still supported -KPIC.
15328 lt_prog_compiler_wl_CXX='-Wl,'
15329 lt_prog_compiler_pic_CXX='-KPIC'
15330 lt_prog_compiler_static_CXX='-static'
15332 icpc* )
15333 # Intel C++, used to be incompatible with GCC.
15334 # ICC 10 doesn't accept -KPIC any more.
15335 lt_prog_compiler_wl_CXX='-Wl,'
15336 lt_prog_compiler_pic_CXX='-fPIC'
15337 lt_prog_compiler_static_CXX='-static'
15339 pgCC* | pgcpp*)
15340 # Portland Group C++ compiler
15341 lt_prog_compiler_wl_CXX='-Wl,'
15342 lt_prog_compiler_pic_CXX='-fpic'
15343 lt_prog_compiler_static_CXX='-Bstatic'
15345 cxx*)
15346 # Compaq C++
15347 # Make sure the PIC flag is empty. It appears that all Alpha
15348 # Linux and Compaq Tru64 Unix objects are PIC.
15349 lt_prog_compiler_pic_CXX=
15350 lt_prog_compiler_static_CXX='-non_shared'
15352 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15353 # IBM XL 8.0, 9.0 on PPC and BlueGene
15354 lt_prog_compiler_wl_CXX='-Wl,'
15355 lt_prog_compiler_pic_CXX='-qpic'
15356 lt_prog_compiler_static_CXX='-qstaticlink'
15359 case `$CC -V 2>&1 | sed 5q` in
15360 *Sun\ C*)
15361 # Sun C++ 5.9
15362 lt_prog_compiler_pic_CXX='-KPIC'
15363 lt_prog_compiler_static_CXX='-Bstatic'
15364 lt_prog_compiler_wl_CXX='-Qoption ld '
15366 esac
15368 esac
15370 lynxos*)
15372 m88k*)
15374 mvs*)
15375 case $cc_basename in
15376 cxx*)
15377 lt_prog_compiler_pic_CXX='-W c,exportall'
15381 esac
15383 netbsd*)
15385 *qnx* | *nto*)
15386 # QNX uses GNU C++, but need to define -shared option too, otherwise
15387 # it will coredump.
15388 lt_prog_compiler_pic_CXX='-fPIC -shared'
15390 osf3* | osf4* | osf5*)
15391 case $cc_basename in
15392 KCC*)
15393 lt_prog_compiler_wl_CXX='--backend -Wl,'
15395 RCC*)
15396 # Rational C++ 2.4.1
15397 lt_prog_compiler_pic_CXX='-pic'
15399 cxx*)
15400 # Digital/Compaq C++
15401 lt_prog_compiler_wl_CXX='-Wl,'
15402 # Make sure the PIC flag is empty. It appears that all Alpha
15403 # Linux and Compaq Tru64 Unix objects are PIC.
15404 lt_prog_compiler_pic_CXX=
15405 lt_prog_compiler_static_CXX='-non_shared'
15409 esac
15411 psos*)
15413 solaris*)
15414 case $cc_basename in
15415 CC*)
15416 # Sun C++ 4.2, 5.x and Centerline C++
15417 lt_prog_compiler_pic_CXX='-KPIC'
15418 lt_prog_compiler_static_CXX='-Bstatic'
15419 lt_prog_compiler_wl_CXX='-Qoption ld '
15421 gcx*)
15422 # Green Hills C++ Compiler
15423 lt_prog_compiler_pic_CXX='-PIC'
15427 esac
15429 sunos4*)
15430 case $cc_basename in
15431 CC*)
15432 # Sun C++ 4.x
15433 lt_prog_compiler_pic_CXX='-pic'
15434 lt_prog_compiler_static_CXX='-Bstatic'
15436 lcc*)
15437 # Lucid
15438 lt_prog_compiler_pic_CXX='-pic'
15442 esac
15444 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15445 case $cc_basename in
15446 CC*)
15447 lt_prog_compiler_wl_CXX='-Wl,'
15448 lt_prog_compiler_pic_CXX='-KPIC'
15449 lt_prog_compiler_static_CXX='-Bstatic'
15451 esac
15453 tandem*)
15454 case $cc_basename in
15455 NCC*)
15456 # NonStop-UX NCC 3.20
15457 lt_prog_compiler_pic_CXX='-KPIC'
15461 esac
15463 vxworks*)
15466 lt_prog_compiler_can_build_shared_CXX=no
15468 esac
15471 case $host_os in
15472 # For platforms which do not support PIC, -DPIC is meaningless:
15473 *djgpp*)
15474 lt_prog_compiler_pic_CXX=
15477 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15479 esac
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15481 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15486 # Check to make sure the PIC flag actually works.
15488 if test -n "$lt_prog_compiler_pic_CXX"; then
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15490 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15491 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15492 $as_echo_n "(cached) " >&6
15493 else
15494 lt_cv_prog_compiler_pic_works_CXX=no
15495 ac_outfile=conftest.$ac_objext
15496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15497 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15498 # Insert the option either (1) after the last *FLAGS variable, or
15499 # (2) before a word containing "conftest.", or (3) at the end.
15500 # Note that $ac_compile itself does not contain backslashes and begins
15501 # with a dollar sign (not a hyphen), so the echo should work correctly.
15502 # The option is referenced via a variable to avoid confusing sed.
15503 lt_compile=`echo "$ac_compile" | $SED \
15504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15506 -e 's:$: $lt_compiler_flag:'`
15507 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15508 (eval "$lt_compile" 2>conftest.err)
15509 ac_status=$?
15510 cat conftest.err >&5
15511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512 if (exit $ac_status) && test -s "$ac_outfile"; then
15513 # The compiler can only warn and ignore the option if not recognized
15514 # So say no if there are warnings other than the usual output.
15515 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15516 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15517 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15518 lt_cv_prog_compiler_pic_works_CXX=yes
15521 $RM conftest*
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15525 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15527 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15528 case $lt_prog_compiler_pic_CXX in
15529 "" | " "*) ;;
15530 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15531 esac
15532 else
15533 lt_prog_compiler_pic_CXX=
15534 lt_prog_compiler_can_build_shared_CXX=no
15542 # Check to make sure the static flag actually works.
15544 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15546 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15547 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15548 $as_echo_n "(cached) " >&6
15549 else
15550 lt_cv_prog_compiler_static_works_CXX=no
15551 save_LDFLAGS="$LDFLAGS"
15552 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15553 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15554 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15555 # The linker can only warn and ignore the option if not recognized
15556 # So say no if there are warnings
15557 if test -s conftest.err; then
15558 # Append any errors to the config.log.
15559 cat conftest.err 1>&5
15560 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15561 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15562 if diff conftest.exp conftest.er2 >/dev/null; then
15563 lt_cv_prog_compiler_static_works_CXX=yes
15565 else
15566 lt_cv_prog_compiler_static_works_CXX=yes
15569 $RM -r conftest*
15570 LDFLAGS="$save_LDFLAGS"
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15574 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15576 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15578 else
15579 lt_prog_compiler_static_CXX=
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15586 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15587 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15588 $as_echo_n "(cached) " >&6
15589 else
15590 lt_cv_prog_compiler_c_o_CXX=no
15591 $RM -r conftest 2>/dev/null
15592 mkdir conftest
15593 cd conftest
15594 mkdir out
15595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15597 lt_compiler_flag="-o out/conftest2.$ac_objext"
15598 # Insert the option either (1) after the last *FLAGS variable, or
15599 # (2) before a word containing "conftest.", or (3) at the end.
15600 # Note that $ac_compile itself does not contain backslashes and begins
15601 # with a dollar sign (not a hyphen), so the echo should work correctly.
15602 lt_compile=`echo "$ac_compile" | $SED \
15603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15605 -e 's:$: $lt_compiler_flag:'`
15606 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15607 (eval "$lt_compile" 2>out/conftest.err)
15608 ac_status=$?
15609 cat out/conftest.err >&5
15610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15611 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15612 then
15613 # The compiler can only warn and ignore the option if not recognized
15614 # So say no if there are warnings
15615 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15616 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15617 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15618 lt_cv_prog_compiler_c_o_CXX=yes
15621 chmod u+w . 2>&5
15622 $RM conftest*
15623 # SGI C++ compiler will create directory out/ii_files/ for
15624 # template instantiation
15625 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15626 $RM out/* && rmdir out
15627 cd ..
15628 $RM -r conftest
15629 $RM conftest*
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15633 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15638 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15639 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15640 $as_echo_n "(cached) " >&6
15641 else
15642 lt_cv_prog_compiler_c_o_CXX=no
15643 $RM -r conftest 2>/dev/null
15644 mkdir conftest
15645 cd conftest
15646 mkdir out
15647 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15649 lt_compiler_flag="-o out/conftest2.$ac_objext"
15650 # Insert the option either (1) after the last *FLAGS variable, or
15651 # (2) before a word containing "conftest.", or (3) at the end.
15652 # Note that $ac_compile itself does not contain backslashes and begins
15653 # with a dollar sign (not a hyphen), so the echo should work correctly.
15654 lt_compile=`echo "$ac_compile" | $SED \
15655 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15656 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15657 -e 's:$: $lt_compiler_flag:'`
15658 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15659 (eval "$lt_compile" 2>out/conftest.err)
15660 ac_status=$?
15661 cat out/conftest.err >&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15664 then
15665 # The compiler can only warn and ignore the option if not recognized
15666 # So say no if there are warnings
15667 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15668 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15669 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15670 lt_cv_prog_compiler_c_o_CXX=yes
15673 chmod u+w . 2>&5
15674 $RM conftest*
15675 # SGI C++ compiler will create directory out/ii_files/ for
15676 # template instantiation
15677 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15678 $RM out/* && rmdir out
15679 cd ..
15680 $RM -r conftest
15681 $RM conftest*
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15685 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15690 hard_links="nottested"
15691 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15692 # do not overwrite the value of need_locks provided by the user
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15694 $as_echo_n "checking if we can lock with hard links... " >&6; }
15695 hard_links=yes
15696 $RM conftest*
15697 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15698 touch conftest.a
15699 ln conftest.a conftest.b 2>&5 || hard_links=no
15700 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15702 $as_echo "$hard_links" >&6; }
15703 if test "$hard_links" = no; then
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15705 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15706 need_locks=warn
15708 else
15709 need_locks=no
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15715 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15717 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15718 case $host_os in
15719 aix[4-9]*)
15720 # If we're using GNU nm, then we don't want the "-C" option.
15721 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15722 # Also, AIX nm treats weak defined symbols like other global defined
15723 # symbols, whereas GNU nm marks them as "W".
15724 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15725 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'
15726 else
15727 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'
15730 pw32*)
15731 export_symbols_cmds_CXX="$ltdll_cmds"
15733 cygwin* | mingw* | cegcc*)
15734 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'
15737 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15739 esac
15740 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15743 $as_echo "$ld_shlibs_CXX" >&6; }
15744 test "$ld_shlibs_CXX" = no && can_build_shared=no
15746 with_gnu_ld_CXX=$with_gnu_ld
15754 # Do we need to explicitly link libc?
15756 case "x$archive_cmds_need_lc_CXX" in
15757 x|xyes)
15758 # Assume -lc should be added
15759 archive_cmds_need_lc_CXX=yes
15761 if test "$enable_shared" = yes && test "$GCC" = yes; then
15762 case $archive_cmds_CXX in
15763 *'~'*)
15764 # FIXME: we may have to deal with multi-command sequences.
15766 '$CC '*)
15767 # Test whether the compiler implicitly links with -lc since on some
15768 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15769 # to ld, don't add -lc before -lgcc.
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15771 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15772 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15773 $as_echo_n "(cached) " >&6
15774 else
15775 $RM conftest*
15776 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15779 (eval $ac_compile) 2>&5
15780 ac_status=$?
15781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15782 test $ac_status = 0; } 2>conftest.err; then
15783 soname=conftest
15784 lib=conftest
15785 libobjs=conftest.$ac_objext
15786 deplibs=
15787 wl=$lt_prog_compiler_wl_CXX
15788 pic_flag=$lt_prog_compiler_pic_CXX
15789 compiler_flags=-v
15790 linker_flags=-v
15791 verstring=
15792 output_objdir=.
15793 libname=conftest
15794 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15795 allow_undefined_flag_CXX=
15796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15797 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15798 ac_status=$?
15799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15800 test $ac_status = 0; }
15801 then
15802 lt_cv_archive_cmds_need_lc_CXX=no
15803 else
15804 lt_cv_archive_cmds_need_lc_CXX=yes
15806 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15807 else
15808 cat conftest.err 1>&5
15810 $RM conftest*
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15814 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15815 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15817 esac
15820 esac
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15886 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15888 library_names_spec=
15889 libname_spec='lib$name'
15890 soname_spec=
15891 shrext_cmds=".so"
15892 postinstall_cmds=
15893 postuninstall_cmds=
15894 finish_cmds=
15895 finish_eval=
15896 shlibpath_var=
15897 shlibpath_overrides_runpath=unknown
15898 version_type=none
15899 dynamic_linker="$host_os ld.so"
15900 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15901 need_lib_prefix=unknown
15902 hardcode_into_libs=no
15904 # when you set need_version to no, make sure it does not cause -set_version
15905 # flags to be left without arguments
15906 need_version=unknown
15908 case $host_os in
15909 aix3*)
15910 version_type=linux
15911 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15912 shlibpath_var=LIBPATH
15914 # AIX 3 has no versioning support, so we append a major version to the name.
15915 soname_spec='${libname}${release}${shared_ext}$major'
15918 aix[4-9]*)
15919 version_type=linux
15920 need_lib_prefix=no
15921 need_version=no
15922 hardcode_into_libs=yes
15923 if test "$host_cpu" = ia64; then
15924 # AIX 5 supports IA64
15925 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15926 shlibpath_var=LD_LIBRARY_PATH
15927 else
15928 # With GCC up to 2.95.x, collect2 would create an import file
15929 # for dependence libraries. The import file would start with
15930 # the line `#! .'. This would cause the generated library to
15931 # depend on `.', always an invalid library. This was fixed in
15932 # development snapshots of GCC prior to 3.0.
15933 case $host_os in
15934 aix4 | aix4.[01] | aix4.[01].*)
15935 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15936 echo ' yes '
15937 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15939 else
15940 can_build_shared=no
15943 esac
15944 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15945 # soname into executable. Probably we can add versioning support to
15946 # collect2, so additional links can be useful in future.
15947 if test "$aix_use_runtimelinking" = yes; then
15948 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15949 # instead of lib<name>.a to let people know that these are not
15950 # typical AIX shared libraries.
15951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15952 else
15953 # We preserve .a as extension for shared libraries through AIX4.2
15954 # and later when we are not doing run time linking.
15955 library_names_spec='${libname}${release}.a $libname.a'
15956 soname_spec='${libname}${release}${shared_ext}$major'
15958 shlibpath_var=LIBPATH
15962 amigaos*)
15963 case $host_cpu in
15964 powerpc)
15965 # Since July 2007 AmigaOS4 officially supports .so libraries.
15966 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15969 m68k)
15970 library_names_spec='$libname.ixlibrary $libname.a'
15971 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15972 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'
15974 esac
15977 beos*)
15978 library_names_spec='${libname}${shared_ext}'
15979 dynamic_linker="$host_os ld.so"
15980 shlibpath_var=LIBRARY_PATH
15983 bsdi[45]*)
15984 version_type=linux
15985 need_version=no
15986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15987 soname_spec='${libname}${release}${shared_ext}$major'
15988 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15989 shlibpath_var=LD_LIBRARY_PATH
15990 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15991 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15992 # the default ld.so.conf also contains /usr/contrib/lib and
15993 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15994 # libtool to hard-code these into programs
15997 cygwin* | mingw* | pw32* | cegcc*)
15998 version_type=windows
15999 shrext_cmds=".dll"
16000 need_version=no
16001 need_lib_prefix=no
16003 case $GCC,$host_os in
16004 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16005 library_names_spec='$libname.dll.a'
16006 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16007 postinstall_cmds='base_file=`basename \${file}`~
16008 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16009 dldir=$destdir/`dirname \$dlpath`~
16010 test -d \$dldir || mkdir -p \$dldir~
16011 $install_prog $dir/$dlname \$dldir/$dlname~
16012 chmod a+x \$dldir/$dlname~
16013 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16014 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16016 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16017 dlpath=$dir/\$dldll~
16018 $RM \$dlpath'
16019 shlibpath_overrides_runpath=yes
16021 case $host_os in
16022 cygwin*)
16023 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16024 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16027 mingw* | cegcc*)
16028 # MinGW DLLs use traditional 'lib' prefix
16029 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16031 pw32*)
16032 # pw32 DLLs use 'pw' prefix rather than 'lib'
16033 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16035 esac
16039 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16041 esac
16042 dynamic_linker='Win32 ld.exe'
16043 # FIXME: first we should search . and the directory the executable is in
16044 shlibpath_var=PATH
16047 darwin* | rhapsody*)
16048 dynamic_linker="$host_os dyld"
16049 version_type=darwin
16050 need_lib_prefix=no
16051 need_version=no
16052 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16053 soname_spec='${libname}${release}${major}$shared_ext'
16054 shlibpath_overrides_runpath=yes
16055 shlibpath_var=DYLD_LIBRARY_PATH
16056 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16058 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16061 dgux*)
16062 version_type=linux
16063 need_lib_prefix=no
16064 need_version=no
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=LD_LIBRARY_PATH
16070 freebsd* | dragonfly*)
16071 # DragonFly does not have aout. When/if they implement a new
16072 # versioning mechanism, adjust this.
16073 if test -x /usr/bin/objformat; then
16074 objformat=`/usr/bin/objformat`
16075 else
16076 case $host_os in
16077 freebsd[23].*) objformat=aout ;;
16078 *) objformat=elf ;;
16079 esac
16081 version_type=freebsd-$objformat
16082 case $version_type in
16083 freebsd-elf*)
16084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16085 need_version=no
16086 need_lib_prefix=no
16088 freebsd-*)
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16090 need_version=yes
16092 esac
16093 shlibpath_var=LD_LIBRARY_PATH
16094 case $host_os in
16095 freebsd2.*)
16096 shlibpath_overrides_runpath=yes
16098 freebsd3.[01]* | freebsdelf3.[01]*)
16099 shlibpath_overrides_runpath=yes
16100 hardcode_into_libs=yes
16102 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16103 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16104 shlibpath_overrides_runpath=no
16105 hardcode_into_libs=yes
16107 *) # from 4.6 on, and DragonFly
16108 shlibpath_overrides_runpath=yes
16109 hardcode_into_libs=yes
16111 esac
16114 gnu*)
16115 version_type=linux
16116 need_lib_prefix=no
16117 need_version=no
16118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16119 soname_spec='${libname}${release}${shared_ext}$major'
16120 shlibpath_var=LD_LIBRARY_PATH
16121 hardcode_into_libs=yes
16124 haiku*)
16125 version_type=linux
16126 need_lib_prefix=no
16127 need_version=no
16128 dynamic_linker="$host_os runtime_loader"
16129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16130 soname_spec='${libname}${release}${shared_ext}$major'
16131 shlibpath_var=LIBRARY_PATH
16132 shlibpath_overrides_runpath=yes
16133 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16134 hardcode_into_libs=yes
16137 hpux9* | hpux10* | hpux11*)
16138 # Give a soname corresponding to the major version so that dld.sl refuses to
16139 # link against other versions.
16140 version_type=sunos
16141 need_lib_prefix=no
16142 need_version=no
16143 case $host_cpu in
16144 ia64*)
16145 shrext_cmds='.so'
16146 hardcode_into_libs=yes
16147 dynamic_linker="$host_os dld.so"
16148 shlibpath_var=LD_LIBRARY_PATH
16149 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16151 soname_spec='${libname}${release}${shared_ext}$major'
16152 if test "X$HPUX_IA64_MODE" = X32; then
16153 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16154 else
16155 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16157 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16159 hppa*64*)
16160 shrext_cmds='.sl'
16161 hardcode_into_libs=yes
16162 dynamic_linker="$host_os dld.sl"
16163 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16164 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16166 soname_spec='${libname}${release}${shared_ext}$major'
16167 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16171 shrext_cmds='.sl'
16172 dynamic_linker="$host_os dld.sl"
16173 shlibpath_var=SHLIB_PATH
16174 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16176 soname_spec='${libname}${release}${shared_ext}$major'
16178 esac
16179 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16180 postinstall_cmds='chmod 555 $lib'
16181 # or fails outright, so override atomically:
16182 install_override_mode=555
16185 interix[3-9]*)
16186 version_type=linux
16187 need_lib_prefix=no
16188 need_version=no
16189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16190 soname_spec='${libname}${release}${shared_ext}$major'
16191 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16192 shlibpath_var=LD_LIBRARY_PATH
16193 shlibpath_overrides_runpath=no
16194 hardcode_into_libs=yes
16197 irix5* | irix6* | nonstopux*)
16198 case $host_os in
16199 nonstopux*) version_type=nonstopux ;;
16201 if test "$lt_cv_prog_gnu_ld" = yes; then
16202 version_type=linux
16203 else
16204 version_type=irix
16205 fi ;;
16206 esac
16207 need_lib_prefix=no
16208 need_version=no
16209 soname_spec='${libname}${release}${shared_ext}$major'
16210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16211 case $host_os in
16212 irix5* | nonstopux*)
16213 libsuff= shlibsuff=
16216 case $LD in # libtool.m4 will add one of these switches to LD
16217 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16218 libsuff= shlibsuff= libmagic=32-bit;;
16219 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16220 libsuff=32 shlibsuff=N32 libmagic=N32;;
16221 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16222 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16223 *) libsuff= shlibsuff= libmagic=never-match;;
16224 esac
16226 esac
16227 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16228 shlibpath_overrides_runpath=no
16229 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16230 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16231 hardcode_into_libs=yes
16234 # No shared lib support for Linux oldld, aout, or coff.
16235 linux*oldld* | linux*aout* | linux*coff*)
16236 dynamic_linker=no
16239 # This must be Linux ELF.
16240 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16241 version_type=linux
16242 need_lib_prefix=no
16243 need_version=no
16244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245 soname_spec='${libname}${release}${shared_ext}$major'
16246 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16247 shlibpath_var=LD_LIBRARY_PATH
16248 shlibpath_overrides_runpath=no
16250 # Some binutils ld are patched to set DT_RUNPATH
16251 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16252 $as_echo_n "(cached) " >&6
16253 else
16254 lt_cv_shlibpath_overrides_runpath=no
16255 save_LDFLAGS=$LDFLAGS
16256 save_libdir=$libdir
16257 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16258 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16259 if test x$gcc_no_link = xyes; then
16260 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16263 /* end confdefs.h. */
16266 main ()
16270 return 0;
16272 _ACEOF
16273 if ac_fn_cxx_try_link "$LINENO"; then :
16274 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16275 lt_cv_shlibpath_overrides_runpath=yes
16278 rm -f core conftest.err conftest.$ac_objext \
16279 conftest$ac_exeext conftest.$ac_ext
16280 LDFLAGS=$save_LDFLAGS
16281 libdir=$save_libdir
16285 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16287 # This implies no fast_install, which is unacceptable.
16288 # Some rework will be needed to allow for fast_install
16289 # before this can be enabled.
16290 hardcode_into_libs=yes
16292 # Append ld.so.conf contents to the search path
16293 if test -f /etc/ld.so.conf; then
16294 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' ' '`
16295 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16298 # We used to test for /lib/ld.so.1 and disable shared libraries on
16299 # powerpc, because MkLinux only supported shared libraries with the
16300 # GNU dynamic linker. Since this was broken with cross compilers,
16301 # most powerpc-linux boxes support dynamic linking these days and
16302 # people can always --disable-shared, the test was removed, and we
16303 # assume the GNU/Linux dynamic linker is in use.
16304 dynamic_linker='GNU/Linux ld.so'
16307 netbsd*)
16308 version_type=sunos
16309 need_lib_prefix=no
16310 need_version=no
16311 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16314 dynamic_linker='NetBSD (a.out) ld.so'
16315 else
16316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16317 soname_spec='${libname}${release}${shared_ext}$major'
16318 dynamic_linker='NetBSD ld.elf_so'
16320 shlibpath_var=LD_LIBRARY_PATH
16321 shlibpath_overrides_runpath=yes
16322 hardcode_into_libs=yes
16325 newsos6)
16326 version_type=linux
16327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16328 shlibpath_var=LD_LIBRARY_PATH
16329 shlibpath_overrides_runpath=yes
16332 *nto* | *qnx*)
16333 version_type=qnx
16334 need_lib_prefix=no
16335 need_version=no
16336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16337 soname_spec='${libname}${release}${shared_ext}$major'
16338 shlibpath_var=LD_LIBRARY_PATH
16339 shlibpath_overrides_runpath=no
16340 hardcode_into_libs=yes
16341 dynamic_linker='ldqnx.so'
16344 openbsd*)
16345 version_type=sunos
16346 sys_lib_dlsearch_path_spec="/usr/lib"
16347 need_lib_prefix=no
16348 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16349 case $host_os in
16350 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16351 *) need_version=no ;;
16352 esac
16353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16355 shlibpath_var=LD_LIBRARY_PATH
16356 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16357 case $host_os in
16358 openbsd2.[89] | openbsd2.[89].*)
16359 shlibpath_overrides_runpath=no
16362 shlibpath_overrides_runpath=yes
16364 esac
16365 else
16366 shlibpath_overrides_runpath=yes
16370 os2*)
16371 libname_spec='$name'
16372 shrext_cmds=".dll"
16373 need_lib_prefix=no
16374 library_names_spec='$libname${shared_ext} $libname.a'
16375 dynamic_linker='OS/2 ld.exe'
16376 shlibpath_var=LIBPATH
16379 osf3* | osf4* | osf5*)
16380 version_type=osf
16381 need_lib_prefix=no
16382 need_version=no
16383 soname_spec='${libname}${release}${shared_ext}$major'
16384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16385 shlibpath_var=LD_LIBRARY_PATH
16386 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16387 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16390 rdos*)
16391 dynamic_linker=no
16394 solaris*)
16395 version_type=linux
16396 need_lib_prefix=no
16397 need_version=no
16398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16399 soname_spec='${libname}${release}${shared_ext}$major'
16400 shlibpath_var=LD_LIBRARY_PATH
16401 shlibpath_overrides_runpath=yes
16402 hardcode_into_libs=yes
16403 # ldd complains unless libraries are executable
16404 postinstall_cmds='chmod +x $lib'
16407 sunos4*)
16408 version_type=sunos
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16410 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16411 shlibpath_var=LD_LIBRARY_PATH
16412 shlibpath_overrides_runpath=yes
16413 if test "$with_gnu_ld" = yes; then
16414 need_lib_prefix=no
16416 need_version=yes
16419 sysv4 | sysv4.3*)
16420 version_type=linux
16421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16422 soname_spec='${libname}${release}${shared_ext}$major'
16423 shlibpath_var=LD_LIBRARY_PATH
16424 case $host_vendor in
16425 sni)
16426 shlibpath_overrides_runpath=no
16427 need_lib_prefix=no
16428 runpath_var=LD_RUN_PATH
16430 siemens)
16431 need_lib_prefix=no
16433 motorola)
16434 need_lib_prefix=no
16435 need_version=no
16436 shlibpath_overrides_runpath=no
16437 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16439 esac
16442 sysv4*MP*)
16443 if test -d /usr/nec ;then
16444 version_type=linux
16445 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16446 soname_spec='$libname${shared_ext}.$major'
16447 shlibpath_var=LD_LIBRARY_PATH
16451 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16452 version_type=freebsd-elf
16453 need_lib_prefix=no
16454 need_version=no
16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16456 soname_spec='${libname}${release}${shared_ext}$major'
16457 shlibpath_var=LD_LIBRARY_PATH
16458 shlibpath_overrides_runpath=yes
16459 hardcode_into_libs=yes
16460 if test "$with_gnu_ld" = yes; then
16461 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16462 else
16463 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16464 case $host_os in
16465 sco3.2v5*)
16466 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16468 esac
16470 sys_lib_dlsearch_path_spec='/usr/lib'
16473 tpf*)
16474 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16475 version_type=linux
16476 need_lib_prefix=no
16477 need_version=no
16478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16479 shlibpath_var=LD_LIBRARY_PATH
16480 shlibpath_overrides_runpath=no
16481 hardcode_into_libs=yes
16484 uts4*)
16485 version_type=linux
16486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16487 soname_spec='${libname}${release}${shared_ext}$major'
16488 shlibpath_var=LD_LIBRARY_PATH
16492 dynamic_linker=no
16494 esac
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16496 $as_echo "$dynamic_linker" >&6; }
16497 test "$dynamic_linker" = no && can_build_shared=no
16499 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16500 if test "$GCC" = yes; then
16501 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16504 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16505 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16507 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16508 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16549 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16550 hardcode_action_CXX=
16551 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16552 test -n "$runpath_var_CXX" ||
16553 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16555 # We can hardcode non-existent directories.
16556 if test "$hardcode_direct_CXX" != no &&
16557 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16558 # have to relink, otherwise we might link with an installed library
16559 # when we should be linking with a yet-to-be-installed one
16560 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16561 test "$hardcode_minus_L_CXX" != no; then
16562 # Linking always hardcodes the temporary library directory.
16563 hardcode_action_CXX=relink
16564 else
16565 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16566 hardcode_action_CXX=immediate
16568 else
16569 # We cannot hardcode anything, or else we can only hardcode existing
16570 # directories.
16571 hardcode_action_CXX=unsupported
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16574 $as_echo "$hardcode_action_CXX" >&6; }
16576 if test "$hardcode_action_CXX" = relink ||
16577 test "$inherit_rpath_CXX" = yes; then
16578 # Fast installation is not supported
16579 enable_fast_install=no
16580 elif test "$shlibpath_overrides_runpath" = yes ||
16581 test "$enable_shared" = no; then
16582 # Fast installation is not necessary
16583 enable_fast_install=needless
16592 fi # test -n "$compiler"
16594 CC=$lt_save_CC
16595 LDCXX=$LD
16596 LD=$lt_save_LD
16597 GCC=$lt_save_GCC
16598 with_gnu_ld=$lt_save_with_gnu_ld
16599 lt_cv_path_LDCXX=$lt_cv_path_LD
16600 lt_cv_path_LD=$lt_save_path_LD
16601 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16602 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16603 fi # test "$_lt_caught_CXX_error" != yes
16605 ac_ext=c
16606 ac_cpp='$CPP $CPPFLAGS'
16607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16613 # Handle -Werror default case.
16614 if test "$ENABLE_WERROR" = default; then
16615 case "$host_os" in
16616 *linux*)
16617 if test "$GCC" = yes; then
16618 ENABLE_WERROR=yes
16621 esac
16624 if test "x${COMPILE_COLLECTIONS}" = xyes; then
16625 # Extract the first word of "perl", so it can be a program name with args.
16626 set dummy perl; ac_word=$2
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16628 $as_echo_n "checking for $ac_word... " >&6; }
16629 if test "${ac_cv_path_PERL+set}" = set; then :
16630 $as_echo_n "(cached) " >&6
16631 else
16632 case $PERL in
16633 [\\/]* | ?:[\\/]*)
16634 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
16637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16638 for as_dir in $PATH
16640 IFS=$as_save_IFS
16641 test -z "$as_dir" && as_dir=.
16642 for ac_exec_ext in '' $ac_executable_extensions; do
16643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16644 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
16645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16646 break 2
16648 done
16649 done
16650 IFS=$as_save_IFS
16653 esac
16655 PERL=$ac_cv_path_PERL
16656 if test -n "$PERL"; then
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16658 $as_echo "$PERL" >&6; }
16659 else
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16661 $as_echo "no" >&6; }
16667 ac_config_files="$ac_config_files lib/mkcollections.pl"
16669 ac_config_commands="$ac_config_commands mkcollections.pl"
16673 if test "x${COMPILE_JNI}" = xyes; then
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((,,))" >&5
16678 $as_echo_n "checking __attribute__((,,))... " >&6; }
16679 if test "${gcc_cv_c_gcc_attribute_supported+set}" = set; then :
16680 $as_echo_n "(cached) " >&6
16681 else
16683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16684 /* end confdefs.h. */
16687 main ()
16689 extern int testfunction(int x) __attribute__((,,))
16691 return 0;
16693 _ACEOF
16694 if ac_fn_c_try_compile "$LINENO"; then :
16695 gcc_cv_c_gcc_attribute_supported=yes
16696 else
16697 gcc_cv_c_gcc_attribute_supported=no
16699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16703 if test "x$gcc_cv_c_gcc_attribute_supported" = xyes; then
16704 true
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16706 $as_echo "yes" >&6; }
16708 $as_echo "#define HAVE_GNUC25_ATTRIB /**/" >>confdefs.h
16711 else
16712 true
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16714 $as_echo "no" >&6; }
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((unused))" >&5
16727 $as_echo_n "checking __attribute__((unused))... " >&6; }
16728 if test "${gcc_cv_c_gcc_attribute_unused+set}" = set; then :
16729 $as_echo_n "(cached) " >&6
16730 else
16732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16733 /* end confdefs.h. */
16736 main ()
16738 extern int testfunction(int x) __attribute__((unused))
16740 return 0;
16742 _ACEOF
16743 if ac_fn_c_try_compile "$LINENO"; then :
16744 gcc_cv_c_gcc_attribute_unused=yes
16745 else
16746 gcc_cv_c_gcc_attribute_unused=no
16748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16752 if test "x$gcc_cv_c_gcc_attribute_unused" = xyes; then
16753 true
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16755 $as_echo "yes" >&6; }
16757 $as_echo "#define HAVE_GNUC25_UNUSED /**/" >>confdefs.h
16760 else
16761 true
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16763 $as_echo "no" >&6; }
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16772 $as_echo_n "checking for ANSI C header files... " >&6; }
16773 if test "${ac_cv_header_stdc+set}" = set; then :
16774 $as_echo_n "(cached) " >&6
16775 else
16776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16777 /* end confdefs.h. */
16778 #include <stdlib.h>
16779 #include <stdarg.h>
16780 #include <string.h>
16781 #include <float.h>
16784 main ()
16788 return 0;
16790 _ACEOF
16791 if ac_fn_c_try_compile "$LINENO"; then :
16792 ac_cv_header_stdc=yes
16793 else
16794 ac_cv_header_stdc=no
16796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16798 if test $ac_cv_header_stdc = yes; then
16799 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801 /* end confdefs.h. */
16802 #include <string.h>
16804 _ACEOF
16805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16806 $EGREP "memchr" >/dev/null 2>&1; then :
16808 else
16809 ac_cv_header_stdc=no
16811 rm -f conftest*
16815 if test $ac_cv_header_stdc = yes; then
16816 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818 /* end confdefs.h. */
16819 #include <stdlib.h>
16821 _ACEOF
16822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16823 $EGREP "free" >/dev/null 2>&1; then :
16825 else
16826 ac_cv_header_stdc=no
16828 rm -f conftest*
16832 if test $ac_cv_header_stdc = yes; then
16833 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16834 if test "$cross_compiling" = yes; then :
16836 else
16837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16838 /* end confdefs.h. */
16839 #include <ctype.h>
16840 #include <stdlib.h>
16841 #if ((' ' & 0x0FF) == 0x020)
16842 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16843 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16844 #else
16845 # define ISLOWER(c) \
16846 (('a' <= (c) && (c) <= 'i') \
16847 || ('j' <= (c) && (c) <= 'r') \
16848 || ('s' <= (c) && (c) <= 'z'))
16849 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16850 #endif
16852 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16854 main ()
16856 int i;
16857 for (i = 0; i < 256; i++)
16858 if (XOR (islower (i), ISLOWER (i))
16859 || toupper (i) != TOUPPER (i))
16860 return 2;
16861 return 0;
16863 _ACEOF
16864 if ac_fn_c_try_run "$LINENO"; then :
16866 else
16867 ac_cv_header_stdc=no
16869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16870 conftest.$ac_objext conftest.beam conftest.$ac_ext
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16876 $as_echo "$ac_cv_header_stdc" >&6; }
16877 if test $ac_cv_header_stdc = yes; then
16879 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16885 $as_echo_n "checking size of void *... " >&6; }
16886 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16887 $as_echo_n "(cached) " >&6
16888 else
16889 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
16890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16891 /* end confdefs.h. */
16892 #include "confdefs.h"
16893 #include <sys/types.h>
16897 main ()
16899 switch (0) case 0: case (sizeof (void *) == $ac_size):;
16901 return 0;
16903 _ACEOF
16904 if ac_fn_c_try_compile "$LINENO"; then :
16905 ac_cv_sizeof_void_p=$ac_size
16907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16908 if test x$ac_cv_sizeof_void_p != x ; then break; fi
16909 done
16913 if test x$ac_cv_sizeof_void_p = x ; then
16914 as_fn_error "cannot determine a size for void *" "$LINENO" 5
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16917 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16919 cat >>confdefs.h <<_ACEOF
16920 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16921 _ACEOF
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16926 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16927 if test "${ac_cv_c_bigendian+set}" = set; then :
16928 $as_echo_n "(cached) " >&6
16929 else
16930 ac_cv_c_bigendian=unknown
16931 # See if sys/param.h defines the BYTE_ORDER macro.
16932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16933 /* end confdefs.h. */
16934 #include <sys/types.h>
16935 #include <sys/param.h>
16937 main ()
16940 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16941 bogus endian macros
16942 #endif
16944 return 0;
16946 _ACEOF
16947 if ac_fn_c_try_compile "$LINENO"; then :
16948 # It does; now see whether it defined to BIG_ENDIAN or not.
16949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16950 /* end confdefs.h. */
16951 #include <sys/types.h>
16952 #include <sys/param.h>
16954 main ()
16957 #if BYTE_ORDER != BIG_ENDIAN
16958 not big endian
16959 #endif
16961 return 0;
16963 _ACEOF
16964 if ac_fn_c_try_compile "$LINENO"; then :
16965 ac_cv_c_bigendian=yes
16966 else
16967 ac_cv_c_bigendian=no
16969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16972 if test $ac_cv_c_bigendian = unknown; then
16973 if test "$cross_compiling" = yes; then :
16974 echo $ac_n "cross-compiling... " 2>&6
16975 else
16976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16977 /* end confdefs.h. */
16978 main () {
16979 /* Are we little or big endian? From Harbison&Steele. */
16980 union
16982 long l;
16983 char c[sizeof (long)];
16984 } u;
16985 u.l = 1;
16986 exit (u.c[sizeof (long) - 1] == 1);
16988 _ACEOF
16989 if ac_fn_c_try_run "$LINENO"; then :
16990 ac_cv_c_bigendian=no
16991 else
16992 ac_cv_c_bigendian=yes
16994 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16995 conftest.$ac_objext conftest.beam conftest.$ac_ext
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17001 $as_echo "$ac_cv_c_bigendian" >&6; }
17002 if test $ac_cv_c_bigendian = unknown; then
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
17004 $as_echo_n "checking to probe for byte ordering... " >&6; }
17006 cat >conftest.c <<EOF
17007 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17008 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17009 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
17010 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17011 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17012 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
17013 int main() { _ascii (); _ebcdic (); return 0; }
17015 if test -f conftest.c ; then
17016 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
17017 if test `grep -l BIGenDianSyS conftest.o` ; then
17018 echo $ac_n ' big endian probe OK, ' 1>&6
17019 ac_cv_c_bigendian=yes
17021 if test `grep -l LiTTleEnDian conftest.o` ; then
17022 echo $ac_n ' little endian probe OK, ' 1>&6
17023 if test $ac_cv_c_bigendian = yes ; then
17024 ac_cv_c_bigendian=unknown;
17025 else
17026 ac_cv_c_bigendian=no
17029 echo $ac_n 'guessing bigendian ... ' >&6
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17033 $as_echo "$ac_cv_c_bigendian" >&6; }
17035 if test $ac_cv_c_bigendian = yes; then
17037 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17040 $as_echo "#define HOST_WORDS_BIG_ENDIAN 1" >>confdefs.h
17042 BYTEORDER=4321
17043 else
17044 BYTEORDER=1234
17047 cat >>confdefs.h <<_ACEOF
17048 #define BYTEORDER $BYTEORDER
17049 _ACEOF
17051 if test $ac_cv_c_bigendian = unknown; then
17052 as_fn_error "unknown endianess - sorry, please pre-set ac_cv_c_bigendian" "$LINENO" 5
17056 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
17057 asm/ioctls.h \
17058 inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
17059 sys/time.h \
17060 sys/select.h \
17061 crt_externs.h \
17062 fcntl.h \
17063 sys/mman.h \
17064 magic.h \
17065 sys/event.h sys/epoll.h \
17066 ifaddrs.h \
17067 netinet/in_systm.h netinet/ip.h net/if.h \
17068 sys/loadavg.h sys/sockio.h
17069 do :
17070 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17071 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17072 eval as_val=\$$as_ac_Header
17073 if test "x$as_val" = x""yes; then :
17074 cat >>confdefs.h <<_ACEOF
17075 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17076 _ACEOF
17080 done
17083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17084 /* end confdefs.h. */
17085 #include <stdint.h>
17087 _ACEOF
17088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17089 $EGREP "uint32_t" >/dev/null 2>&1; then :
17091 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
17094 rm -f conftest*
17096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17097 /* end confdefs.h. */
17098 #include <inttypes.h>
17100 _ACEOF
17101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17102 $EGREP "uint32_t" >/dev/null 2>&1; then :
17104 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
17107 rm -f conftest*
17109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17110 /* end confdefs.h. */
17111 #include <sys/types.h>
17113 _ACEOF
17114 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17115 $EGREP "u_int32_t" >/dev/null 2>&1; then :
17117 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
17120 rm -f conftest*
17122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17123 /* end confdefs.h. */
17124 #include <sys/config.h>
17126 _ACEOF
17127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17128 $EGREP "u_int32_t" >/dev/null 2>&1; then :
17130 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
17133 rm -f conftest*
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17137 $as_echo_n "checking for library containing clock_gettime... " >&6; }
17138 if test "${ac_cv_search_clock_gettime+set}" = set; then :
17139 $as_echo_n "(cached) " >&6
17140 else
17141 ac_func_search_save_LIBS=$LIBS
17142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17143 /* end confdefs.h. */
17145 /* Override any GCC internal prototype to avoid an error.
17146 Use char because int might match the return type of a GCC
17147 builtin and then its argument prototype would still apply. */
17148 #ifdef __cplusplus
17149 extern "C"
17150 #endif
17151 char clock_gettime ();
17153 main ()
17155 return clock_gettime ();
17157 return 0;
17159 _ACEOF
17160 for ac_lib in '' rt; do
17161 if test -z "$ac_lib"; then
17162 ac_res="none required"
17163 else
17164 ac_res=-l$ac_lib
17165 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17167 if test x$gcc_no_link = xyes; then
17168 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17170 if ac_fn_c_try_link "$LINENO"; then :
17171 ac_cv_search_clock_gettime=$ac_res
17173 rm -f core conftest.err conftest.$ac_objext \
17174 conftest$ac_exeext
17175 if test "${ac_cv_search_clock_gettime+set}" = set; then :
17176 break
17178 done
17179 if test "${ac_cv_search_clock_gettime+set}" = set; then :
17181 else
17182 ac_cv_search_clock_gettime=no
17184 rm conftest.$ac_ext
17185 LIBS=$ac_func_search_save_LIBS
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17188 $as_echo "$ac_cv_search_clock_gettime" >&6; }
17189 ac_res=$ac_cv_search_clock_gettime
17190 if test "$ac_res" != no; then :
17191 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
17196 $as_echo_n "checking for library containing inet_pton... " >&6; }
17197 if test "${ac_cv_search_inet_pton+set}" = set; then :
17198 $as_echo_n "(cached) " >&6
17199 else
17200 ac_func_search_save_LIBS=$LIBS
17201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17202 /* end confdefs.h. */
17204 /* Override any GCC internal prototype to avoid an error.
17205 Use char because int might match the return type of a GCC
17206 builtin and then its argument prototype would still apply. */
17207 #ifdef __cplusplus
17208 extern "C"
17209 #endif
17210 char inet_pton ();
17212 main ()
17214 return inet_pton ();
17216 return 0;
17218 _ACEOF
17219 for ac_lib in '' nsl; do
17220 if test -z "$ac_lib"; then
17221 ac_res="none required"
17222 else
17223 ac_res=-l$ac_lib
17224 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17226 if test x$gcc_no_link = xyes; then
17227 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17229 if ac_fn_c_try_link "$LINENO"; then :
17230 ac_cv_search_inet_pton=$ac_res
17232 rm -f core conftest.err conftest.$ac_objext \
17233 conftest$ac_exeext
17234 if test "${ac_cv_search_inet_pton+set}" = set; then :
17235 break
17237 done
17238 if test "${ac_cv_search_inet_pton+set}" = set; then :
17240 else
17241 ac_cv_search_inet_pton=no
17243 rm conftest.$ac_ext
17244 LIBS=$ac_func_search_save_LIBS
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
17247 $as_echo "$ac_cv_search_inet_pton" >&6; }
17248 ac_res=$ac_cv_search_inet_pton
17249 if test "$ac_res" != no; then :
17250 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
17255 $as_echo_n "checking for gethostname in -lsocket... " >&6; }
17256 if test "${ac_cv_lib_socket_gethostname+set}" = set; then :
17257 $as_echo_n "(cached) " >&6
17258 else
17259 ac_check_lib_save_LIBS=$LIBS
17260 LIBS="-lsocket $LIBS"
17261 if test x$gcc_no_link = xyes; then
17262 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17265 /* end confdefs.h. */
17267 /* Override any GCC internal prototype to avoid an error.
17268 Use char because int might match the return type of a GCC
17269 builtin and then its argument prototype would still apply. */
17270 #ifdef __cplusplus
17271 extern "C"
17272 #endif
17273 char gethostname ();
17275 main ()
17277 return gethostname ();
17279 return 0;
17281 _ACEOF
17282 if ac_fn_c_try_link "$LINENO"; then :
17283 ac_cv_lib_socket_gethostname=yes
17284 else
17285 ac_cv_lib_socket_gethostname=no
17287 rm -f core conftest.err conftest.$ac_objext \
17288 conftest$ac_exeext conftest.$ac_ext
17289 LIBS=$ac_check_lib_save_LIBS
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
17292 $as_echo "$ac_cv_lib_socket_gethostname" >&6; }
17293 if test "x$ac_cv_lib_socket_gethostname" = x""yes; then :
17294 cat >>confdefs.h <<_ACEOF
17295 #define HAVE_LIBSOCKET 1
17296 _ACEOF
17298 LIBS="-lsocket $LIBS"
17303 for ac_func in ftruncate fsync select \
17304 gethostname socket strerror fork pipe execve open close \
17305 lseek fstat read readv write writev htonl memset htons connect \
17306 getsockname getpeername bind listen accept \
17307 recvfrom send sendto setsockopt getsockopt time mktime clock_gettime \
17308 gethostbyname_r localtime_r \
17309 strerror_r \
17310 fcntl \
17311 statvfs \
17312 mmap munmap mincore msync madvise getpagesize sysconf \
17313 lstat readlink \
17314 inet_aton inet_addr inet_pton \
17315 getifaddrs kqueue kevent epoll_create \
17316 getloadavg
17317 do :
17318 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17319 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17320 eval as_val=\$$as_ac_var
17321 if test "x$as_val" = x""yes; then :
17322 cat >>confdefs.h <<_ACEOF
17323 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17324 _ACEOF
17327 done
17330 LIBMAGIC=
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
17332 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
17333 if test "${ac_cv_lib_magic_magic_open+set}" = set; then :
17334 $as_echo_n "(cached) " >&6
17335 else
17336 ac_check_lib_save_LIBS=$LIBS
17337 LIBS="-lmagic $LIBS"
17338 if test x$gcc_no_link = xyes; then
17339 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17342 /* end confdefs.h. */
17344 /* Override any GCC internal prototype to avoid an error.
17345 Use char because int might match the return type of a GCC
17346 builtin and then its argument prototype would still apply. */
17347 #ifdef __cplusplus
17348 extern "C"
17349 #endif
17350 char magic_open ();
17352 main ()
17354 return magic_open ();
17356 return 0;
17358 _ACEOF
17359 if ac_fn_c_try_link "$LINENO"; then :
17360 ac_cv_lib_magic_magic_open=yes
17361 else
17362 ac_cv_lib_magic_magic_open=no
17364 rm -f core conftest.err conftest.$ac_objext \
17365 conftest$ac_exeext conftest.$ac_ext
17366 LIBS=$ac_check_lib_save_LIBS
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
17369 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
17370 if test "x$ac_cv_lib_magic_magic_open" = x""yes; then :
17371 LIBMAGIC=-lmagic
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
17377 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
17378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17379 /* end confdefs.h. */
17380 #include <netinet/in.h>
17382 main ()
17384 struct sockaddr_in6 addr6;
17386 return 0;
17388 _ACEOF
17389 if ac_fn_c_try_compile "$LINENO"; then :
17391 $as_echo "#define HAVE_INET6 1" >>confdefs.h
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17394 $as_echo "yes" >&6; }
17395 else
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17397 $as_echo "no" >&6; }
17399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17402 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17403 if test "${ac_cv_header_time+set}" = set; then :
17404 $as_echo_n "(cached) " >&6
17405 else
17406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17407 /* end confdefs.h. */
17408 #include <sys/types.h>
17409 #include <sys/time.h>
17410 #include <time.h>
17413 main ()
17415 if ((struct tm *) 0)
17416 return 0;
17418 return 0;
17420 _ACEOF
17421 if ac_fn_c_try_compile "$LINENO"; then :
17422 ac_cv_header_time=yes
17423 else
17424 ac_cv_header_time=no
17426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17429 $as_echo "$ac_cv_header_time" >&6; }
17430 if test $ac_cv_header_time = yes; then
17432 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17437 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17438 if test "${ac_cv_struct_tm+set}" = set; then :
17439 $as_echo_n "(cached) " >&6
17440 else
17441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17442 /* end confdefs.h. */
17443 #include <sys/types.h>
17444 #include <time.h>
17447 main ()
17449 struct tm tm;
17450 int *p = &tm.tm_sec;
17451 return !p;
17453 return 0;
17455 _ACEOF
17456 if ac_fn_c_try_compile "$LINENO"; then :
17457 ac_cv_struct_tm=time.h
17458 else
17459 ac_cv_struct_tm=sys/time.h
17461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17464 $as_echo "$ac_cv_struct_tm" >&6; }
17465 if test $ac_cv_struct_tm = sys/time.h; then
17467 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17471 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
17472 #include <$ac_cv_struct_tm>
17475 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
17477 cat >>confdefs.h <<_ACEOF
17478 #define HAVE_STRUCT_TM_TM_ZONE 1
17479 _ACEOF
17484 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17486 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
17488 else
17489 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
17491 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
17492 ac_have_decl=1
17493 else
17494 ac_have_decl=0
17497 cat >>confdefs.h <<_ACEOF
17498 #define HAVE_DECL_TZNAME $ac_have_decl
17499 _ACEOF
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
17502 $as_echo_n "checking for tzname... " >&6; }
17503 if test "${ac_cv_var_tzname+set}" = set; then :
17504 $as_echo_n "(cached) " >&6
17505 else
17506 if test x$gcc_no_link = xyes; then
17507 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17510 /* end confdefs.h. */
17511 #include <time.h>
17512 #if !HAVE_DECL_TZNAME
17513 extern char *tzname[];
17514 #endif
17517 main ()
17519 return tzname[0][0];
17521 return 0;
17523 _ACEOF
17524 if ac_fn_c_try_link "$LINENO"; then :
17525 ac_cv_var_tzname=yes
17526 else
17527 ac_cv_var_tzname=no
17529 rm -f core conftest.err conftest.$ac_objext \
17530 conftest$ac_exeext conftest.$ac_ext
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
17533 $as_echo "$ac_cv_var_tzname" >&6; }
17534 if test $ac_cv_var_tzname = yes; then
17536 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
17543 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
17544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17545 /* end confdefs.h. */
17546 #include <time.h>
17548 main ()
17550 struct tm tim; tim.tm_gmtoff = 0;
17552 return 0;
17554 _ACEOF
17555 if ac_fn_c_try_compile "$LINENO"; then :
17557 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17560 $as_echo "yes" >&6; }
17561 else
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17563 $as_echo "no" >&6; }
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
17565 $as_echo_n "checking for global timezone variable... " >&6; }
17566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17567 /* end confdefs.h. */
17568 #include <time.h>
17570 main ()
17572 void i(){long z2 = 2*timezone;}
17574 return 0;
17576 _ACEOF
17577 if ac_fn_c_try_compile "$LINENO"; then :
17579 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17582 $as_echo "yes" >&6; }
17583 else
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17585 $as_echo "no" >&6; }
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
17587 $as_echo_n "checking for global _timezone variable... " >&6; }
17588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17589 /* end confdefs.h. */
17590 #include <time.h>
17592 main ()
17594 long z2 = _timezone;
17596 return 0;
17598 _ACEOF
17599 if ac_fn_c_try_compile "$LINENO"; then :
17601 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17604 $as_echo "yes" >&6; }
17605 else
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17607 $as_echo "no" >&6; }
17609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17616 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17617 if test "${ac_cv_c_const+set}" = set; then :
17618 $as_echo_n "(cached) " >&6
17619 else
17620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17621 /* end confdefs.h. */
17624 main ()
17626 /* FIXME: Include the comments suggested by Paul. */
17627 #ifndef __cplusplus
17628 /* Ultrix mips cc rejects this. */
17629 typedef int charset[2];
17630 const charset cs;
17631 /* SunOS 4.1.1 cc rejects this. */
17632 char const *const *pcpcc;
17633 char **ppc;
17634 /* NEC SVR4.0.2 mips cc rejects this. */
17635 struct point {int x, y;};
17636 static struct point const zero = {0,0};
17637 /* AIX XL C 1.02.0.0 rejects this.
17638 It does not let you subtract one const X* pointer from another in
17639 an arm of an if-expression whose if-part is not a constant
17640 expression */
17641 const char *g = "string";
17642 pcpcc = &g + (g ? g-g : 0);
17643 /* HPUX 7.0 cc rejects these. */
17644 ++pcpcc;
17645 ppc = (char**) pcpcc;
17646 pcpcc = (char const *const *) ppc;
17647 { /* SCO 3.2v4 cc rejects this. */
17648 char *t;
17649 char const *s = 0 ? (char *) 0 : (char const *) 0;
17651 *t++ = 0;
17652 if (s) return 0;
17654 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17655 int x[] = {25, 17};
17656 const int *foo = &x[0];
17657 ++foo;
17659 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17660 typedef const int *iptr;
17661 iptr p = 0;
17662 ++p;
17664 { /* AIX XL C 1.02.0.0 rejects this saying
17665 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17666 struct s { int j; const int *ap[3]; };
17667 struct s *b; b->j = 5;
17669 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17670 const int foo = 10;
17671 if (!foo) return 0;
17673 return !cs[0] && !zero.x;
17674 #endif
17677 return 0;
17679 _ACEOF
17680 if ac_fn_c_try_compile "$LINENO"; then :
17681 ac_cv_c_const=yes
17682 else
17683 ac_cv_c_const=no
17685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17688 $as_echo "$ac_cv_c_const" >&6; }
17689 if test $ac_cv_c_const = no; then
17691 $as_echo "#define const /**/" >>confdefs.h
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17696 $as_echo_n "checking for inline... " >&6; }
17697 if test "${ac_cv_c_inline+set}" = set; then :
17698 $as_echo_n "(cached) " >&6
17699 else
17700 ac_cv_c_inline=no
17701 for ac_kw in inline __inline__ __inline; do
17702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17703 /* end confdefs.h. */
17704 #ifndef __cplusplus
17705 typedef int foo_t;
17706 static $ac_kw foo_t static_foo () {return 0; }
17707 $ac_kw foo_t foo () {return 0; }
17708 #endif
17710 _ACEOF
17711 if ac_fn_c_try_compile "$LINENO"; then :
17712 ac_cv_c_inline=$ac_kw
17714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17715 test "$ac_cv_c_inline" != no && break
17716 done
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17720 $as_echo "$ac_cv_c_inline" >&6; }
17722 case $ac_cv_c_inline in
17723 inline | yes) ;;
17725 case $ac_cv_c_inline in
17726 no) ac_val=;;
17727 *) ac_val=$ac_cv_c_inline;;
17728 esac
17729 cat >>confdefs.h <<_ACEOF
17730 #ifndef __cplusplus
17731 #define inline $ac_val
17732 #endif
17733 _ACEOF
17735 esac
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
17738 $as_echo_n "checking for __attribute__... " >&6; }
17739 if test "${ac_cv_c_attribute+set}" = set; then :
17740 $as_echo_n "(cached) " >&6
17741 else
17743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17744 /* end confdefs.h. */
17745 void foo(void) __attribute__ ((__noreturn__));
17747 _ACEOF
17748 if ac_fn_c_try_compile "$LINENO"; then :
17749 ac_cv_c_attribute=yes
17750 else
17751 ac_cv_c_attribute=no
17754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_attribute" >&5
17758 $as_echo "$ac_cv_c_attribute" >&6; }
17760 case $ac_cv_c_attribute in
17761 yes) ;;
17763 cat >>confdefs.h <<_ACEOF
17764 #define __attribute__(x) /* nothing */
17765 _ACEOF
17767 esac
17771 ac_ext=c
17772 ac_cpp='$CPP $CPPFLAGS'
17773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() takes" >&5
17778 $as_echo_n "checking how many arguments gethostbyname_r() takes... " >&6; }
17780 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then :
17781 $as_echo_n "(cached) " >&6
17782 else
17785 ################################################################
17787 ac_cv_func_which_gethostbyname_r=unknown
17790 # ONE ARGUMENT (sanity check)
17793 # This should fail, as there is no variant of gethostbyname_r() that takes
17794 # a single argument. If it actually compiles, then we can assume that
17795 # netdb.h is not declaring the function, and the compiler is thereby
17796 # assuming an implicit prototype. In which case, we're out of luck.
17798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17799 /* end confdefs.h. */
17801 #include <netdb.h>
17803 main ()
17806 char *name = "www.gnu.org";
17807 (void)gethostbyname_r(name) /* ; */
17810 return 0;
17812 _ACEOF
17813 if ac_fn_c_try_compile "$LINENO"; then :
17814 ac_cv_func_which_gethostbyname_r=no
17816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17819 # SIX ARGUMENTS
17820 # (e.g. Linux)
17823 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17826 /* end confdefs.h. */
17828 #include <netdb.h>
17830 main ()
17833 char *name = "www.gnu.org";
17834 struct hostent ret, *retp;
17835 char buf[1024];
17836 int buflen = 1024;
17837 int my_h_errno;
17838 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
17841 return 0;
17843 _ACEOF
17844 if ac_fn_c_try_compile "$LINENO"; then :
17845 ac_cv_func_which_gethostbyname_r=six
17847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17852 # FIVE ARGUMENTS
17853 # (e.g. Solaris)
17856 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17859 /* end confdefs.h. */
17861 #include <netdb.h>
17863 main ()
17866 char *name = "www.gnu.org";
17867 struct hostent ret;
17868 char buf[1024];
17869 int buflen = 1024;
17870 int my_h_errno;
17871 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
17874 return 0;
17876 _ACEOF
17877 if ac_fn_c_try_compile "$LINENO"; then :
17878 ac_cv_func_which_gethostbyname_r=five
17880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17885 # THREE ARGUMENTS
17886 # (e.g. AIX, HP-UX, Tru64)
17889 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h. */
17894 #include <netdb.h>
17896 main ()
17899 char *name = "www.gnu.org";
17900 struct hostent ret;
17901 struct hostent_data data;
17902 (void)gethostbyname_r(name, &ret, &data) /* ; */
17905 return 0;
17907 _ACEOF
17908 if ac_fn_c_try_compile "$LINENO"; then :
17909 ac_cv_func_which_gethostbyname_r=three
17911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17915 ################################################################
17920 case "$ac_cv_func_which_gethostbyname_r" in
17921 three)
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: three" >&5
17923 $as_echo "three" >&6; }
17925 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_3 1" >>confdefs.h
17929 five)
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: five" >&5
17931 $as_echo "five" >&6; }
17933 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_5 1" >>confdefs.h
17937 six)
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: six" >&5
17939 $as_echo "six" >&6; }
17941 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_6 1" >>confdefs.h
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find function declaration in netdb.h" >&5
17947 $as_echo "cannot find function declaration in netdb.h" >&6; }
17950 unknown)
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't tell" >&5
17952 $as_echo "can't tell" >&6; }
17956 as_fn_error "internal error" "$LINENO" 5
17958 esac
17960 ac_ext=c
17961 ac_cpp='$CPP $CPPFLAGS'
17962 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17963 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17964 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17970 if test "X$prefix" = "XNONE"; then
17971 acl_final_prefix="$ac_default_prefix"
17972 else
17973 acl_final_prefix="$prefix"
17975 if test "X$exec_prefix" = "XNONE"; then
17976 acl_final_exec_prefix='${prefix}'
17977 else
17978 acl_final_exec_prefix="$exec_prefix"
17980 acl_save_prefix="$prefix"
17981 prefix="$acl_final_prefix"
17982 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17983 prefix="$acl_save_prefix"
17986 # Check whether --with-gnu-ld was given.
17987 if test "${with_gnu_ld+set}" = set; then :
17988 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17989 else
17990 with_gnu_ld=no
17993 # Prepare PATH_SEPARATOR.
17994 # The user is always right.
17995 if test "${PATH_SEPARATOR+set}" != set; then
17996 echo "#! /bin/sh" >conf$$.sh
17997 echo "exit 0" >>conf$$.sh
17998 chmod +x conf$$.sh
17999 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18000 PATH_SEPARATOR=';'
18001 else
18002 PATH_SEPARATOR=:
18004 rm -f conf$$.sh
18006 ac_prog=ld
18007 if test "$GCC" = yes; then
18008 # Check if gcc -print-prog-name=ld gives a path.
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
18010 $as_echo_n "checking for ld used by GCC... " >&6; }
18011 case $host in
18012 *-*-mingw*)
18013 # gcc leaves a trailing carriage return which upsets mingw
18014 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18016 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18017 esac
18018 case $ac_prog in
18019 # Accept absolute paths.
18020 [\\/]* | [A-Za-z]:[\\/]*)
18021 re_direlt='/[^/][^/]*/\.\./'
18022 # Canonicalize the path of ld
18023 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
18024 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18025 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
18026 done
18027 test -z "$LD" && LD="$ac_prog"
18030 # If it fails, then pretend we aren't using GCC.
18031 ac_prog=ld
18034 # If it is relative, then search for the first ld in PATH.
18035 with_gnu_ld=unknown
18037 esac
18038 elif test "$with_gnu_ld" = yes; then
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18040 $as_echo_n "checking for GNU ld... " >&6; }
18041 else
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18043 $as_echo_n "checking for non-GNU ld... " >&6; }
18045 if test "${acl_cv_path_LD+set}" = set; then :
18046 $as_echo_n "(cached) " >&6
18047 else
18048 if test -z "$LD"; then
18049 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
18050 for ac_dir in $PATH; do
18051 test -z "$ac_dir" && ac_dir=.
18052 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18053 acl_cv_path_LD="$ac_dir/$ac_prog"
18054 # Check to see if the program is GNU ld. I'd rather use --version,
18055 # but apparently some GNU ld's only accept -v.
18056 # Break only if it was the GNU/non-GNU ld that we prefer.
18057 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
18058 *GNU* | *'with BFD'*)
18059 test "$with_gnu_ld" != no && break ;;
18061 test "$with_gnu_ld" != yes && break ;;
18062 esac
18064 done
18065 IFS="$ac_save_ifs"
18066 else
18067 acl_cv_path_LD="$LD" # Let the user override the test with a path.
18071 LD="$acl_cv_path_LD"
18072 if test -n "$LD"; then
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18074 $as_echo "$LD" >&6; }
18075 else
18076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18077 $as_echo "no" >&6; }
18079 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18081 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18082 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
18083 $as_echo_n "(cached) " >&6
18084 else
18085 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
18086 case `$LD -v 2>&1 </dev/null` in
18087 *GNU* | *'with BFD'*)
18088 acl_cv_prog_gnu_ld=yes ;;
18090 acl_cv_prog_gnu_ld=no ;;
18091 esac
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18094 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
18095 with_gnu_ld=$acl_cv_prog_gnu_ld
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18101 $as_echo_n "checking for shared library run path origin... " >&6; }
18102 if test "${acl_cv_rpath+set}" = set; then :
18103 $as_echo_n "(cached) " >&6
18104 else
18106 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18107 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18108 . ./conftest.sh
18109 rm -f ./conftest.sh
18110 acl_cv_rpath=done
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18114 $as_echo "$acl_cv_rpath" >&6; }
18115 wl="$acl_cv_wl"
18116 acl_libext="$acl_cv_libext"
18117 acl_shlibext="$acl_cv_shlibext"
18118 acl_libname_spec="$acl_cv_libname_spec"
18119 acl_library_names_spec="$acl_cv_library_names_spec"
18120 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18121 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18122 acl_hardcode_direct="$acl_cv_hardcode_direct"
18123 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
18124 # Check whether --enable-rpath was given.
18125 if test "${enable_rpath+set}" = set; then :
18126 enableval=$enable_rpath; :
18127 else
18128 enable_rpath=yes
18134 acl_libdirstem=lib
18135 acl_libdirstem2=
18136 case "$host_os" in
18137 solaris*)
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
18139 $as_echo_n "checking for 64-bit host... " >&6; }
18140 if test "${gl_cv_solaris_64bit+set}" = set; then :
18141 $as_echo_n "(cached) " >&6
18142 else
18143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18144 /* end confdefs.h. */
18146 #ifdef _LP64
18147 sixtyfour bits
18148 #endif
18150 _ACEOF
18151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18152 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
18153 gl_cv_solaris_64bit=yes
18154 else
18155 gl_cv_solaris_64bit=no
18157 rm -f conftest*
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
18162 $as_echo "$gl_cv_solaris_64bit" >&6; }
18163 if test $gl_cv_solaris_64bit = yes; then
18164 acl_libdirstem=lib/64
18165 case "$host_cpu" in
18166 sparc*) acl_libdirstem2=lib/sparcv9 ;;
18167 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
18168 esac
18172 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18173 if test -n "$searchpath"; then
18174 acl_save_IFS="${IFS= }"; IFS=":"
18175 for searchdir in $searchpath; do
18176 if test -d "$searchdir"; then
18177 case "$searchdir" in
18178 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
18179 */../ | */.. )
18180 # Better ignore directories of this form. They are misleading.
18182 *) searchdir=`cd "$searchdir" && pwd`
18183 case "$searchdir" in
18184 */lib64 ) acl_libdirstem=lib64 ;;
18185 esac ;;
18186 esac
18188 done
18189 IFS="$acl_save_IFS"
18192 esac
18193 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
18206 use_additional=yes
18208 acl_save_prefix="$prefix"
18209 prefix="$acl_final_prefix"
18210 acl_save_exec_prefix="$exec_prefix"
18211 exec_prefix="$acl_final_exec_prefix"
18213 eval additional_includedir=\"$includedir\"
18214 eval additional_libdir=\"$libdir\"
18216 exec_prefix="$acl_save_exec_prefix"
18217 prefix="$acl_save_prefix"
18220 # Check whether --with-libiconv-prefix was given.
18221 if test "${with_libiconv_prefix+set}" = set; then :
18222 withval=$with_libiconv_prefix;
18223 if test "X$withval" = "Xno"; then
18224 use_additional=no
18225 else
18226 if test "X$withval" = "X"; then
18228 acl_save_prefix="$prefix"
18229 prefix="$acl_final_prefix"
18230 acl_save_exec_prefix="$exec_prefix"
18231 exec_prefix="$acl_final_exec_prefix"
18233 eval additional_includedir=\"$includedir\"
18234 eval additional_libdir=\"$libdir\"
18236 exec_prefix="$acl_save_exec_prefix"
18237 prefix="$acl_save_prefix"
18239 else
18240 additional_includedir="$withval/include"
18241 additional_libdir="$withval/$acl_libdirstem"
18242 if test "$acl_libdirstem2" != "$acl_libdirstem" \
18243 && ! test -d "$withval/$acl_libdirstem"; then
18244 additional_libdir="$withval/$acl_libdirstem2"
18251 LIBICONV=
18252 LTLIBICONV=
18253 INCICONV=
18254 LIBICONV_PREFIX=
18255 HAVE_LIBICONV=
18256 rpathdirs=
18257 ltrpathdirs=
18258 names_already_handled=
18259 names_next_round='iconv '
18260 while test -n "$names_next_round"; do
18261 names_this_round="$names_next_round"
18262 names_next_round=
18263 for name in $names_this_round; do
18264 already_handled=
18265 for n in $names_already_handled; do
18266 if test "$n" = "$name"; then
18267 already_handled=yes
18268 break
18270 done
18271 if test -z "$already_handled"; then
18272 names_already_handled="$names_already_handled $name"
18273 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18274 eval value=\"\$HAVE_LIB$uppername\"
18275 if test -n "$value"; then
18276 if test "$value" = yes; then
18277 eval value=\"\$LIB$uppername\"
18278 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18279 eval value=\"\$LTLIB$uppername\"
18280 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18281 else
18284 else
18285 found_dir=
18286 found_la=
18287 found_so=
18288 found_a=
18289 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
18290 if test -n "$acl_shlibext"; then
18291 shrext=".$acl_shlibext" # typically: shrext=.so
18292 else
18293 shrext=
18295 if test $use_additional = yes; then
18296 dir="$additional_libdir"
18297 if test -n "$acl_shlibext"; then
18298 if test -f "$dir/$libname$shrext"; then
18299 found_dir="$dir"
18300 found_so="$dir/$libname$shrext"
18301 else
18302 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18303 ver=`(cd "$dir" && \
18304 for f in "$libname$shrext".*; do echo "$f"; done \
18305 | sed -e "s,^$libname$shrext\\\\.,," \
18306 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18307 | sed 1q ) 2>/dev/null`
18308 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18309 found_dir="$dir"
18310 found_so="$dir/$libname$shrext.$ver"
18312 else
18313 eval library_names=\"$acl_library_names_spec\"
18314 for f in $library_names; do
18315 if test -f "$dir/$f"; then
18316 found_dir="$dir"
18317 found_so="$dir/$f"
18318 break
18320 done
18324 if test "X$found_dir" = "X"; then
18325 if test -f "$dir/$libname.$acl_libext"; then
18326 found_dir="$dir"
18327 found_a="$dir/$libname.$acl_libext"
18330 if test "X$found_dir" != "X"; then
18331 if test -f "$dir/$libname.la"; then
18332 found_la="$dir/$libname.la"
18336 if test "X$found_dir" = "X"; then
18337 for x in $LDFLAGS $LTLIBICONV; do
18339 acl_save_prefix="$prefix"
18340 prefix="$acl_final_prefix"
18341 acl_save_exec_prefix="$exec_prefix"
18342 exec_prefix="$acl_final_exec_prefix"
18343 eval x=\"$x\"
18344 exec_prefix="$acl_save_exec_prefix"
18345 prefix="$acl_save_prefix"
18347 case "$x" in
18348 -L*)
18349 dir=`echo "X$x" | sed -e 's/^X-L//'`
18350 if test -n "$acl_shlibext"; then
18351 if test -f "$dir/$libname$shrext"; then
18352 found_dir="$dir"
18353 found_so="$dir/$libname$shrext"
18354 else
18355 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18356 ver=`(cd "$dir" && \
18357 for f in "$libname$shrext".*; do echo "$f"; done \
18358 | sed -e "s,^$libname$shrext\\\\.,," \
18359 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18360 | sed 1q ) 2>/dev/null`
18361 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18362 found_dir="$dir"
18363 found_so="$dir/$libname$shrext.$ver"
18365 else
18366 eval library_names=\"$acl_library_names_spec\"
18367 for f in $library_names; do
18368 if test -f "$dir/$f"; then
18369 found_dir="$dir"
18370 found_so="$dir/$f"
18371 break
18373 done
18377 if test "X$found_dir" = "X"; then
18378 if test -f "$dir/$libname.$acl_libext"; then
18379 found_dir="$dir"
18380 found_a="$dir/$libname.$acl_libext"
18383 if test "X$found_dir" != "X"; then
18384 if test -f "$dir/$libname.la"; then
18385 found_la="$dir/$libname.la"
18389 esac
18390 if test "X$found_dir" != "X"; then
18391 break
18393 done
18395 if test "X$found_dir" != "X"; then
18396 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18397 if test "X$found_so" != "X"; then
18398 if test "$enable_rpath" = no \
18399 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18400 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
18401 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18402 else
18403 haveit=
18404 for x in $ltrpathdirs; do
18405 if test "X$x" = "X$found_dir"; then
18406 haveit=yes
18407 break
18409 done
18410 if test -z "$haveit"; then
18411 ltrpathdirs="$ltrpathdirs $found_dir"
18413 if test "$acl_hardcode_direct" = yes; then
18414 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18415 else
18416 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18417 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18418 haveit=
18419 for x in $rpathdirs; do
18420 if test "X$x" = "X$found_dir"; then
18421 haveit=yes
18422 break
18424 done
18425 if test -z "$haveit"; then
18426 rpathdirs="$rpathdirs $found_dir"
18428 else
18429 haveit=
18430 for x in $LDFLAGS $LIBICONV; do
18432 acl_save_prefix="$prefix"
18433 prefix="$acl_final_prefix"
18434 acl_save_exec_prefix="$exec_prefix"
18435 exec_prefix="$acl_final_exec_prefix"
18436 eval x=\"$x\"
18437 exec_prefix="$acl_save_exec_prefix"
18438 prefix="$acl_save_prefix"
18440 if test "X$x" = "X-L$found_dir"; then
18441 haveit=yes
18442 break
18444 done
18445 if test -z "$haveit"; then
18446 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18448 if test "$acl_hardcode_minus_L" != no; then
18449 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18450 else
18451 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18456 else
18457 if test "X$found_a" != "X"; then
18458 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18459 else
18460 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18463 additional_includedir=
18464 case "$found_dir" in
18465 */$acl_libdirstem | */$acl_libdirstem/)
18466 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18467 if test "$name" = 'iconv'; then
18468 LIBICONV_PREFIX="$basedir"
18470 additional_includedir="$basedir/include"
18472 */$acl_libdirstem2 | */$acl_libdirstem2/)
18473 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18474 if test "$name" = 'iconv'; then
18475 LIBICONV_PREFIX="$basedir"
18477 additional_includedir="$basedir/include"
18479 esac
18480 if test "X$additional_includedir" != "X"; then
18481 if test "X$additional_includedir" != "X/usr/include"; then
18482 haveit=
18483 if test "X$additional_includedir" = "X/usr/local/include"; then
18484 if test -n "$GCC"; then
18485 case $host_os in
18486 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18487 esac
18490 if test -z "$haveit"; then
18491 for x in $CPPFLAGS $INCICONV; do
18493 acl_save_prefix="$prefix"
18494 prefix="$acl_final_prefix"
18495 acl_save_exec_prefix="$exec_prefix"
18496 exec_prefix="$acl_final_exec_prefix"
18497 eval x=\"$x\"
18498 exec_prefix="$acl_save_exec_prefix"
18499 prefix="$acl_save_prefix"
18501 if test "X$x" = "X-I$additional_includedir"; then
18502 haveit=yes
18503 break
18505 done
18506 if test -z "$haveit"; then
18507 if test -d "$additional_includedir"; then
18508 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18514 if test -n "$found_la"; then
18515 save_libdir="$libdir"
18516 case "$found_la" in
18517 */* | *\\*) . "$found_la" ;;
18518 *) . "./$found_la" ;;
18519 esac
18520 libdir="$save_libdir"
18521 for dep in $dependency_libs; do
18522 case "$dep" in
18523 -L*)
18524 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18525 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
18526 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
18527 haveit=
18528 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
18529 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
18530 if test -n "$GCC"; then
18531 case $host_os in
18532 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18533 esac
18536 if test -z "$haveit"; then
18537 haveit=
18538 for x in $LDFLAGS $LIBICONV; do
18540 acl_save_prefix="$prefix"
18541 prefix="$acl_final_prefix"
18542 acl_save_exec_prefix="$exec_prefix"
18543 exec_prefix="$acl_final_exec_prefix"
18544 eval x=\"$x\"
18545 exec_prefix="$acl_save_exec_prefix"
18546 prefix="$acl_save_prefix"
18548 if test "X$x" = "X-L$additional_libdir"; then
18549 haveit=yes
18550 break
18552 done
18553 if test -z "$haveit"; then
18554 if test -d "$additional_libdir"; then
18555 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18558 haveit=
18559 for x in $LDFLAGS $LTLIBICONV; do
18561 acl_save_prefix="$prefix"
18562 prefix="$acl_final_prefix"
18563 acl_save_exec_prefix="$exec_prefix"
18564 exec_prefix="$acl_final_exec_prefix"
18565 eval x=\"$x\"
18566 exec_prefix="$acl_save_exec_prefix"
18567 prefix="$acl_save_prefix"
18569 if test "X$x" = "X-L$additional_libdir"; then
18570 haveit=yes
18571 break
18573 done
18574 if test -z "$haveit"; then
18575 if test -d "$additional_libdir"; then
18576 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18582 -R*)
18583 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18584 if test "$enable_rpath" != no; then
18585 haveit=
18586 for x in $rpathdirs; do
18587 if test "X$x" = "X$dir"; then
18588 haveit=yes
18589 break
18591 done
18592 if test -z "$haveit"; then
18593 rpathdirs="$rpathdirs $dir"
18595 haveit=
18596 for x in $ltrpathdirs; do
18597 if test "X$x" = "X$dir"; then
18598 haveit=yes
18599 break
18601 done
18602 if test -z "$haveit"; then
18603 ltrpathdirs="$ltrpathdirs $dir"
18607 -l*)
18608 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18610 *.la)
18611 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18614 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18615 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18617 esac
18618 done
18620 else
18621 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18622 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18626 done
18627 done
18628 if test "X$rpathdirs" != "X"; then
18629 if test -n "$acl_hardcode_libdir_separator"; then
18630 alldirs=
18631 for found_dir in $rpathdirs; do
18632 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18633 done
18634 acl_save_libdir="$libdir"
18635 libdir="$alldirs"
18636 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18637 libdir="$acl_save_libdir"
18638 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18639 else
18640 for found_dir in $rpathdirs; do
18641 acl_save_libdir="$libdir"
18642 libdir="$found_dir"
18643 eval flag=\"$acl_hardcode_libdir_flag_spec\"
18644 libdir="$acl_save_libdir"
18645 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18646 done
18649 if test "X$ltrpathdirs" != "X"; then
18650 for found_dir in $ltrpathdirs; do
18651 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18652 done
18666 am_save_CPPFLAGS="$CPPFLAGS"
18668 for element in $INCICONV; do
18669 haveit=
18670 for x in $CPPFLAGS; do
18672 acl_save_prefix="$prefix"
18673 prefix="$acl_final_prefix"
18674 acl_save_exec_prefix="$exec_prefix"
18675 exec_prefix="$acl_final_exec_prefix"
18676 eval x=\"$x\"
18677 exec_prefix="$acl_save_exec_prefix"
18678 prefix="$acl_save_prefix"
18680 if test "X$x" = "X$element"; then
18681 haveit=yes
18682 break
18684 done
18685 if test -z "$haveit"; then
18686 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18688 done
18691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18692 $as_echo_n "checking for iconv... " >&6; }
18693 if test "${am_cv_func_iconv+set}" = set; then :
18694 $as_echo_n "(cached) " >&6
18695 else
18697 am_cv_func_iconv="no, consider installing GNU libiconv"
18698 am_cv_lib_iconv=no
18699 if test x$gcc_no_link = xyes; then
18700 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18703 /* end confdefs.h. */
18704 #include <stdlib.h>
18705 #include <iconv.h>
18707 main ()
18709 iconv_t cd = iconv_open("","");
18710 iconv(cd,NULL,NULL,NULL,NULL);
18711 iconv_close(cd);
18713 return 0;
18715 _ACEOF
18716 if ac_fn_c_try_link "$LINENO"; then :
18717 am_cv_func_iconv=yes
18719 rm -f core conftest.err conftest.$ac_objext \
18720 conftest$ac_exeext conftest.$ac_ext
18721 if test "$am_cv_func_iconv" != yes; then
18722 am_save_LIBS="$LIBS"
18723 LIBS="$LIBS $LIBICONV"
18724 if test x$gcc_no_link = xyes; then
18725 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728 /* end confdefs.h. */
18729 #include <stdlib.h>
18730 #include <iconv.h>
18732 main ()
18734 iconv_t cd = iconv_open("","");
18735 iconv(cd,NULL,NULL,NULL,NULL);
18736 iconv_close(cd);
18738 return 0;
18740 _ACEOF
18741 if ac_fn_c_try_link "$LINENO"; then :
18742 am_cv_lib_iconv=yes
18743 am_cv_func_iconv=yes
18745 rm -f core conftest.err conftest.$ac_objext \
18746 conftest$ac_exeext conftest.$ac_ext
18747 LIBS="$am_save_LIBS"
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18752 $as_echo "$am_cv_func_iconv" >&6; }
18753 if test "$am_cv_func_iconv" = yes; then
18755 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18758 if test "$am_cv_lib_iconv" = yes; then
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18760 $as_echo_n "checking how to link with libiconv... " >&6; }
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18762 $as_echo "$LIBICONV" >&6; }
18763 else
18764 CPPFLAGS="$am_save_CPPFLAGS"
18765 LIBICONV=
18766 LTLIBICONV=
18771 if test "$am_cv_func_iconv" = yes; then
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18773 $as_echo_n "checking for iconv declaration... " >&6; }
18774 if test "${am_cv_proto_iconv+set}" = set; then :
18775 $as_echo_n "(cached) " >&6
18776 else
18778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18779 /* end confdefs.h. */
18781 #include <stdlib.h>
18782 #include <iconv.h>
18783 extern
18784 #ifdef __cplusplus
18786 #endif
18787 #if defined(__STDC__) || defined(__cplusplus)
18788 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18789 #else
18790 size_t iconv();
18791 #endif
18794 main ()
18798 return 0;
18800 _ACEOF
18801 if ac_fn_c_try_compile "$LINENO"; then :
18802 am_cv_proto_iconv_arg1=""
18803 else
18804 am_cv_proto_iconv_arg1="const"
18806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18807 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);"
18810 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
18812 }$am_cv_proto_iconv" >&5
18813 $as_echo "${ac_t:-
18814 }$am_cv_proto_iconv" >&6; }
18816 cat >>confdefs.h <<_ACEOF
18817 #define ICONV_CONST $am_cv_proto_iconv_arg1
18818 _ACEOF
18823 if test "x${GCC}" = xyes; then
18825 WARNING_CFLAGS='-W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
18828 EXTRA_CFLAGS='-fexceptions -fasynchronous-unwind-tables'
18831 STRICT_WARNING_CFLAGS='-Wstrict-prototypes -pedantic'
18834 ERROR_CFLAGS=
18835 if test "x${ENABLE_WERROR}" = xyes; then
18836 ERROR_CFLAGS='-Werror'
18841 if test "x${COMPILE_XMLJ}" = xyes; then
18843 succeeded=no
18845 if test -z "$PKG_CONFIG"; then
18846 if test -n "$ac_tool_prefix"; then
18847 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18848 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18850 $as_echo_n "checking for $ac_word... " >&6; }
18851 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18852 $as_echo_n "(cached) " >&6
18853 else
18854 case $PKG_CONFIG in
18855 [\\/]* | ?:[\\/]*)
18856 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18860 for as_dir in $PATH
18862 IFS=$as_save_IFS
18863 test -z "$as_dir" && as_dir=.
18864 for ac_exec_ext in '' $ac_executable_extensions; do
18865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18866 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18868 break 2
18870 done
18871 done
18872 IFS=$as_save_IFS
18875 esac
18877 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18878 if test -n "$PKG_CONFIG"; then
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18880 $as_echo "$PKG_CONFIG" >&6; }
18881 else
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18883 $as_echo "no" >&6; }
18888 if test -z "$ac_cv_path_PKG_CONFIG"; then
18889 ac_pt_PKG_CONFIG=$PKG_CONFIG
18890 # Extract the first word of "pkg-config", so it can be a program name with args.
18891 set dummy pkg-config; ac_word=$2
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18893 $as_echo_n "checking for $ac_word... " >&6; }
18894 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
18895 $as_echo_n "(cached) " >&6
18896 else
18897 case $ac_pt_PKG_CONFIG in
18898 [\\/]* | ?:[\\/]*)
18899 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18903 for as_dir in $PATH
18905 IFS=$as_save_IFS
18906 test -z "$as_dir" && as_dir=.
18907 for ac_exec_ext in '' $ac_executable_extensions; do
18908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18909 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18911 break 2
18913 done
18914 done
18915 IFS=$as_save_IFS
18918 esac
18920 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18921 if test -n "$ac_pt_PKG_CONFIG"; then
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18923 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18924 else
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18926 $as_echo "no" >&6; }
18929 if test "x$ac_pt_PKG_CONFIG" = x; then
18930 PKG_CONFIG="no"
18931 else
18932 case $cross_compiling:$ac_tool_warned in
18933 yes:)
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18935 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18936 ac_tool_warned=yes ;;
18937 esac
18938 PKG_CONFIG=$ac_pt_PKG_CONFIG
18940 else
18941 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18946 if test "$PKG_CONFIG" = "no" ; then
18947 echo "*** The pkg-config script could not be found. Make sure it is"
18948 echo "*** in your path, or set the PKG_CONFIG environment variable"
18949 echo "*** to the full path to pkg-config."
18950 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18951 else
18952 PKG_CONFIG_MIN_VERSION=0.9.0
18953 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.8" >&5
18955 $as_echo_n "checking for libxml-2.0 >= 2.6.8... " >&6; }
18957 if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18959 $as_echo "yes" >&6; }
18960 succeeded=yes
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_CFLAGS" >&5
18963 $as_echo_n "checking XML_CFLAGS... " >&6; }
18964 XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_CFLAGS" >&5
18966 $as_echo "$XML_CFLAGS" >&6; }
18968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_LIBS" >&5
18969 $as_echo_n "checking XML_LIBS... " >&6; }
18970 XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_LIBS" >&5
18972 $as_echo "$XML_LIBS" >&6; }
18973 else
18974 XML_CFLAGS=""
18975 XML_LIBS=""
18976 ## If we have a custom action on failure, don't print errors, but
18977 ## do set a variable so people can do so.
18978 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
18979 echo $XML_PKG_ERRORS
18984 else
18985 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18986 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18990 if test $succeeded = yes; then
18992 else
18993 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
18997 succeeded=no
18999 if test -z "$PKG_CONFIG"; then
19000 if test -n "$ac_tool_prefix"; then
19001 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19002 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19004 $as_echo_n "checking for $ac_word... " >&6; }
19005 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19006 $as_echo_n "(cached) " >&6
19007 else
19008 case $PKG_CONFIG in
19009 [\\/]* | ?:[\\/]*)
19010 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19014 for as_dir in $PATH
19016 IFS=$as_save_IFS
19017 test -z "$as_dir" && as_dir=.
19018 for ac_exec_ext in '' $ac_executable_extensions; do
19019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19020 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19022 break 2
19024 done
19025 done
19026 IFS=$as_save_IFS
19029 esac
19031 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19032 if test -n "$PKG_CONFIG"; then
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19034 $as_echo "$PKG_CONFIG" >&6; }
19035 else
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19037 $as_echo "no" >&6; }
19042 if test -z "$ac_cv_path_PKG_CONFIG"; then
19043 ac_pt_PKG_CONFIG=$PKG_CONFIG
19044 # Extract the first word of "pkg-config", so it can be a program name with args.
19045 set dummy pkg-config; ac_word=$2
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19047 $as_echo_n "checking for $ac_word... " >&6; }
19048 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
19049 $as_echo_n "(cached) " >&6
19050 else
19051 case $ac_pt_PKG_CONFIG in
19052 [\\/]* | ?:[\\/]*)
19053 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19057 for as_dir in $PATH
19059 IFS=$as_save_IFS
19060 test -z "$as_dir" && as_dir=.
19061 for ac_exec_ext in '' $ac_executable_extensions; do
19062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19063 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19065 break 2
19067 done
19068 done
19069 IFS=$as_save_IFS
19072 esac
19074 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19075 if test -n "$ac_pt_PKG_CONFIG"; then
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19077 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
19078 else
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19080 $as_echo "no" >&6; }
19083 if test "x$ac_pt_PKG_CONFIG" = x; then
19084 PKG_CONFIG="no"
19085 else
19086 case $cross_compiling:$ac_tool_warned in
19087 yes:)
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19090 ac_tool_warned=yes ;;
19091 esac
19092 PKG_CONFIG=$ac_pt_PKG_CONFIG
19094 else
19095 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19100 if test "$PKG_CONFIG" = "no" ; then
19101 echo "*** The pkg-config script could not be found. Make sure it is"
19102 echo "*** in your path, or set the PKG_CONFIG environment variable"
19103 echo "*** to the full path to pkg-config."
19104 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19105 else
19106 PKG_CONFIG_MIN_VERSION=0.9.0
19107 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt >= 1.1.11" >&5
19109 $as_echo_n "checking for libxslt >= 1.1.11... " >&6; }
19111 if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19113 $as_echo "yes" >&6; }
19114 succeeded=yes
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_CFLAGS" >&5
19117 $as_echo_n "checking XSLT_CFLAGS... " >&6; }
19118 XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_CFLAGS" >&5
19120 $as_echo "$XSLT_CFLAGS" >&6; }
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_LIBS" >&5
19123 $as_echo_n "checking XSLT_LIBS... " >&6; }
19124 XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_LIBS" >&5
19126 $as_echo "$XSLT_LIBS" >&6; }
19127 else
19128 XSLT_CFLAGS=""
19129 XSLT_LIBS=""
19130 ## If we have a custom action on failure, don't print errors, but
19131 ## do set a variable so people can do so.
19132 XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
19133 echo $XSLT_PKG_ERRORS
19138 else
19139 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19140 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19144 if test $succeeded = yes; then
19146 else
19147 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
19156 if test "x${COMPILE_GTK_PEER}" = xyes; then
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19158 $as_echo_n "checking for X... " >&6; }
19161 # Check whether --with-x was given.
19162 if test "${with_x+set}" = set; then :
19163 withval=$with_x;
19166 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19167 if test "x$with_x" = xno; then
19168 # The user explicitly disabled X.
19169 have_x=disabled
19170 else
19171 case $x_includes,$x_libraries in #(
19172 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19173 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19174 $as_echo_n "(cached) " >&6
19175 else
19176 # One or both of the vars are not set, and there is no cached value.
19177 ac_x_includes=no ac_x_libraries=no
19178 rm -f -r conftest.dir
19179 if mkdir conftest.dir; then
19180 cd conftest.dir
19181 cat >Imakefile <<'_ACEOF'
19182 incroot:
19183 @echo incroot='${INCROOT}'
19184 usrlibdir:
19185 @echo usrlibdir='${USRLIBDIR}'
19186 libdir:
19187 @echo libdir='${LIBDIR}'
19188 _ACEOF
19189 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19190 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19191 for ac_var in incroot usrlibdir libdir; do
19192 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19193 done
19194 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19195 for ac_extension in a so sl dylib la dll; do
19196 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19197 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19198 ac_im_usrlibdir=$ac_im_libdir; break
19200 done
19201 # Screen out bogus values from the imake configuration. They are
19202 # bogus both because they are the default anyway, and because
19203 # using them would break gcc on systems where it needs fixed includes.
19204 case $ac_im_incroot in
19205 /usr/include) ac_x_includes= ;;
19206 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19207 esac
19208 case $ac_im_usrlibdir in
19209 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19210 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19211 esac
19213 cd ..
19214 rm -f -r conftest.dir
19217 # Standard set of common directories for X headers.
19218 # Check X11 before X11Rn because it is often a symlink to the current release.
19219 ac_x_header_dirs='
19220 /usr/X11/include
19221 /usr/X11R7/include
19222 /usr/X11R6/include
19223 /usr/X11R5/include
19224 /usr/X11R4/include
19226 /usr/include/X11
19227 /usr/include/X11R7
19228 /usr/include/X11R6
19229 /usr/include/X11R5
19230 /usr/include/X11R4
19232 /usr/local/X11/include
19233 /usr/local/X11R7/include
19234 /usr/local/X11R6/include
19235 /usr/local/X11R5/include
19236 /usr/local/X11R4/include
19238 /usr/local/include/X11
19239 /usr/local/include/X11R7
19240 /usr/local/include/X11R6
19241 /usr/local/include/X11R5
19242 /usr/local/include/X11R4
19244 /usr/X386/include
19245 /usr/x386/include
19246 /usr/XFree86/include/X11
19248 /usr/include
19249 /usr/local/include
19250 /usr/unsupported/include
19251 /usr/athena/include
19252 /usr/local/x11r5/include
19253 /usr/lpp/Xamples/include
19255 /usr/openwin/include
19256 /usr/openwin/share/include'
19258 if test "$ac_x_includes" = no; then
19259 # Guess where to find include files, by looking for Xlib.h.
19260 # First, try using that file with no special directory specified.
19261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19262 /* end confdefs.h. */
19263 #include <X11/Xlib.h>
19264 _ACEOF
19265 if ac_fn_c_try_cpp "$LINENO"; then :
19266 # We can compile using X headers with no special include directory.
19267 ac_x_includes=
19268 else
19269 for ac_dir in $ac_x_header_dirs; do
19270 if test -r "$ac_dir/X11/Xlib.h"; then
19271 ac_x_includes=$ac_dir
19272 break
19274 done
19276 rm -f conftest.err conftest.$ac_ext
19277 fi # $ac_x_includes = no
19279 if test "$ac_x_libraries" = no; then
19280 # Check for the libraries.
19281 # See if we find them without any special options.
19282 # Don't add to $LIBS permanently.
19283 ac_save_LIBS=$LIBS
19284 LIBS="-lX11 $LIBS"
19285 if test x$gcc_no_link = xyes; then
19286 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19289 /* end confdefs.h. */
19290 #include <X11/Xlib.h>
19292 main ()
19294 XrmInitialize ()
19296 return 0;
19298 _ACEOF
19299 if ac_fn_c_try_link "$LINENO"; then :
19300 LIBS=$ac_save_LIBS
19301 # We can link X programs with no special library path.
19302 ac_x_libraries=
19303 else
19304 LIBS=$ac_save_LIBS
19305 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19307 # Don't even attempt the hair of trying to link an X program!
19308 for ac_extension in a so sl dylib la dll; do
19309 if test -r "$ac_dir/libX11.$ac_extension"; then
19310 ac_x_libraries=$ac_dir
19311 break 2
19313 done
19314 done
19316 rm -f core conftest.err conftest.$ac_objext \
19317 conftest$ac_exeext conftest.$ac_ext
19318 fi # $ac_x_libraries = no
19320 case $ac_x_includes,$ac_x_libraries in #(
19321 no,* | *,no | *\'*)
19322 # Didn't find X, or a directory has "'" in its name.
19323 ac_cv_have_x="have_x=no";; #(
19325 # Record where we found X for the cache.
19326 ac_cv_have_x="have_x=yes\
19327 ac_x_includes='$ac_x_includes'\
19328 ac_x_libraries='$ac_x_libraries'"
19329 esac
19331 ;; #(
19332 *) have_x=yes;;
19333 esac
19334 eval "$ac_cv_have_x"
19335 fi # $with_x != no
19337 if test "$have_x" != yes; then
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19339 $as_echo "$have_x" >&6; }
19340 no_x=yes
19341 else
19342 # If each of the values was on the command line, it overrides each guess.
19343 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19344 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19345 # Update the cache value to reflect the command line values.
19346 ac_cv_have_x="have_x=yes\
19347 ac_x_includes='$x_includes'\
19348 ac_x_libraries='$x_libraries'"
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19350 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19353 if test "$no_x" = yes; then
19354 # Not all programs may use this symbol, but it does not hurt to define it.
19356 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19358 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19359 else
19360 if test -n "$x_includes"; then
19361 X_CFLAGS="$X_CFLAGS -I$x_includes"
19364 # It would also be nice to do this for all -L options, not just this one.
19365 if test -n "$x_libraries"; then
19366 X_LIBS="$X_LIBS -L$x_libraries"
19367 # For Solaris; some versions of Sun CC require a space after -R and
19368 # others require no space. Words are not sufficient . . . .
19369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19370 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19371 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19372 ac_xsave_c_werror_flag=$ac_c_werror_flag
19373 ac_c_werror_flag=yes
19374 if test x$gcc_no_link = xyes; then
19375 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19378 /* end confdefs.h. */
19381 main ()
19385 return 0;
19387 _ACEOF
19388 if ac_fn_c_try_link "$LINENO"; then :
19389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19390 $as_echo "no" >&6; }
19391 X_LIBS="$X_LIBS -R$x_libraries"
19392 else
19393 LIBS="$ac_xsave_LIBS -R $x_libraries"
19394 if test x$gcc_no_link = xyes; then
19395 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19398 /* end confdefs.h. */
19401 main ()
19405 return 0;
19407 _ACEOF
19408 if ac_fn_c_try_link "$LINENO"; then :
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19410 $as_echo "yes" >&6; }
19411 X_LIBS="$X_LIBS -R $x_libraries"
19412 else
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19414 $as_echo "neither works" >&6; }
19416 rm -f core conftest.err conftest.$ac_objext \
19417 conftest$ac_exeext conftest.$ac_ext
19419 rm -f core conftest.err conftest.$ac_objext \
19420 conftest$ac_exeext conftest.$ac_ext
19421 ac_c_werror_flag=$ac_xsave_c_werror_flag
19422 LIBS=$ac_xsave_LIBS
19425 # Check for system-dependent libraries X programs must link with.
19426 # Do this before checking for the system-independent R6 libraries
19427 # (-lICE), since we may need -lsocket or whatever for X linking.
19429 if test "$ISC" = yes; then
19430 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19431 else
19432 # Martyn Johnson says this is needed for Ultrix, if the X
19433 # libraries were built with DECnet support. And Karl Berry says
19434 # the Alpha needs dnet_stub (dnet does not exist).
19435 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19436 if test x$gcc_no_link = xyes; then
19437 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19440 /* end confdefs.h. */
19442 /* Override any GCC internal prototype to avoid an error.
19443 Use char because int might match the return type of a GCC
19444 builtin and then its argument prototype would still apply. */
19445 #ifdef __cplusplus
19446 extern "C"
19447 #endif
19448 char XOpenDisplay ();
19450 main ()
19452 return XOpenDisplay ();
19454 return 0;
19456 _ACEOF
19457 if ac_fn_c_try_link "$LINENO"; then :
19459 else
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19461 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19462 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19463 $as_echo_n "(cached) " >&6
19464 else
19465 ac_check_lib_save_LIBS=$LIBS
19466 LIBS="-ldnet $LIBS"
19467 if test x$gcc_no_link = xyes; then
19468 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19471 /* end confdefs.h. */
19473 /* Override any GCC internal prototype to avoid an error.
19474 Use char because int might match the return type of a GCC
19475 builtin and then its argument prototype would still apply. */
19476 #ifdef __cplusplus
19477 extern "C"
19478 #endif
19479 char dnet_ntoa ();
19481 main ()
19483 return dnet_ntoa ();
19485 return 0;
19487 _ACEOF
19488 if ac_fn_c_try_link "$LINENO"; then :
19489 ac_cv_lib_dnet_dnet_ntoa=yes
19490 else
19491 ac_cv_lib_dnet_dnet_ntoa=no
19493 rm -f core conftest.err conftest.$ac_objext \
19494 conftest$ac_exeext conftest.$ac_ext
19495 LIBS=$ac_check_lib_save_LIBS
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19498 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19499 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
19500 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19503 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19505 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19506 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
19507 $as_echo_n "(cached) " >&6
19508 else
19509 ac_check_lib_save_LIBS=$LIBS
19510 LIBS="-ldnet_stub $LIBS"
19511 if test x$gcc_no_link = xyes; then
19512 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19515 /* end confdefs.h. */
19517 /* Override any GCC internal prototype to avoid an error.
19518 Use char because int might match the return type of a GCC
19519 builtin and then its argument prototype would still apply. */
19520 #ifdef __cplusplus
19521 extern "C"
19522 #endif
19523 char dnet_ntoa ();
19525 main ()
19527 return dnet_ntoa ();
19529 return 0;
19531 _ACEOF
19532 if ac_fn_c_try_link "$LINENO"; then :
19533 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19534 else
19535 ac_cv_lib_dnet_stub_dnet_ntoa=no
19537 rm -f core conftest.err conftest.$ac_objext \
19538 conftest$ac_exeext conftest.$ac_ext
19539 LIBS=$ac_check_lib_save_LIBS
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19542 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19543 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
19544 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19549 rm -f core conftest.err conftest.$ac_objext \
19550 conftest$ac_exeext conftest.$ac_ext
19551 LIBS="$ac_xsave_LIBS"
19553 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19554 # to get the SysV transport functions.
19555 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19556 # needs -lnsl.
19557 # The nsl library prevents programs from opening the X display
19558 # on Irix 5.2, according to T.E. Dickey.
19559 # The functions gethostbyname, getservbyname, and inet_addr are
19560 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19561 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19562 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
19566 if test $ac_cv_func_gethostbyname = no; then
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19568 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19569 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
19570 $as_echo_n "(cached) " >&6
19571 else
19572 ac_check_lib_save_LIBS=$LIBS
19573 LIBS="-lnsl $LIBS"
19574 if test x$gcc_no_link = xyes; then
19575 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19578 /* end confdefs.h. */
19580 /* Override any GCC internal prototype to avoid an error.
19581 Use char because int might match the return type of a GCC
19582 builtin and then its argument prototype would still apply. */
19583 #ifdef __cplusplus
19584 extern "C"
19585 #endif
19586 char gethostbyname ();
19588 main ()
19590 return gethostbyname ();
19592 return 0;
19594 _ACEOF
19595 if ac_fn_c_try_link "$LINENO"; then :
19596 ac_cv_lib_nsl_gethostbyname=yes
19597 else
19598 ac_cv_lib_nsl_gethostbyname=no
19600 rm -f core conftest.err conftest.$ac_objext \
19601 conftest$ac_exeext conftest.$ac_ext
19602 LIBS=$ac_check_lib_save_LIBS
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19605 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19606 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
19607 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19610 if test $ac_cv_lib_nsl_gethostbyname = no; then
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
19612 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
19613 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
19614 $as_echo_n "(cached) " >&6
19615 else
19616 ac_check_lib_save_LIBS=$LIBS
19617 LIBS="-lbsd $LIBS"
19618 if test x$gcc_no_link = xyes; then
19619 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19622 /* end confdefs.h. */
19624 /* Override any GCC internal prototype to avoid an error.
19625 Use char because int might match the return type of a GCC
19626 builtin and then its argument prototype would still apply. */
19627 #ifdef __cplusplus
19628 extern "C"
19629 #endif
19630 char gethostbyname ();
19632 main ()
19634 return gethostbyname ();
19636 return 0;
19638 _ACEOF
19639 if ac_fn_c_try_link "$LINENO"; then :
19640 ac_cv_lib_bsd_gethostbyname=yes
19641 else
19642 ac_cv_lib_bsd_gethostbyname=no
19644 rm -f core conftest.err conftest.$ac_objext \
19645 conftest$ac_exeext conftest.$ac_ext
19646 LIBS=$ac_check_lib_save_LIBS
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
19649 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
19650 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
19651 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19657 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19658 # socket/setsockopt and other routines are undefined under SCO ODT
19659 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19660 # on later versions), says Simon Leinen: it contains gethostby*
19661 # variants that don't use the name server (or something). -lsocket
19662 # must be given before -lnsl if both are needed. We assume that
19663 # if connect needs -lnsl, so does gethostbyname.
19664 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
19665 if test "x$ac_cv_func_connect" = x""yes; then :
19669 if test $ac_cv_func_connect = no; then
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
19671 $as_echo_n "checking for connect in -lsocket... " >&6; }
19672 if test "${ac_cv_lib_socket_connect+set}" = set; then :
19673 $as_echo_n "(cached) " >&6
19674 else
19675 ac_check_lib_save_LIBS=$LIBS
19676 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19677 if test x$gcc_no_link = xyes; then
19678 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19681 /* end confdefs.h. */
19683 /* Override any GCC internal prototype to avoid an error.
19684 Use char because int might match the return type of a GCC
19685 builtin and then its argument prototype would still apply. */
19686 #ifdef __cplusplus
19687 extern "C"
19688 #endif
19689 char connect ();
19691 main ()
19693 return connect ();
19695 return 0;
19697 _ACEOF
19698 if ac_fn_c_try_link "$LINENO"; then :
19699 ac_cv_lib_socket_connect=yes
19700 else
19701 ac_cv_lib_socket_connect=no
19703 rm -f core conftest.err conftest.$ac_objext \
19704 conftest$ac_exeext conftest.$ac_ext
19705 LIBS=$ac_check_lib_save_LIBS
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19708 $as_echo "$ac_cv_lib_socket_connect" >&6; }
19709 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
19710 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19715 # Guillermo Gomez says -lposix is necessary on A/UX.
19716 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
19717 if test "x$ac_cv_func_remove" = x""yes; then :
19721 if test $ac_cv_func_remove = no; then
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19723 $as_echo_n "checking for remove in -lposix... " >&6; }
19724 if test "${ac_cv_lib_posix_remove+set}" = set; then :
19725 $as_echo_n "(cached) " >&6
19726 else
19727 ac_check_lib_save_LIBS=$LIBS
19728 LIBS="-lposix $LIBS"
19729 if test x$gcc_no_link = xyes; then
19730 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19733 /* end confdefs.h. */
19735 /* Override any GCC internal prototype to avoid an error.
19736 Use char because int might match the return type of a GCC
19737 builtin and then its argument prototype would still apply. */
19738 #ifdef __cplusplus
19739 extern "C"
19740 #endif
19741 char remove ();
19743 main ()
19745 return remove ();
19747 return 0;
19749 _ACEOF
19750 if ac_fn_c_try_link "$LINENO"; then :
19751 ac_cv_lib_posix_remove=yes
19752 else
19753 ac_cv_lib_posix_remove=no
19755 rm -f core conftest.err conftest.$ac_objext \
19756 conftest$ac_exeext conftest.$ac_ext
19757 LIBS=$ac_check_lib_save_LIBS
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19760 $as_echo "$ac_cv_lib_posix_remove" >&6; }
19761 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
19762 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19767 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19768 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19769 if test "x$ac_cv_func_shmat" = x""yes; then :
19773 if test $ac_cv_func_shmat = no; then
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19775 $as_echo_n "checking for shmat in -lipc... " >&6; }
19776 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
19777 $as_echo_n "(cached) " >&6
19778 else
19779 ac_check_lib_save_LIBS=$LIBS
19780 LIBS="-lipc $LIBS"
19781 if test x$gcc_no_link = xyes; then
19782 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19785 /* end confdefs.h. */
19787 /* Override any GCC internal prototype to avoid an error.
19788 Use char because int might match the return type of a GCC
19789 builtin and then its argument prototype would still apply. */
19790 #ifdef __cplusplus
19791 extern "C"
19792 #endif
19793 char shmat ();
19795 main ()
19797 return shmat ();
19799 return 0;
19801 _ACEOF
19802 if ac_fn_c_try_link "$LINENO"; then :
19803 ac_cv_lib_ipc_shmat=yes
19804 else
19805 ac_cv_lib_ipc_shmat=no
19807 rm -f core conftest.err conftest.$ac_objext \
19808 conftest$ac_exeext conftest.$ac_ext
19809 LIBS=$ac_check_lib_save_LIBS
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19812 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19813 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
19814 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19820 # Check for libraries that X11R6 Xt/Xaw programs need.
19821 ac_save_LDFLAGS=$LDFLAGS
19822 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19823 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19824 # check for ICE first), but we must link in the order -lSM -lICE or
19825 # we get undefined symbols. So assume we have SM if we have ICE.
19826 # These have to be linked with before -lX11, unlike the other
19827 # libraries we check for below, so use a different variable.
19828 # John Interrante, Karl Berry
19829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19830 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19831 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
19832 $as_echo_n "(cached) " >&6
19833 else
19834 ac_check_lib_save_LIBS=$LIBS
19835 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19836 if test x$gcc_no_link = xyes; then
19837 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19840 /* end confdefs.h. */
19842 /* Override any GCC internal prototype to avoid an error.
19843 Use char because int might match the return type of a GCC
19844 builtin and then its argument prototype would still apply. */
19845 #ifdef __cplusplus
19846 extern "C"
19847 #endif
19848 char IceConnectionNumber ();
19850 main ()
19852 return IceConnectionNumber ();
19854 return 0;
19856 _ACEOF
19857 if ac_fn_c_try_link "$LINENO"; then :
19858 ac_cv_lib_ICE_IceConnectionNumber=yes
19859 else
19860 ac_cv_lib_ICE_IceConnectionNumber=no
19862 rm -f core conftest.err conftest.$ac_objext \
19863 conftest$ac_exeext conftest.$ac_ext
19864 LIBS=$ac_check_lib_save_LIBS
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19867 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19868 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
19869 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19872 LDFLAGS=$ac_save_LDFLAGS
19876 if test "$no_x" = yes; then
19877 as_fn_error "GTK+ peers requested but no X library available" "$LINENO" 5
19879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
19880 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
19881 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
19882 $as_echo_n "(cached) " >&6
19883 else
19884 ac_check_lib_save_LIBS=$LIBS
19885 LIBS="-lXtst ${X_LIBS} $LIBS"
19886 if test x$gcc_no_link = xyes; then
19887 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19890 /* end confdefs.h. */
19892 /* Override any GCC internal prototype to avoid an error.
19893 Use char because int might match the return type of a GCC
19894 builtin and then its argument prototype would still apply. */
19895 #ifdef __cplusplus
19896 extern "C"
19897 #endif
19898 char XTestQueryExtension ();
19900 main ()
19902 return XTestQueryExtension ();
19904 return 0;
19906 _ACEOF
19907 if ac_fn_c_try_link "$LINENO"; then :
19908 ac_cv_lib_Xtst_XTestQueryExtension=yes
19909 else
19910 ac_cv_lib_Xtst_XTestQueryExtension=no
19912 rm -f core conftest.err conftest.$ac_objext \
19913 conftest$ac_exeext conftest.$ac_ext
19914 LIBS=$ac_check_lib_save_LIBS
19916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
19917 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
19918 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
19920 $as_echo "#define HAVE_XTEST 1" >>confdefs.h
19921 XTEST_LIBS="$XTEST_LIBS -X11 -lXtst"
19922 else
19923 true
19929 succeeded=no
19931 if test -z "$PKG_CONFIG"; then
19932 if test -n "$ac_tool_prefix"; then
19933 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19934 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19936 $as_echo_n "checking for $ac_word... " >&6; }
19937 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19938 $as_echo_n "(cached) " >&6
19939 else
19940 case $PKG_CONFIG in
19941 [\\/]* | ?:[\\/]*)
19942 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19946 for as_dir in $PATH
19948 IFS=$as_save_IFS
19949 test -z "$as_dir" && as_dir=.
19950 for ac_exec_ext in '' $ac_executable_extensions; do
19951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19952 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19954 break 2
19956 done
19957 done
19958 IFS=$as_save_IFS
19961 esac
19963 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19964 if test -n "$PKG_CONFIG"; then
19965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19966 $as_echo "$PKG_CONFIG" >&6; }
19967 else
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19969 $as_echo "no" >&6; }
19974 if test -z "$ac_cv_path_PKG_CONFIG"; then
19975 ac_pt_PKG_CONFIG=$PKG_CONFIG
19976 # Extract the first word of "pkg-config", so it can be a program name with args.
19977 set dummy pkg-config; ac_word=$2
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19979 $as_echo_n "checking for $ac_word... " >&6; }
19980 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
19981 $as_echo_n "(cached) " >&6
19982 else
19983 case $ac_pt_PKG_CONFIG in
19984 [\\/]* | ?:[\\/]*)
19985 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19989 for as_dir in $PATH
19991 IFS=$as_save_IFS
19992 test -z "$as_dir" && as_dir=.
19993 for ac_exec_ext in '' $ac_executable_extensions; do
19994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19995 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19997 break 2
19999 done
20000 done
20001 IFS=$as_save_IFS
20004 esac
20006 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20007 if test -n "$ac_pt_PKG_CONFIG"; then
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20009 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
20010 else
20011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20012 $as_echo "no" >&6; }
20015 if test "x$ac_pt_PKG_CONFIG" = x; then
20016 PKG_CONFIG="no"
20017 else
20018 case $cross_compiling:$ac_tool_warned in
20019 yes:)
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20022 ac_tool_warned=yes ;;
20023 esac
20024 PKG_CONFIG=$ac_pt_PKG_CONFIG
20026 else
20027 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20032 if test "$PKG_CONFIG" = "no" ; then
20033 echo "*** The pkg-config script could not be found. Make sure it is"
20034 echo "*** in your path, or set the PKG_CONFIG environment variable"
20035 echo "*** to the full path to pkg-config."
20036 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20037 else
20038 PKG_CONFIG_MIN_VERSION=0.9.0
20039 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
20041 $as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
20043 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20045 $as_echo "yes" >&6; }
20046 succeeded=yes
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
20049 $as_echo_n "checking GTK_CFLAGS... " >&6; }
20050 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
20052 $as_echo "$GTK_CFLAGS" >&6; }
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
20055 $as_echo_n "checking GTK_LIBS... " >&6; }
20056 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
20058 $as_echo "$GTK_LIBS" >&6; }
20059 else
20060 GTK_CFLAGS=""
20061 GTK_LIBS=""
20062 ## If we have a custom action on failure, don't print errors, but
20063 ## do set a variable so people can do so.
20064 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
20065 echo $GTK_PKG_ERRORS
20070 else
20071 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20072 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20076 if test $succeeded = yes; then
20078 else
20079 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
20083 succeeded=no
20085 if test -z "$PKG_CONFIG"; then
20086 if test -n "$ac_tool_prefix"; then
20087 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20088 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20090 $as_echo_n "checking for $ac_word... " >&6; }
20091 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20092 $as_echo_n "(cached) " >&6
20093 else
20094 case $PKG_CONFIG in
20095 [\\/]* | ?:[\\/]*)
20096 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20100 for as_dir in $PATH
20102 IFS=$as_save_IFS
20103 test -z "$as_dir" && as_dir=.
20104 for ac_exec_ext in '' $ac_executable_extensions; do
20105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20106 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20108 break 2
20110 done
20111 done
20112 IFS=$as_save_IFS
20115 esac
20117 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20118 if test -n "$PKG_CONFIG"; then
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20120 $as_echo "$PKG_CONFIG" >&6; }
20121 else
20122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20123 $as_echo "no" >&6; }
20128 if test -z "$ac_cv_path_PKG_CONFIG"; then
20129 ac_pt_PKG_CONFIG=$PKG_CONFIG
20130 # Extract the first word of "pkg-config", so it can be a program name with args.
20131 set dummy pkg-config; ac_word=$2
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20133 $as_echo_n "checking for $ac_word... " >&6; }
20134 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
20135 $as_echo_n "(cached) " >&6
20136 else
20137 case $ac_pt_PKG_CONFIG in
20138 [\\/]* | ?:[\\/]*)
20139 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20143 for as_dir in $PATH
20145 IFS=$as_save_IFS
20146 test -z "$as_dir" && as_dir=.
20147 for ac_exec_ext in '' $ac_executable_extensions; do
20148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20149 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20151 break 2
20153 done
20154 done
20155 IFS=$as_save_IFS
20158 esac
20160 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20161 if test -n "$ac_pt_PKG_CONFIG"; then
20162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20163 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
20164 else
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20166 $as_echo "no" >&6; }
20169 if test "x$ac_pt_PKG_CONFIG" = x; then
20170 PKG_CONFIG="no"
20171 else
20172 case $cross_compiling:$ac_tool_warned in
20173 yes:)
20174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20176 ac_tool_warned=yes ;;
20177 esac
20178 PKG_CONFIG=$ac_pt_PKG_CONFIG
20180 else
20181 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20186 if test "$PKG_CONFIG" = "no" ; then
20187 echo "*** The pkg-config script could not be found. Make sure it is"
20188 echo "*** in your path, or set the PKG_CONFIG environment variable"
20189 echo "*** to the full path to pkg-config."
20190 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20191 else
20192 PKG_CONFIG_MIN_VERSION=0.9.0
20193 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
20195 $as_echo_n "checking for freetype2... " >&6; }
20197 if $PKG_CONFIG --exists "freetype2" ; then
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20199 $as_echo "yes" >&6; }
20200 succeeded=yes
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_CFLAGS" >&5
20203 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
20204 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
20205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_CFLAGS" >&5
20206 $as_echo "$FREETYPE2_CFLAGS" >&6; }
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_LIBS" >&5
20209 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
20210 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_LIBS" >&5
20212 $as_echo "$FREETYPE2_LIBS" >&6; }
20213 else
20214 FREETYPE2_CFLAGS=""
20215 FREETYPE2_LIBS=""
20216 ## If we have a custom action on failure, don't print errors, but
20217 ## do set a variable so people can do so.
20218 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
20219 echo $FREETYPE2_PKG_ERRORS
20224 else
20225 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20226 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20230 if test $succeeded = yes; then
20232 else
20233 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
20237 succeeded=no
20239 if test -z "$PKG_CONFIG"; then
20240 if test -n "$ac_tool_prefix"; then
20241 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20242 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20244 $as_echo_n "checking for $ac_word... " >&6; }
20245 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20246 $as_echo_n "(cached) " >&6
20247 else
20248 case $PKG_CONFIG in
20249 [\\/]* | ?:[\\/]*)
20250 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20254 for as_dir in $PATH
20256 IFS=$as_save_IFS
20257 test -z "$as_dir" && as_dir=.
20258 for ac_exec_ext in '' $ac_executable_extensions; do
20259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20260 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20262 break 2
20264 done
20265 done
20266 IFS=$as_save_IFS
20269 esac
20271 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20272 if test -n "$PKG_CONFIG"; then
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20274 $as_echo "$PKG_CONFIG" >&6; }
20275 else
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20277 $as_echo "no" >&6; }
20282 if test -z "$ac_cv_path_PKG_CONFIG"; then
20283 ac_pt_PKG_CONFIG=$PKG_CONFIG
20284 # Extract the first word of "pkg-config", so it can be a program name with args.
20285 set dummy pkg-config; ac_word=$2
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20287 $as_echo_n "checking for $ac_word... " >&6; }
20288 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
20289 $as_echo_n "(cached) " >&6
20290 else
20291 case $ac_pt_PKG_CONFIG in
20292 [\\/]* | ?:[\\/]*)
20293 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20297 for as_dir in $PATH
20299 IFS=$as_save_IFS
20300 test -z "$as_dir" && as_dir=.
20301 for ac_exec_ext in '' $ac_executable_extensions; do
20302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20303 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20305 break 2
20307 done
20308 done
20309 IFS=$as_save_IFS
20312 esac
20314 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20315 if test -n "$ac_pt_PKG_CONFIG"; then
20316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20317 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
20318 else
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20320 $as_echo "no" >&6; }
20323 if test "x$ac_pt_PKG_CONFIG" = x; then
20324 PKG_CONFIG="no"
20325 else
20326 case $cross_compiling:$ac_tool_warned in
20327 yes:)
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20330 ac_tool_warned=yes ;;
20331 esac
20332 PKG_CONFIG=$ac_pt_PKG_CONFIG
20334 else
20335 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20340 if test "$PKG_CONFIG" = "no" ; then
20341 echo "*** The pkg-config script could not be found. Make sure it is"
20342 echo "*** in your path, or set the PKG_CONFIG environment variable"
20343 echo "*** to the full path to pkg-config."
20344 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20345 else
20346 PKG_CONFIG_MIN_VERSION=0.9.0
20347 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pangoft2" >&5
20349 $as_echo_n "checking for pangoft2... " >&6; }
20351 if $PKG_CONFIG --exists "pangoft2" ; then
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20353 $as_echo "yes" >&6; }
20354 succeeded=yes
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_CFLAGS" >&5
20357 $as_echo_n "checking PANGOFT2_CFLAGS... " >&6; }
20358 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_CFLAGS" >&5
20360 $as_echo "$PANGOFT2_CFLAGS" >&6; }
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_LIBS" >&5
20363 $as_echo_n "checking PANGOFT2_LIBS... " >&6; }
20364 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_LIBS" >&5
20366 $as_echo "$PANGOFT2_LIBS" >&6; }
20367 else
20368 PANGOFT2_CFLAGS=""
20369 PANGOFT2_LIBS=""
20370 ## If we have a custom action on failure, don't print errors, but
20371 ## do set a variable so people can do so.
20372 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
20373 echo $PANGOFT2_PKG_ERRORS
20378 else
20379 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20380 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20384 if test $succeeded = yes; then
20386 else
20387 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
20391 succeeded=no
20393 if test -z "$PKG_CONFIG"; then
20394 if test -n "$ac_tool_prefix"; then
20395 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20396 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20398 $as_echo_n "checking for $ac_word... " >&6; }
20399 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20400 $as_echo_n "(cached) " >&6
20401 else
20402 case $PKG_CONFIG in
20403 [\\/]* | ?:[\\/]*)
20404 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20408 for as_dir in $PATH
20410 IFS=$as_save_IFS
20411 test -z "$as_dir" && as_dir=.
20412 for ac_exec_ext in '' $ac_executable_extensions; do
20413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20414 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20416 break 2
20418 done
20419 done
20420 IFS=$as_save_IFS
20423 esac
20425 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20426 if test -n "$PKG_CONFIG"; then
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20428 $as_echo "$PKG_CONFIG" >&6; }
20429 else
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20431 $as_echo "no" >&6; }
20436 if test -z "$ac_cv_path_PKG_CONFIG"; then
20437 ac_pt_PKG_CONFIG=$PKG_CONFIG
20438 # Extract the first word of "pkg-config", so it can be a program name with args.
20439 set dummy pkg-config; ac_word=$2
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20441 $as_echo_n "checking for $ac_word... " >&6; }
20442 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
20443 $as_echo_n "(cached) " >&6
20444 else
20445 case $ac_pt_PKG_CONFIG in
20446 [\\/]* | ?:[\\/]*)
20447 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20451 for as_dir in $PATH
20453 IFS=$as_save_IFS
20454 test -z "$as_dir" && as_dir=.
20455 for ac_exec_ext in '' $ac_executable_extensions; do
20456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20457 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20459 break 2
20461 done
20462 done
20463 IFS=$as_save_IFS
20466 esac
20468 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20469 if test -n "$ac_pt_PKG_CONFIG"; then
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20471 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
20472 else
20473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20474 $as_echo "no" >&6; }
20477 if test "x$ac_pt_PKG_CONFIG" = x; then
20478 PKG_CONFIG="no"
20479 else
20480 case $cross_compiling:$ac_tool_warned in
20481 yes:)
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20484 ac_tool_warned=yes ;;
20485 esac
20486 PKG_CONFIG=$ac_pt_PKG_CONFIG
20488 else
20489 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20494 if test "$PKG_CONFIG" = "no" ; then
20495 echo "*** The pkg-config script could not be found. Make sure it is"
20496 echo "*** in your path, or set the PKG_CONFIG environment variable"
20497 echo "*** to the full path to pkg-config."
20498 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20499 else
20500 PKG_CONFIG_MIN_VERSION=0.9.0
20501 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo >= 1.1.8" >&5
20503 $as_echo_n "checking for cairo >= 1.1.8... " >&6; }
20505 if $PKG_CONFIG --exists "cairo >= 1.1.8" ; then
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20507 $as_echo "yes" >&6; }
20508 succeeded=yes
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_CFLAGS" >&5
20511 $as_echo_n "checking CAIRO_CFLAGS... " >&6; }
20512 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.1.8"`
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_CFLAGS" >&5
20514 $as_echo "$CAIRO_CFLAGS" >&6; }
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_LIBS" >&5
20517 $as_echo_n "checking CAIRO_LIBS... " >&6; }
20518 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.1.8"`
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_LIBS" >&5
20520 $as_echo "$CAIRO_LIBS" >&6; }
20521 else
20522 CAIRO_CFLAGS=""
20523 CAIRO_LIBS=""
20524 ## If we have a custom action on failure, don't print errors, but
20525 ## do set a variable so people can do so.
20526 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.1.8"`
20527 echo $CAIRO_PKG_ERRORS
20532 else
20533 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20534 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20538 if test $succeeded = yes; then
20540 else
20541 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
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
20545 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
20546 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
20547 $as_echo_n "(cached) " >&6
20548 else
20549 ac_check_lib_save_LIBS=$LIBS
20550 LIBS="-lXrender ${X_LIBS} $LIBS"
20551 if test x$gcc_no_link = xyes; then
20552 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20555 /* end confdefs.h. */
20557 /* Override any GCC internal prototype to avoid an error.
20558 Use char because int might match the return type of a GCC
20559 builtin and then its argument prototype would still apply. */
20560 #ifdef __cplusplus
20561 extern "C"
20562 #endif
20563 char XRenderQueryExtension ();
20565 main ()
20567 return XRenderQueryExtension ();
20569 return 0;
20571 _ACEOF
20572 if ac_fn_c_try_link "$LINENO"; then :
20573 ac_cv_lib_Xrender_XRenderQueryExtension=yes
20574 else
20575 ac_cv_lib_Xrender_XRenderQueryExtension=no
20577 rm -f core conftest.err conftest.$ac_objext \
20578 conftest$ac_exeext conftest.$ac_ext
20579 LIBS=$ac_check_lib_save_LIBS
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
20582 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
20583 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
20585 $as_echo "#define HAVE_XRENDER 1" >>confdefs.h
20586 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
20587 else
20588 true
20592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
20593 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
20594 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then :
20595 $as_echo_n "(cached) " >&6
20596 else
20597 ac_check_lib_save_LIBS=$LIBS
20598 LIBS="-lXrandr ${X_LIBS} $LIBS"
20599 if test x$gcc_no_link = xyes; then
20600 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20603 /* end confdefs.h. */
20605 /* Override any GCC internal prototype to avoid an error.
20606 Use char because int might match the return type of a GCC
20607 builtin and then its argument prototype would still apply. */
20608 #ifdef __cplusplus
20609 extern "C"
20610 #endif
20611 char XRRQueryExtension ();
20613 main ()
20615 return XRRQueryExtension ();
20617 return 0;
20619 _ACEOF
20620 if ac_fn_c_try_link "$LINENO"; then :
20621 ac_cv_lib_Xrandr_XRRQueryExtension=yes
20622 else
20623 ac_cv_lib_Xrandr_XRRQueryExtension=no
20625 rm -f core conftest.err conftest.$ac_objext \
20626 conftest$ac_exeext conftest.$ac_ext
20627 LIBS=$ac_check_lib_save_LIBS
20629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
20630 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
20631 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then :
20633 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
20634 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
20635 else
20636 true
20649 if test "x${COMPILE_GCONF_PEER}" = xyes; then
20651 succeeded=no
20653 if test -z "$PKG_CONFIG"; then
20654 if test -n "$ac_tool_prefix"; then
20655 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20656 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20658 $as_echo_n "checking for $ac_word... " >&6; }
20659 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20660 $as_echo_n "(cached) " >&6
20661 else
20662 case $PKG_CONFIG in
20663 [\\/]* | ?:[\\/]*)
20664 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20668 for as_dir in $PATH
20670 IFS=$as_save_IFS
20671 test -z "$as_dir" && as_dir=.
20672 for ac_exec_ext in '' $ac_executable_extensions; do
20673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20674 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20676 break 2
20678 done
20679 done
20680 IFS=$as_save_IFS
20683 esac
20685 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20686 if test -n "$PKG_CONFIG"; then
20687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20688 $as_echo "$PKG_CONFIG" >&6; }
20689 else
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20691 $as_echo "no" >&6; }
20696 if test -z "$ac_cv_path_PKG_CONFIG"; then
20697 ac_pt_PKG_CONFIG=$PKG_CONFIG
20698 # Extract the first word of "pkg-config", so it can be a program name with args.
20699 set dummy pkg-config; ac_word=$2
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20701 $as_echo_n "checking for $ac_word... " >&6; }
20702 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
20703 $as_echo_n "(cached) " >&6
20704 else
20705 case $ac_pt_PKG_CONFIG in
20706 [\\/]* | ?:[\\/]*)
20707 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20711 for as_dir in $PATH
20713 IFS=$as_save_IFS
20714 test -z "$as_dir" && as_dir=.
20715 for ac_exec_ext in '' $ac_executable_extensions; do
20716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20717 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20719 break 2
20721 done
20722 done
20723 IFS=$as_save_IFS
20726 esac
20728 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20729 if test -n "$ac_pt_PKG_CONFIG"; then
20730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20731 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
20732 else
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20734 $as_echo "no" >&6; }
20737 if test "x$ac_pt_PKG_CONFIG" = x; then
20738 PKG_CONFIG="no"
20739 else
20740 case $cross_compiling:$ac_tool_warned in
20741 yes:)
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20744 ac_tool_warned=yes ;;
20745 esac
20746 PKG_CONFIG=$ac_pt_PKG_CONFIG
20748 else
20749 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20754 if test "$PKG_CONFIG" = "no" ; then
20755 echo "*** The pkg-config script could not be found. Make sure it is"
20756 echo "*** in your path, or set the PKG_CONFIG environment variable"
20757 echo "*** to the full path to pkg-config."
20758 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20759 else
20760 PKG_CONFIG_MIN_VERSION=0.9.0
20761 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.6.0" >&5
20763 $as_echo_n "checking for gconf-2.0 >= 2.6.0... " >&6; }
20765 if $PKG_CONFIG --exists "gconf-2.0 >= 2.6.0" ; then
20766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20767 $as_echo "yes" >&6; }
20768 succeeded=yes
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
20771 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
20772 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.6.0"`
20773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
20774 $as_echo "$GCONF_CFLAGS" >&6; }
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
20777 $as_echo_n "checking GCONF_LIBS... " >&6; }
20778 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.6.0"`
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
20780 $as_echo "$GCONF_LIBS" >&6; }
20781 else
20782 GCONF_CFLAGS=""
20783 GCONF_LIBS=""
20784 ## If we have a custom action on failure, don't print errors, but
20785 ## do set a variable so people can do so.
20786 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.6.0"`
20787 echo $GCONF_PKG_ERRORS
20792 else
20793 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20794 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20798 if test $succeeded = yes; then
20800 else
20801 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
20807 succeeded=no
20809 if test -z "$PKG_CONFIG"; then
20810 if test -n "$ac_tool_prefix"; then
20811 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20812 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20814 $as_echo_n "checking for $ac_word... " >&6; }
20815 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20816 $as_echo_n "(cached) " >&6
20817 else
20818 case $PKG_CONFIG in
20819 [\\/]* | ?:[\\/]*)
20820 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20824 for as_dir in $PATH
20826 IFS=$as_save_IFS
20827 test -z "$as_dir" && as_dir=.
20828 for ac_exec_ext in '' $ac_executable_extensions; do
20829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20830 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20832 break 2
20834 done
20835 done
20836 IFS=$as_save_IFS
20839 esac
20841 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20842 if test -n "$PKG_CONFIG"; then
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20844 $as_echo "$PKG_CONFIG" >&6; }
20845 else
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20847 $as_echo "no" >&6; }
20852 if test -z "$ac_cv_path_PKG_CONFIG"; then
20853 ac_pt_PKG_CONFIG=$PKG_CONFIG
20854 # Extract the first word of "pkg-config", so it can be a program name with args.
20855 set dummy pkg-config; ac_word=$2
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20857 $as_echo_n "checking for $ac_word... " >&6; }
20858 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
20859 $as_echo_n "(cached) " >&6
20860 else
20861 case $ac_pt_PKG_CONFIG in
20862 [\\/]* | ?:[\\/]*)
20863 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20867 for as_dir in $PATH
20869 IFS=$as_save_IFS
20870 test -z "$as_dir" && as_dir=.
20871 for ac_exec_ext in '' $ac_executable_extensions; do
20872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20873 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20875 break 2
20877 done
20878 done
20879 IFS=$as_save_IFS
20882 esac
20884 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20885 if test -n "$ac_pt_PKG_CONFIG"; then
20886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20887 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
20888 else
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20890 $as_echo "no" >&6; }
20893 if test "x$ac_pt_PKG_CONFIG" = x; then
20894 PKG_CONFIG="no"
20895 else
20896 case $cross_compiling:$ac_tool_warned in
20897 yes:)
20898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20900 ac_tool_warned=yes ;;
20901 esac
20902 PKG_CONFIG=$ac_pt_PKG_CONFIG
20904 else
20905 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20910 if test "$PKG_CONFIG" = "no" ; then
20911 echo "*** The pkg-config script could not be found. Make sure it is"
20912 echo "*** in your path, or set the PKG_CONFIG environment variable"
20913 echo "*** to the full path to pkg-config."
20914 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20915 else
20916 PKG_CONFIG_MIN_VERSION=0.9.0
20917 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
20919 $as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
20921 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
20922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20923 $as_echo "yes" >&6; }
20924 succeeded=yes
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
20927 $as_echo_n "checking GDK_CFLAGS... " >&6; }
20928 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
20930 $as_echo "$GDK_CFLAGS" >&6; }
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
20933 $as_echo_n "checking GDK_LIBS... " >&6; }
20934 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
20936 $as_echo "$GDK_LIBS" >&6; }
20937 else
20938 GDK_CFLAGS=""
20939 GDK_LIBS=""
20940 ## If we have a custom action on failure, don't print errors, but
20941 ## do set a variable so people can do so.
20942 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
20943 echo $GDK_PKG_ERRORS
20948 else
20949 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20950 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20954 if test $succeeded = yes; then
20956 else
20957 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
20962 USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
20963 if test "$USE_GCONF_PREFS_PEER" = ""; then
20964 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
20968 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
20969 GST_MAJORMINOR=0.10
20970 GST_REQUIRED=0.10.10
20973 succeeded=no
20975 if test -z "$PKG_CONFIG"; then
20976 if test -n "$ac_tool_prefix"; then
20977 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20978 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20980 $as_echo_n "checking for $ac_word... " >&6; }
20981 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20982 $as_echo_n "(cached) " >&6
20983 else
20984 case $PKG_CONFIG in
20985 [\\/]* | ?:[\\/]*)
20986 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20990 for as_dir in $PATH
20992 IFS=$as_save_IFS
20993 test -z "$as_dir" && as_dir=.
20994 for ac_exec_ext in '' $ac_executable_extensions; do
20995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20996 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20998 break 2
21000 done
21001 done
21002 IFS=$as_save_IFS
21005 esac
21007 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21008 if test -n "$PKG_CONFIG"; then
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21010 $as_echo "$PKG_CONFIG" >&6; }
21011 else
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21013 $as_echo "no" >&6; }
21018 if test -z "$ac_cv_path_PKG_CONFIG"; then
21019 ac_pt_PKG_CONFIG=$PKG_CONFIG
21020 # Extract the first word of "pkg-config", so it can be a program name with args.
21021 set dummy pkg-config; ac_word=$2
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21023 $as_echo_n "checking for $ac_word... " >&6; }
21024 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
21025 $as_echo_n "(cached) " >&6
21026 else
21027 case $ac_pt_PKG_CONFIG in
21028 [\\/]* | ?:[\\/]*)
21029 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21033 for as_dir in $PATH
21035 IFS=$as_save_IFS
21036 test -z "$as_dir" && as_dir=.
21037 for ac_exec_ext in '' $ac_executable_extensions; do
21038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21039 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21041 break 2
21043 done
21044 done
21045 IFS=$as_save_IFS
21048 esac
21050 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21051 if test -n "$ac_pt_PKG_CONFIG"; then
21052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21053 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
21054 else
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21056 $as_echo "no" >&6; }
21059 if test "x$ac_pt_PKG_CONFIG" = x; then
21060 PKG_CONFIG="no"
21061 else
21062 case $cross_compiling:$ac_tool_warned in
21063 yes:)
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21065 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21066 ac_tool_warned=yes ;;
21067 esac
21068 PKG_CONFIG=$ac_pt_PKG_CONFIG
21070 else
21071 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21076 if test "$PKG_CONFIG" = "no" ; then
21077 echo "*** The pkg-config script could not be found. Make sure it is"
21078 echo "*** in your path, or set the PKG_CONFIG environment variable"
21079 echo "*** to the full path to pkg-config."
21080 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21081 else
21082 PKG_CONFIG_MIN_VERSION=0.9.0
21083 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
21085 $as_echo_n "checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
21087 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21089 $as_echo "yes" >&6; }
21090 succeeded=yes
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_CFLAGS" >&5
21093 $as_echo_n "checking GSTREAMER_CFLAGS... " >&6; }
21094 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_CFLAGS" >&5
21096 $as_echo "$GSTREAMER_CFLAGS" >&6; }
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_LIBS" >&5
21099 $as_echo_n "checking GSTREAMER_LIBS... " >&6; }
21100 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
21101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_LIBS" >&5
21102 $as_echo "$GSTREAMER_LIBS" >&6; }
21103 else
21104 GSTREAMER_CFLAGS=""
21105 GSTREAMER_LIBS=""
21106 ## If we have a custom action on failure, don't print errors, but
21107 ## do set a variable so people can do so.
21108 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
21109 echo $GSTREAMER_PKG_ERRORS
21114 else
21115 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21116 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21120 if test $succeeded = yes; then
21122 else
21123 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
21130 succeeded=no
21132 if test -z "$PKG_CONFIG"; then
21133 if test -n "$ac_tool_prefix"; then
21134 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21135 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21137 $as_echo_n "checking for $ac_word... " >&6; }
21138 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21139 $as_echo_n "(cached) " >&6
21140 else
21141 case $PKG_CONFIG in
21142 [\\/]* | ?:[\\/]*)
21143 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21147 for as_dir in $PATH
21149 IFS=$as_save_IFS
21150 test -z "$as_dir" && as_dir=.
21151 for ac_exec_ext in '' $ac_executable_extensions; do
21152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21153 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21155 break 2
21157 done
21158 done
21159 IFS=$as_save_IFS
21162 esac
21164 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21165 if test -n "$PKG_CONFIG"; then
21166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21167 $as_echo "$PKG_CONFIG" >&6; }
21168 else
21169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21170 $as_echo "no" >&6; }
21175 if test -z "$ac_cv_path_PKG_CONFIG"; then
21176 ac_pt_PKG_CONFIG=$PKG_CONFIG
21177 # Extract the first word of "pkg-config", so it can be a program name with args.
21178 set dummy pkg-config; ac_word=$2
21179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21180 $as_echo_n "checking for $ac_word... " >&6; }
21181 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
21182 $as_echo_n "(cached) " >&6
21183 else
21184 case $ac_pt_PKG_CONFIG in
21185 [\\/]* | ?:[\\/]*)
21186 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21190 for as_dir in $PATH
21192 IFS=$as_save_IFS
21193 test -z "$as_dir" && as_dir=.
21194 for ac_exec_ext in '' $ac_executable_extensions; do
21195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21196 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21198 break 2
21200 done
21201 done
21202 IFS=$as_save_IFS
21205 esac
21207 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21208 if test -n "$ac_pt_PKG_CONFIG"; then
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21210 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
21211 else
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21213 $as_echo "no" >&6; }
21216 if test "x$ac_pt_PKG_CONFIG" = x; then
21217 PKG_CONFIG="no"
21218 else
21219 case $cross_compiling:$ac_tool_warned in
21220 yes:)
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21222 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21223 ac_tool_warned=yes ;;
21224 esac
21225 PKG_CONFIG=$ac_pt_PKG_CONFIG
21227 else
21228 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21233 if test "$PKG_CONFIG" = "no" ; then
21234 echo "*** The pkg-config script could not be found. Make sure it is"
21235 echo "*** in your path, or set the PKG_CONFIG environment variable"
21236 echo "*** to the full path to pkg-config."
21237 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21238 else
21239 PKG_CONFIG_MIN_VERSION=0.9.0
21240 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
21242 $as_echo_n "checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
21244 if $PKG_CONFIG --exists "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21246 $as_echo "yes" >&6; }
21247 succeeded=yes
21249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_CFLAGS" >&5
21250 $as_echo_n "checking GSTREAMER_BASE_CFLAGS... " >&6; }
21251 GSTREAMER_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_CFLAGS" >&5
21253 $as_echo "$GSTREAMER_BASE_CFLAGS" >&6; }
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_LIBS" >&5
21256 $as_echo_n "checking GSTREAMER_BASE_LIBS... " >&6; }
21257 GSTREAMER_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
21258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_LIBS" >&5
21259 $as_echo "$GSTREAMER_BASE_LIBS" >&6; }
21260 else
21261 GSTREAMER_BASE_CFLAGS=""
21262 GSTREAMER_BASE_LIBS=""
21263 ## If we have a custom action on failure, don't print errors, but
21264 ## do set a variable so people can do so.
21265 GSTREAMER_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
21266 echo $GSTREAMER_BASE_PKG_ERRORS
21271 else
21272 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21273 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21277 if test $succeeded = yes; then
21279 else
21280 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
21287 succeeded=no
21289 if test -z "$PKG_CONFIG"; then
21290 if test -n "$ac_tool_prefix"; then
21291 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21292 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21294 $as_echo_n "checking for $ac_word... " >&6; }
21295 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21296 $as_echo_n "(cached) " >&6
21297 else
21298 case $PKG_CONFIG in
21299 [\\/]* | ?:[\\/]*)
21300 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21304 for as_dir in $PATH
21306 IFS=$as_save_IFS
21307 test -z "$as_dir" && as_dir=.
21308 for ac_exec_ext in '' $ac_executable_extensions; do
21309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21310 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21312 break 2
21314 done
21315 done
21316 IFS=$as_save_IFS
21319 esac
21321 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21322 if test -n "$PKG_CONFIG"; then
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21324 $as_echo "$PKG_CONFIG" >&6; }
21325 else
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21327 $as_echo "no" >&6; }
21332 if test -z "$ac_cv_path_PKG_CONFIG"; then
21333 ac_pt_PKG_CONFIG=$PKG_CONFIG
21334 # Extract the first word of "pkg-config", so it can be a program name with args.
21335 set dummy pkg-config; ac_word=$2
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21337 $as_echo_n "checking for $ac_word... " >&6; }
21338 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
21339 $as_echo_n "(cached) " >&6
21340 else
21341 case $ac_pt_PKG_CONFIG in
21342 [\\/]* | ?:[\\/]*)
21343 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21347 for as_dir in $PATH
21349 IFS=$as_save_IFS
21350 test -z "$as_dir" && as_dir=.
21351 for ac_exec_ext in '' $ac_executable_extensions; do
21352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21353 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21355 break 2
21357 done
21358 done
21359 IFS=$as_save_IFS
21362 esac
21364 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21365 if test -n "$ac_pt_PKG_CONFIG"; then
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21367 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
21368 else
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21370 $as_echo "no" >&6; }
21373 if test "x$ac_pt_PKG_CONFIG" = x; then
21374 PKG_CONFIG="no"
21375 else
21376 case $cross_compiling:$ac_tool_warned in
21377 yes:)
21378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21380 ac_tool_warned=yes ;;
21381 esac
21382 PKG_CONFIG=$ac_pt_PKG_CONFIG
21384 else
21385 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21390 if test "$PKG_CONFIG" = "no" ; then
21391 echo "*** The pkg-config script could not be found. Make sure it is"
21392 echo "*** in your path, or set the PKG_CONFIG environment variable"
21393 echo "*** to the full path to pkg-config."
21394 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21395 else
21396 PKG_CONFIG_MIN_VERSION=0.9.0
21397 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
21399 $as_echo_n "checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
21401 if $PKG_CONFIG --exists "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21403 $as_echo "yes" >&6; }
21404 succeeded=yes
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
21407 $as_echo_n "checking GSTREAMER_PLUGINS_BASE_CFLAGS... " >&6; }
21408 GSTREAMER_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
21410 $as_echo "$GSTREAMER_PLUGINS_BASE_CFLAGS" >&6; }
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_LIBS" >&5
21413 $as_echo_n "checking GSTREAMER_PLUGINS_BASE_LIBS... " >&6; }
21414 GSTREAMER_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_LIBS" >&5
21416 $as_echo "$GSTREAMER_PLUGINS_BASE_LIBS" >&6; }
21417 else
21418 GSTREAMER_PLUGINS_BASE_CFLAGS=""
21419 GSTREAMER_PLUGINS_BASE_LIBS=""
21420 ## If we have a custom action on failure, don't print errors, but
21421 ## do set a variable so people can do so.
21422 GSTREAMER_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
21423 echo $GSTREAMER_PLUGINS_BASE_PKG_ERRORS
21428 else
21429 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21430 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21434 if test $succeeded = yes; then
21436 else
21437 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
21443 GST_PLUGIN_LDFLAGS='-module -avoid-version -Wno-unused-parameter -no-undefined'
21447 succeeded=no
21449 if test -z "$PKG_CONFIG"; then
21450 if test -n "$ac_tool_prefix"; then
21451 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21452 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21454 $as_echo_n "checking for $ac_word... " >&6; }
21455 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21456 $as_echo_n "(cached) " >&6
21457 else
21458 case $PKG_CONFIG in
21459 [\\/]* | ?:[\\/]*)
21460 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21464 for as_dir in $PATH
21466 IFS=$as_save_IFS
21467 test -z "$as_dir" && as_dir=.
21468 for ac_exec_ext in '' $ac_executable_extensions; do
21469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21470 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21472 break 2
21474 done
21475 done
21476 IFS=$as_save_IFS
21479 esac
21481 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21482 if test -n "$PKG_CONFIG"; then
21483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21484 $as_echo "$PKG_CONFIG" >&6; }
21485 else
21486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21487 $as_echo "no" >&6; }
21492 if test -z "$ac_cv_path_PKG_CONFIG"; then
21493 ac_pt_PKG_CONFIG=$PKG_CONFIG
21494 # Extract the first word of "pkg-config", so it can be a program name with args.
21495 set dummy pkg-config; ac_word=$2
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21497 $as_echo_n "checking for $ac_word... " >&6; }
21498 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
21499 $as_echo_n "(cached) " >&6
21500 else
21501 case $ac_pt_PKG_CONFIG in
21502 [\\/]* | ?:[\\/]*)
21503 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21507 for as_dir in $PATH
21509 IFS=$as_save_IFS
21510 test -z "$as_dir" && as_dir=.
21511 for ac_exec_ext in '' $ac_executable_extensions; do
21512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21513 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21515 break 2
21517 done
21518 done
21519 IFS=$as_save_IFS
21522 esac
21524 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21525 if test -n "$ac_pt_PKG_CONFIG"; then
21526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21527 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
21528 else
21529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21530 $as_echo "no" >&6; }
21533 if test "x$ac_pt_PKG_CONFIG" = x; then
21534 PKG_CONFIG="no"
21535 else
21536 case $cross_compiling:$ac_tool_warned in
21537 yes:)
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21540 ac_tool_warned=yes ;;
21541 esac
21542 PKG_CONFIG=$ac_pt_PKG_CONFIG
21544 else
21545 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21550 if test "$PKG_CONFIG" = "no" ; then
21551 echo "*** The pkg-config script could not be found. Make sure it is"
21552 echo "*** in your path, or set the PKG_CONFIG environment variable"
21553 echo "*** to the full path to pkg-config."
21554 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21555 else
21556 PKG_CONFIG_MIN_VERSION=0.9.0
21557 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
21559 $as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
21561 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21563 $as_echo "yes" >&6; }
21564 succeeded=yes
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
21567 $as_echo_n "checking GDK_CFLAGS... " >&6; }
21568 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
21570 $as_echo "$GDK_CFLAGS" >&6; }
21572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
21573 $as_echo_n "checking GDK_LIBS... " >&6; }
21574 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
21576 $as_echo "$GDK_LIBS" >&6; }
21577 else
21578 GDK_CFLAGS=""
21579 GDK_LIBS=""
21580 ## If we have a custom action on failure, don't print errors, but
21581 ## do set a variable so people can do so.
21582 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
21583 echo $GDK_PKG_ERRORS
21588 else
21589 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21590 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21594 if test $succeeded = yes; then
21596 else
21597 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
21603 GSTREAMER_FILE_READER=gnu.javax.sound.sampled.gstreamer.io.GstAudioFileReader
21604 GSTREAMER_MIXER_PROVIDER=gnu.javax.sound.sampled.gstreamer.GStreamerMixerProvider
21609 if test "x${COMPILE_QT_PEER}" = xyes; then
21611 succeeded=no
21613 if test -z "$PKG_CONFIG"; then
21614 if test -n "$ac_tool_prefix"; then
21615 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21616 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21618 $as_echo_n "checking for $ac_word... " >&6; }
21619 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21620 $as_echo_n "(cached) " >&6
21621 else
21622 case $PKG_CONFIG in
21623 [\\/]* | ?:[\\/]*)
21624 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21628 for as_dir in $PATH
21630 IFS=$as_save_IFS
21631 test -z "$as_dir" && as_dir=.
21632 for ac_exec_ext in '' $ac_executable_extensions; do
21633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21634 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21636 break 2
21638 done
21639 done
21640 IFS=$as_save_IFS
21643 esac
21645 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21646 if test -n "$PKG_CONFIG"; then
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21648 $as_echo "$PKG_CONFIG" >&6; }
21649 else
21650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21651 $as_echo "no" >&6; }
21656 if test -z "$ac_cv_path_PKG_CONFIG"; then
21657 ac_pt_PKG_CONFIG=$PKG_CONFIG
21658 # Extract the first word of "pkg-config", so it can be a program name with args.
21659 set dummy pkg-config; ac_word=$2
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21661 $as_echo_n "checking for $ac_word... " >&6; }
21662 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
21663 $as_echo_n "(cached) " >&6
21664 else
21665 case $ac_pt_PKG_CONFIG in
21666 [\\/]* | ?:[\\/]*)
21667 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
21670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21671 for as_dir in $PATH
21673 IFS=$as_save_IFS
21674 test -z "$as_dir" && as_dir=.
21675 for ac_exec_ext in '' $ac_executable_extensions; do
21676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21677 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21679 break 2
21681 done
21682 done
21683 IFS=$as_save_IFS
21686 esac
21688 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
21689 if test -n "$ac_pt_PKG_CONFIG"; then
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
21691 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
21692 else
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21694 $as_echo "no" >&6; }
21697 if test "x$ac_pt_PKG_CONFIG" = x; then
21698 PKG_CONFIG="no"
21699 else
21700 case $cross_compiling:$ac_tool_warned in
21701 yes:)
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21704 ac_tool_warned=yes ;;
21705 esac
21706 PKG_CONFIG=$ac_pt_PKG_CONFIG
21708 else
21709 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
21714 if test "$PKG_CONFIG" = "no" ; then
21715 echo "*** The pkg-config script could not be found. Make sure it is"
21716 echo "*** in your path, or set the PKG_CONFIG environment variable"
21717 echo "*** to the full path to pkg-config."
21718 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21719 else
21720 PKG_CONFIG_MIN_VERSION=0.9.0
21721 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore QtGui >= 4.1.0" >&5
21723 $as_echo_n "checking for QtCore QtGui >= 4.1.0... " >&6; }
21725 if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21727 $as_echo "yes" >&6; }
21728 succeeded=yes
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_CFLAGS" >&5
21731 $as_echo_n "checking QT_CFLAGS... " >&6; }
21732 QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
21733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CFLAGS" >&5
21734 $as_echo "$QT_CFLAGS" >&6; }
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_LIBS" >&5
21737 $as_echo_n "checking QT_LIBS... " >&6; }
21738 QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LIBS" >&5
21740 $as_echo "$QT_LIBS" >&6; }
21741 else
21742 QT_CFLAGS=""
21743 QT_LIBS=""
21744 ## If we have a custom action on failure, don't print errors, but
21745 ## do set a variable so people can do so.
21746 QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
21752 else
21753 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21754 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21758 if test $succeeded = yes; then
21759 HAVE_QT4="yes"
21760 else
21761 HAVE_QT4="no"
21764 if test "x$HAVE_QT4" = "xyes"; then
21765 QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
21766 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
21767 as_ac_File=`$as_echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
21768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $QT_INCLUDE_DIR/QWidget" >&5
21769 $as_echo_n "checking for $QT_INCLUDE_DIR/QWidget... " >&6; }
21770 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
21771 $as_echo_n "(cached) " >&6
21772 else
21773 test "$cross_compiling" = yes &&
21774 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21775 if test -r "$QT_INCLUDE_DIR/QWidget"; then
21776 eval "$as_ac_File=yes"
21777 else
21778 eval "$as_ac_File=no"
21781 eval ac_res=\$$as_ac_File
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21783 $as_echo "$ac_res" >&6; }
21784 eval as_val=\$$as_ac_File
21785 if test "x$as_val" = x""yes; then :
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: No extra QT_INCLUDE_DIR needed" >&5
21787 $as_echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
21788 else
21789 as_ac_File=`$as_echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
21791 $as_echo_n "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... " >&6; }
21792 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
21793 $as_echo_n "(cached) " >&6
21794 else
21795 test "$cross_compiling" = yes &&
21796 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21797 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
21798 eval "$as_ac_File=yes"
21799 else
21800 eval "$as_ac_File=no"
21803 eval ac_res=\$$as_ac_File
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21805 $as_echo "$ac_res" >&6; }
21806 eval as_val=\$$as_ac_File
21807 if test "x$as_val" = x""yes; then :
21808 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
21809 else
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: QWidget not found" >&5
21811 $as_echo "$as_me: WARNING: QWidget not found" >&2;}
21816 # Extract the first word of "moc", so it can be a program name with args.
21817 set dummy moc; ac_word=$2
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21819 $as_echo_n "checking for $ac_word... " >&6; }
21820 if test "${ac_cv_prog_MOC+set}" = set; then :
21821 $as_echo_n "(cached) " >&6
21822 else
21823 if test -n "$MOC"; then
21824 ac_cv_prog_MOC="$MOC" # Let the user override the test.
21825 else
21826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21827 for as_dir in $PATH
21829 IFS=$as_save_IFS
21830 test -z "$as_dir" && as_dir=.
21831 for ac_exec_ext in '' $ac_executable_extensions; do
21832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21833 ac_cv_prog_MOC="moc"
21834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21835 break 2
21837 done
21838 done
21839 IFS=$as_save_IFS
21843 MOC=$ac_cv_prog_MOC
21844 if test -n "$MOC"; then
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
21846 $as_echo "$MOC" >&6; }
21847 else
21848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21849 $as_echo "no" >&6; }
21853 # Extract the first word of "moc-qt4", so it can be a program name with args.
21854 set dummy moc-qt4; ac_word=$2
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21856 $as_echo_n "checking for $ac_word... " >&6; }
21857 if test "${ac_cv_prog_MOC4+set}" = set; then :
21858 $as_echo_n "(cached) " >&6
21859 else
21860 if test -n "$MOC4"; then
21861 ac_cv_prog_MOC4="$MOC4" # Let the user override the test.
21862 else
21863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21864 for as_dir in $PATH
21866 IFS=$as_save_IFS
21867 test -z "$as_dir" && as_dir=.
21868 for ac_exec_ext in '' $ac_executable_extensions; do
21869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21870 ac_cv_prog_MOC4="moc-qt4"
21871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21872 break 2
21874 done
21875 done
21876 IFS=$as_save_IFS
21880 MOC4=$ac_cv_prog_MOC4
21881 if test -n "$MOC4"; then
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC4" >&5
21883 $as_echo "$MOC4" >&6; }
21884 else
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21886 $as_echo "no" >&6; }
21890 if test x"$MOC4" != x ; then
21891 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $MOC4 as moc" >&5
21892 $as_echo "$as_me: Using $MOC4 as moc" >&6;}
21893 MOC=$MOC4;
21896 if test "x$HAVE_QT4" = "xno"; then
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
21898 $as_echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
21899 case "$host_os" in
21900 darwin*)
21902 # Check whether --with-qt4dir was given.
21903 if test "${with_qt4dir+set}" = set; then :
21904 withval=$with_qt4dir; QT4DIR=$withval
21908 if test x"$QT4DIR" = x ; then
21909 as_fn_error "*** No path for Qt4 --with-qt4dir option given" "$LINENO" 5
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: QT4DIR... $QT4DIR" >&5
21912 $as_echo "QT4DIR... $QT4DIR" >&6; }
21913 # Extract the first word of "moc", so it can be a program name with args.
21914 set dummy moc; ac_word=$2
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21916 $as_echo_n "checking for $ac_word... " >&6; }
21917 if test "${ac_cv_prog_MOC+set}" = set; then :
21918 $as_echo_n "(cached) " >&6
21919 else
21920 if test -n "$MOC"; then
21921 ac_cv_prog_MOC="$MOC" # Let the user override the test.
21922 else
21923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21924 for as_dir in $QT4DIR/bin
21926 IFS=$as_save_IFS
21927 test -z "$as_dir" && as_dir=.
21928 for ac_exec_ext in '' $ac_executable_extensions; do
21929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21930 ac_cv_prog_MOC="$QT4DIR/bin/moc"
21931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21932 break 2
21934 done
21935 done
21936 IFS=$as_save_IFS
21940 MOC=$ac_cv_prog_MOC
21941 if test -n "$MOC"; then
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
21943 $as_echo "$MOC" >&6; }
21944 else
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21946 $as_echo "no" >&6; }
21950 if test x"$MOC" = x; then
21951 as_fn_error "*** This is not the right Qt installation" "$LINENO" 5
21953 QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
21954 QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
21955 QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
21956 QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
21959 as_fn_error "*** Please check PKG_CONFIG_PATH or the version
21960 of your installed Qt4 installation." "$LINENO" 5
21962 esac
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: Set QT_CFLAGS... $QT_CFLAGS" >&5
21965 $as_echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
21970 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
21971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21972 /* end confdefs.h. */
21973 #include <sys/socket.h>
21975 main ()
21977 int f = MSG_NOSIGNAL;
21979 return 0;
21981 _ACEOF
21982 if ac_fn_c_try_compile "$LINENO"; then :
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21984 $as_echo "yes" >&6; }
21986 $as_echo "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
21988 else
21989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21990 $as_echo "no" >&6; }
21993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_NOSIGPIPE " >&5
21995 $as_echo_n "checking for SO_NOSIGPIPE ... " >&6; }
21996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21997 /* end confdefs.h. */
21998 #include <sys/socket.h>
22000 main ()
22002 int f = SO_NOSIGPIPE;
22004 return 0;
22006 _ACEOF
22007 if ac_fn_c_try_compile "$LINENO"; then :
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22009 $as_echo "yes" >&6; }
22011 $as_echo "#define HAVE_SO_NOSIGPIPE 1" >>confdefs.h
22013 else
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22015 $as_echo "no" >&6; }
22018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_WAITALL" >&5
22020 $as_echo_n "checking for MSG_WAITALL... " >&6; }
22021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22022 /* end confdefs.h. */
22023 #include <sys/socket.h>
22025 main ()
22027 int f = MSG_WAITALL;
22029 return 0;
22031 _ACEOF
22032 if ac_fn_c_try_compile "$LINENO"; then :
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22034 $as_echo "yes" >&6; }
22036 $as_echo "#define HAVE_MSG_WAITALL 1" >>confdefs.h
22038 else
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22040 $as_echo "no" >&6; }
22043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22045 if test "x${COMPILE_PLUGIN}" = xyes; then
22047 succeeded=no
22049 if test -z "$PKG_CONFIG"; then
22050 if test -n "$ac_tool_prefix"; then
22051 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22052 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22054 $as_echo_n "checking for $ac_word... " >&6; }
22055 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22056 $as_echo_n "(cached) " >&6
22057 else
22058 case $PKG_CONFIG in
22059 [\\/]* | ?:[\\/]*)
22060 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22064 for as_dir in $PATH
22066 IFS=$as_save_IFS
22067 test -z "$as_dir" && as_dir=.
22068 for ac_exec_ext in '' $ac_executable_extensions; do
22069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22070 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22072 break 2
22074 done
22075 done
22076 IFS=$as_save_IFS
22079 esac
22081 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22082 if test -n "$PKG_CONFIG"; then
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22084 $as_echo "$PKG_CONFIG" >&6; }
22085 else
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22087 $as_echo "no" >&6; }
22092 if test -z "$ac_cv_path_PKG_CONFIG"; then
22093 ac_pt_PKG_CONFIG=$PKG_CONFIG
22094 # Extract the first word of "pkg-config", so it can be a program name with args.
22095 set dummy pkg-config; ac_word=$2
22096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22097 $as_echo_n "checking for $ac_word... " >&6; }
22098 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
22099 $as_echo_n "(cached) " >&6
22100 else
22101 case $ac_pt_PKG_CONFIG in
22102 [\\/]* | ?:[\\/]*)
22103 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22107 for as_dir in $PATH
22109 IFS=$as_save_IFS
22110 test -z "$as_dir" && as_dir=.
22111 for ac_exec_ext in '' $ac_executable_extensions; do
22112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22113 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22115 break 2
22117 done
22118 done
22119 IFS=$as_save_IFS
22122 esac
22124 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22125 if test -n "$ac_pt_PKG_CONFIG"; then
22126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22127 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
22128 else
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22130 $as_echo "no" >&6; }
22133 if test "x$ac_pt_PKG_CONFIG" = x; then
22134 PKG_CONFIG="no"
22135 else
22136 case $cross_compiling:$ac_tool_warned in
22137 yes:)
22138 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22139 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22140 ac_tool_warned=yes ;;
22141 esac
22142 PKG_CONFIG=$ac_pt_PKG_CONFIG
22144 else
22145 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22150 if test "$PKG_CONFIG" = "no" ; then
22151 echo "*** The pkg-config script could not be found. Make sure it is"
22152 echo "*** in your path, or set the PKG_CONFIG environment variable"
22153 echo "*** to the full path to pkg-config."
22154 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22155 else
22156 PKG_CONFIG_MIN_VERSION=0.9.0
22157 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin libxul-unstable" >&5
22159 $as_echo_n "checking for mozilla-plugin libxul-unstable... " >&6; }
22161 if $PKG_CONFIG --exists "mozilla-plugin libxul-unstable" ; then
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22163 $as_echo "yes" >&6; }
22164 succeeded=yes
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
22167 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
22168 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin libxul-unstable"`
22169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
22170 $as_echo "$MOZILLA_CFLAGS" >&6; }
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
22173 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
22174 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin libxul-unstable"`
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
22176 $as_echo "$MOZILLA_LIBS" >&6; }
22177 else
22178 MOZILLA_CFLAGS=""
22179 MOZILLA_LIBS=""
22180 ## If we have a custom action on failure, don't print errors, but
22181 ## do set a variable so people can do so.
22182 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin libxul-unstable"`
22188 else
22189 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22190 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22194 if test $succeeded = yes; then
22195 MOZILLA_FOUND=yes
22196 else
22197 MOZILLA_FOUND=no
22200 if test "x${MOZILLA_FOUND}" = xno; then
22202 succeeded=no
22204 if test -z "$PKG_CONFIG"; then
22205 if test -n "$ac_tool_prefix"; then
22206 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22207 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22209 $as_echo_n "checking for $ac_word... " >&6; }
22210 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22211 $as_echo_n "(cached) " >&6
22212 else
22213 case $PKG_CONFIG in
22214 [\\/]* | ?:[\\/]*)
22215 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22219 for as_dir in $PATH
22221 IFS=$as_save_IFS
22222 test -z "$as_dir" && as_dir=.
22223 for ac_exec_ext in '' $ac_executable_extensions; do
22224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22225 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22227 break 2
22229 done
22230 done
22231 IFS=$as_save_IFS
22234 esac
22236 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22237 if test -n "$PKG_CONFIG"; then
22238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22239 $as_echo "$PKG_CONFIG" >&6; }
22240 else
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22242 $as_echo "no" >&6; }
22247 if test -z "$ac_cv_path_PKG_CONFIG"; then
22248 ac_pt_PKG_CONFIG=$PKG_CONFIG
22249 # Extract the first word of "pkg-config", so it can be a program name with args.
22250 set dummy pkg-config; ac_word=$2
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22252 $as_echo_n "checking for $ac_word... " >&6; }
22253 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
22254 $as_echo_n "(cached) " >&6
22255 else
22256 case $ac_pt_PKG_CONFIG in
22257 [\\/]* | ?:[\\/]*)
22258 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22262 for as_dir in $PATH
22264 IFS=$as_save_IFS
22265 test -z "$as_dir" && as_dir=.
22266 for ac_exec_ext in '' $ac_executable_extensions; do
22267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22268 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22270 break 2
22272 done
22273 done
22274 IFS=$as_save_IFS
22277 esac
22279 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22280 if test -n "$ac_pt_PKG_CONFIG"; then
22281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22282 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
22283 else
22284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22285 $as_echo "no" >&6; }
22288 if test "x$ac_pt_PKG_CONFIG" = x; then
22289 PKG_CONFIG="no"
22290 else
22291 case $cross_compiling:$ac_tool_warned in
22292 yes:)
22293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22295 ac_tool_warned=yes ;;
22296 esac
22297 PKG_CONFIG=$ac_pt_PKG_CONFIG
22299 else
22300 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22305 if test "$PKG_CONFIG" = "no" ; then
22306 echo "*** The pkg-config script could not be found. Make sure it is"
22307 echo "*** in your path, or set the PKG_CONFIG environment variable"
22308 echo "*** to the full path to pkg-config."
22309 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22310 else
22311 PKG_CONFIG_MIN_VERSION=0.9.0
22312 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin" >&5
22314 $as_echo_n "checking for mozilla-plugin... " >&6; }
22316 if $PKG_CONFIG --exists "mozilla-plugin" ; then
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22318 $as_echo "yes" >&6; }
22319 succeeded=yes
22321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
22322 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
22323 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
22325 $as_echo "$MOZILLA_CFLAGS" >&6; }
22327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
22328 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
22329 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
22331 $as_echo "$MOZILLA_LIBS" >&6; }
22332 else
22333 MOZILLA_CFLAGS=""
22334 MOZILLA_LIBS=""
22335 ## If we have a custom action on failure, don't print errors, but
22336 ## do set a variable so people can do so.
22337 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
22343 else
22344 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22345 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22349 if test $succeeded = yes; then
22350 MOZILLA_FOUND=yes
22351 else
22352 MOZILLA_FOUND=no
22356 if test "x${MOZILLA_FOUND}" = xno; then
22358 succeeded=no
22360 if test -z "$PKG_CONFIG"; then
22361 if test -n "$ac_tool_prefix"; then
22362 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22363 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22365 $as_echo_n "checking for $ac_word... " >&6; }
22366 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22367 $as_echo_n "(cached) " >&6
22368 else
22369 case $PKG_CONFIG in
22370 [\\/]* | ?:[\\/]*)
22371 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22375 for as_dir in $PATH
22377 IFS=$as_save_IFS
22378 test -z "$as_dir" && as_dir=.
22379 for ac_exec_ext in '' $ac_executable_extensions; do
22380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22381 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22383 break 2
22385 done
22386 done
22387 IFS=$as_save_IFS
22390 esac
22392 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22393 if test -n "$PKG_CONFIG"; then
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22395 $as_echo "$PKG_CONFIG" >&6; }
22396 else
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22398 $as_echo "no" >&6; }
22403 if test -z "$ac_cv_path_PKG_CONFIG"; then
22404 ac_pt_PKG_CONFIG=$PKG_CONFIG
22405 # Extract the first word of "pkg-config", so it can be a program name with args.
22406 set dummy pkg-config; ac_word=$2
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22408 $as_echo_n "checking for $ac_word... " >&6; }
22409 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
22410 $as_echo_n "(cached) " >&6
22411 else
22412 case $ac_pt_PKG_CONFIG in
22413 [\\/]* | ?:[\\/]*)
22414 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22418 for as_dir in $PATH
22420 IFS=$as_save_IFS
22421 test -z "$as_dir" && as_dir=.
22422 for ac_exec_ext in '' $ac_executable_extensions; do
22423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22424 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22426 break 2
22428 done
22429 done
22430 IFS=$as_save_IFS
22433 esac
22435 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22436 if test -n "$ac_pt_PKG_CONFIG"; then
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22438 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
22439 else
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22441 $as_echo "no" >&6; }
22444 if test "x$ac_pt_PKG_CONFIG" = x; then
22445 PKG_CONFIG="no"
22446 else
22447 case $cross_compiling:$ac_tool_warned in
22448 yes:)
22449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22451 ac_tool_warned=yes ;;
22452 esac
22453 PKG_CONFIG=$ac_pt_PKG_CONFIG
22455 else
22456 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22461 if test "$PKG_CONFIG" = "no" ; then
22462 echo "*** The pkg-config script could not be found. Make sure it is"
22463 echo "*** in your path, or set the PKG_CONFIG environment variable"
22464 echo "*** to the full path to pkg-config."
22465 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22466 else
22467 PKG_CONFIG_MIN_VERSION=0.9.0
22468 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for firefox-plugin firefox-xpcom" >&5
22470 $as_echo_n "checking for firefox-plugin firefox-xpcom... " >&6; }
22472 if $PKG_CONFIG --exists "firefox-plugin firefox-xpcom" ; then
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22474 $as_echo "yes" >&6; }
22475 succeeded=yes
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
22478 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
22479 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin firefox-xpcom"`
22480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
22481 $as_echo "$MOZILLA_CFLAGS" >&6; }
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
22484 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
22485 MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin firefox-xpcom"`
22486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
22487 $as_echo "$MOZILLA_LIBS" >&6; }
22488 else
22489 MOZILLA_CFLAGS=""
22490 MOZILLA_LIBS=""
22491 ## If we have a custom action on failure, don't print errors, but
22492 ## do set a variable so people can do so.
22493 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin firefox-xpcom"`
22499 else
22500 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22501 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22505 if test $succeeded = yes; then
22506 MOZILLA_FOUND=yes
22507 else
22508 MOZILLA_FOUND=no
22512 if test "x${MOZILLA_FOUND}" = xno; then
22514 succeeded=no
22516 if test -z "$PKG_CONFIG"; then
22517 if test -n "$ac_tool_prefix"; then
22518 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22519 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22521 $as_echo_n "checking for $ac_word... " >&6; }
22522 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22523 $as_echo_n "(cached) " >&6
22524 else
22525 case $PKG_CONFIG in
22526 [\\/]* | ?:[\\/]*)
22527 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22531 for as_dir in $PATH
22533 IFS=$as_save_IFS
22534 test -z "$as_dir" && as_dir=.
22535 for ac_exec_ext in '' $ac_executable_extensions; do
22536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22537 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22539 break 2
22541 done
22542 done
22543 IFS=$as_save_IFS
22546 esac
22548 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22549 if test -n "$PKG_CONFIG"; then
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22551 $as_echo "$PKG_CONFIG" >&6; }
22552 else
22553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22554 $as_echo "no" >&6; }
22559 if test -z "$ac_cv_path_PKG_CONFIG"; then
22560 ac_pt_PKG_CONFIG=$PKG_CONFIG
22561 # Extract the first word of "pkg-config", so it can be a program name with args.
22562 set dummy pkg-config; ac_word=$2
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22564 $as_echo_n "checking for $ac_word... " >&6; }
22565 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
22566 $as_echo_n "(cached) " >&6
22567 else
22568 case $ac_pt_PKG_CONFIG in
22569 [\\/]* | ?:[\\/]*)
22570 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22574 for as_dir in $PATH
22576 IFS=$as_save_IFS
22577 test -z "$as_dir" && as_dir=.
22578 for ac_exec_ext in '' $ac_executable_extensions; do
22579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22580 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22582 break 2
22584 done
22585 done
22586 IFS=$as_save_IFS
22589 esac
22591 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22592 if test -n "$ac_pt_PKG_CONFIG"; then
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22594 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
22595 else
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22597 $as_echo "no" >&6; }
22600 if test "x$ac_pt_PKG_CONFIG" = x; then
22601 PKG_CONFIG="no"
22602 else
22603 case $cross_compiling:$ac_tool_warned in
22604 yes:)
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22607 ac_tool_warned=yes ;;
22608 esac
22609 PKG_CONFIG=$ac_pt_PKG_CONFIG
22611 else
22612 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22617 if test "$PKG_CONFIG" = "no" ; then
22618 echo "*** The pkg-config script could not be found. Make sure it is"
22619 echo "*** in your path, or set the PKG_CONFIG environment variable"
22620 echo "*** to the full path to pkg-config."
22621 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22622 else
22623 PKG_CONFIG_MIN_VERSION=0.9.0
22624 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xulrunner-plugin xulrunner-xpcom" >&5
22626 $as_echo_n "checking for xulrunner-plugin xulrunner-xpcom... " >&6; }
22628 if $PKG_CONFIG --exists "xulrunner-plugin xulrunner-xpcom" ; then
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22630 $as_echo "yes" >&6; }
22631 succeeded=yes
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
22634 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
22635 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin xulrunner-xpcom"`
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
22637 $as_echo "$MOZILLA_CFLAGS" >&6; }
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
22640 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
22641 MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin xulrunner-xpcom"`
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
22643 $as_echo "$MOZILLA_LIBS" >&6; }
22644 else
22645 MOZILLA_CFLAGS=""
22646 MOZILLA_LIBS=""
22647 ## If we have a custom action on failure, don't print errors, but
22648 ## do set a variable so people can do so.
22649 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin xulrunner-xpcom"`
22655 else
22656 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22657 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22661 if test $succeeded = yes; then
22662 MOZILLA_FOUND=yes
22663 else
22664 MOZILLA_FOUND=no
22668 if test "x${MOZILLA_FOUND}" = xno; then
22670 succeeded=no
22672 if test -z "$PKG_CONFIG"; then
22673 if test -n "$ac_tool_prefix"; then
22674 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22675 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22677 $as_echo_n "checking for $ac_word... " >&6; }
22678 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22679 $as_echo_n "(cached) " >&6
22680 else
22681 case $PKG_CONFIG in
22682 [\\/]* | ?:[\\/]*)
22683 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22687 for as_dir in $PATH
22689 IFS=$as_save_IFS
22690 test -z "$as_dir" && as_dir=.
22691 for ac_exec_ext in '' $ac_executable_extensions; do
22692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22693 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22695 break 2
22697 done
22698 done
22699 IFS=$as_save_IFS
22702 esac
22704 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22705 if test -n "$PKG_CONFIG"; then
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22707 $as_echo "$PKG_CONFIG" >&6; }
22708 else
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22710 $as_echo "no" >&6; }
22715 if test -z "$ac_cv_path_PKG_CONFIG"; then
22716 ac_pt_PKG_CONFIG=$PKG_CONFIG
22717 # Extract the first word of "pkg-config", so it can be a program name with args.
22718 set dummy pkg-config; ac_word=$2
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22720 $as_echo_n "checking for $ac_word... " >&6; }
22721 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
22722 $as_echo_n "(cached) " >&6
22723 else
22724 case $ac_pt_PKG_CONFIG in
22725 [\\/]* | ?:[\\/]*)
22726 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22730 for as_dir in $PATH
22732 IFS=$as_save_IFS
22733 test -z "$as_dir" && as_dir=.
22734 for ac_exec_ext in '' $ac_executable_extensions; do
22735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22736 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22738 break 2
22740 done
22741 done
22742 IFS=$as_save_IFS
22745 esac
22747 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22748 if test -n "$ac_pt_PKG_CONFIG"; then
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22750 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
22751 else
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22753 $as_echo "no" >&6; }
22756 if test "x$ac_pt_PKG_CONFIG" = x; then
22757 PKG_CONFIG="no"
22758 else
22759 case $cross_compiling:$ac_tool_warned in
22760 yes:)
22761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22762 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22763 ac_tool_warned=yes ;;
22764 esac
22765 PKG_CONFIG=$ac_pt_PKG_CONFIG
22767 else
22768 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22773 if test "$PKG_CONFIG" = "no" ; then
22774 echo "*** The pkg-config script could not be found. Make sure it is"
22775 echo "*** in your path, or set the PKG_CONFIG environment variable"
22776 echo "*** to the full path to pkg-config."
22777 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22778 else
22779 PKG_CONFIG_MIN_VERSION=0.9.0
22780 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-firefox-plugin mozilla-firefox-xpcom" >&5
22782 $as_echo_n "checking for mozilla-firefox-plugin mozilla-firefox-xpcom... " >&6; }
22784 if $PKG_CONFIG --exists "mozilla-firefox-plugin mozilla-firefox-xpcom" ; then
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22786 $as_echo "yes" >&6; }
22787 succeeded=yes
22789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
22790 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
22791 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin mozilla-firefox-xpcom"`
22792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
22793 $as_echo "$MOZILLA_CFLAGS" >&6; }
22795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
22796 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
22797 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin mozilla-firefox-xpcom"`
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
22799 $as_echo "$MOZILLA_LIBS" >&6; }
22800 else
22801 MOZILLA_CFLAGS=""
22802 MOZILLA_LIBS=""
22803 ## If we have a custom action on failure, don't print errors, but
22804 ## do set a variable so people can do so.
22805 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin mozilla-firefox-xpcom"`
22811 else
22812 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22813 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22817 if test $succeeded = yes; then
22818 MOZILLA_FOUND=yes
22819 else
22820 MOZILLA_FOUND=no
22824 if test "x${MOZILLA_FOUND}" = xno; then
22826 succeeded=no
22828 if test -z "$PKG_CONFIG"; then
22829 if test -n "$ac_tool_prefix"; then
22830 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22831 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22833 $as_echo_n "checking for $ac_word... " >&6; }
22834 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22835 $as_echo_n "(cached) " >&6
22836 else
22837 case $PKG_CONFIG in
22838 [\\/]* | ?:[\\/]*)
22839 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22843 for as_dir in $PATH
22845 IFS=$as_save_IFS
22846 test -z "$as_dir" && as_dir=.
22847 for ac_exec_ext in '' $ac_executable_extensions; do
22848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22849 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22851 break 2
22853 done
22854 done
22855 IFS=$as_save_IFS
22858 esac
22860 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22861 if test -n "$PKG_CONFIG"; then
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22863 $as_echo "$PKG_CONFIG" >&6; }
22864 else
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22866 $as_echo "no" >&6; }
22871 if test -z "$ac_cv_path_PKG_CONFIG"; then
22872 ac_pt_PKG_CONFIG=$PKG_CONFIG
22873 # Extract the first word of "pkg-config", so it can be a program name with args.
22874 set dummy pkg-config; ac_word=$2
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22876 $as_echo_n "checking for $ac_word... " >&6; }
22877 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
22878 $as_echo_n "(cached) " >&6
22879 else
22880 case $ac_pt_PKG_CONFIG in
22881 [\\/]* | ?:[\\/]*)
22882 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22886 for as_dir in $PATH
22888 IFS=$as_save_IFS
22889 test -z "$as_dir" && as_dir=.
22890 for ac_exec_ext in '' $ac_executable_extensions; do
22891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22892 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22894 break 2
22896 done
22897 done
22898 IFS=$as_save_IFS
22901 esac
22903 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22904 if test -n "$ac_pt_PKG_CONFIG"; then
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22906 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
22907 else
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22909 $as_echo "no" >&6; }
22912 if test "x$ac_pt_PKG_CONFIG" = x; then
22913 PKG_CONFIG="no"
22914 else
22915 case $cross_compiling:$ac_tool_warned in
22916 yes:)
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22918 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22919 ac_tool_warned=yes ;;
22920 esac
22921 PKG_CONFIG=$ac_pt_PKG_CONFIG
22923 else
22924 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22929 if test "$PKG_CONFIG" = "no" ; then
22930 echo "*** The pkg-config script could not be found. Make sure it is"
22931 echo "*** in your path, or set the PKG_CONFIG environment variable"
22932 echo "*** to the full path to pkg-config."
22933 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22934 else
22935 PKG_CONFIG_MIN_VERSION=0.9.0
22936 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seamonkey-plugin seamonkey-xpcom" >&5
22938 $as_echo_n "checking for seamonkey-plugin seamonkey-xpcom... " >&6; }
22940 if $PKG_CONFIG --exists "seamonkey-plugin seamonkey-xpcom" ; then
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22942 $as_echo "yes" >&6; }
22943 succeeded=yes
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
22946 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
22947 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-plugin seamonkey-xpcom"`
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
22949 $as_echo "$MOZILLA_CFLAGS" >&6; }
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
22952 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
22953 MOZILLA_LIBS=`$PKG_CONFIG --libs "seamonkey-plugin seamonkey-xpcom"`
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
22955 $as_echo "$MOZILLA_LIBS" >&6; }
22956 else
22957 MOZILLA_CFLAGS=""
22958 MOZILLA_LIBS=""
22959 ## If we have a custom action on failure, don't print errors, but
22960 ## do set a variable so people can do so.
22961 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "seamonkey-plugin seamonkey-xpcom"`
22967 else
22968 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22969 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22973 if test $succeeded = yes; then
22974 MOZILLA_FOUND=yes
22975 else
22976 MOZILLA_FOUND=no
22980 if test "x${MOZILLA_FOUND}" = xno; then
22982 succeeded=no
22984 if test -z "$PKG_CONFIG"; then
22985 if test -n "$ac_tool_prefix"; then
22986 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22987 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22989 $as_echo_n "checking for $ac_word... " >&6; }
22990 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22991 $as_echo_n "(cached) " >&6
22992 else
22993 case $PKG_CONFIG in
22994 [\\/]* | ?:[\\/]*)
22995 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22999 for as_dir in $PATH
23001 IFS=$as_save_IFS
23002 test -z "$as_dir" && as_dir=.
23003 for ac_exec_ext in '' $ac_executable_extensions; do
23004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23005 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23007 break 2
23009 done
23010 done
23011 IFS=$as_save_IFS
23014 esac
23016 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23017 if test -n "$PKG_CONFIG"; then
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23019 $as_echo "$PKG_CONFIG" >&6; }
23020 else
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23022 $as_echo "no" >&6; }
23027 if test -z "$ac_cv_path_PKG_CONFIG"; then
23028 ac_pt_PKG_CONFIG=$PKG_CONFIG
23029 # Extract the first word of "pkg-config", so it can be a program name with args.
23030 set dummy pkg-config; ac_word=$2
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23032 $as_echo_n "checking for $ac_word... " >&6; }
23033 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
23034 $as_echo_n "(cached) " >&6
23035 else
23036 case $ac_pt_PKG_CONFIG in
23037 [\\/]* | ?:[\\/]*)
23038 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23042 for as_dir in $PATH
23044 IFS=$as_save_IFS
23045 test -z "$as_dir" && as_dir=.
23046 for ac_exec_ext in '' $ac_executable_extensions; do
23047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23048 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23050 break 2
23052 done
23053 done
23054 IFS=$as_save_IFS
23057 esac
23059 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23060 if test -n "$ac_pt_PKG_CONFIG"; then
23061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23062 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
23063 else
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23065 $as_echo "no" >&6; }
23068 if test "x$ac_pt_PKG_CONFIG" = x; then
23069 PKG_CONFIG="no"
23070 else
23071 case $cross_compiling:$ac_tool_warned in
23072 yes:)
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23075 ac_tool_warned=yes ;;
23076 esac
23077 PKG_CONFIG=$ac_pt_PKG_CONFIG
23079 else
23080 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23085 if test "$PKG_CONFIG" = "no" ; then
23086 echo "*** The pkg-config script could not be found. Make sure it is"
23087 echo "*** in your path, or set the PKG_CONFIG environment variable"
23088 echo "*** to the full path to pkg-config."
23089 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23090 else
23091 PKG_CONFIG_MIN_VERSION=0.9.0
23092 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iceape-plugin iceape-xpcom" >&5
23094 $as_echo_n "checking for iceape-plugin iceape-xpcom... " >&6; }
23096 if $PKG_CONFIG --exists "iceape-plugin iceape-xpcom" ; then
23097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23098 $as_echo "yes" >&6; }
23099 succeeded=yes
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
23102 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
23103 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "iceape-plugin iceape-xpcom"`
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
23105 $as_echo "$MOZILLA_CFLAGS" >&6; }
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
23108 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
23109 MOZILLA_LIBS=`$PKG_CONFIG --libs "iceape-plugin iceape-xpcom"`
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
23111 $as_echo "$MOZILLA_LIBS" >&6; }
23112 else
23113 MOZILLA_CFLAGS=""
23114 MOZILLA_LIBS=""
23115 ## If we have a custom action on failure, don't print errors, but
23116 ## do set a variable so people can do so.
23117 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "iceape-plugin iceape-xpcom"`
23123 else
23124 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23125 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23129 if test $succeeded = yes; then
23130 MOZILLA_FOUND=yes
23131 else
23132 MOZILLA_FOUND=no
23136 if test "x${MOZILLA_FOUND}" = xno; then
23137 as_fn_error "Couldn't find plugin support headers and libraries, try --disable-plugin" "$LINENO" 5
23141 succeeded=no
23143 if test -z "$PKG_CONFIG"; then
23144 if test -n "$ac_tool_prefix"; then
23145 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23146 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23148 $as_echo_n "checking for $ac_word... " >&6; }
23149 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
23150 $as_echo_n "(cached) " >&6
23151 else
23152 case $PKG_CONFIG in
23153 [\\/]* | ?:[\\/]*)
23154 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23158 for as_dir in $PATH
23160 IFS=$as_save_IFS
23161 test -z "$as_dir" && as_dir=.
23162 for ac_exec_ext in '' $ac_executable_extensions; do
23163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23164 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23166 break 2
23168 done
23169 done
23170 IFS=$as_save_IFS
23173 esac
23175 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23176 if test -n "$PKG_CONFIG"; then
23177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23178 $as_echo "$PKG_CONFIG" >&6; }
23179 else
23180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23181 $as_echo "no" >&6; }
23186 if test -z "$ac_cv_path_PKG_CONFIG"; then
23187 ac_pt_PKG_CONFIG=$PKG_CONFIG
23188 # Extract the first word of "pkg-config", so it can be a program name with args.
23189 set dummy pkg-config; ac_word=$2
23190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23191 $as_echo_n "checking for $ac_word... " >&6; }
23192 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
23193 $as_echo_n "(cached) " >&6
23194 else
23195 case $ac_pt_PKG_CONFIG in
23196 [\\/]* | ?:[\\/]*)
23197 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23201 for as_dir in $PATH
23203 IFS=$as_save_IFS
23204 test -z "$as_dir" && as_dir=.
23205 for ac_exec_ext in '' $ac_executable_extensions; do
23206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23207 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23209 break 2
23211 done
23212 done
23213 IFS=$as_save_IFS
23216 esac
23218 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23219 if test -n "$ac_pt_PKG_CONFIG"; then
23220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23221 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
23222 else
23223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23224 $as_echo "no" >&6; }
23227 if test "x$ac_pt_PKG_CONFIG" = x; then
23228 PKG_CONFIG="no"
23229 else
23230 case $cross_compiling:$ac_tool_warned in
23231 yes:)
23232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23233 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23234 ac_tool_warned=yes ;;
23235 esac
23236 PKG_CONFIG=$ac_pt_PKG_CONFIG
23238 else
23239 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23244 if test "$PKG_CONFIG" = "no" ; then
23245 echo "*** The pkg-config script could not be found. Make sure it is"
23246 echo "*** in your path, or set the PKG_CONFIG environment variable"
23247 echo "*** to the full path to pkg-config."
23248 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23249 else
23250 PKG_CONFIG_MIN_VERSION=0.9.0
23251 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0" >&5
23253 $as_echo_n "checking for glib-2.0... " >&6; }
23255 if $PKG_CONFIG --exists "glib-2.0" ; then
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23257 $as_echo "yes" >&6; }
23258 succeeded=yes
23260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
23261 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
23262 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
23264 $as_echo "$GLIB_CFLAGS" >&6; }
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
23267 $as_echo_n "checking GLIB_LIBS... " >&6; }
23268 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
23269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
23270 $as_echo "$GLIB_LIBS" >&6; }
23271 else
23272 GLIB_CFLAGS=""
23273 GLIB_LIBS=""
23274 ## If we have a custom action on failure, don't print errors, but
23275 ## do set a variable so people can do so.
23276 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
23277 echo $GLIB_PKG_ERRORS
23282 else
23283 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23284 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23288 if test $succeeded = yes; then
23290 else
23291 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
23295 succeeded=no
23297 if test -z "$PKG_CONFIG"; then
23298 if test -n "$ac_tool_prefix"; then
23299 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23300 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23302 $as_echo_n "checking for $ac_word... " >&6; }
23303 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
23304 $as_echo_n "(cached) " >&6
23305 else
23306 case $PKG_CONFIG in
23307 [\\/]* | ?:[\\/]*)
23308 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23312 for as_dir in $PATH
23314 IFS=$as_save_IFS
23315 test -z "$as_dir" && as_dir=.
23316 for ac_exec_ext in '' $ac_executable_extensions; do
23317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23318 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23320 break 2
23322 done
23323 done
23324 IFS=$as_save_IFS
23327 esac
23329 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23330 if test -n "$PKG_CONFIG"; then
23331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23332 $as_echo "$PKG_CONFIG" >&6; }
23333 else
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23335 $as_echo "no" >&6; }
23340 if test -z "$ac_cv_path_PKG_CONFIG"; then
23341 ac_pt_PKG_CONFIG=$PKG_CONFIG
23342 # Extract the first word of "pkg-config", so it can be a program name with args.
23343 set dummy pkg-config; ac_word=$2
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23345 $as_echo_n "checking for $ac_word... " >&6; }
23346 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
23347 $as_echo_n "(cached) " >&6
23348 else
23349 case $ac_pt_PKG_CONFIG in
23350 [\\/]* | ?:[\\/]*)
23351 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
23354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23355 for as_dir in $PATH
23357 IFS=$as_save_IFS
23358 test -z "$as_dir" && as_dir=.
23359 for ac_exec_ext in '' $ac_executable_extensions; do
23360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23361 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23363 break 2
23365 done
23366 done
23367 IFS=$as_save_IFS
23370 esac
23372 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
23373 if test -n "$ac_pt_PKG_CONFIG"; then
23374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
23375 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
23376 else
23377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23378 $as_echo "no" >&6; }
23381 if test "x$ac_pt_PKG_CONFIG" = x; then
23382 PKG_CONFIG="no"
23383 else
23384 case $cross_compiling:$ac_tool_warned in
23385 yes:)
23386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23388 ac_tool_warned=yes ;;
23389 esac
23390 PKG_CONFIG=$ac_pt_PKG_CONFIG
23392 else
23393 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
23398 if test "$PKG_CONFIG" = "no" ; then
23399 echo "*** The pkg-config script could not be found. Make sure it is"
23400 echo "*** in your path, or set the PKG_CONFIG environment variable"
23401 echo "*** to the full path to pkg-config."
23402 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23403 else
23404 PKG_CONFIG_MIN_VERSION=0.9.0
23405 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
23407 $as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
23409 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23411 $as_echo "yes" >&6; }
23412 succeeded=yes
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
23415 $as_echo_n "checking GTK_CFLAGS... " >&6; }
23416 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
23418 $as_echo "$GTK_CFLAGS" >&6; }
23420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
23421 $as_echo_n "checking GTK_LIBS... " >&6; }
23422 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
23423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
23424 $as_echo "$GTK_LIBS" >&6; }
23425 else
23426 GTK_CFLAGS=""
23427 GTK_LIBS=""
23428 ## If we have a custom action on failure, don't print errors, but
23429 ## do set a variable so people can do so.
23430 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
23431 echo $GTK_PKG_ERRORS
23436 else
23437 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23438 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23442 if test $succeeded = yes; then
23444 else
23445 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
23456 PLUGIN_DIR=$HOME/.mozilla/plugins/
23461 # Check whether --with-gmp was given.
23462 if test "${with_gmp+set}" = set; then :
23463 withval=$with_gmp;
23467 # Check whether --with-gmp_include was given.
23468 if test "${with_gmp_include+set}" = set; then :
23469 withval=$with_gmp_include;
23473 # Check whether --with-gmp_lib was given.
23474 if test "${with_gmp_lib+set}" = set; then :
23475 withval=$with_gmp_lib;
23479 if test "x$with_gmp" != x; then
23480 gmplibs=-lgmp
23481 gmpinc=
23482 gmplibs="-L$with_gmp/lib $gmplibs"
23483 gmpinc="-I$with_gmp/include $gmpinc"
23484 if test "x$with_gmp_include" != x; then
23485 gmpinc="-I$with_gmp_include $gmpinc"
23487 if test "x$with_gmp_lib" != x; then
23488 gmplibs="-L$with_gmp_lib $gmplibs"
23490 else
23491 gmplibs="-lgmp"
23492 gmpinc="-I/usr/include"
23495 if test "x${COMPILE_GMP}" = xyes; then
23496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMP directories" >&5
23497 $as_echo_n "checking for GMP directories... " >&6; }
23498 if test "x$with_gmp" != x; then
23499 gmplibs="-L$with_gmp/lib -lgmp"
23500 gmpinc="-I$with_gmp/include"
23501 if test "x$with_gmp_include" != x; then
23502 gmpinc="-I$with_gmp_include $gmpinc"
23504 if test "x$with_gmp_lib" != x; then
23505 gmplibs="-L$with_gmp_lib $gmplibs"
23507 else
23508 with_gmp="/usr"
23509 gmplibs="-lgmp"
23510 gmpinc="-I/usr/include"
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: prefix=$with_gmp, libs=$gmplibs, inc=$gmpinc" >&5
23513 $as_echo "prefix=$with_gmp, libs=$gmplibs, inc=$gmpinc" >&6; }
23514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_mul_si in -lgmp" >&5
23515 $as_echo_n "checking for __gmpz_mul_si in -lgmp... " >&6; }
23516 if test "${ac_cv_lib_gmp___gmpz_mul_si+set}" = set; then :
23517 $as_echo_n "(cached) " >&6
23518 else
23519 ac_check_lib_save_LIBS=$LIBS
23520 LIBS="-lgmp $LIBS"
23521 if test x$gcc_no_link = xyes; then
23522 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23525 /* end confdefs.h. */
23527 /* Override any GCC internal prototype to avoid an error.
23528 Use char because int might match the return type of a GCC
23529 builtin and then its argument prototype would still apply. */
23530 #ifdef __cplusplus
23531 extern "C"
23532 #endif
23533 char __gmpz_mul_si ();
23535 main ()
23537 return __gmpz_mul_si ();
23539 return 0;
23541 _ACEOF
23542 if ac_fn_c_try_link "$LINENO"; then :
23543 ac_cv_lib_gmp___gmpz_mul_si=yes
23544 else
23545 ac_cv_lib_gmp___gmpz_mul_si=no
23547 rm -f core conftest.err conftest.$ac_objext \
23548 conftest$ac_exeext conftest.$ac_ext
23549 LIBS=$ac_check_lib_save_LIBS
23551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_mul_si" >&5
23552 $as_echo "$ac_cv_lib_gmp___gmpz_mul_si" >&6; }
23553 if test "x$ac_cv_lib_gmp___gmpz_mul_si" = x""yes; then :
23554 GMP_CFLAGS="$gmpinc"
23555 GMP_LIBS="$gmplibs"
23556 else
23557 GMP_CFLAGS=
23558 GMP_LIBS=
23564 for ac_header in gmp.h
23565 do :
23566 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
23567 if test "x$ac_cv_header_gmp_h" = x""yes; then :
23568 cat >>confdefs.h <<_ACEOF
23569 #define HAVE_GMP_H 1
23570 _ACEOF
23574 done
23578 else
23579 COMPILE_GMP=no
23582 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
23585 # Check whether --with-javah was given.
23586 if test "${with_javah+set}" = set; then :
23587 withval=$with_javah;
23588 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
23590 if test "x${withval}" != x; then
23591 if test -f "${withval}"; then
23592 USER_JAVAH="${withval}"
23593 else
23594 # Extract the first word of ""${withval}"", so it can be a program name with args.
23595 set dummy "${withval}"; ac_word=$2
23596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23597 $as_echo_n "checking for $ac_word... " >&6; }
23598 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
23599 $as_echo_n "(cached) " >&6
23600 else
23601 case $USER_JAVAH in
23602 [\\/]* | ?:[\\/]*)
23603 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
23606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23607 for as_dir in $PATH
23609 IFS=$as_save_IFS
23610 test -z "$as_dir" && as_dir=.
23611 for ac_exec_ext in '' $ac_executable_extensions; do
23612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23613 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
23614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23615 break 2
23617 done
23618 done
23619 IFS=$as_save_IFS
23622 esac
23624 USER_JAVAH=$ac_cv_path_USER_JAVAH
23625 if test -n "$USER_JAVAH"; then
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
23627 $as_echo "$USER_JAVAH" >&6; }
23628 else
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23630 $as_echo "no" >&6; }
23635 else
23636 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
23638 # Extract the first word of "$ac_prog", so it can be a program name with args.
23639 set dummy $ac_prog; ac_word=$2
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23641 $as_echo_n "checking for $ac_word... " >&6; }
23642 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
23643 $as_echo_n "(cached) " >&6
23644 else
23645 case $USER_JAVAH in
23646 [\\/]* | ?:[\\/]*)
23647 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
23650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23651 for as_dir in $PATH
23653 IFS=$as_save_IFS
23654 test -z "$as_dir" && as_dir=.
23655 for ac_exec_ext in '' $ac_executable_extensions; do
23656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23657 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
23658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23659 break 2
23661 done
23662 done
23663 IFS=$as_save_IFS
23666 esac
23668 USER_JAVAH=$ac_cv_path_USER_JAVAH
23669 if test -n "$USER_JAVAH"; then
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
23671 $as_echo "$USER_JAVAH" >&6; }
23672 else
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23674 $as_echo "no" >&6; }
23678 test -n "$USER_JAVAH" && break
23679 done
23683 if test "x${USER_JAVAH}" = x; then
23684 as_fn_error "can not find javah" "$LINENO" 5
23687 else
23689 if test "x" != x; then
23690 if test -f ""; then
23691 USER_JAVAH=""
23692 else
23693 # Extract the first word of """", so it can be a program name with args.
23694 set dummy ""; ac_word=$2
23695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23696 $as_echo_n "checking for $ac_word... " >&6; }
23697 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
23698 $as_echo_n "(cached) " >&6
23699 else
23700 case $USER_JAVAH in
23701 [\\/]* | ?:[\\/]*)
23702 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
23705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23706 for as_dir in $PATH
23708 IFS=$as_save_IFS
23709 test -z "$as_dir" && as_dir=.
23710 for ac_exec_ext in '' $ac_executable_extensions; do
23711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23712 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
23713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23714 break 2
23716 done
23717 done
23718 IFS=$as_save_IFS
23721 esac
23723 USER_JAVAH=$ac_cv_path_USER_JAVAH
23724 if test -n "$USER_JAVAH"; then
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
23726 $as_echo "$USER_JAVAH" >&6; }
23727 else
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23729 $as_echo "no" >&6; }
23734 else
23735 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
23737 # Extract the first word of "$ac_prog", so it can be a program name with args.
23738 set dummy $ac_prog; ac_word=$2
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23740 $as_echo_n "checking for $ac_word... " >&6; }
23741 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
23742 $as_echo_n "(cached) " >&6
23743 else
23744 case $USER_JAVAH in
23745 [\\/]* | ?:[\\/]*)
23746 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
23749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23750 for as_dir in $PATH
23752 IFS=$as_save_IFS
23753 test -z "$as_dir" && as_dir=.
23754 for ac_exec_ext in '' $ac_executable_extensions; do
23755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23756 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
23757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23758 break 2
23760 done
23761 done
23762 IFS=$as_save_IFS
23765 esac
23767 USER_JAVAH=$ac_cv_path_USER_JAVAH
23768 if test -n "$USER_JAVAH"; then
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
23770 $as_echo "$USER_JAVAH" >&6; }
23771 else
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23773 $as_echo "no" >&6; }
23777 test -n "$USER_JAVAH" && break
23778 done
23782 if test "x${USER_JAVAH}" = x; then
23783 as_fn_error "can not find javah" "$LINENO" 5
23788 else
23791 if test "x" != x; then
23792 if test -f ""; then
23793 USER_JAVAH=""
23794 else
23795 # Extract the first word of """", so it can be a program name with args.
23796 set dummy ""; ac_word=$2
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23798 $as_echo_n "checking for $ac_word... " >&6; }
23799 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
23800 $as_echo_n "(cached) " >&6
23801 else
23802 case $USER_JAVAH in
23803 [\\/]* | ?:[\\/]*)
23804 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
23807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23808 for as_dir in $PATH
23810 IFS=$as_save_IFS
23811 test -z "$as_dir" && as_dir=.
23812 for ac_exec_ext in '' $ac_executable_extensions; do
23813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23814 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
23815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23816 break 2
23818 done
23819 done
23820 IFS=$as_save_IFS
23823 esac
23825 USER_JAVAH=$ac_cv_path_USER_JAVAH
23826 if test -n "$USER_JAVAH"; then
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
23828 $as_echo "$USER_JAVAH" >&6; }
23829 else
23830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23831 $as_echo "no" >&6; }
23836 else
23837 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
23839 # Extract the first word of "$ac_prog", so it can be a program name with args.
23840 set dummy $ac_prog; ac_word=$2
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23842 $as_echo_n "checking for $ac_word... " >&6; }
23843 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
23844 $as_echo_n "(cached) " >&6
23845 else
23846 case $USER_JAVAH in
23847 [\\/]* | ?:[\\/]*)
23848 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
23851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23852 for as_dir in $PATH
23854 IFS=$as_save_IFS
23855 test -z "$as_dir" && as_dir=.
23856 for ac_exec_ext in '' $ac_executable_extensions; do
23857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23858 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
23859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23860 break 2
23862 done
23863 done
23864 IFS=$as_save_IFS
23867 esac
23869 USER_JAVAH=$ac_cv_path_USER_JAVAH
23870 if test -n "$USER_JAVAH"; then
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
23872 $as_echo "$USER_JAVAH" >&6; }
23873 else
23874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23875 $as_echo "no" >&6; }
23879 test -n "$USER_JAVAH" && break
23880 done
23884 if test "x${USER_JAVAH}" = x; then
23885 as_fn_error "can not find javah" "$LINENO" 5
23895 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/jni/native-lib"
23898 if test "x${COMPILE_JNI}" = xyes; then
23899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking jni_md.h support" >&5
23900 $as_echo_n "checking jni_md.h support... " >&6; }
23901 if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
23902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23903 $as_echo "yes" >&6; }
23904 else
23905 target_cpu=x86
23906 target_os=linux-gnu
23907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no" >&5
23908 $as_echo "$as_me: WARNING: no" >&2;}
23910 ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
23911 ac_dests="include/jni_md.h"
23912 while test -n "$ac_sources"; do
23913 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
23914 set $ac_sources; ac_source=$1; shift; ac_sources=$*
23915 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
23916 done
23917 ac_config_links="$ac_config_links $ac_config_links_1"
23923 # Check whether --with-vm-classes was given.
23924 if test "${with_vm_classes+set}" = set; then :
23925 withval=$with_vm_classes; vm_classes="$with_vm_classes"
23926 else
23927 vm_classes='${top_srcdir}/vm/reference'
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
23935 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
23936 # Check whether --enable-maintainer-mode was given.
23937 if test "${enable_maintainer_mode+set}" = set; then :
23938 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
23939 else
23940 USE_MAINTAINER_MODE=no
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
23944 $as_echo "$USE_MAINTAINER_MODE" >&6; }
23945 if test $USE_MAINTAINER_MODE = yes; then
23946 MAINTAINER_MODE_TRUE=
23947 MAINTAINER_MODE_FALSE='#'
23948 else
23949 MAINTAINER_MODE_TRUE='#'
23950 MAINTAINER_MODE_FALSE=
23953 MAINT=$MAINTAINER_MODE_TRUE
23957 # Check whether --enable-debug was given.
23958 if test "${enable_debug+set}" = set; then :
23959 enableval=$enable_debug; case "${enableval}" in
23960 yes)
23961 LIBDEBUG="true"
23963 $as_echo "#define DEBUG 1" >>confdefs.h
23966 no) LIBDEBUG="false" ;;
23967 *) as_fn_error "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
23968 esac
23969 else
23970 LIBDEBUG="false"
23975 # Check whether --enable-load-library was given.
23976 if test "${enable_load_library+set}" = set; then :
23977 enableval=$enable_load_library; case "${enableval}" in
23978 yes) INIT_LOAD_LIBRARY="true" ;;
23979 no) INIT_LOAD_LIBRARY="false" ;;
23980 *) as_fn_error "bad value ${enableval} for --enable-load-library" "$LINENO" 5 ;;
23981 esac
23982 else
23983 INIT_LOAD_LIBRARY="true"
23990 # Check whether --with-ecj-jar was given.
23991 if test "${with_ecj_jar+set}" = set; then :
23992 withval=$with_ecj_jar; ECJ_JAR=$withval
23993 else
23994 if test -f $multi_basedir/ecj.jar; then
23995 ECJ_JAR='$(jardir)/ecj.jar'
24001 # Check whether --enable-java-lang-system-explicit-initialization was given.
24002 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then :
24003 enableval=$enable_java_lang_system_explicit_initialization; case "${enableval}" in
24004 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
24005 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
24006 *) as_fn_error "bad value ${enableval} for --enable-java-lang-system-explicit-initialization" "$LINENO" 5 ;;
24007 esac
24008 else
24009 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
24015 REMOVE=""
24018 # Extract the first word of "mkdir", so it can be a program name with args.
24019 set dummy mkdir; ac_word=$2
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24021 $as_echo_n "checking for $ac_word... " >&6; }
24022 if test "${ac_cv_path_MKDIR+set}" = set; then :
24023 $as_echo_n "(cached) " >&6
24024 else
24025 case $MKDIR in
24026 [\\/]* | ?:[\\/]*)
24027 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
24030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24031 for as_dir in $PATH
24033 IFS=$as_save_IFS
24034 test -z "$as_dir" && as_dir=.
24035 for ac_exec_ext in '' $ac_executable_extensions; do
24036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24037 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
24038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24039 break 2
24041 done
24042 done
24043 IFS=$as_save_IFS
24046 esac
24048 MKDIR=$ac_cv_path_MKDIR
24049 if test -n "$MKDIR"; then
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
24051 $as_echo "$MKDIR" >&6; }
24052 else
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24054 $as_echo "no" >&6; }
24058 # Extract the first word of "cp", so it can be a program name with args.
24059 set dummy cp; ac_word=$2
24060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24061 $as_echo_n "checking for $ac_word... " >&6; }
24062 if test "${ac_cv_path_CP+set}" = set; then :
24063 $as_echo_n "(cached) " >&6
24064 else
24065 case $CP in
24066 [\\/]* | ?:[\\/]*)
24067 ac_cv_path_CP="$CP" # Let the user override the test with a path.
24070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24071 for as_dir in $PATH
24073 IFS=$as_save_IFS
24074 test -z "$as_dir" && as_dir=.
24075 for ac_exec_ext in '' $ac_executable_extensions; do
24076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24077 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
24078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24079 break 2
24081 done
24082 done
24083 IFS=$as_save_IFS
24086 esac
24088 CP=$ac_cv_path_CP
24089 if test -n "$CP"; then
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
24091 $as_echo "$CP" >&6; }
24092 else
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24094 $as_echo "no" >&6; }
24098 # Extract the first word of "date", so it can be a program name with args.
24099 set dummy date; ac_word=$2
24100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24101 $as_echo_n "checking for $ac_word... " >&6; }
24102 if test "${ac_cv_path_DATE+set}" = set; then :
24103 $as_echo_n "(cached) " >&6
24104 else
24105 case $DATE in
24106 [\\/]* | ?:[\\/]*)
24107 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
24110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24111 for as_dir in $PATH
24113 IFS=$as_save_IFS
24114 test -z "$as_dir" && as_dir=.
24115 for ac_exec_ext in '' $ac_executable_extensions; do
24116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24117 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
24118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24119 break 2
24121 done
24122 done
24123 IFS=$as_save_IFS
24126 esac
24128 DATE=$ac_cv_path_DATE
24129 if test -n "$DATE"; then
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
24131 $as_echo "$DATE" >&6; }
24132 else
24133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24134 $as_echo "no" >&6; }
24139 # Extract the first word of "find", so it can be a program name with args.
24140 set dummy find; ac_word=$2
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24142 $as_echo_n "checking for $ac_word... " >&6; }
24143 if test "${ac_cv_path_FIND+set}" = set; then :
24144 $as_echo_n "(cached) " >&6
24145 else
24146 case $FIND in
24147 [\\/]* | ?:[\\/]*)
24148 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
24151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24152 for as_dir in $PATH
24154 IFS=$as_save_IFS
24155 test -z "$as_dir" && as_dir=.
24156 for ac_exec_ext in '' $ac_executable_extensions; do
24157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24158 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
24159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24160 break 2
24162 done
24163 done
24164 IFS=$as_save_IFS
24167 esac
24169 FIND=$ac_cv_path_FIND
24170 if test -n "$FIND"; then
24171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
24172 $as_echo "$FIND" >&6; }
24173 else
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24175 $as_echo "no" >&6; }
24181 # Extract the first word of "zip", so it can be a program name with args.
24182 set dummy zip; ac_word=$2
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24184 $as_echo_n "checking for $ac_word... " >&6; }
24185 if test "${ac_cv_path_ZIP+set}" = set; then :
24186 $as_echo_n "(cached) " >&6
24187 else
24188 case $ZIP in
24189 [\\/]* | ?:[\\/]*)
24190 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
24193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24194 for as_dir in $PATH
24196 IFS=$as_save_IFS
24197 test -z "$as_dir" && as_dir=.
24198 for ac_exec_ext in '' $ac_executable_extensions; do
24199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24200 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
24201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24202 break 2
24204 done
24205 done
24206 IFS=$as_save_IFS
24209 esac
24211 ZIP=$ac_cv_path_ZIP
24212 if test -n "$ZIP"; then
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
24214 $as_echo "$ZIP" >&6; }
24215 else
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24217 $as_echo "no" >&6; }
24222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a jar-like tool" >&5
24223 $as_echo_n "checking for a jar-like tool... " >&6; }
24225 # Check whether --with-jar was given.
24226 if test "${with_jar+set}" = set; then :
24227 withval=$with_jar;
24228 case "${withval}" in
24229 yes)
24230 JAR=yes
24233 JAR=no
24234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
24235 $as_echo "${JAR}" >&6; }
24238 if test -f "${withval}"; then
24239 JAR="${withval}"
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
24241 $as_echo "${JAR}" >&6; }
24242 else
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24244 $as_echo "not found" >&6; }
24245 as_fn_error "The jar tool ${withval} was not found." "$LINENO" 5
24248 esac
24250 else
24252 JAR=yes
24256 if test x"${JAR}" = "xyes"; then
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying fastjar, gjar and jar" >&5
24258 $as_echo "trying fastjar, gjar and jar" >&6; }
24259 for ac_prog in fastjar gjar jar
24261 # Extract the first word of "$ac_prog", so it can be a program name with args.
24262 set dummy $ac_prog; ac_word=$2
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24264 $as_echo_n "checking for $ac_word... " >&6; }
24265 if test "${ac_cv_path_JAR+set}" = set; then :
24266 $as_echo_n "(cached) " >&6
24267 else
24268 case $JAR in
24269 [\\/]* | ?:[\\/]*)
24270 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
24273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24274 for as_dir in $PATH
24276 IFS=$as_save_IFS
24277 test -z "$as_dir" && as_dir=.
24278 for ac_exec_ext in '' $ac_executable_extensions; do
24279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24280 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
24281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24282 break 2
24284 done
24285 done
24286 IFS=$as_save_IFS
24289 esac
24291 JAR=$ac_cv_path_JAR
24292 if test -n "$JAR"; then
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
24294 $as_echo "$JAR" >&6; }
24295 else
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24297 $as_echo "no" >&6; }
24301 test -n "$JAR" && break
24302 done
24304 if test x"${RHINO_JAR}" = "xyes"; then
24305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24306 $as_echo "not found" >&6; }
24309 if test x"${JAR}" = "xno" && test x"${ZIP}" = ""; then
24310 as_fn_error "No zip or jar tool found." "$LINENO" 5
24312 if test x"${JAR}" != "xno" && test x"${JAR}" != "xyes"; then
24313 WITH_JAR_TRUE=
24314 WITH_JAR_FALSE='#'
24315 else
24316 WITH_JAR_TRUE='#'
24317 WITH_JAR_FALSE=
24323 # Check whether --with-glibj was given.
24324 if test "${with_glibj+set}" = set; then :
24325 withval=$with_glibj;
24326 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
24327 install_class_files=no
24328 build_class_files=yes
24329 use_zip=yes
24330 elif test "x${withval}" = xboth; then
24331 install_class_files=yes
24332 build_class_files=yes
24333 use_zip=yes
24334 elif test "x${withval}" = xflat; then
24335 install_class_files=yes
24336 build_class_files=yes
24337 use_zip=no
24338 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
24339 install_class_files=no
24340 build_class_files=no
24341 use_zip=no
24342 elif test "x${withval}" = xbuild; then
24343 install_class_files=no
24344 build_class_files=yes
24345 use_zip=no
24346 else
24347 as_fn_error "unknown value given to --with-glibj" "$LINENO" 5
24350 else
24352 install_class_files=no
24353 use_zip=yes
24357 if test "x${use_zip}" = xyes; then
24358 INSTALL_GLIBJ_ZIP_TRUE=
24359 INSTALL_GLIBJ_ZIP_FALSE='#'
24360 else
24361 INSTALL_GLIBJ_ZIP_TRUE='#'
24362 INSTALL_GLIBJ_ZIP_FALSE=
24365 if test "x${install_class_files}" = xyes; then
24366 INSTALL_CLASS_FILES_TRUE=
24367 INSTALL_CLASS_FILES_FALSE='#'
24368 else
24369 INSTALL_CLASS_FILES_TRUE='#'
24370 INSTALL_CLASS_FILES_FALSE=
24373 if test "x${build_class_files}" = xyes; then
24374 BUILD_CLASS_FILES_TRUE=
24375 BUILD_CLASS_FILES_FALSE='#'
24376 else
24377 BUILD_CLASS_FILES_TRUE='#'
24378 BUILD_CLASS_FILES_FALSE=
24382 # Check whether --enable-examples was given.
24383 if test "${enable_examples+set}" = set; then :
24384 enableval=$enable_examples; case "${enableval}" in
24385 yes) EXAMPLESDIR="examples" ;;
24386 no) EXAMPLESDIR="" ;;
24387 *) as_fn_error "bad value ${enableval} for --enable-examples" "$LINENO" 5 ;;
24388 esac
24389 else
24390 EXAMPLESDIR="examples"
24393 if test "x${build_class_files}" = xno; then
24394 EXAMPLESDIR=""
24398 # Check whether --enable-tools was given.
24399 if test "${enable_tools+set}" = set; then :
24400 enableval=$enable_tools; case "${enableval}" in
24401 yes) TOOLSDIR="tools" ;;
24402 no) TOOLSDIR="" ;;
24403 *) as_fn_error "bad value ${enableval} for --enable-tools" "$LINENO" 5 ;;
24404 esac
24405 else
24406 TOOLSDIR="tools"
24409 if test "x${build_class_files}" = xno; then
24410 TOOLSDIR=""
24417 # Check whether --with-gjdoc was given.
24418 if test "${with_gjdoc+set}" = set; then :
24419 withval=$with_gjdoc; if test "x${withval}" = xno; then
24420 WITH_GJDOC=no;
24421 elif test "x${withval}" = xyes -o "x{withval}" = x; then
24422 WITH_GJDOC=yes;
24423 # Extract the first word of "gjdoc", so it can be a program name with args.
24424 set dummy gjdoc; ac_word=$2
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24426 $as_echo_n "checking for $ac_word... " >&6; }
24427 if test "${ac_cv_path_GJDOC+set}" = set; then :
24428 $as_echo_n "(cached) " >&6
24429 else
24430 case $GJDOC in
24431 [\\/]* | ?:[\\/]*)
24432 ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
24435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24436 for as_dir in $PATH
24438 IFS=$as_save_IFS
24439 test -z "$as_dir" && as_dir=.
24440 for ac_exec_ext in '' $ac_executable_extensions; do
24441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24442 ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
24443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24444 break 2
24446 done
24447 done
24448 IFS=$as_save_IFS
24450 test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
24452 esac
24454 GJDOC=$ac_cv_path_GJDOC
24455 if test -n "$GJDOC"; then
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GJDOC" >&5
24457 $as_echo "$GJDOC" >&6; }
24458 else
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24460 $as_echo "no" >&6; }
24464 if test "x${GJDOC}" = xno; then
24465 as_fn_error "\"gjdoc executable not found\"" "$LINENO" 5;
24467 else
24468 WITH_GJDOC=yes
24469 GJDOC="${withval}"
24470 as_ac_File=`$as_echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
24471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${GJDOC}" >&5
24472 $as_echo_n "checking for ${GJDOC}... " >&6; }
24473 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
24474 $as_echo_n "(cached) " >&6
24475 else
24476 test "$cross_compiling" = yes &&
24477 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
24478 if test -r "${GJDOC}"; then
24479 eval "$as_ac_File=yes"
24480 else
24481 eval "$as_ac_File=no"
24484 eval ac_res=\$$as_ac_File
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24486 $as_echo "$ac_res" >&6; }
24487 eval as_val=\$$as_ac_File
24488 if test "x$as_val" = x""yes; then :
24490 else
24491 as_fn_error "\"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" "$LINENO" 5
24495 else
24496 WITH_GJDOC=no
24499 if test "x${WITH_GJDOC}" = xyes; then
24500 CREATE_API_DOCS_TRUE=
24501 CREATE_API_DOCS_FALSE='#'
24502 else
24503 CREATE_API_DOCS_TRUE='#'
24504 CREATE_API_DOCS_FALSE=
24507 if test "x${WITH_GJDOC}" = xyes; then
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of GJDoc" >&5
24509 $as_echo_n "checking version of GJDoc... " >&6; }
24510 gjdoc_version=$(${GJDOC} --version|cut -d ' ' -f2)
24511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gjdoc_version}" >&5
24512 $as_echo "${gjdoc_version}" >&6; }
24513 case ${gjdoc_version} in
24514 0.7.9) ;;
24515 0.8*) ;;
24516 0.9*) ;;
24517 1*) ;;
24518 *) as_fn_error "Building documentation requires GJDoc >= 0.7.9, ${gjdoc_version} found." "$LINENO" 5 ;;
24519 esac
24525 # Check whether --with-jay was given.
24526 if test "${with_jay+set}" = set; then :
24527 withval=$with_jay;
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
24529 $as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
24530 JAY_FOUND=no
24531 JAY_DIR_PATH=
24532 if test "x${withval}" = xno; then
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24534 $as_echo "no" >&6; }
24535 elif test "x${withval}" = xyes; then
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24537 $as_echo "yes" >&6; }
24538 JAY_DIR_PATH="/usr/share/jay"
24539 elif test -d "${withval}"; then
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24541 $as_echo "yes" >&6; }
24542 JAY_DIR_PATH="${withval}"
24543 elif test -f "${withval}"; then
24544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24545 $as_echo "yes" >&6; }
24546 JAY_DIR_PATH=`dirname "${withval}"`
24547 JAY="${withval}"
24548 else
24549 as_fn_error "jay not found at ${withval}" "$LINENO" 5
24552 if test "x${JAY_DIR_PATH}" != x; then
24553 # Extract the first word of "jay", so it can be a program name with args.
24554 set dummy jay; ac_word=$2
24555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24556 $as_echo_n "checking for $ac_word... " >&6; }
24557 if test "${ac_cv_path_JAY+set}" = set; then :
24558 $as_echo_n "(cached) " >&6
24559 else
24560 case $JAY in
24561 [\\/]* | ?:[\\/]*)
24562 ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
24565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24566 as_dummy="${JAY_DIR_PATH}:${PATH}"
24567 for as_dir in $as_dummy
24569 IFS=$as_save_IFS
24570 test -z "$as_dir" && as_dir=.
24571 for ac_exec_ext in '' $ac_executable_extensions; do
24572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24573 ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
24574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24575 break 2
24577 done
24578 done
24579 IFS=$as_save_IFS
24581 test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
24583 esac
24585 JAY=$ac_cv_path_JAY
24586 if test -n "$JAY"; then
24587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAY" >&5
24588 $as_echo "$JAY" >&6; }
24589 else
24590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24591 $as_echo "no" >&6; }
24595 if test "x${JAY}" = xno; then
24596 as_fn_error "jay executable not found" "$LINENO" 5;
24598 JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
24599 as_ac_File=`$as_echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
24600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${JAY_SKELETON}" >&5
24601 $as_echo_n "checking for ${JAY_SKELETON}... " >&6; }
24602 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
24603 $as_echo_n "(cached) " >&6
24604 else
24605 test "$cross_compiling" = yes &&
24606 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
24607 if test -r "${JAY_SKELETON}"; then
24608 eval "$as_ac_File=yes"
24609 else
24610 eval "$as_ac_File=no"
24613 eval ac_res=\$$as_ac_File
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24615 $as_echo "$ac_res" >&6; }
24616 eval as_val=\$$as_ac_File
24617 if test "x$as_val" = x""yes; then :
24619 else
24620 as_fn_error "Expected skeleton file in ${JAY_DIR_PATH}" "$LINENO" 5
24623 JAY_FOUND=yes
24626 else
24628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
24629 $as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24631 $as_echo "no" >&6; }
24632 JAY_FOUND=no
24636 if test "x${JAY_FOUND}" = xyes; then
24637 REGEN_PARSERS_TRUE=
24638 REGEN_PARSERS_FALSE='#'
24639 else
24640 REGEN_PARSERS_TRUE='#'
24641 REGEN_PARSERS_FALSE=
24646 # Check whether --enable-portable-native-sync was given.
24647 if test "${enable_portable_native_sync+set}" = set; then :
24648 enableval=$enable_portable_native_sync; case "${enableval}" in
24649 yes)
24651 $as_echo "#define PORTABLE_NATIVE_SYNC 1" >>confdefs.h
24654 no) ;;
24656 as_fn_error "bad value ${enableval} for --enable-portable-native-sync" "$LINENO" 5
24658 esac
24662 # ------ AX CREATE STDINT H -------------------------------------
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
24664 $as_echo_n "checking for stdint types... " >&6; }
24665 ac_stdint_h=`echo include/config-int.h`
24666 # try to shortcircuit - if the default include path of the compiler
24667 # can find a "stdint.h" header then we assume that all compilers can.
24668 if test "${ac_cv_header_stdint_t+set}" = set; then :
24669 $as_echo_n "(cached) " >&6
24670 else
24672 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
24673 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
24674 old_CFLAGS="$CFLAGS" ; CFLAGS=""
24675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24676 /* end confdefs.h. */
24677 #include <stdint.h>
24679 main ()
24681 int_least32_t v = 0;
24683 return 0;
24685 _ACEOF
24686 if ac_fn_c_try_compile "$LINENO"; then :
24687 ac_cv_stdint_result="(assuming C99 compatible system)"
24688 ac_cv_header_stdint_t="stdint.h";
24689 else
24690 ac_cv_header_stdint_t=""
24692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24693 CXXFLAGS="$old_CXXFLAGS"
24694 CPPFLAGS="$old_CPPFLAGS"
24695 CFLAGS="$old_CFLAGS"
24699 v="... $ac_cv_header_stdint_h"
24700 if test "$ac_stdint_h" = "stdint.h" ; then
24701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
24702 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
24703 elif test "$ac_stdint_h" = "inttypes.h" ; then
24704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
24705 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
24706 elif test "_$ac_cv_header_stdint_t" = "_" ; then
24707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
24708 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
24709 else
24710 ac_cv_header_stdint="$ac_cv_header_stdint_t"
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
24712 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
24715 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
24718 inttype_headers=`echo | sed -e 's/,/ /g'`
24720 ac_cv_stdint_result="(no helpful system typedefs seen)"
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
24723 $as_echo_n "checking for stdint uintptr_t... " >&6; }
24724 if test "${ac_cv_header_stdint_x+set}" = set; then :
24725 $as_echo_n "(cached) " >&6
24726 else
24728 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
24730 $as_echo "(..)" >&6; }
24731 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
24732 unset ac_cv_type_uintptr_t
24733 unset ac_cv_type_uint64_t
24734 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
24736 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
24737 ac_cv_header_stdint_x=$i
24738 else
24739 continue
24742 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
24744 if test "x$ac_cv_type_uint64_t" = x""yes; then :
24745 and64="/uint64_t"
24746 else
24747 and64=""
24750 stdint.h inttypes.h sys/inttypes.h $inttype_headers
24751 break
24752 done
24753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
24754 $as_echo_n "checking for stdint uintptr_t... " >&6; }
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
24758 $as_echo "$ac_cv_header_stdint_x" >&6; }
24761 if test "_$ac_cv_header_stdint_x" = "_" ; then
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
24764 $as_echo_n "checking for stdint uint32_t... " >&6; }
24765 if test "${ac_cv_header_stdint_o+set}" = set; then :
24766 $as_echo_n "(cached) " >&6
24767 else
24769 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
24770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
24771 $as_echo "(..)" >&6; }
24772 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
24773 unset ac_cv_type_uint32_t
24774 unset ac_cv_type_uint64_t
24775 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
24777 if test "x$ac_cv_type_uint32_t" = x""yes; then :
24778 ac_cv_header_stdint_o=$i
24779 else
24780 continue
24783 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
24785 if test "x$ac_cv_type_uint64_t" = x""yes; then :
24786 and64="/uint64_t"
24787 else
24788 and64=""
24791 inttypes.h sys/inttypes.h stdint.h $inttype_headers
24792 break
24793 break;
24794 done
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
24796 $as_echo_n "checking for stdint uint32_t... " >&6; }
24799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
24800 $as_echo "$ac_cv_header_stdint_o" >&6; }
24804 if test "_$ac_cv_header_stdint_x" = "_" ; then
24805 if test "_$ac_cv_header_stdint_o" = "_" ; then
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
24808 $as_echo_n "checking for stdint u_int32_t... " >&6; }
24809 if test "${ac_cv_header_stdint_u+set}" = set; then :
24810 $as_echo_n "(cached) " >&6
24811 else
24813 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
24815 $as_echo "(..)" >&6; }
24816 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
24817 unset ac_cv_type_u_int32_t
24818 unset ac_cv_type_u_int64_t
24819 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
24821 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
24822 ac_cv_header_stdint_u=$i
24823 else
24824 continue
24827 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
24829 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
24830 and64="/u_int64_t"
24831 else
24832 and64=""
24835 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
24836 break
24837 break;
24838 done
24839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
24840 $as_echo_n "checking for stdint u_int32_t... " >&6; }
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
24844 $as_echo "$ac_cv_header_stdint_u" >&6; }
24846 fi fi
24848 if test "_$ac_cv_header_stdint_x" = "_" ; then
24849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
24850 $as_echo_n "checking for stdint datatype model... " >&6; }
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
24852 $as_echo "(..)" >&6; }
24854 # The cast to long int works around a bug in the HP C Compiler
24855 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24856 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24857 # This bug is HP SR number 8606223364.
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
24859 $as_echo_n "checking size of char... " >&6; }
24860 if test "${ac_cv_sizeof_char+set}" = set; then :
24861 $as_echo_n "(cached) " >&6
24862 else
24863 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
24865 else
24866 if test "$ac_cv_type_char" = yes; then
24867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24869 { as_fn_set_status 77
24870 as_fn_error "cannot compute sizeof (char)
24871 See \`config.log' for more details." "$LINENO" 5; }; }
24872 else
24873 ac_cv_sizeof_char=0
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
24879 $as_echo "$ac_cv_sizeof_char" >&6; }
24883 cat >>confdefs.h <<_ACEOF
24884 #define SIZEOF_CHAR $ac_cv_sizeof_char
24885 _ACEOF
24888 # The cast to long int works around a bug in the HP C Compiler
24889 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24890 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24891 # This bug is HP SR number 8606223364.
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
24893 $as_echo_n "checking size of short... " >&6; }
24894 if test "${ac_cv_sizeof_short+set}" = set; then :
24895 $as_echo_n "(cached) " >&6
24896 else
24897 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
24899 else
24900 if test "$ac_cv_type_short" = yes; then
24901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24903 { as_fn_set_status 77
24904 as_fn_error "cannot compute sizeof (short)
24905 See \`config.log' for more details." "$LINENO" 5; }; }
24906 else
24907 ac_cv_sizeof_short=0
24912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
24913 $as_echo "$ac_cv_sizeof_short" >&6; }
24917 cat >>confdefs.h <<_ACEOF
24918 #define SIZEOF_SHORT $ac_cv_sizeof_short
24919 _ACEOF
24922 # The cast to long int works around a bug in the HP C Compiler
24923 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24924 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24925 # This bug is HP SR number 8606223364.
24926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
24927 $as_echo_n "checking size of int... " >&6; }
24928 if test "${ac_cv_sizeof_int+set}" = set; then :
24929 $as_echo_n "(cached) " >&6
24930 else
24931 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
24933 else
24934 if test "$ac_cv_type_int" = yes; then
24935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24937 { as_fn_set_status 77
24938 as_fn_error "cannot compute sizeof (int)
24939 See \`config.log' for more details." "$LINENO" 5; }; }
24940 else
24941 ac_cv_sizeof_int=0
24946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
24947 $as_echo "$ac_cv_sizeof_int" >&6; }
24951 cat >>confdefs.h <<_ACEOF
24952 #define SIZEOF_INT $ac_cv_sizeof_int
24953 _ACEOF
24956 # The cast to long int works around a bug in the HP C Compiler
24957 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24958 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24959 # This bug is HP SR number 8606223364.
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
24961 $as_echo_n "checking size of long... " >&6; }
24962 if test "${ac_cv_sizeof_long+set}" = set; then :
24963 $as_echo_n "(cached) " >&6
24964 else
24965 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
24967 else
24968 if test "$ac_cv_type_long" = yes; then
24969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24971 { as_fn_set_status 77
24972 as_fn_error "cannot compute sizeof (long)
24973 See \`config.log' for more details." "$LINENO" 5; }; }
24974 else
24975 ac_cv_sizeof_long=0
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
24981 $as_echo "$ac_cv_sizeof_long" >&6; }
24985 cat >>confdefs.h <<_ACEOF
24986 #define SIZEOF_LONG $ac_cv_sizeof_long
24987 _ACEOF
24990 # The cast to long int works around a bug in the HP C Compiler
24991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24993 # This bug is HP SR number 8606223364.
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
24995 $as_echo_n "checking size of void*... " >&6; }
24996 if test "${ac_cv_sizeof_voidp+set}" = set; then :
24997 $as_echo_n "(cached) " >&6
24998 else
24999 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
25001 else
25002 if test "$ac_cv_type_voidp" = yes; then
25003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
25004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25005 { as_fn_set_status 77
25006 as_fn_error "cannot compute sizeof (void*)
25007 See \`config.log' for more details." "$LINENO" 5; }; }
25008 else
25009 ac_cv_sizeof_voidp=0
25014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
25015 $as_echo "$ac_cv_sizeof_voidp" >&6; }
25019 cat >>confdefs.h <<_ACEOF
25020 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
25021 _ACEOF
25024 ac_cv_char_data_model=""
25025 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
25026 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
25027 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
25028 ac_cv_long_data_model=""
25029 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
25030 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
25031 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
25033 $as_echo_n "checking data model... " >&6; }
25034 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
25035 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
25036 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
25037 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
25038 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
25039 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
25040 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
25041 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
25042 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
25043 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
25044 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
25045 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
25046 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
25047 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
25048 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
25049 222/*|333/*|444/*|666/*|888/*) :
25050 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
25051 *) ac_cv_data_model="none" ; n="very unusual model" ;;
25052 esac
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
25054 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
25058 if test "_$ac_cv_header_stdint_x" != "_" ; then
25059 ac_cv_header_stdint="$ac_cv_header_stdint_x"
25060 elif test "_$ac_cv_header_stdint_o" != "_" ; then
25061 ac_cv_header_stdint="$ac_cv_header_stdint_o"
25062 elif test "_$ac_cv_header_stdint_u" != "_" ; then
25063 ac_cv_header_stdint="$ac_cv_header_stdint_u"
25064 else
25065 ac_cv_header_stdint="stddef.h"
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
25069 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
25070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
25071 $as_echo "($ac_cv_header_stdint)" >&6; }
25072 unset ac_cv_type_int_least32_t
25073 unset ac_cv_type_int_fast32_t
25074 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
25076 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
25080 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
25082 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
25086 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
25088 if test "x$ac_cv_type_intmax_t" = x""yes; then :
25093 fi # shortcircut to system "stdint.h"
25094 # ------------------ PREPARE VARIABLES ------------------------------
25095 if test "$GCC" = "yes" ; then
25096 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
25097 else
25098 ac_cv_stdint_message="using $CC"
25101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
25102 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
25104 # ----------------- DONE inttypes.h checks START header -------------
25105 ac_config_commands="$ac_config_commands $ac_stdint_h"
25110 # Check whether --with-glibj_zip was given.
25111 if test "${with_glibj_zip+set}" = set; then :
25112 withval=$with_glibj_zip;
25116 case "$with_glibj_zip" in
25118 use_glibj_zip=false
25120 "no" )
25121 use_glibj_zip=false
25123 "yes")
25124 as_fn_error "Please suply an absolute path to a prebuilt glibj.zip" "$LINENO" 5
25127 use_glibj_zip=true
25128 PATH_TO_GLIBJ_ZIP=$with_glibj_zip
25130 esac;
25132 if test x$use_glibj_zip = xtrue; then
25133 USE_PREBUILT_GLIBJ_ZIP_TRUE=
25134 USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
25135 else
25136 USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
25137 USE_PREBUILT_GLIBJ_ZIP_FALSE=
25142 if test "x${TOOLSDIR}" != x; then
25143 if test "x${COMPILE_WRAPPERS}" = xno && test "x${enable_java_maintainer_mode}" = xyes; then
25146 if test "x$JAVAPREFIX" = x; then
25147 test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
25149 # Extract the first word of "$ac_prog", so it can be a program name with args.
25150 set dummy $ac_prog; ac_word=$2
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25152 $as_echo_n "checking for $ac_word... " >&6; }
25153 if test "${ac_cv_prog_JAVA+set}" = set; then :
25154 $as_echo_n "(cached) " >&6
25155 else
25156 if test -n "$JAVA"; then
25157 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
25158 else
25159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25160 for as_dir in $PATH
25162 IFS=$as_save_IFS
25163 test -z "$as_dir" && as_dir=.
25164 for ac_exec_ext in '' $ac_executable_extensions; do
25165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25166 ac_cv_prog_JAVA="$ac_prog"
25167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25168 break 2
25170 done
25171 done
25172 IFS=$as_save_IFS
25176 JAVA=$ac_cv_prog_JAVA
25177 if test -n "$JAVA"; then
25178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
25179 $as_echo "$JAVA" >&6; }
25180 else
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25182 $as_echo "no" >&6; }
25186 test -n "$JAVA" && break
25187 done
25189 else
25190 test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
25192 # Extract the first word of "$ac_prog", so it can be a program name with args.
25193 set dummy $ac_prog; ac_word=$2
25194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25195 $as_echo_n "checking for $ac_word... " >&6; }
25196 if test "${ac_cv_prog_JAVA+set}" = set; then :
25197 $as_echo_n "(cached) " >&6
25198 else
25199 if test -n "$JAVA"; then
25200 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
25201 else
25202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25203 for as_dir in $PATH
25205 IFS=$as_save_IFS
25206 test -z "$as_dir" && as_dir=.
25207 for ac_exec_ext in '' $ac_executable_extensions; do
25208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25209 ac_cv_prog_JAVA="$ac_prog"
25210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25211 break 2
25213 done
25214 done
25215 IFS=$as_save_IFS
25219 JAVA=$ac_cv_prog_JAVA
25220 if test -n "$JAVA"; then
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
25222 $as_echo "$JAVA" >&6; }
25223 else
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25225 $as_echo "no" >&6; }
25229 test -n "$JAVA" && break
25230 done
25231 test -n "$JAVA" || JAVA="$JAVAPREFIX"
25234 test "x$JAVA" = x && as_fn_error "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
25237 ECJ_OPTS="-warn:-deprecation,serial,unusedImport,unusedPrivate,resource"
25238 JAVAC_OPTS="-Xlint:unchecked,cast,divzero,empty,finally,overrides"
25239 GCJ_OPTS="-g"
25240 if test "x$JAVAPREFIX" = x; then
25241 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"
25243 # Extract the first word of "$ac_prog", so it can be a program name with args.
25244 set dummy $ac_prog; ac_word=$2
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25246 $as_echo_n "checking for $ac_word... " >&6; }
25247 if test "${ac_cv_prog_JAVAC+set}" = set; then :
25248 $as_echo_n "(cached) " >&6
25249 else
25250 if test -n "$JAVAC"; then
25251 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
25252 else
25253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25254 for as_dir in $PATH
25256 IFS=$as_save_IFS
25257 test -z "$as_dir" && as_dir=.
25258 for ac_exec_ext in '' $ac_executable_extensions; do
25259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25260 ac_cv_prog_JAVAC="$ac_prog"
25261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25262 break 2
25264 done
25265 done
25266 IFS=$as_save_IFS
25270 JAVAC=$ac_cv_prog_JAVAC
25271 if test -n "$JAVAC"; then
25272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
25273 $as_echo "$JAVAC" >&6; }
25274 else
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25276 $as_echo "no" >&6; }
25280 test -n "$JAVAC" && break
25281 done
25283 else
25284 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"
25286 # Extract the first word of "$ac_prog", so it can be a program name with args.
25287 set dummy $ac_prog; ac_word=$2
25288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25289 $as_echo_n "checking for $ac_word... " >&6; }
25290 if test "${ac_cv_prog_JAVAC+set}" = set; then :
25291 $as_echo_n "(cached) " >&6
25292 else
25293 if test -n "$JAVAC"; then
25294 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
25295 else
25296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25297 for as_dir in $PATH
25299 IFS=$as_save_IFS
25300 test -z "$as_dir" && as_dir=.
25301 for ac_exec_ext in '' $ac_executable_extensions; do
25302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25303 ac_cv_prog_JAVAC="$ac_prog"
25304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25305 break 2
25307 done
25308 done
25309 IFS=$as_save_IFS
25313 JAVAC=$ac_cv_prog_JAVAC
25314 if test -n "$JAVAC"; then
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
25316 $as_echo "$JAVAC" >&6; }
25317 else
25318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25319 $as_echo "no" >&6; }
25323 test -n "$JAVAC" && break
25324 done
25325 test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
25328 test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC is a version of gcj" >&5
25330 $as_echo_n "checking if $JAVAC is a version of gcj... " >&6; }
25331 if test "${ac_cv_prog_javac_is_gcj+set}" = set; then :
25332 $as_echo_n "(cached) " >&6
25333 else
25335 if $JAVAC --version 2>&1 | grep gcj >&5 ; then
25336 ac_cv_prog_javac_is_gcj=yes;
25337 JAVAC="$JAVAC $GCJ_OPTS";
25338 else
25339 ac_cv_prog_javac_is_gcj=no;
25343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_is_gcj" >&5
25344 $as_echo "$ac_cv_prog_javac_is_gcj" >&6; }
25345 JAVAC_IS_GCJ=$ac_cv_prog_javac_is_gcj
25347 if test x"${JAVAC_IS_GCJ}" = xyes; then
25348 GCJ_JAVAC_TRUE=
25349 GCJ_JAVAC_FALSE='#'
25350 else
25351 GCJ_JAVAC_TRUE='#'
25352 GCJ_JAVAC_FALSE=
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
25359 $as_echo_n "checking if $JAVAC works... " >&6; }
25360 if test "${ac_cv_prog_javac_works+set}" = set; then :
25361 $as_echo_n "(cached) " >&6
25362 else
25364 JAVA_TEST=Object.java
25365 CLASS_TEST=Object.class
25366 cat << \EOF > $JAVA_TEST
25367 /* #line 25367 "configure" */
25368 package java.lang;
25370 public class Object
25372 static <T> void doStuff()
25377 if test x$JAVAC_IS_GCJ = xyes; then
25378 CMD="$JAVAC $JAVACFLAGS -fsource=1.5 -ftarget=1.5 $JAVA_TEST"
25379 else
25380 CMD="$JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST"
25382 if { ac_try='$CMD'
25383 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25384 (eval $ac_try) 2>&5
25385 ac_status=$?
25386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25387 test $ac_status = 0; }; } >/dev/null 2>&1; then
25388 ac_cv_prog_javac_works=yes
25389 else
25390 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
25391 echo "configure: failed program was:" >&5
25392 cat $JAVA_TEST >&5
25394 rm -f $JAVA_TEST $CLASS_TEST
25397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
25398 $as_echo "$ac_cv_prog_javac_works" >&6; }
25402 # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
25403 set dummy uudecode$EXEEXT; ac_word=$2
25404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25405 $as_echo_n "checking for $ac_word... " >&6; }
25406 if test "${ac_cv_prog_uudecode+set}" = set; then :
25407 $as_echo_n "(cached) " >&6
25408 else
25409 if test -n "$uudecode"; then
25410 ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
25411 else
25412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25413 for as_dir in $PATH
25415 IFS=$as_save_IFS
25416 test -z "$as_dir" && as_dir=.
25417 for ac_exec_ext in '' $ac_executable_extensions; do
25418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25419 ac_cv_prog_uudecode="yes"
25420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25421 break 2
25423 done
25424 done
25425 IFS=$as_save_IFS
25429 uudecode=$ac_cv_prog_uudecode
25430 if test -n "$uudecode"; then
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
25432 $as_echo "$uudecode" >&6; }
25433 else
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25435 $as_echo "no" >&6; }
25439 if test x$uudecode = xyes; then
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
25441 $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
25442 if test "${ac_cv_prog_uudecode_base64+set}" = set; then :
25443 $as_echo_n "(cached) " >&6
25444 else
25446 cat << \EOF > Test.uue
25447 begin-base64 644 Test.class
25448 yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
25449 bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
25450 bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
25451 YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
25452 aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
25453 AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
25454 AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
25455 ====
25457 if uudecode$EXEEXT Test.uue; then
25458 ac_cv_prog_uudecode_base64=yes
25459 else
25460 echo "configure: 25460: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
25461 echo "configure: failed file was:" >&5
25462 cat Test.uue >&5
25463 ac_cv_prog_uudecode_base64=no
25465 rm -f Test.uue
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
25468 $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
25470 if test x$ac_cv_prog_uudecode_base64 != xyes; then
25471 rm -f Test.class
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
25473 $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
25474 if test x$ac_cv_prog_javac_works = xno; then
25475 as_fn_error "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
25479 $as_echo_n "checking if $JAVA works... " >&6; }
25480 if test "${ac_cv_prog_java_works+set}" = set; then :
25481 $as_echo_n "(cached) " >&6
25482 else
25484 JAVA_TEST=Test.java
25485 CLASS_TEST=Test.class
25486 TEST=Test
25487 cat << \EOF > $JAVA_TEST
25488 /* [#]line 25488 "configure" */
25489 public class Test {
25490 public static void main (String args[]) {
25491 System.exit (0);
25494 if test x$ac_cv_prog_uudecode_base64 != xyes; then
25496 if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
25497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25498 (eval $ac_try) 2>&5
25499 ac_status=$?
25500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25501 test $ac_status = 0; }; } && test -s $CLASS_TEST; then
25503 else
25504 echo "configure: failed program was:" >&5
25505 cat $JAVA_TEST >&5
25506 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
25509 if { ac_try='CLASSPATH=.:$CLASSPATH $JAVA $JAVAFLAGS $TEST'
25510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25511 (eval $ac_try) 2>&5
25512 ac_status=$?
25513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25514 test $ac_status = 0; }; } >/dev/null 2>&1; then
25515 ac_cv_prog_java_works=yes
25516 else
25517 echo "configure: failed program was:" >&5
25518 cat $JAVA_TEST >&5
25519 as_fn_error "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
25521 rm -fr $JAVA_TEST $CLASS_TEST Test.uue
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
25525 $as_echo "$ac_cv_prog_java_works" >&6; }
25529 if test "x${COMPILE_GJDOC}" = xyes; then
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ANTLR parser generator JAR file" >&5
25532 $as_echo_n "checking for the ANTLR parser generator JAR file... " >&6; }
25533 if test -z "$ANTLR_JAR"; then
25534 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
25535 /usr/share/antlr/lib /usr/share/java /usr/lib;
25537 if test -f "$antlr_lib_home/antlr.jar"; then
25538 ANTLR_JAR="$antlr_lib_home/antlr.jar"
25539 break
25541 done
25543 test -f $ANTLR_JAR || as_fn_error "specified ANTLR jar file $ANTLR_JAR not found." "$LINENO" 5 \
25544 && { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
25545 $as_echo "$ANTLR_JAR" >&6; }
25548 if test "x${REGENERATE_GJDOC_PARSER}" = xyes && test "x${enable_java_maintainer_mode}" = xyes; then
25550 if test -n "$ac_tool_prefix"; then
25551 for ac_prog in cantlr runantlr antlr
25553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
25555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25556 $as_echo_n "checking for $ac_word... " >&6; }
25557 if test "${ac_cv_prog_ANTLR+set}" = set; then :
25558 $as_echo_n "(cached) " >&6
25559 else
25560 if test -n "$ANTLR"; then
25561 ac_cv_prog_ANTLR="$ANTLR" # Let the user override the test.
25562 else
25563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25564 for as_dir in $PATH
25566 IFS=$as_save_IFS
25567 test -z "$as_dir" && as_dir=.
25568 for ac_exec_ext in '' $ac_executable_extensions; do
25569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25570 ac_cv_prog_ANTLR="$ac_tool_prefix$ac_prog"
25571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25572 break 2
25574 done
25575 done
25576 IFS=$as_save_IFS
25580 ANTLR=$ac_cv_prog_ANTLR
25581 if test -n "$ANTLR"; then
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR" >&5
25583 $as_echo "$ANTLR" >&6; }
25584 else
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25586 $as_echo "no" >&6; }
25590 test -n "$ANTLR" && break
25591 done
25593 if test -z "$ANTLR"; then
25594 ac_ct_ANTLR=$ANTLR
25595 for ac_prog in cantlr runantlr antlr
25597 # Extract the first word of "$ac_prog", so it can be a program name with args.
25598 set dummy $ac_prog; ac_word=$2
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25600 $as_echo_n "checking for $ac_word... " >&6; }
25601 if test "${ac_cv_prog_ac_ct_ANTLR+set}" = set; then :
25602 $as_echo_n "(cached) " >&6
25603 else
25604 if test -n "$ac_ct_ANTLR"; then
25605 ac_cv_prog_ac_ct_ANTLR="$ac_ct_ANTLR" # Let the user override the test.
25606 else
25607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25608 for as_dir in $PATH
25610 IFS=$as_save_IFS
25611 test -z "$as_dir" && as_dir=.
25612 for ac_exec_ext in '' $ac_executable_extensions; do
25613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25614 ac_cv_prog_ac_ct_ANTLR="$ac_prog"
25615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25616 break 2
25618 done
25619 done
25620 IFS=$as_save_IFS
25624 ac_ct_ANTLR=$ac_cv_prog_ac_ct_ANTLR
25625 if test -n "$ac_ct_ANTLR"; then
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ANTLR" >&5
25627 $as_echo "$ac_ct_ANTLR" >&6; }
25628 else
25629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25630 $as_echo "no" >&6; }
25634 test -n "$ac_ct_ANTLR" && break
25635 done
25637 if test "x$ac_ct_ANTLR" = x; then
25638 ANTLR=""
25639 else
25640 case $cross_compiling:$ac_tool_warned in
25641 yes:)
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25644 ac_tool_warned=yes ;;
25645 esac
25646 ANTLR=$ac_ct_ANTLR
25650 if test "x$ANTLR" = x; then
25651 if test -z "$JAVA"; then
25652 as_fn_error "Failed to find either an antlr binary or a suitable Java runtime for ANTLR." "$LINENO" 5
25653 else
25654 if test -z "$ANTLR_JAR"; then
25655 as_fn_error "Failed to find either an antlr binary or a suitable antlr jar file." "$LINENO" 5
25656 else
25657 ANTLR="$JAVA -classpath $ANTLR_JAR antlr.Tool"
25662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr 2.7.1 or better" >&5
25663 $as_echo_n "checking for antlr 2.7.1 or better... " >&6; }
25664 antlr_version_str=`$ANTLR 2>&1 | head -n 1 | sed '/.*Version */!d; s///;q'`
25665 if test "$antlr_version_str"; then
25666 antlr_version_regex='s/\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\).*$/'
25667 antlr_version_major=`echo $antlr_version_str | sed "$antlr_version_regex\\1/"`
25668 antlr_version_minor=`echo $antlr_version_str | sed "$antlr_version_regex\\2/"`
25669 antlr_version_micro=`echo $antlr_version_str | sed "$antlr_version_regex\\3/"`
25670 (test $antlr_version_major -gt 2 || \
25671 (test $antlr_version_major -eq 2 && \
25672 test $antlr_version_minor -gt 7) || \
25673 (test $antlr_version_major -eq 2 && \
25674 test $antlr_version_minor -eq 7 && \
25675 test $antlr_version_micro -ge 1))
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&5
25678 $as_echo "$antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&6; }
25685 # Check for javac if we need to build either the class library,
25686 # the examples or the tools
25687 if test "x${use_glibj_zip}" = xfalse || \
25688 test "x${EXAMPLESDIR}" != x || \
25689 test "x${TOOLSDIR}" != x && \
25690 test "x${build_class_files}" != xno && \
25691 test "${enable_java_maintainer_mode}" = yes; then
25693 JAVA_TEST=Test.java
25694 CLASS_TEST=Test.class
25695 cat << \EOF > $JAVA_TEST
25696 /* #line 25696 "configure" */
25697 public class Test
25699 public static void main(String args)
25701 System.out.println("Hello World");
25705 if test x$JAVAC_IS_GCJ != xyes; then
25706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether javac supports -J" >&5
25707 $as_echo_n "checking whether javac supports -J... " >&6; }
25708 $JAVAC $JAVACFLAGS -J-Xmx768M -sourcepath '' $JAVA_TEST
25709 javac_result=$?
25710 if test "x$javac_result" = "x0"; then
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25712 $as_echo "yes" >&6; }
25713 JAVAC_MEM_OPT="-J-Xmx768M"
25714 else
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25716 $as_echo "no" >&6; }
25719 rm -f $JAVA_TEST $CLASS_TEST
25722 else
25723 if false; then
25724 GCJ_JAVAC_TRUE=
25725 GCJ_JAVAC_FALSE='#'
25726 else
25727 GCJ_JAVAC_TRUE='#'
25728 GCJ_JAVAC_FALSE=
25734 # Check whether --with-escher was given.
25735 if test "${with_escher+set}" = set; then :
25736 withval=$with_escher;
25739 case "$with_escher" in
25741 use_escher=false
25743 "no")
25744 use_escher=false
25746 "yes")
25747 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
25750 use_escher=true
25751 PATH_TO_ESCHER=$with_escher
25753 esac
25755 if test x$use_escher = xtrue; then
25756 USE_ESCHER_TRUE=
25757 USE_ESCHER_FALSE='#'
25758 else
25759 USE_ESCHER_TRUE='#'
25760 USE_ESCHER_FALSE=
25765 # Check whether --enable-local-sockets was given.
25766 if test "${enable_local_sockets+set}" = set; then :
25767 enableval=$enable_local_sockets; case "${enableval}" in
25768 yes)
25769 ENABLE_LOCAL_SOCKETS=yes
25772 ENABLE_LOCAL_SOCKETS=no
25774 esac
25777 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
25778 then
25779 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
25780 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
25785 for ac_func in read write bind listen accept shutdown
25786 do :
25787 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25788 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25789 eval as_val=\$$as_ac_var
25790 if test "x$as_val" = x""yes; then :
25791 cat >>confdefs.h <<_ACEOF
25792 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25793 _ACEOF
25795 else
25796 as_fn_error "networking support not available" "$LINENO" 5
25798 done
25801 $as_echo "#define ENABLE_LOCAL_SOCKETS 1" >>confdefs.h
25804 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
25805 ENABLE_LOCAL_SOCKETS_TRUE=
25806 ENABLE_LOCAL_SOCKETS_FALSE='#'
25807 else
25808 ENABLE_LOCAL_SOCKETS_TRUE='#'
25809 ENABLE_LOCAL_SOCKETS_FALSE=
25815 WANT_NATIVE_BIG_INTEGER=false
25816 if test "x${COMPILE_GMP}" = xyes; then
25817 if test "x${ac_cv_lib_gmp___gmpz_mul_si}" = xyes; then
25818 if test "x${ac_cv_header_gmp_h}" = xyes; then
25819 WANT_NATIVE_BIG_INTEGER=true
25821 $as_echo "#define WITH_GNU_MP 1" >>confdefs.h
25823 else
25824 COMPILE_GMP=no
25826 else
25827 COMPILE_GMP=no
25831 if test "x${COMPILE_GMP}" = xyes; then
25832 CREATE_GMPBI_LIBRARY_TRUE=
25833 CREATE_GMPBI_LIBRARY_FALSE='#'
25834 else
25835 CREATE_GMPBI_LIBRARY_TRUE='#'
25836 CREATE_GMPBI_LIBRARY_FALSE=
25840 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"
25843 if test -z "$CREATE_WRAPPERS_TRUE"; then :
25844 else
25845 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"
25848 ac_config_commands="$ac_config_commands gappletviewer"
25850 ac_config_commands="$ac_config_commands gjarsigner"
25852 ac_config_commands="$ac_config_commands gkeytool"
25854 ac_config_commands="$ac_config_commands gjar"
25856 ac_config_commands="$ac_config_commands gnative2ascii"
25858 ac_config_commands="$ac_config_commands gserialver"
25860 ac_config_commands="$ac_config_commands grmiregistry"
25862 ac_config_commands="$ac_config_commands gtnameserv"
25864 ac_config_commands="$ac_config_commands gorbd"
25866 ac_config_commands="$ac_config_commands grmid"
25868 ac_config_commands="$ac_config_commands grmic"
25870 ac_config_commands="$ac_config_commands gjavah"
25875 if test "x${COMPILE_GJDOC}" = xyes
25876 then
25877 ac_config_files="$ac_config_files tools/gjdoc"
25879 ac_config_commands="$ac_config_commands gjdoc"
25883 ac_config_commands="$ac_config_commands gen-classlist"
25885 ac_config_commands="$ac_config_commands copy-vmresources"
25887 cat >confcache <<\_ACEOF
25888 # This file is a shell script that caches the results of configure
25889 # tests run on this system so they can be shared between configure
25890 # scripts and configure runs, see configure's option --config-cache.
25891 # It is not useful on other systems. If it contains results you don't
25892 # want to keep, you may remove or edit it.
25894 # config.status only pays attention to the cache file if you give it
25895 # the --recheck option to rerun configure.
25897 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25898 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25899 # following values.
25901 _ACEOF
25903 # The following way of writing the cache mishandles newlines in values,
25904 # but we know of no workaround that is simple, portable, and efficient.
25905 # So, we kill variables containing newlines.
25906 # Ultrix sh set writes to stderr and can't be redirected directly,
25907 # and sets the high bit in the cache file unless we assign to the vars.
25909 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25910 eval ac_val=\$$ac_var
25911 case $ac_val in #(
25912 *${as_nl}*)
25913 case $ac_var in #(
25914 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25915 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25916 esac
25917 case $ac_var in #(
25918 _ | IFS | as_nl) ;; #(
25919 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25920 *) { eval $ac_var=; unset $ac_var;} ;;
25921 esac ;;
25922 esac
25923 done
25925 (set) 2>&1 |
25926 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25927 *${as_nl}ac_space=\ *)
25928 # `set' does not quote correctly, so add quotes: double-quote
25929 # substitution turns \\\\ into \\, and sed turns \\ into \.
25930 sed -n \
25931 "s/'/'\\\\''/g;
25932 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25933 ;; #(
25935 # `set' quotes correctly as required by POSIX, so do not add quotes.
25936 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25938 esac |
25939 sort
25941 sed '
25942 /^ac_cv_env_/b end
25943 t clear
25944 :clear
25945 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25946 t end
25947 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25948 :end' >>confcache
25949 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25950 if test -w "$cache_file"; then
25951 test "x$cache_file" != "x/dev/null" &&
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25953 $as_echo "$as_me: updating cache $cache_file" >&6;}
25954 cat confcache >$cache_file
25955 else
25956 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25957 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25960 rm -f confcache
25962 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25963 # Let make expand exec_prefix.
25964 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25966 DEFS=-DHAVE_CONFIG_H
25968 ac_libobjs=
25969 ac_ltlibobjs=
25970 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25971 # 1. Remove the extension, and $U if already installed.
25972 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25973 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25974 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25975 # will be set to the directory where LIBOBJS objects are built.
25976 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25977 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25978 done
25979 LIBOBJS=$ac_libobjs
25981 LTLIBOBJS=$ac_ltlibobjs
25984 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
25985 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
25986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25988 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
25989 as_fn_error "conditional \"GENINSRC\" was never defined.
25990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25992 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
25993 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25996 if test -n "$EXEEXT"; then
25997 am__EXEEXT_TRUE=
25998 am__EXEEXT_FALSE='#'
25999 else
26000 am__EXEEXT_TRUE='#'
26001 am__EXEEXT_FALSE=
26004 if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
26005 as_fn_error "conditional \"CREATE_COLLECTIONS\" was never defined.
26006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26008 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
26009 as_fn_error "conditional \"CREATE_JNI_LIBRARIES\" was never defined.
26010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26012 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
26013 as_fn_error "conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
26014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26016 if test -z "${CREATE_GCONF_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GCONF_PEER_LIBRARIES_FALSE}"; then
26017 as_fn_error "conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
26018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26020 if test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_FALSE}"; then
26021 as_fn_error "conditional \"CREATE_GSTREAMER_PEER_LIBRARIES\" was never defined.
26022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26024 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
26025 as_fn_error "conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
26026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26028 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26029 as_fn_error "conditional \"AMDEP\" was never defined.
26030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26032 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26033 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26036 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
26037 as_fn_error "conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
26038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26040 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
26041 as_fn_error "conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
26042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26044 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
26045 as_fn_error "conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
26046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26048 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
26049 as_fn_error "conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
26050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26052 if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
26053 as_fn_error "conditional \"CREATE_PLUGIN\" was never defined.
26054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26056 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
26057 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
26058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26060 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
26061 as_fn_error "conditional \"CREATE_JNI_HEADERS\" was never defined.
26062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26064 if test -z "${CREATE_GJDOC_PARSER_TRUE}" && test -z "${CREATE_GJDOC_PARSER_FALSE}"; then
26065 as_fn_error "conditional \"CREATE_GJDOC_PARSER\" was never defined.
26066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26068 if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
26069 as_fn_error "conditional \"CREATE_WRAPPERS\" was never defined.
26070 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26072 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26073 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26074 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26076 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26077 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
26078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26080 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26081 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26084 if test -z "${WITH_JAR_TRUE}" && test -z "${WITH_JAR_FALSE}"; then
26085 as_fn_error "conditional \"WITH_JAR\" was never defined.
26086 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26088 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
26089 as_fn_error "conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
26090 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26092 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
26093 as_fn_error "conditional \"INSTALL_CLASS_FILES\" was never defined.
26094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26096 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
26097 as_fn_error "conditional \"BUILD_CLASS_FILES\" was never defined.
26098 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26100 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
26101 as_fn_error "conditional \"CREATE_API_DOCS\" was never defined.
26102 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26104 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
26105 as_fn_error "conditional \"REGEN_PARSERS\" was never defined.
26106 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26108 if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
26109 as_fn_error "conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
26110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26112 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
26113 as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
26114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26116 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
26117 as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
26118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26120 if test -z "${USE_ESCHER_TRUE}" && test -z "${USE_ESCHER_FALSE}"; then
26121 as_fn_error "conditional \"USE_ESCHER\" was never defined.
26122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26124 if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
26125 as_fn_error "conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
26126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26128 if test -z "${CREATE_GMPBI_LIBRARY_TRUE}" && test -z "${CREATE_GMPBI_LIBRARY_FALSE}"; then
26129 as_fn_error "conditional \"CREATE_GMPBI_LIBRARY\" was never defined.
26130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26133 : ${CONFIG_STATUS=./config.status}
26134 ac_write_fail=0
26135 ac_clean_files_save=$ac_clean_files
26136 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26138 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26139 as_write_fail=0
26140 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26141 #! $SHELL
26142 # Generated by $as_me.
26143 # Run this file to recreate the current configuration.
26144 # Compiler output produced by configure, useful for debugging
26145 # configure, is in config.log if it exists.
26147 debug=false
26148 ac_cs_recheck=false
26149 ac_cs_silent=false
26151 SHELL=\${CONFIG_SHELL-$SHELL}
26152 export SHELL
26153 _ASEOF
26154 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26155 ## -------------------- ##
26156 ## M4sh Initialization. ##
26157 ## -------------------- ##
26159 # Be more Bourne compatible
26160 DUALCASE=1; export DUALCASE # for MKS sh
26161 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26162 emulate sh
26163 NULLCMD=:
26164 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26165 # is contrary to our usage. Disable this feature.
26166 alias -g '${1+"$@"}'='"$@"'
26167 setopt NO_GLOB_SUBST
26168 else
26169 case `(set -o) 2>/dev/null` in #(
26170 *posix*) :
26171 set -o posix ;; #(
26172 *) :
26174 esac
26178 as_nl='
26180 export as_nl
26181 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26182 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26183 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26184 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26185 # Prefer a ksh shell builtin over an external printf program on Solaris,
26186 # but without wasting forks for bash or zsh.
26187 if test -z "$BASH_VERSION$ZSH_VERSION" \
26188 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26189 as_echo='print -r --'
26190 as_echo_n='print -rn --'
26191 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26192 as_echo='printf %s\n'
26193 as_echo_n='printf %s'
26194 else
26195 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26196 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26197 as_echo_n='/usr/ucb/echo -n'
26198 else
26199 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26200 as_echo_n_body='eval
26201 arg=$1;
26202 case $arg in #(
26203 *"$as_nl"*)
26204 expr "X$arg" : "X\\(.*\\)$as_nl";
26205 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26206 esac;
26207 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26209 export as_echo_n_body
26210 as_echo_n='sh -c $as_echo_n_body as_echo'
26212 export as_echo_body
26213 as_echo='sh -c $as_echo_body as_echo'
26216 # The user is always right.
26217 if test "${PATH_SEPARATOR+set}" != set; then
26218 PATH_SEPARATOR=:
26219 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26220 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26221 PATH_SEPARATOR=';'
26226 # IFS
26227 # We need space, tab and new line, in precisely that order. Quoting is
26228 # there to prevent editors from complaining about space-tab.
26229 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26230 # splitting by setting IFS to empty value.)
26231 IFS=" "" $as_nl"
26233 # Find who we are. Look in the path if we contain no directory separator.
26234 case $0 in #((
26235 *[\\/]* ) as_myself=$0 ;;
26236 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26237 for as_dir in $PATH
26239 IFS=$as_save_IFS
26240 test -z "$as_dir" && as_dir=.
26241 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26242 done
26243 IFS=$as_save_IFS
26246 esac
26247 # We did not find ourselves, most probably we were run as `sh COMMAND'
26248 # in which case we are not to be found in the path.
26249 if test "x$as_myself" = x; then
26250 as_myself=$0
26252 if test ! -f "$as_myself"; then
26253 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26254 exit 1
26257 # Unset variables that we do not need and which cause bugs (e.g. in
26258 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26259 # suppresses any "Segmentation fault" message there. '((' could
26260 # trigger a bug in pdksh 5.2.14.
26261 for as_var in BASH_ENV ENV MAIL MAILPATH
26262 do eval test x\${$as_var+set} = xset \
26263 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26264 done
26265 PS1='$ '
26266 PS2='> '
26267 PS4='+ '
26269 # NLS nuisances.
26270 LC_ALL=C
26271 export LC_ALL
26272 LANGUAGE=C
26273 export LANGUAGE
26275 # CDPATH.
26276 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26279 # as_fn_error ERROR [LINENO LOG_FD]
26280 # ---------------------------------
26281 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26282 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26283 # script with status $?, using 1 if that was 0.
26284 as_fn_error ()
26286 as_status=$?; test $as_status -eq 0 && as_status=1
26287 if test "$3"; then
26288 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26289 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26291 $as_echo "$as_me: error: $1" >&2
26292 as_fn_exit $as_status
26293 } # as_fn_error
26296 # as_fn_set_status STATUS
26297 # -----------------------
26298 # Set $? to STATUS, without forking.
26299 as_fn_set_status ()
26301 return $1
26302 } # as_fn_set_status
26304 # as_fn_exit STATUS
26305 # -----------------
26306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26307 as_fn_exit ()
26309 set +e
26310 as_fn_set_status $1
26311 exit $1
26312 } # as_fn_exit
26314 # as_fn_unset VAR
26315 # ---------------
26316 # Portably unset VAR.
26317 as_fn_unset ()
26319 { eval $1=; unset $1;}
26321 as_unset=as_fn_unset
26322 # as_fn_append VAR VALUE
26323 # ----------------------
26324 # Append the text in VALUE to the end of the definition contained in VAR. Take
26325 # advantage of any shell optimizations that allow amortized linear growth over
26326 # repeated appends, instead of the typical quadratic growth present in naive
26327 # implementations.
26328 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26329 eval 'as_fn_append ()
26331 eval $1+=\$2
26333 else
26334 as_fn_append ()
26336 eval $1=\$$1\$2
26338 fi # as_fn_append
26340 # as_fn_arith ARG...
26341 # ------------------
26342 # Perform arithmetic evaluation on the ARGs, and store the result in the
26343 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26344 # must be portable across $(()) and expr.
26345 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26346 eval 'as_fn_arith ()
26348 as_val=$(( $* ))
26350 else
26351 as_fn_arith ()
26353 as_val=`expr "$@" || test $? -eq 1`
26355 fi # as_fn_arith
26358 if expr a : '\(a\)' >/dev/null 2>&1 &&
26359 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26360 as_expr=expr
26361 else
26362 as_expr=false
26365 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26366 as_basename=basename
26367 else
26368 as_basename=false
26371 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26372 as_dirname=dirname
26373 else
26374 as_dirname=false
26377 as_me=`$as_basename -- "$0" ||
26378 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26379 X"$0" : 'X\(//\)$' \| \
26380 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26381 $as_echo X/"$0" |
26382 sed '/^.*\/\([^/][^/]*\)\/*$/{
26383 s//\1/
26386 /^X\/\(\/\/\)$/{
26387 s//\1/
26390 /^X\/\(\/\).*/{
26391 s//\1/
26394 s/.*/./; q'`
26396 # Avoid depending upon Character Ranges.
26397 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26398 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26399 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26400 as_cr_digits='0123456789'
26401 as_cr_alnum=$as_cr_Letters$as_cr_digits
26403 ECHO_C= ECHO_N= ECHO_T=
26404 case `echo -n x` in #(((((
26405 -n*)
26406 case `echo 'xy\c'` in
26407 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26408 xy) ECHO_C='\c';;
26409 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26410 ECHO_T=' ';;
26411 esac;;
26413 ECHO_N='-n';;
26414 esac
26416 rm -f conf$$ conf$$.exe conf$$.file
26417 if test -d conf$$.dir; then
26418 rm -f conf$$.dir/conf$$.file
26419 else
26420 rm -f conf$$.dir
26421 mkdir conf$$.dir 2>/dev/null
26423 if (echo >conf$$.file) 2>/dev/null; then
26424 if ln -s conf$$.file conf$$ 2>/dev/null; then
26425 as_ln_s='ln -s'
26426 # ... but there are two gotchas:
26427 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26428 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26429 # In both cases, we have to default to `cp -p'.
26430 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26431 as_ln_s='cp -p'
26432 elif ln conf$$.file conf$$ 2>/dev/null; then
26433 as_ln_s=ln
26434 else
26435 as_ln_s='cp -p'
26437 else
26438 as_ln_s='cp -p'
26440 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26441 rmdir conf$$.dir 2>/dev/null
26444 # as_fn_mkdir_p
26445 # -------------
26446 # Create "$as_dir" as a directory, including parents if necessary.
26447 as_fn_mkdir_p ()
26450 case $as_dir in #(
26451 -*) as_dir=./$as_dir;;
26452 esac
26453 test -d "$as_dir" || eval $as_mkdir_p || {
26454 as_dirs=
26455 while :; do
26456 case $as_dir in #(
26457 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26458 *) as_qdir=$as_dir;;
26459 esac
26460 as_dirs="'$as_qdir' $as_dirs"
26461 as_dir=`$as_dirname -- "$as_dir" ||
26462 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26463 X"$as_dir" : 'X\(//\)[^/]' \| \
26464 X"$as_dir" : 'X\(//\)$' \| \
26465 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26466 $as_echo X"$as_dir" |
26467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26468 s//\1/
26471 /^X\(\/\/\)[^/].*/{
26472 s//\1/
26475 /^X\(\/\/\)$/{
26476 s//\1/
26479 /^X\(\/\).*/{
26480 s//\1/
26483 s/.*/./; q'`
26484 test -d "$as_dir" && break
26485 done
26486 test -z "$as_dirs" || eval "mkdir $as_dirs"
26487 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26490 } # as_fn_mkdir_p
26491 if mkdir -p . 2>/dev/null; then
26492 as_mkdir_p='mkdir -p "$as_dir"'
26493 else
26494 test -d ./-p && rmdir ./-p
26495 as_mkdir_p=false
26498 if test -x / >/dev/null 2>&1; then
26499 as_test_x='test -x'
26500 else
26501 if ls -dL / >/dev/null 2>&1; then
26502 as_ls_L_option=L
26503 else
26504 as_ls_L_option=
26506 as_test_x='
26507 eval sh -c '\''
26508 if test -d "$1"; then
26509 test -d "$1/.";
26510 else
26511 case $1 in #(
26512 -*)set "./$1";;
26513 esac;
26514 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26515 ???[sx]*):;;*)false;;esac;fi
26516 '\'' sh
26519 as_executable_p=$as_test_x
26521 # Sed expression to map a string onto a valid CPP name.
26522 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26524 # Sed expression to map a string onto a valid variable name.
26525 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26528 exec 6>&1
26529 ## ----------------------------------- ##
26530 ## Main body of $CONFIG_STATUS script. ##
26531 ## ----------------------------------- ##
26532 _ASEOF
26533 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26535 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26536 # Save the log message, to keep $0 and so on meaningful, and to
26537 # report actual input values of CONFIG_FILES etc. instead of their
26538 # values after options handling.
26539 ac_log="
26540 This file was extended by GNU Classpath $as_me 0.99.1-pre, which was
26541 generated by GNU Autoconf 2.64. Invocation command line was
26543 CONFIG_FILES = $CONFIG_FILES
26544 CONFIG_HEADERS = $CONFIG_HEADERS
26545 CONFIG_LINKS = $CONFIG_LINKS
26546 CONFIG_COMMANDS = $CONFIG_COMMANDS
26547 $ $0 $@
26549 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26552 _ACEOF
26554 case $ac_config_files in *"
26555 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26556 esac
26558 case $ac_config_headers in *"
26559 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26560 esac
26563 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26564 # Files that config.status was made for.
26565 config_files="$ac_config_files"
26566 config_headers="$ac_config_headers"
26567 config_links="$ac_config_links"
26568 config_commands="$ac_config_commands"
26570 _ACEOF
26572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26573 ac_cs_usage="\
26574 \`$as_me' instantiates files and other configuration actions
26575 from templates according to the current configuration. Unless the files
26576 and actions are specified as TAGs, all are instantiated by default.
26578 Usage: $0 [OPTION]... [TAG]...
26580 -h, --help print this help, then exit
26581 -V, --version print version number and configuration settings, then exit
26582 -q, --quiet, --silent
26583 do not print progress messages
26584 -d, --debug don't remove temporary files
26585 --recheck update $as_me by reconfiguring in the same conditions
26586 --file=FILE[:TEMPLATE]
26587 instantiate the configuration file FILE
26588 --header=FILE[:TEMPLATE]
26589 instantiate the configuration header FILE
26591 Configuration files:
26592 $config_files
26594 Configuration headers:
26595 $config_headers
26597 Configuration links:
26598 $config_links
26600 Configuration commands:
26601 $config_commands
26603 Report bugs to <classpath@gnu.org>.
26604 GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
26605 General help using GNU software: <http://www.gnu.org/gethelp/>."
26607 _ACEOF
26608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26609 ac_cs_version="\\
26610 GNU Classpath config.status 0.99.1-pre
26611 configured by $0, generated by GNU Autoconf 2.64,
26612 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26614 Copyright (C) 2009 Free Software Foundation, Inc.
26615 This config.status script is free software; the Free Software Foundation
26616 gives unlimited permission to copy, distribute and modify it."
26618 ac_pwd='$ac_pwd'
26619 srcdir='$srcdir'
26620 INSTALL='$INSTALL'
26621 MKDIR_P='$MKDIR_P'
26622 AWK='$AWK'
26623 test -n "\$AWK" || AWK=awk
26624 _ACEOF
26626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26627 # The default lists apply if the user does not specify any file.
26628 ac_need_defaults=:
26629 while test $# != 0
26631 case $1 in
26632 --*=*)
26633 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26634 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26635 ac_shift=:
26638 ac_option=$1
26639 ac_optarg=$2
26640 ac_shift=shift
26642 esac
26644 case $ac_option in
26645 # Handling of the options.
26646 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26647 ac_cs_recheck=: ;;
26648 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26649 $as_echo "$ac_cs_version"; exit ;;
26650 --debug | --debu | --deb | --de | --d | -d )
26651 debug=: ;;
26652 --file | --fil | --fi | --f )
26653 $ac_shift
26654 case $ac_optarg in
26655 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26656 esac
26657 as_fn_append CONFIG_FILES " '$ac_optarg'"
26658 ac_need_defaults=false;;
26659 --header | --heade | --head | --hea )
26660 $ac_shift
26661 case $ac_optarg in
26662 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26663 esac
26664 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26665 ac_need_defaults=false;;
26666 --he | --h)
26667 # Conflict between --help and --header
26668 as_fn_error "ambiguous option: \`$1'
26669 Try \`$0 --help' for more information.";;
26670 --help | --hel | -h )
26671 $as_echo "$ac_cs_usage"; exit ;;
26672 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26673 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26674 ac_cs_silent=: ;;
26676 # This is an error.
26677 -*) as_fn_error "unrecognized option: \`$1'
26678 Try \`$0 --help' for more information." ;;
26680 *) as_fn_append ac_config_targets " $1"
26681 ac_need_defaults=false ;;
26683 esac
26684 shift
26685 done
26687 ac_configure_extra_args=
26689 if $ac_cs_silent; then
26690 exec 6>/dev/null
26691 ac_configure_extra_args="$ac_configure_extra_args --silent"
26694 _ACEOF
26695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26696 if \$ac_cs_recheck; then
26697 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26698 shift
26699 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26700 CONFIG_SHELL='$SHELL'
26701 export CONFIG_SHELL
26702 exec "\$@"
26705 _ACEOF
26706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26707 exec 5>>config.log
26709 echo
26710 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26711 ## Running $as_me. ##
26712 _ASBOX
26713 $as_echo "$ac_log"
26714 } >&5
26716 _ACEOF
26717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26719 # INIT-COMMANDS
26722 srcdir="$srcdir"
26723 host="$host"
26724 target="$target"
26725 with_multisubdir="$with_multisubdir"
26726 with_multisrctop="$with_multisrctop"
26727 with_target_subdir="$with_target_subdir"
26728 ac_configure_args="${multilib_arg} ${ac_configure_args}"
26729 multi_basedir="$multi_basedir"
26730 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
26731 CC="$CC"
26732 CXX="$CXX"
26733 GFORTRAN="$GFORTRAN"
26734 GCJ="$GCJ"
26735 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26738 # The HP-UX ksh and POSIX shell print the target directory to stdout
26739 # if CDPATH is set.
26740 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26742 sed_quote_subst='$sed_quote_subst'
26743 double_quote_subst='$double_quote_subst'
26744 delay_variable_subst='$delay_variable_subst'
26745 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26746 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26747 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26748 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26749 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26750 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26751 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26752 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26753 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26754 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26755 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26756 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26757 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26758 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26759 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26760 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26761 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26762 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26763 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26764 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26765 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26766 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26767 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26768 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26769 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26770 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26771 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26772 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26773 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26774 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26775 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26776 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26777 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26778 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26779 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26780 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26781 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26782 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26783 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26784 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26785 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26786 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26787 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26788 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26789 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26790 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26791 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26792 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26793 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"`'
26794 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26795 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26796 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26797 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26798 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26799 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26800 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26801 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26802 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26803 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26804 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26805 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26806 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26807 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26808 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26809 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26810 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26811 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26812 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26813 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26814 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26815 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26816 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26817 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26818 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26819 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26820 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26821 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26822 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26823 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26824 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26825 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
26826 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26827 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26828 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26829 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26830 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26831 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26832 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26833 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26834 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
26835 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26836 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26837 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26838 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26839 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26840 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26841 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26842 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26843 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26844 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26845 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26846 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26847 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26848 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26849 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26850 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26851 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26852 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26853 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26854 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26855 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26856 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26857 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26858 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26859 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26860 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26861 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26862 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26863 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26864 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26865 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26866 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26867 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26868 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26869 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26870 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26871 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
26872 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
26873 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26874 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26875 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
26876 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
26877 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
26878 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
26879 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
26880 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
26881 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
26882 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
26883 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
26884 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26885 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26886 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
26887 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26888 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26889 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26890 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26891 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26892 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26893 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
26894 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26895 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
26896 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
26897 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
26898 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
26899 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
26900 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
26901 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
26902 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
26903 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26904 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26905 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26906 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
26907 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26908 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26909 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26910 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26911 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26912 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26913 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26914 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26915 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26916 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26917 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26918 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26919 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26921 LTCC='$LTCC'
26922 LTCFLAGS='$LTCFLAGS'
26923 compiler='$compiler_DEFAULT'
26925 # A function that is used when there is no print builtin or printf.
26926 func_fallback_echo ()
26928 eval 'cat <<_LTECHO_EOF
26930 _LTECHO_EOF'
26933 # Quote evaled strings.
26934 for var in SHELL \
26935 ECHO \
26936 SED \
26937 GREP \
26938 EGREP \
26939 FGREP \
26940 LD \
26941 NM \
26942 LN_S \
26943 lt_SP2NL \
26944 lt_NL2SP \
26945 reload_flag \
26946 OBJDUMP \
26947 deplibs_check_method \
26948 file_magic_cmd \
26949 AR \
26950 AR_FLAGS \
26951 STRIP \
26952 RANLIB \
26953 CC \
26954 CFLAGS \
26955 compiler \
26956 lt_cv_sys_global_symbol_pipe \
26957 lt_cv_sys_global_symbol_to_cdecl \
26958 lt_cv_sys_global_symbol_to_c_name_address \
26959 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26960 lt_prog_compiler_no_builtin_flag \
26961 lt_prog_compiler_wl \
26962 lt_prog_compiler_pic \
26963 lt_prog_compiler_static \
26964 lt_cv_prog_compiler_c_o \
26965 need_locks \
26966 DSYMUTIL \
26967 NMEDIT \
26968 LIPO \
26969 OTOOL \
26970 OTOOL64 \
26971 shrext_cmds \
26972 export_dynamic_flag_spec \
26973 whole_archive_flag_spec \
26974 compiler_needs_object \
26975 with_gnu_ld \
26976 allow_undefined_flag \
26977 no_undefined_flag \
26978 hardcode_libdir_flag_spec \
26979 hardcode_libdir_flag_spec_ld \
26980 hardcode_libdir_separator \
26981 fix_srcfile_path \
26982 exclude_expsyms \
26983 include_expsyms \
26984 file_list_spec \
26985 variables_saved_for_relink \
26986 libname_spec \
26987 library_names_spec \
26988 soname_spec \
26989 install_override_mode \
26990 finish_eval \
26991 old_striplib \
26992 striplib \
26993 compiler_lib_search_dirs \
26994 predep_objects \
26995 postdep_objects \
26996 predeps \
26997 postdeps \
26998 compiler_lib_search_path \
26999 LD_CXX \
27000 reload_flag_CXX \
27001 compiler_CXX \
27002 lt_prog_compiler_no_builtin_flag_CXX \
27003 lt_prog_compiler_wl_CXX \
27004 lt_prog_compiler_pic_CXX \
27005 lt_prog_compiler_static_CXX \
27006 lt_cv_prog_compiler_c_o_CXX \
27007 export_dynamic_flag_spec_CXX \
27008 whole_archive_flag_spec_CXX \
27009 compiler_needs_object_CXX \
27010 with_gnu_ld_CXX \
27011 allow_undefined_flag_CXX \
27012 no_undefined_flag_CXX \
27013 hardcode_libdir_flag_spec_CXX \
27014 hardcode_libdir_flag_spec_ld_CXX \
27015 hardcode_libdir_separator_CXX \
27016 fix_srcfile_path_CXX \
27017 exclude_expsyms_CXX \
27018 include_expsyms_CXX \
27019 file_list_spec_CXX \
27020 compiler_lib_search_dirs_CXX \
27021 predep_objects_CXX \
27022 postdep_objects_CXX \
27023 predeps_CXX \
27024 postdeps_CXX \
27025 compiler_lib_search_path_CXX; do
27026 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27027 *[\\\\\\\`\\"\\\$]*)
27028 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27031 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27033 esac
27034 done
27036 # Double-quote double-evaled strings.
27037 for var in reload_cmds \
27038 old_postinstall_cmds \
27039 old_postuninstall_cmds \
27040 old_archive_cmds \
27041 extract_expsyms_cmds \
27042 old_archive_from_new_cmds \
27043 old_archive_from_expsyms_cmds \
27044 archive_cmds \
27045 archive_expsym_cmds \
27046 module_cmds \
27047 module_expsym_cmds \
27048 export_symbols_cmds \
27049 prelink_cmds \
27050 postinstall_cmds \
27051 postuninstall_cmds \
27052 finish_cmds \
27053 sys_lib_search_path_spec \
27054 sys_lib_dlsearch_path_spec \
27055 reload_cmds_CXX \
27056 old_archive_cmds_CXX \
27057 old_archive_from_new_cmds_CXX \
27058 old_archive_from_expsyms_cmds_CXX \
27059 archive_cmds_CXX \
27060 archive_expsym_cmds_CXX \
27061 module_cmds_CXX \
27062 module_expsym_cmds_CXX \
27063 export_symbols_cmds_CXX \
27064 prelink_cmds_CXX; do
27065 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27066 *[\\\\\\\`\\"\\\$]*)
27067 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27070 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27072 esac
27073 done
27075 ac_aux_dir='$ac_aux_dir'
27076 xsi_shell='$xsi_shell'
27077 lt_shell_append='$lt_shell_append'
27079 # See if we are running on zsh, and set the options which allow our
27080 # commands through without removal of \ escapes INIT.
27081 if test -n "\${ZSH_VERSION+set}" ; then
27082 setopt NO_GLOB_SUBST
27086 PACKAGE='$PACKAGE'
27087 VERSION='$VERSION'
27088 TIMESTAMP='$TIMESTAMP'
27089 RM='$RM'
27090 ofile='$ofile'
27096 # variables for create stdint.h replacement
27097 PACKAGE="$PACKAGE"
27098 VERSION="$VERSION"
27099 ac_stdint_h="$ac_stdint_h"
27100 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
27101 ac_cv_stdint_message="$ac_cv_stdint_message"
27102 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
27103 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
27104 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
27105 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
27106 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27107 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27108 ac_cv_char_data_model="$ac_cv_char_data_model"
27109 ac_cv_long_data_model="$ac_cv_long_data_model"
27110 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27111 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27112 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
27115 _ACEOF
27117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27119 # Handling of arguments.
27120 for ac_config_target in $ac_config_targets
27122 case $ac_config_target in
27123 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27124 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
27125 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27126 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27127 "lib/mkcollections.pl") CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
27128 "mkcollections.pl") CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
27129 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
27130 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
27131 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27132 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27133 "doc/api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
27134 "external/Makefile") CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
27135 "external/sax/Makefile") CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
27136 "external/w3c_dom/Makefile") CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
27137 "external/relaxngDatatype/Makefile") CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
27138 "external/jsr166/Makefile") CONFIG_FILES="$CONFIG_FILES external/jsr166/Makefile" ;;
27139 "gnu/classpath/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
27140 "gnu/java/security/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/java/security/Configuration.java" ;;
27141 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
27142 "native/Makefile") CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
27143 "native/fdlibm/Makefile") CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
27144 "native/jawt/Makefile") CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
27145 "native/jni/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
27146 "native/jni/classpath/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
27147 "native/jni/java-io/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
27148 "native/jni/java-lang/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
27149 "native/jni/java-math/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-math/Makefile" ;;
27150 "native/jni/java-net/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
27151 "native/jni/java-nio/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
27152 "native/jni/java-util/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
27153 "native/jni/gtk-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
27154 "native/jni/gconf-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gconf-peer/Makefile" ;;
27155 "native/jni/gstreamer-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gstreamer-peer/Makefile" ;;
27156 "native/jni/qt-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
27157 "native/jni/xmlj/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
27158 "native/jni/midi-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
27159 "native/jni/midi-dssi/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
27160 "native/jni/native-lib/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/native-lib/Makefile" ;;
27161 "native/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
27162 "resource/Makefile") CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
27163 "resource/META-INF/services/java.util.prefs.PreferencesFactory") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/java.util.prefs.PreferencesFactory" ;;
27164 "resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader" ;;
27165 "resource/META-INF/services/javax.sound.sampled.spi.MixerProvider") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.MixerProvider" ;;
27166 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
27167 "scripts/classpath.spec") CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
27168 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
27169 "lib/gen-classlist.sh") CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
27170 "lib/copy-vmresources.sh") CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
27171 "scripts/check_jni_methods.sh") CONFIG_FILES="$CONFIG_FILES scripts/check_jni_methods.sh" ;;
27172 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
27173 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
27174 "examples/Makefile.jawt") CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
27175 "examples/Makefile.java2d") CONFIG_FILES="$CONFIG_FILES examples/Makefile.java2d" ;;
27176 "tools/gappletviewer") CONFIG_FILES="$CONFIG_FILES tools/gappletviewer" ;;
27177 "tools/gjarsigner") CONFIG_FILES="$CONFIG_FILES tools/gjarsigner" ;;
27178 "tools/gkeytool") CONFIG_FILES="$CONFIG_FILES tools/gkeytool" ;;
27179 "tools/gjar") CONFIG_FILES="$CONFIG_FILES tools/gjar" ;;
27180 "tools/gnative2ascii") CONFIG_FILES="$CONFIG_FILES tools/gnative2ascii" ;;
27181 "tools/gserialver") CONFIG_FILES="$CONFIG_FILES tools/gserialver" ;;
27182 "tools/grmiregistry") CONFIG_FILES="$CONFIG_FILES tools/grmiregistry" ;;
27183 "tools/gtnameserv") CONFIG_FILES="$CONFIG_FILES tools/gtnameserv" ;;
27184 "tools/gorbd") CONFIG_FILES="$CONFIG_FILES tools/gorbd" ;;
27185 "tools/grmid") CONFIG_FILES="$CONFIG_FILES tools/grmid" ;;
27186 "tools/grmic") CONFIG_FILES="$CONFIG_FILES tools/grmic" ;;
27187 "tools/gjavah") CONFIG_FILES="$CONFIG_FILES tools/gjavah" ;;
27188 "gappletviewer") CONFIG_COMMANDS="$CONFIG_COMMANDS gappletviewer" ;;
27189 "gjarsigner") CONFIG_COMMANDS="$CONFIG_COMMANDS gjarsigner" ;;
27190 "gkeytool") CONFIG_COMMANDS="$CONFIG_COMMANDS gkeytool" ;;
27191 "gjar") CONFIG_COMMANDS="$CONFIG_COMMANDS gjar" ;;
27192 "gnative2ascii") CONFIG_COMMANDS="$CONFIG_COMMANDS gnative2ascii" ;;
27193 "gserialver") CONFIG_COMMANDS="$CONFIG_COMMANDS gserialver" ;;
27194 "grmiregistry") CONFIG_COMMANDS="$CONFIG_COMMANDS grmiregistry" ;;
27195 "gtnameserv") CONFIG_COMMANDS="$CONFIG_COMMANDS gtnameserv" ;;
27196 "gorbd") CONFIG_COMMANDS="$CONFIG_COMMANDS gorbd" ;;
27197 "grmid") CONFIG_COMMANDS="$CONFIG_COMMANDS grmid" ;;
27198 "grmic") CONFIG_COMMANDS="$CONFIG_COMMANDS grmic" ;;
27199 "gjavah") CONFIG_COMMANDS="$CONFIG_COMMANDS gjavah" ;;
27200 "tools/gjdoc") CONFIG_FILES="$CONFIG_FILES tools/gjdoc" ;;
27201 "gjdoc") CONFIG_COMMANDS="$CONFIG_COMMANDS gjdoc" ;;
27202 "gen-classlist") CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
27203 "copy-vmresources") CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
27205 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27206 esac
27207 done
27210 # If the user did not use the arguments to specify the items to instantiate,
27211 # then the envvar interface is used. Set only those that are not.
27212 # We use the long form for the default assignment because of an extremely
27213 # bizarre bug on SunOS 4.1.3.
27214 if $ac_need_defaults; then
27215 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27216 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27217 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
27218 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27221 # Have a temporary directory for convenience. Make it in the build tree
27222 # simply because there is no reason against having it here, and in addition,
27223 # creating and moving files from /tmp can sometimes cause problems.
27224 # Hook for its removal unless debugging.
27225 # Note that there is a small window in which the directory will not be cleaned:
27226 # after its creation but before its name has been assigned to `$tmp'.
27227 $debug ||
27229 tmp=
27230 trap 'exit_status=$?
27231 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27233 trap 'as_fn_exit 1' 1 2 13 15
27235 # Create a (secure) tmp directory for tmp files.
27238 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27239 test -n "$tmp" && test -d "$tmp"
27240 } ||
27242 tmp=./conf$$-$RANDOM
27243 (umask 077 && mkdir "$tmp")
27244 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27246 # Set up the scripts for CONFIG_FILES section.
27247 # No need to generate them if there are no CONFIG_FILES.
27248 # This happens for instance with `./config.status config.h'.
27249 if test -n "$CONFIG_FILES"; then
27252 ac_cr=`echo X | tr X '\015'`
27253 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27254 # But we know of no other shell where ac_cr would be empty at this
27255 # point, so we can use a bashism as a fallback.
27256 if test "x$ac_cr" = x; then
27257 eval ac_cr=\$\'\\r\'
27259 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27260 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27261 ac_cs_awk_cr='\r'
27262 else
27263 ac_cs_awk_cr=$ac_cr
27266 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27267 _ACEOF
27271 echo "cat >conf$$subs.awk <<_ACEOF" &&
27272 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27273 echo "_ACEOF"
27274 } >conf$$subs.sh ||
27275 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27276 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27277 ac_delim='%!_!# '
27278 for ac_last_try in false false false false false :; do
27279 . ./conf$$subs.sh ||
27280 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27282 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27283 if test $ac_delim_n = $ac_delim_num; then
27284 break
27285 elif $ac_last_try; then
27286 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27287 else
27288 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27290 done
27291 rm -f conf$$subs.sh
27293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27294 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27295 _ACEOF
27296 sed -n '
27298 s/^/S["/; s/!.*/"]=/
27301 s/^[^!]*!//
27302 :repl
27303 t repl
27304 s/'"$ac_delim"'$//
27305 t delim
27308 s/\(.\{148\}\).*/\1/
27309 t more1
27310 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27313 b repl
27314 :more1
27315 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27318 s/.\{148\}//
27319 t nl
27320 :delim
27322 s/\(.\{148\}\).*/\1/
27323 t more2
27324 s/["\\]/\\&/g; s/^/"/; s/$/"/
27327 :more2
27328 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27331 s/.\{148\}//
27332 t delim
27333 ' <conf$$subs.awk | sed '
27334 /^[^""]/{
27336 s/\n//
27338 ' >>$CONFIG_STATUS || ac_write_fail=1
27339 rm -f conf$$subs.awk
27340 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27341 _ACAWK
27342 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27343 for (key in S) S_is_set[key] = 1
27344 FS = "\a"
27348 line = $ 0
27349 nfields = split(line, field, "@")
27350 substed = 0
27351 len = length(field[1])
27352 for (i = 2; i < nfields; i++) {
27353 key = field[i]
27354 keylen = length(key)
27355 if (S_is_set[key]) {
27356 value = S[key]
27357 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27358 len += length(value) + length(field[++i])
27359 substed = 1
27360 } else
27361 len += 1 + keylen
27364 print line
27367 _ACAWK
27368 _ACEOF
27369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27370 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27371 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27372 else
27374 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27375 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27376 _ACEOF
27378 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27379 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27380 # trailing colons and then remove the whole line if VPATH becomes empty
27381 # (actually we leave an empty line to preserve line numbers).
27382 if test "x$srcdir" = x.; then
27383 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27384 s/:*\$(srcdir):*/:/
27385 s/:*\${srcdir}:*/:/
27386 s/:*@srcdir@:*/:/
27387 s/^\([^=]*=[ ]*\):*/\1/
27388 s/:*$//
27389 s/^[^=]*=[ ]*$//
27393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27394 fi # test -n "$CONFIG_FILES"
27396 # Set up the scripts for CONFIG_HEADERS section.
27397 # No need to generate them if there are no CONFIG_HEADERS.
27398 # This happens for instance with `./config.status Makefile'.
27399 if test -n "$CONFIG_HEADERS"; then
27400 cat >"$tmp/defines.awk" <<\_ACAWK ||
27401 BEGIN {
27402 _ACEOF
27404 # Transform confdefs.h into an awk script `defines.awk', embedded as
27405 # here-document in config.status, that substitutes the proper values into
27406 # config.h.in to produce config.h.
27408 # Create a delimiter string that does not exist in confdefs.h, to ease
27409 # handling of long lines.
27410 ac_delim='%!_!# '
27411 for ac_last_try in false false :; do
27412 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27413 if test -z "$ac_t"; then
27414 break
27415 elif $ac_last_try; then
27416 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27417 else
27418 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27420 done
27422 # For the awk script, D is an array of macro values keyed by name,
27423 # likewise P contains macro parameters if any. Preserve backslash
27424 # newline sequences.
27426 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27427 sed -n '
27428 s/.\{148\}/&'"$ac_delim"'/g
27429 t rset
27430 :rset
27431 s/^[ ]*#[ ]*define[ ][ ]*/ /
27432 t def
27434 :def
27435 s/\\$//
27436 t bsnl
27437 s/["\\]/\\&/g
27438 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27439 D["\1"]=" \3"/p
27440 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27442 :bsnl
27443 s/["\\]/\\&/g
27444 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27445 D["\1"]=" \3\\\\\\n"\\/p
27446 t cont
27447 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27448 t cont
27450 :cont
27452 s/.\{148\}/&'"$ac_delim"'/g
27453 t clear
27454 :clear
27455 s/\\$//
27456 t bsnlc
27457 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27459 :bsnlc
27460 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27461 b cont
27462 ' <confdefs.h | sed '
27463 s/'"$ac_delim"'/"\\\
27464 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27467 for (key in D) D_is_set[key] = 1
27468 FS = "\a"
27470 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27471 line = \$ 0
27472 split(line, arg, " ")
27473 if (arg[1] == "#") {
27474 defundef = arg[2]
27475 mac1 = arg[3]
27476 } else {
27477 defundef = substr(arg[1], 2)
27478 mac1 = arg[2]
27480 split(mac1, mac2, "(") #)
27481 macro = mac2[1]
27482 prefix = substr(line, 1, index(line, defundef) - 1)
27483 if (D_is_set[macro]) {
27484 # Preserve the white space surrounding the "#".
27485 print prefix "define", macro P[macro] D[macro]
27486 next
27487 } else {
27488 # Replace #undef with comments. This is necessary, for example,
27489 # in the case of _POSIX_SOURCE, which is predefined and required
27490 # on some systems where configure will not decide to define it.
27491 if (defundef == "undef") {
27492 print "/*", prefix defundef, macro, "*/"
27493 next
27497 { print }
27498 _ACAWK
27499 _ACEOF
27500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27501 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27502 fi # test -n "$CONFIG_HEADERS"
27505 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
27506 shift
27507 for ac_tag
27509 case $ac_tag in
27510 :[FHLC]) ac_mode=$ac_tag; continue;;
27511 esac
27512 case $ac_mode$ac_tag in
27513 :[FHL]*:*);;
27514 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27515 :[FH]-) ac_tag=-:-;;
27516 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27517 esac
27518 ac_save_IFS=$IFS
27519 IFS=:
27520 set x $ac_tag
27521 IFS=$ac_save_IFS
27522 shift
27523 ac_file=$1
27524 shift
27526 case $ac_mode in
27527 :L) ac_source=$1;;
27528 :[FH])
27529 ac_file_inputs=
27530 for ac_f
27532 case $ac_f in
27533 -) ac_f="$tmp/stdin";;
27534 *) # Look for the file first in the build tree, then in the source tree
27535 # (if the path is not absolute). The absolute path cannot be DOS-style,
27536 # because $ac_f cannot contain `:'.
27537 test -f "$ac_f" ||
27538 case $ac_f in
27539 [\\/$]*) false;;
27540 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27541 esac ||
27542 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27543 esac
27544 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27545 as_fn_append ac_file_inputs " '$ac_f'"
27546 done
27548 # Let's still pretend it is `configure' which instantiates (i.e., don't
27549 # use $as_me), people would be surprised to read:
27550 # /* config.h. Generated by config.status. */
27551 configure_input='Generated from '`
27552 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27553 `' by configure.'
27554 if test x"$ac_file" != x-; then
27555 configure_input="$ac_file. $configure_input"
27556 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27557 $as_echo "$as_me: creating $ac_file" >&6;}
27559 # Neutralize special characters interpreted by sed in replacement strings.
27560 case $configure_input in #(
27561 *\&* | *\|* | *\\* )
27562 ac_sed_conf_input=`$as_echo "$configure_input" |
27563 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27564 *) ac_sed_conf_input=$configure_input;;
27565 esac
27567 case $ac_tag in
27568 *:-:* | *:-) cat >"$tmp/stdin" \
27569 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27570 esac
27572 esac
27574 ac_dir=`$as_dirname -- "$ac_file" ||
27575 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27576 X"$ac_file" : 'X\(//\)[^/]' \| \
27577 X"$ac_file" : 'X\(//\)$' \| \
27578 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27579 $as_echo X"$ac_file" |
27580 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27581 s//\1/
27584 /^X\(\/\/\)[^/].*/{
27585 s//\1/
27588 /^X\(\/\/\)$/{
27589 s//\1/
27592 /^X\(\/\).*/{
27593 s//\1/
27596 s/.*/./; q'`
27597 as_dir="$ac_dir"; as_fn_mkdir_p
27598 ac_builddir=.
27600 case "$ac_dir" in
27601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27603 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27604 # A ".." for each directory in $ac_dir_suffix.
27605 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27606 case $ac_top_builddir_sub in
27607 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27608 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27609 esac ;;
27610 esac
27611 ac_abs_top_builddir=$ac_pwd
27612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27613 # for backward compatibility:
27614 ac_top_builddir=$ac_top_build_prefix
27616 case $srcdir in
27617 .) # We are building in place.
27618 ac_srcdir=.
27619 ac_top_srcdir=$ac_top_builddir_sub
27620 ac_abs_top_srcdir=$ac_pwd ;;
27621 [\\/]* | ?:[\\/]* ) # Absolute name.
27622 ac_srcdir=$srcdir$ac_dir_suffix;
27623 ac_top_srcdir=$srcdir
27624 ac_abs_top_srcdir=$srcdir ;;
27625 *) # Relative name.
27626 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27627 ac_top_srcdir=$ac_top_build_prefix$srcdir
27628 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27629 esac
27630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27633 case $ac_mode in
27636 # CONFIG_FILE
27639 case $INSTALL in
27640 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27641 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27642 esac
27643 ac_MKDIR_P=$MKDIR_P
27644 case $MKDIR_P in
27645 [\\/$]* | ?:[\\/]* ) ;;
27646 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27647 esac
27648 _ACEOF
27650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27651 # If the template does not know about datarootdir, expand it.
27652 # FIXME: This hack should be removed a few years after 2.60.
27653 ac_datarootdir_hack=; ac_datarootdir_seen=
27654 ac_sed_dataroot='
27655 /datarootdir/ {
27659 /@datadir@/p
27660 /@docdir@/p
27661 /@infodir@/p
27662 /@localedir@/p
27663 /@mandir@/p'
27664 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27665 *datarootdir*) ac_datarootdir_seen=yes;;
27666 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27668 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27669 _ACEOF
27670 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27671 ac_datarootdir_hack='
27672 s&@datadir@&$datadir&g
27673 s&@docdir@&$docdir&g
27674 s&@infodir@&$infodir&g
27675 s&@localedir@&$localedir&g
27676 s&@mandir@&$mandir&g
27677 s&\\\${datarootdir}&$datarootdir&g' ;;
27678 esac
27679 _ACEOF
27681 # Neutralize VPATH when `$srcdir' = `.'.
27682 # Shell code in configure.ac might set extrasub.
27683 # FIXME: do we really want to maintain this feature?
27684 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27685 ac_sed_extra="$ac_vpsub
27686 $extrasub
27687 _ACEOF
27688 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27690 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27691 s|@configure_input@|$ac_sed_conf_input|;t t
27692 s&@top_builddir@&$ac_top_builddir_sub&;t t
27693 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27694 s&@srcdir@&$ac_srcdir&;t t
27695 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27696 s&@top_srcdir@&$ac_top_srcdir&;t t
27697 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27698 s&@builddir@&$ac_builddir&;t t
27699 s&@abs_builddir@&$ac_abs_builddir&;t t
27700 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27701 s&@INSTALL@&$ac_INSTALL&;t t
27702 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27703 $ac_datarootdir_hack
27705 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27706 || as_fn_error "could not create $ac_file" "$LINENO" 5
27708 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27709 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27710 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27712 which seems to be undefined. Please make sure it is defined." >&5
27713 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27714 which seems to be undefined. Please make sure it is defined." >&2;}
27716 rm -f "$tmp/stdin"
27717 case $ac_file in
27718 -) cat "$tmp/out" && rm -f "$tmp/out";;
27719 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27720 esac \
27721 || as_fn_error "could not create $ac_file" "$LINENO" 5
27725 # CONFIG_HEADER
27727 if test x"$ac_file" != x-; then
27729 $as_echo "/* $configure_input */" \
27730 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27731 } >"$tmp/config.h" \
27732 || as_fn_error "could not create $ac_file" "$LINENO" 5
27733 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27735 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27736 else
27737 rm -f "$ac_file"
27738 mv "$tmp/config.h" "$ac_file" \
27739 || as_fn_error "could not create $ac_file" "$LINENO" 5
27741 else
27742 $as_echo "/* $configure_input */" \
27743 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27744 || as_fn_error "could not create -" "$LINENO" 5
27746 # Compute "$ac_file"'s index in $config_headers.
27747 _am_arg="$ac_file"
27748 _am_stamp_count=1
27749 for _am_header in $config_headers :; do
27750 case $_am_header in
27751 $_am_arg | $_am_arg:* )
27752 break ;;
27754 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27755 esac
27756 done
27757 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27758 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27759 X"$_am_arg" : 'X\(//\)[^/]' \| \
27760 X"$_am_arg" : 'X\(//\)$' \| \
27761 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27762 $as_echo X"$_am_arg" |
27763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27764 s//\1/
27767 /^X\(\/\/\)[^/].*/{
27768 s//\1/
27771 /^X\(\/\/\)$/{
27772 s//\1/
27775 /^X\(\/\).*/{
27776 s//\1/
27779 s/.*/./; q'`/stamp-h$_am_stamp_count
27783 # CONFIG_LINK
27786 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
27788 else
27789 # Prefer the file from the source tree if names are identical.
27790 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
27791 ac_source=$srcdir/$ac_source
27794 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
27795 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
27797 if test ! -r "$ac_source"; then
27798 as_fn_error "$ac_source: file not found" "$LINENO" 5
27800 rm -f "$ac_file"
27802 # Try a relative symlink, then a hard link, then a copy.
27803 case $srcdir in
27804 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
27805 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
27806 esac
27807 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
27808 ln "$ac_source" "$ac_file" 2>/dev/null ||
27809 cp -p "$ac_source" "$ac_file" ||
27810 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
27813 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27814 $as_echo "$as_me: executing $ac_file commands" >&6;}
27816 esac
27819 case $ac_file$ac_mode in
27820 "default-1":C)
27821 # Only add multilib support code if we just rebuilt the top-level
27822 # Makefile.
27823 case " $CONFIG_FILES " in
27824 *" Makefile "*)
27825 ac_file=Makefile . ${multi_basedir}/config-ml.in
27827 esac ;;
27828 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27829 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27830 # are listed without --file. Let's play safe and only enable the eval
27831 # if we detect the quoting.
27832 case $CONFIG_FILES in
27833 *\'*) eval set x "$CONFIG_FILES" ;;
27834 *) set x $CONFIG_FILES ;;
27835 esac
27836 shift
27837 for mf
27839 # Strip MF so we end up with the name of the file.
27840 mf=`echo "$mf" | sed -e 's/:.*$//'`
27841 # Check whether this is an Automake generated Makefile or not.
27842 # We used to match only the files named `Makefile.in', but
27843 # some people rename them; so instead we look at the file content.
27844 # Grep'ing the first line is not enough: some people post-process
27845 # each Makefile.in and add a new line on top of each file to say so.
27846 # Grep'ing the whole file is not good either: AIX grep has a line
27847 # limit of 2048, but all sed's we know have understand at least 4000.
27848 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27849 dirpart=`$as_dirname -- "$mf" ||
27850 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27851 X"$mf" : 'X\(//\)[^/]' \| \
27852 X"$mf" : 'X\(//\)$' \| \
27853 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27854 $as_echo X"$mf" |
27855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27856 s//\1/
27859 /^X\(\/\/\)[^/].*/{
27860 s//\1/
27863 /^X\(\/\/\)$/{
27864 s//\1/
27867 /^X\(\/\).*/{
27868 s//\1/
27871 s/.*/./; q'`
27872 else
27873 continue
27875 # Extract the definition of DEPDIR, am__include, and am__quote
27876 # from the Makefile without running `make'.
27877 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27878 test -z "$DEPDIR" && continue
27879 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27880 test -z "am__include" && continue
27881 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27882 # When using ansi2knr, U may be empty or an underscore; expand it
27883 U=`sed -n 's/^U = //p' < "$mf"`
27884 # Find all dependency output files, they are included files with
27885 # $(DEPDIR) in their names. We invoke sed twice because it is the
27886 # simplest approach to changing $(DEPDIR) to its actual value in the
27887 # expansion.
27888 for file in `sed -n "
27889 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27890 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27891 # Make sure the directory exists.
27892 test -f "$dirpart/$file" && continue
27893 fdir=`$as_dirname -- "$file" ||
27894 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27895 X"$file" : 'X\(//\)[^/]' \| \
27896 X"$file" : 'X\(//\)$' \| \
27897 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27898 $as_echo X"$file" |
27899 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27900 s//\1/
27903 /^X\(\/\/\)[^/].*/{
27904 s//\1/
27907 /^X\(\/\/\)$/{
27908 s//\1/
27911 /^X\(\/\).*/{
27912 s//\1/
27915 s/.*/./; q'`
27916 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27917 # echo "creating $dirpart/$file"
27918 echo '# dummy' > "$dirpart/$file"
27919 done
27920 done
27923 "libtool":C)
27925 # See if we are running on zsh, and set the options which allow our
27926 # commands through without removal of \ escapes.
27927 if test -n "${ZSH_VERSION+set}" ; then
27928 setopt NO_GLOB_SUBST
27931 cfgfile="${ofile}T"
27932 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27933 $RM "$cfgfile"
27935 cat <<_LT_EOF >> "$cfgfile"
27936 #! $SHELL
27938 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27939 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27940 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27941 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27943 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27944 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
27945 # Written by Gordon Matzigkeit, 1996
27947 # This file is part of GNU Libtool.
27949 # GNU Libtool is free software; you can redistribute it and/or
27950 # modify it under the terms of the GNU General Public License as
27951 # published by the Free Software Foundation; either version 2 of
27952 # the License, or (at your option) any later version.
27954 # As a special exception to the GNU General Public License,
27955 # if you distribute this file as part of a program or library that
27956 # is built using GNU Libtool, you may include this file under the
27957 # same distribution terms that you use for the rest of that program.
27959 # GNU Libtool is distributed in the hope that it will be useful,
27960 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27961 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27962 # GNU General Public License for more details.
27964 # You should have received a copy of the GNU General Public License
27965 # along with GNU Libtool; see the file COPYING. If not, a copy
27966 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27967 # obtained by writing to the Free Software Foundation, Inc.,
27968 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27971 # The names of the tagged configurations supported by this script.
27972 available_tags="CXX "
27974 # ### BEGIN LIBTOOL CONFIG
27976 # Whether or not to build static libraries.
27977 build_old_libs=$enable_static
27979 # Which release of libtool.m4 was used?
27980 macro_version=$macro_version
27981 macro_revision=$macro_revision
27983 # Whether or not to build shared libraries.
27984 build_libtool_libs=$enable_shared
27986 # What type of objects to build.
27987 pic_mode=$pic_mode
27989 # Whether or not to optimize for fast installation.
27990 fast_install=$enable_fast_install
27992 # Shell to use when invoking shell scripts.
27993 SHELL=$lt_SHELL
27995 # An echo program that protects backslashes.
27996 ECHO=$lt_ECHO
27998 # The host system.
27999 host_alias=$host_alias
28000 host=$host
28001 host_os=$host_os
28003 # The build system.
28004 build_alias=$build_alias
28005 build=$build
28006 build_os=$build_os
28008 # A sed program that does not truncate output.
28009 SED=$lt_SED
28011 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28012 Xsed="\$SED -e 1s/^X//"
28014 # A grep program that handles long lines.
28015 GREP=$lt_GREP
28017 # An ERE matcher.
28018 EGREP=$lt_EGREP
28020 # A literal string matcher.
28021 FGREP=$lt_FGREP
28023 # A BSD- or MS-compatible name lister.
28024 NM=$lt_NM
28026 # Whether we need soft or hard links.
28027 LN_S=$lt_LN_S
28029 # What is the maximum length of a command?
28030 max_cmd_len=$max_cmd_len
28032 # Object file suffix (normally "o").
28033 objext=$ac_objext
28035 # Executable file suffix (normally "").
28036 exeext=$exeext
28038 # whether the shell understands "unset".
28039 lt_unset=$lt_unset
28041 # turn spaces into newlines.
28042 SP2NL=$lt_lt_SP2NL
28044 # turn newlines into spaces.
28045 NL2SP=$lt_lt_NL2SP
28047 # An object symbol dumper.
28048 OBJDUMP=$lt_OBJDUMP
28050 # Method to check whether dependent libraries are shared objects.
28051 deplibs_check_method=$lt_deplibs_check_method
28053 # Command to use when deplibs_check_method == "file_magic".
28054 file_magic_cmd=$lt_file_magic_cmd
28056 # The archiver.
28057 AR=$lt_AR
28058 AR_FLAGS=$lt_AR_FLAGS
28060 # A symbol stripping program.
28061 STRIP=$lt_STRIP
28063 # Commands used to install an old-style archive.
28064 RANLIB=$lt_RANLIB
28065 old_postinstall_cmds=$lt_old_postinstall_cmds
28066 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28068 # Whether to use a lock for old archive extraction.
28069 lock_old_archive_extraction=$lock_old_archive_extraction
28071 # A C compiler.
28072 LTCC=$lt_CC
28074 # LTCC compiler flags.
28075 LTCFLAGS=$lt_CFLAGS
28077 # Take the output of nm and produce a listing of raw symbols and C names.
28078 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28080 # Transform the output of nm in a proper C declaration.
28081 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28083 # Transform the output of nm in a C name address pair.
28084 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28086 # Transform the output of nm in a C name address pair when lib prefix is needed.
28087 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28089 # The name of the directory that contains temporary libtool files.
28090 objdir=$objdir
28092 # Used to examine libraries when file_magic_cmd begins with "file".
28093 MAGIC_CMD=$MAGIC_CMD
28095 # Must we lock files when doing compilation?
28096 need_locks=$lt_need_locks
28098 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28099 DSYMUTIL=$lt_DSYMUTIL
28101 # Tool to change global to local symbols on Mac OS X.
28102 NMEDIT=$lt_NMEDIT
28104 # Tool to manipulate fat objects and archives on Mac OS X.
28105 LIPO=$lt_LIPO
28107 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28108 OTOOL=$lt_OTOOL
28110 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28111 OTOOL64=$lt_OTOOL64
28113 # Old archive suffix (normally "a").
28114 libext=$libext
28116 # Shared library suffix (normally ".so").
28117 shrext_cmds=$lt_shrext_cmds
28119 # The commands to extract the exported symbol list from a shared archive.
28120 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28122 # Variables whose values should be saved in libtool wrapper scripts and
28123 # restored at link time.
28124 variables_saved_for_relink=$lt_variables_saved_for_relink
28126 # Do we need the "lib" prefix for modules?
28127 need_lib_prefix=$need_lib_prefix
28129 # Do we need a version for libraries?
28130 need_version=$need_version
28132 # Library versioning type.
28133 version_type=$version_type
28135 # Shared library runtime path variable.
28136 runpath_var=$runpath_var
28138 # Shared library path variable.
28139 shlibpath_var=$shlibpath_var
28141 # Is shlibpath searched before the hard-coded library search path?
28142 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28144 # Format of library name prefix.
28145 libname_spec=$lt_libname_spec
28147 # List of archive names. First name is the real one, the rest are links.
28148 # The last name is the one that the linker finds with -lNAME
28149 library_names_spec=$lt_library_names_spec
28151 # The coded name of the library, if different from the real name.
28152 soname_spec=$lt_soname_spec
28154 # Permission mode override for installation of shared libraries.
28155 install_override_mode=$lt_install_override_mode
28157 # Command to use after installation of a shared archive.
28158 postinstall_cmds=$lt_postinstall_cmds
28160 # Command to use after uninstallation of a shared archive.
28161 postuninstall_cmds=$lt_postuninstall_cmds
28163 # Commands used to finish a libtool library installation in a directory.
28164 finish_cmds=$lt_finish_cmds
28166 # As "finish_cmds", except a single script fragment to be evaled but
28167 # not shown.
28168 finish_eval=$lt_finish_eval
28170 # Whether we should hardcode library paths into libraries.
28171 hardcode_into_libs=$hardcode_into_libs
28173 # Compile-time system search path for libraries.
28174 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28176 # Run-time system search path for libraries.
28177 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28179 # Whether dlopen is supported.
28180 dlopen_support=$enable_dlopen
28182 # Whether dlopen of programs is supported.
28183 dlopen_self=$enable_dlopen_self
28185 # Whether dlopen of statically linked programs is supported.
28186 dlopen_self_static=$enable_dlopen_self_static
28188 # Commands to strip libraries.
28189 old_striplib=$lt_old_striplib
28190 striplib=$lt_striplib
28193 # The linker used to build libraries.
28194 LD=$lt_LD
28196 # How to create reloadable object files.
28197 reload_flag=$lt_reload_flag
28198 reload_cmds=$lt_reload_cmds
28200 # Commands used to build an old-style archive.
28201 old_archive_cmds=$lt_old_archive_cmds
28203 # A language specific compiler.
28204 CC=$lt_compiler
28206 # Is the compiler the GNU compiler?
28207 with_gcc=$GCC
28209 # Compiler flag to turn off builtin functions.
28210 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28212 # How to pass a linker flag through the compiler.
28213 wl=$lt_lt_prog_compiler_wl
28215 # Additional compiler flags for building library objects.
28216 pic_flag=$lt_lt_prog_compiler_pic
28218 # Compiler flag to prevent dynamic linking.
28219 link_static_flag=$lt_lt_prog_compiler_static
28221 # Does compiler simultaneously support -c and -o options?
28222 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28224 # Whether or not to add -lc for building shared libraries.
28225 build_libtool_need_lc=$archive_cmds_need_lc
28227 # Whether or not to disallow shared libs when runtime libs are static.
28228 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28230 # Compiler flag to allow reflexive dlopens.
28231 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28233 # Compiler flag to generate shared objects directly from archives.
28234 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28236 # Whether the compiler copes with passing no objects directly.
28237 compiler_needs_object=$lt_compiler_needs_object
28239 # Create an old-style archive from a shared archive.
28240 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28242 # Create a temporary old-style archive to link instead of a shared archive.
28243 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28245 # Commands used to build a shared archive.
28246 archive_cmds=$lt_archive_cmds
28247 archive_expsym_cmds=$lt_archive_expsym_cmds
28249 # Commands used to build a loadable module if different from building
28250 # a shared archive.
28251 module_cmds=$lt_module_cmds
28252 module_expsym_cmds=$lt_module_expsym_cmds
28254 # Whether we are building with GNU ld or not.
28255 with_gnu_ld=$lt_with_gnu_ld
28257 # Flag that allows shared libraries with undefined symbols to be built.
28258 allow_undefined_flag=$lt_allow_undefined_flag
28260 # Flag that enforces no undefined symbols.
28261 no_undefined_flag=$lt_no_undefined_flag
28263 # Flag to hardcode \$libdir into a binary during linking.
28264 # This must work even if \$libdir does not exist
28265 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28267 # If ld is used when linking, flag to hardcode \$libdir into a binary
28268 # during linking. This must work even if \$libdir does not exist.
28269 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28271 # Whether we need a single "-rpath" flag with a separated argument.
28272 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28274 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28275 # DIR into the resulting binary.
28276 hardcode_direct=$hardcode_direct
28278 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28279 # DIR into the resulting binary and the resulting library dependency is
28280 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28281 # library is relocated.
28282 hardcode_direct_absolute=$hardcode_direct_absolute
28284 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28285 # into the resulting binary.
28286 hardcode_minus_L=$hardcode_minus_L
28288 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28289 # into the resulting binary.
28290 hardcode_shlibpath_var=$hardcode_shlibpath_var
28292 # Set to "yes" if building a shared library automatically hardcodes DIR
28293 # into the library and all subsequent libraries and executables linked
28294 # against it.
28295 hardcode_automatic=$hardcode_automatic
28297 # Set to yes if linker adds runtime paths of dependent libraries
28298 # to runtime path list.
28299 inherit_rpath=$inherit_rpath
28301 # Whether libtool must link a program against all its dependency libraries.
28302 link_all_deplibs=$link_all_deplibs
28304 # Fix the shell variable \$srcfile for the compiler.
28305 fix_srcfile_path=$lt_fix_srcfile_path
28307 # Set to "yes" if exported symbols are required.
28308 always_export_symbols=$always_export_symbols
28310 # The commands to list exported symbols.
28311 export_symbols_cmds=$lt_export_symbols_cmds
28313 # Symbols that should not be listed in the preloaded symbols.
28314 exclude_expsyms=$lt_exclude_expsyms
28316 # Symbols that must always be exported.
28317 include_expsyms=$lt_include_expsyms
28319 # Commands necessary for linking programs (against libraries) with templates.
28320 prelink_cmds=$lt_prelink_cmds
28322 # Specify filename containing input files.
28323 file_list_spec=$lt_file_list_spec
28325 # How to hardcode a shared library path into an executable.
28326 hardcode_action=$hardcode_action
28328 # The directories searched by this compiler when creating a shared library.
28329 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28331 # Dependencies to place before and after the objects being linked to
28332 # create a shared library.
28333 predep_objects=$lt_predep_objects
28334 postdep_objects=$lt_postdep_objects
28335 predeps=$lt_predeps
28336 postdeps=$lt_postdeps
28338 # The library search path used internally by the compiler when linking
28339 # a shared library.
28340 compiler_lib_search_path=$lt_compiler_lib_search_path
28342 # ### END LIBTOOL CONFIG
28344 _LT_EOF
28346 case $host_os in
28347 aix3*)
28348 cat <<\_LT_EOF >> "$cfgfile"
28349 # AIX sometimes has problems with the GCC collect2 program. For some
28350 # reason, if we set the COLLECT_NAMES environment variable, the problems
28351 # vanish in a puff of smoke.
28352 if test "X${COLLECT_NAMES+set}" != Xset; then
28353 COLLECT_NAMES=
28354 export COLLECT_NAMES
28356 _LT_EOF
28358 esac
28361 ltmain="$ac_aux_dir/ltmain.sh"
28364 # We use sed instead of cat because bash on DJGPP gets confused if
28365 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28366 # text mode, it properly converts lines to CR/LF. This bash problem
28367 # is reportedly fixed, but why not run on old versions too?
28368 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28369 || (rm -f "$cfgfile"; exit 1)
28371 case $xsi_shell in
28372 yes)
28373 cat << \_LT_EOF >> "$cfgfile"
28375 # func_dirname file append nondir_replacement
28376 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28377 # otherwise set result to NONDIR_REPLACEMENT.
28378 func_dirname ()
28380 case ${1} in
28381 */*) func_dirname_result="${1%/*}${2}" ;;
28382 * ) func_dirname_result="${3}" ;;
28383 esac
28386 # func_basename file
28387 func_basename ()
28389 func_basename_result="${1##*/}"
28392 # func_dirname_and_basename file append nondir_replacement
28393 # perform func_basename and func_dirname in a single function
28394 # call:
28395 # dirname: Compute the dirname of FILE. If nonempty,
28396 # add APPEND to the result, otherwise set result
28397 # to NONDIR_REPLACEMENT.
28398 # value returned in "$func_dirname_result"
28399 # basename: Compute filename of FILE.
28400 # value retuned in "$func_basename_result"
28401 # Implementation must be kept synchronized with func_dirname
28402 # and func_basename. For efficiency, we do not delegate to
28403 # those functions but instead duplicate the functionality here.
28404 func_dirname_and_basename ()
28406 case ${1} in
28407 */*) func_dirname_result="${1%/*}${2}" ;;
28408 * ) func_dirname_result="${3}" ;;
28409 esac
28410 func_basename_result="${1##*/}"
28413 # func_stripname prefix suffix name
28414 # strip PREFIX and SUFFIX off of NAME.
28415 # PREFIX and SUFFIX must not contain globbing or regex special
28416 # characters, hashes, percent signs, but SUFFIX may contain a leading
28417 # dot (in which case that matches only a dot).
28418 func_stripname ()
28420 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28421 # positional parameters, so assign one to ordinary parameter first.
28422 func_stripname_result=${3}
28423 func_stripname_result=${func_stripname_result#"${1}"}
28424 func_stripname_result=${func_stripname_result%"${2}"}
28427 # func_opt_split
28428 func_opt_split ()
28430 func_opt_split_opt=${1%%=*}
28431 func_opt_split_arg=${1#*=}
28434 # func_lo2o object
28435 func_lo2o ()
28437 case ${1} in
28438 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28439 *) func_lo2o_result=${1} ;;
28440 esac
28443 # func_xform libobj-or-source
28444 func_xform ()
28446 func_xform_result=${1%.*}.lo
28449 # func_arith arithmetic-term...
28450 func_arith ()
28452 func_arith_result=$(( $* ))
28455 # func_len string
28456 # STRING may not start with a hyphen.
28457 func_len ()
28459 func_len_result=${#1}
28462 _LT_EOF
28464 *) # Bourne compatible functions.
28465 cat << \_LT_EOF >> "$cfgfile"
28467 # func_dirname file append nondir_replacement
28468 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28469 # otherwise set result to NONDIR_REPLACEMENT.
28470 func_dirname ()
28472 # Extract subdirectory from the argument.
28473 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
28474 if test "X$func_dirname_result" = "X${1}"; then
28475 func_dirname_result="${3}"
28476 else
28477 func_dirname_result="$func_dirname_result${2}"
28481 # func_basename file
28482 func_basename ()
28484 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
28488 # func_stripname prefix suffix name
28489 # strip PREFIX and SUFFIX off of NAME.
28490 # PREFIX and SUFFIX must not contain globbing or regex special
28491 # characters, hashes, percent signs, but SUFFIX may contain a leading
28492 # dot (in which case that matches only a dot).
28493 # func_strip_suffix prefix name
28494 func_stripname ()
28496 case ${2} in
28497 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28498 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
28499 esac
28502 # sed scripts:
28503 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28504 my_sed_long_arg='1s/^-[^=]*=//'
28506 # func_opt_split
28507 func_opt_split ()
28509 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
28510 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
28513 # func_lo2o object
28514 func_lo2o ()
28516 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
28519 # func_xform libobj-or-source
28520 func_xform ()
28522 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
28525 # func_arith arithmetic-term...
28526 func_arith ()
28528 func_arith_result=`expr "$@"`
28531 # func_len string
28532 # STRING may not start with a hyphen.
28533 func_len ()
28535 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
28538 _LT_EOF
28539 esac
28541 case $lt_shell_append in
28542 yes)
28543 cat << \_LT_EOF >> "$cfgfile"
28545 # func_append var value
28546 # Append VALUE to the end of shell variable VAR.
28547 func_append ()
28549 eval "$1+=\$2"
28551 _LT_EOF
28554 cat << \_LT_EOF >> "$cfgfile"
28556 # func_append var value
28557 # Append VALUE to the end of shell variable VAR.
28558 func_append ()
28560 eval "$1=\$$1\$2"
28563 _LT_EOF
28565 esac
28568 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
28569 || (rm -f "$cfgfile"; exit 1)
28571 mv -f "$cfgfile" "$ofile" ||
28572 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28573 chmod +x "$ofile"
28576 cat <<_LT_EOF >> "$ofile"
28578 # ### BEGIN LIBTOOL TAG CONFIG: CXX
28580 # The linker used to build libraries.
28581 LD=$lt_LD_CXX
28583 # How to create reloadable object files.
28584 reload_flag=$lt_reload_flag_CXX
28585 reload_cmds=$lt_reload_cmds_CXX
28587 # Commands used to build an old-style archive.
28588 old_archive_cmds=$lt_old_archive_cmds_CXX
28590 # A language specific compiler.
28591 CC=$lt_compiler_CXX
28593 # Is the compiler the GNU compiler?
28594 with_gcc=$GCC_CXX
28596 # Compiler flag to turn off builtin functions.
28597 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
28599 # How to pass a linker flag through the compiler.
28600 wl=$lt_lt_prog_compiler_wl_CXX
28602 # Additional compiler flags for building library objects.
28603 pic_flag=$lt_lt_prog_compiler_pic_CXX
28605 # Compiler flag to prevent dynamic linking.
28606 link_static_flag=$lt_lt_prog_compiler_static_CXX
28608 # Does compiler simultaneously support -c and -o options?
28609 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
28611 # Whether or not to add -lc for building shared libraries.
28612 build_libtool_need_lc=$archive_cmds_need_lc_CXX
28614 # Whether or not to disallow shared libs when runtime libs are static.
28615 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
28617 # Compiler flag to allow reflexive dlopens.
28618 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
28620 # Compiler flag to generate shared objects directly from archives.
28621 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
28623 # Whether the compiler copes with passing no objects directly.
28624 compiler_needs_object=$lt_compiler_needs_object_CXX
28626 # Create an old-style archive from a shared archive.
28627 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
28629 # Create a temporary old-style archive to link instead of a shared archive.
28630 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
28632 # Commands used to build a shared archive.
28633 archive_cmds=$lt_archive_cmds_CXX
28634 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
28636 # Commands used to build a loadable module if different from building
28637 # a shared archive.
28638 module_cmds=$lt_module_cmds_CXX
28639 module_expsym_cmds=$lt_module_expsym_cmds_CXX
28641 # Whether we are building with GNU ld or not.
28642 with_gnu_ld=$lt_with_gnu_ld_CXX
28644 # Flag that allows shared libraries with undefined symbols to be built.
28645 allow_undefined_flag=$lt_allow_undefined_flag_CXX
28647 # Flag that enforces no undefined symbols.
28648 no_undefined_flag=$lt_no_undefined_flag_CXX
28650 # Flag to hardcode \$libdir into a binary during linking.
28651 # This must work even if \$libdir does not exist
28652 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
28654 # If ld is used when linking, flag to hardcode \$libdir into a binary
28655 # during linking. This must work even if \$libdir does not exist.
28656 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
28658 # Whether we need a single "-rpath" flag with a separated argument.
28659 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
28661 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28662 # DIR into the resulting binary.
28663 hardcode_direct=$hardcode_direct_CXX
28665 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28666 # DIR into the resulting binary and the resulting library dependency is
28667 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28668 # library is relocated.
28669 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
28671 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28672 # into the resulting binary.
28673 hardcode_minus_L=$hardcode_minus_L_CXX
28675 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28676 # into the resulting binary.
28677 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
28679 # Set to "yes" if building a shared library automatically hardcodes DIR
28680 # into the library and all subsequent libraries and executables linked
28681 # against it.
28682 hardcode_automatic=$hardcode_automatic_CXX
28684 # Set to yes if linker adds runtime paths of dependent libraries
28685 # to runtime path list.
28686 inherit_rpath=$inherit_rpath_CXX
28688 # Whether libtool must link a program against all its dependency libraries.
28689 link_all_deplibs=$link_all_deplibs_CXX
28691 # Fix the shell variable \$srcfile for the compiler.
28692 fix_srcfile_path=$lt_fix_srcfile_path_CXX
28694 # Set to "yes" if exported symbols are required.
28695 always_export_symbols=$always_export_symbols_CXX
28697 # The commands to list exported symbols.
28698 export_symbols_cmds=$lt_export_symbols_cmds_CXX
28700 # Symbols that should not be listed in the preloaded symbols.
28701 exclude_expsyms=$lt_exclude_expsyms_CXX
28703 # Symbols that must always be exported.
28704 include_expsyms=$lt_include_expsyms_CXX
28706 # Commands necessary for linking programs (against libraries) with templates.
28707 prelink_cmds=$lt_prelink_cmds_CXX
28709 # Specify filename containing input files.
28710 file_list_spec=$lt_file_list_spec_CXX
28712 # How to hardcode a shared library path into an executable.
28713 hardcode_action=$hardcode_action_CXX
28715 # The directories searched by this compiler when creating a shared library.
28716 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
28718 # Dependencies to place before and after the objects being linked to
28719 # create a shared library.
28720 predep_objects=$lt_predep_objects_CXX
28721 postdep_objects=$lt_postdep_objects_CXX
28722 predeps=$lt_predeps_CXX
28723 postdeps=$lt_postdeps_CXX
28725 # The library search path used internally by the compiler when linking
28726 # a shared library.
28727 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
28729 # ### END LIBTOOL TAG CONFIG: CXX
28730 _LT_EOF
28733 "mkcollections.pl":C) chmod 755 lib/mkcollections.pl ;;
28734 "$ac_stdint_h":C)
28735 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
28736 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
28737 ac_stdint=$tmp/_stdint.h
28739 echo "#ifndef" $_ac_stdint_h >$ac_stdint
28740 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
28741 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
28742 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
28743 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
28744 if test "_$ac_cv_header_stdint_t" != "_" ; then
28745 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
28746 echo "#include <stdint.h>" >>$ac_stdint
28747 echo "#endif" >>$ac_stdint
28748 echo "#endif" >>$ac_stdint
28749 else
28751 cat >>$ac_stdint <<STDINT_EOF
28753 /* ................... shortcircuit part ........................... */
28755 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
28756 #include <stdint.h>
28757 #else
28758 #include <stddef.h>
28760 /* .................... configured part ............................ */
28762 STDINT_EOF
28764 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
28765 if test "_$ac_cv_header_stdint_x" != "_" ; then
28766 ac_header="$ac_cv_header_stdint_x"
28767 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
28768 else
28769 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
28772 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
28773 if test "_$ac_cv_header_stdint_o" != "_" ; then
28774 ac_header="$ac_cv_header_stdint_o"
28775 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
28776 else
28777 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
28780 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
28781 if test "_$ac_cv_header_stdint_u" != "_" ; then
28782 ac_header="$ac_cv_header_stdint_u"
28783 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
28784 else
28785 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
28788 echo "" >>$ac_stdint
28790 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
28791 echo "#include <$ac_header>" >>$ac_stdint
28792 echo "" >>$ac_stdint
28793 fi fi
28795 echo "/* which 64bit typedef has been found */" >>$ac_stdint
28796 if test "$ac_cv_type_uint64_t" = "yes" ; then
28797 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
28798 else
28799 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
28801 if test "$ac_cv_type_u_int64_t" = "yes" ; then
28802 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
28803 else
28804 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
28806 echo "" >>$ac_stdint
28808 echo "/* which type model has been detected */" >>$ac_stdint
28809 if test "_$ac_cv_char_data_model" != "_" ; then
28810 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
28811 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
28812 else
28813 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
28814 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
28816 echo "" >>$ac_stdint
28818 echo "/* whether int_least types were detected */" >>$ac_stdint
28819 if test "$ac_cv_type_int_least32_t" = "yes"; then
28820 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
28821 else
28822 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
28824 echo "/* whether int_fast types were detected */" >>$ac_stdint
28825 if test "$ac_cv_type_int_fast32_t" = "yes"; then
28826 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
28827 else
28828 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
28830 echo "/* whether intmax_t type was detected */" >>$ac_stdint
28831 if test "$ac_cv_type_intmax_t" = "yes"; then
28832 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
28833 else
28834 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
28836 echo "" >>$ac_stdint
28838 cat >>$ac_stdint <<STDINT_EOF
28839 /* .................... detections part ............................ */
28841 /* whether we need to define bitspecific types from compiler base types */
28842 #ifndef _STDINT_HEADER_INTPTR
28843 #ifndef _STDINT_HEADER_UINT32
28844 #ifndef _STDINT_HEADER_U_INT32
28845 #define _STDINT_NEED_INT_MODEL_T
28846 #else
28847 #define _STDINT_HAVE_U_INT_TYPES
28848 #endif
28849 #endif
28850 #endif
28852 #ifdef _STDINT_HAVE_U_INT_TYPES
28853 #undef _STDINT_NEED_INT_MODEL_T
28854 #endif
28856 #ifdef _STDINT_CHAR_MODEL
28857 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
28858 #ifndef _STDINT_BYTE_MODEL
28859 #define _STDINT_BYTE_MODEL 12
28860 #endif
28861 #endif
28862 #endif
28864 #ifndef _STDINT_HAVE_INT_LEAST32_T
28865 #define _STDINT_NEED_INT_LEAST_T
28866 #endif
28868 #ifndef _STDINT_HAVE_INT_FAST32_T
28869 #define _STDINT_NEED_INT_FAST_T
28870 #endif
28872 #ifndef _STDINT_HEADER_INTPTR
28873 #define _STDINT_NEED_INTPTR_T
28874 #ifndef _STDINT_HAVE_INTMAX_T
28875 #define _STDINT_NEED_INTMAX_T
28876 #endif
28877 #endif
28880 /* .................... definition part ............................ */
28882 /* some system headers have good uint64_t */
28883 #ifndef _HAVE_UINT64_T
28884 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
28885 #define _HAVE_UINT64_T
28886 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
28887 #define _HAVE_UINT64_T
28888 typedef u_int64_t uint64_t;
28889 #endif
28890 #endif
28892 #ifndef _HAVE_UINT64_T
28893 /* .. here are some common heuristics using compiler runtime specifics */
28894 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
28895 #define _HAVE_UINT64_T
28896 #define _HAVE_LONGLONG_UINT64_T
28897 typedef long long int64_t;
28898 typedef unsigned long long uint64_t;
28900 #elif !defined __STRICT_ANSI__
28901 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
28902 #define _HAVE_UINT64_T
28903 typedef __int64 int64_t;
28904 typedef unsigned __int64 uint64_t;
28906 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
28907 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
28908 #if !defined _NO_LONGLONG
28909 #define _HAVE_UINT64_T
28910 #define _HAVE_LONGLONG_UINT64_T
28911 typedef long long int64_t;
28912 typedef unsigned long long uint64_t;
28913 #endif
28915 #elif defined __alpha || (defined __mips && defined _ABIN32)
28916 #if !defined _NO_LONGLONG
28917 typedef long int64_t;
28918 typedef unsigned long uint64_t;
28919 #endif
28920 /* compiler/cpu type to define int64_t */
28921 #endif
28922 #endif
28923 #endif
28925 #if defined _STDINT_HAVE_U_INT_TYPES
28926 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
28927 typedef u_int8_t uint8_t;
28928 typedef u_int16_t uint16_t;
28929 typedef u_int32_t uint32_t;
28931 /* glibc compatibility */
28932 #ifndef __int8_t_defined
28933 #define __int8_t_defined
28934 #endif
28935 #endif
28937 #ifdef _STDINT_NEED_INT_MODEL_T
28938 /* we must guess all the basic types. Apart from byte-adressable system, */
28939 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
28940 /* (btw, those nibble-addressable systems are way off, or so we assume) */
28943 #if defined _STDINT_BYTE_MODEL
28944 #if _STDINT_LONG_MODEL+0 == 242
28945 /* 2:4:2 = IP16 = a normal 16-bit system */
28946 typedef unsigned char uint8_t;
28947 typedef unsigned short uint16_t;
28948 typedef unsigned long uint32_t;
28949 #ifndef __int8_t_defined
28950 #define __int8_t_defined
28951 typedef char int8_t;
28952 typedef short int16_t;
28953 typedef long int32_t;
28954 #endif
28955 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
28956 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
28957 /* 4:4:4 = ILP32 = a normal 32-bit system */
28958 typedef unsigned char uint8_t;
28959 typedef unsigned short uint16_t;
28960 typedef unsigned int uint32_t;
28961 #ifndef __int8_t_defined
28962 #define __int8_t_defined
28963 typedef char int8_t;
28964 typedef short int16_t;
28965 typedef int int32_t;
28966 #endif
28967 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
28968 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
28969 /* 4:8:8 = LP64 = a normal 64-bit system */
28970 typedef unsigned char uint8_t;
28971 typedef unsigned short uint16_t;
28972 typedef unsigned int uint32_t;
28973 #ifndef __int8_t_defined
28974 #define __int8_t_defined
28975 typedef char int8_t;
28976 typedef short int16_t;
28977 typedef int int32_t;
28978 #endif
28979 /* this system has a "long" of 64bit */
28980 #ifndef _HAVE_UINT64_T
28981 #define _HAVE_UINT64_T
28982 typedef unsigned long uint64_t;
28983 typedef long int64_t;
28984 #endif
28985 #elif _STDINT_LONG_MODEL+0 == 448
28986 /* LLP64 a 64-bit system derived from a 32-bit system */
28987 typedef unsigned char uint8_t;
28988 typedef unsigned short uint16_t;
28989 typedef unsigned int uint32_t;
28990 #ifndef __int8_t_defined
28991 #define __int8_t_defined
28992 typedef char int8_t;
28993 typedef short int16_t;
28994 typedef int int32_t;
28995 #endif
28996 /* assuming the system has a "long long" */
28997 #ifndef _HAVE_UINT64_T
28998 #define _HAVE_UINT64_T
28999 #define _HAVE_LONGLONG_UINT64_T
29000 typedef unsigned long long uint64_t;
29001 typedef long long int64_t;
29002 #endif
29003 #else
29004 #define _STDINT_NO_INT32_T
29005 #endif
29006 #else
29007 #define _STDINT_NO_INT8_T
29008 #define _STDINT_NO_INT32_T
29009 #endif
29010 #endif
29013 * quote from SunOS-5.8 sys/inttypes.h:
29014 * Use at your own risk. As of February 1996, the committee is squarely
29015 * behind the fixed sized types; the "least" and "fast" types are still being
29016 * discussed. The probability that the "fast" types may be removed before
29017 * the standard is finalized is high enough that they are not currently
29018 * implemented.
29021 #if defined _STDINT_NEED_INT_LEAST_T
29022 typedef int8_t int_least8_t;
29023 typedef int16_t int_least16_t;
29024 typedef int32_t int_least32_t;
29025 #ifdef _HAVE_UINT64_T
29026 typedef int64_t int_least64_t;
29027 #endif
29029 typedef uint8_t uint_least8_t;
29030 typedef uint16_t uint_least16_t;
29031 typedef uint32_t uint_least32_t;
29032 #ifdef _HAVE_UINT64_T
29033 typedef uint64_t uint_least64_t;
29034 #endif
29035 /* least types */
29036 #endif
29038 #if defined _STDINT_NEED_INT_FAST_T
29039 typedef int8_t int_fast8_t;
29040 typedef int int_fast16_t;
29041 typedef int32_t int_fast32_t;
29042 #ifdef _HAVE_UINT64_T
29043 typedef int64_t int_fast64_t;
29044 #endif
29046 typedef uint8_t uint_fast8_t;
29047 typedef unsigned uint_fast16_t;
29048 typedef uint32_t uint_fast32_t;
29049 #ifdef _HAVE_UINT64_T
29050 typedef uint64_t uint_fast64_t;
29051 #endif
29052 /* fast types */
29053 #endif
29055 #ifdef _STDINT_NEED_INTMAX_T
29056 #ifdef _HAVE_UINT64_T
29057 typedef int64_t intmax_t;
29058 typedef uint64_t uintmax_t;
29059 #else
29060 typedef long intmax_t;
29061 typedef unsigned long uintmax_t;
29062 #endif
29063 #endif
29065 #ifdef _STDINT_NEED_INTPTR_T
29066 #ifndef __intptr_t_defined
29067 #define __intptr_t_defined
29068 /* we encourage using "long" to store pointer values, never use "int" ! */
29069 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
29070 typedef unsigned int uintptr_t;
29071 typedef int intptr_t;
29072 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
29073 typedef unsigned long uintptr_t;
29074 typedef long intptr_t;
29075 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
29076 typedef uint64_t uintptr_t;
29077 typedef int64_t intptr_t;
29078 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
29079 typedef unsigned long uintptr_t;
29080 typedef long intptr_t;
29081 #endif
29082 #endif
29083 #endif
29085 /* The ISO C99 standard specifies that in C++ implementations these
29086 should only be defined if explicitly requested. */
29087 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
29088 #ifndef UINT32_C
29090 /* Signed. */
29091 # define INT8_C(c) c
29092 # define INT16_C(c) c
29093 # define INT32_C(c) c
29094 # ifdef _HAVE_LONGLONG_UINT64_T
29095 # define INT64_C(c) c ## L
29096 # else
29097 # define INT64_C(c) c ## LL
29098 # endif
29100 /* Unsigned. */
29101 # define UINT8_C(c) c ## U
29102 # define UINT16_C(c) c ## U
29103 # define UINT32_C(c) c ## U
29104 # ifdef _HAVE_LONGLONG_UINT64_T
29105 # define UINT64_C(c) c ## UL
29106 # else
29107 # define UINT64_C(c) c ## ULL
29108 # endif
29110 /* Maximal type. */
29111 # ifdef _HAVE_LONGLONG_UINT64_T
29112 # define INTMAX_C(c) c ## L
29113 # define UINTMAX_C(c) c ## UL
29114 # else
29115 # define INTMAX_C(c) c ## LL
29116 # define UINTMAX_C(c) c ## ULL
29117 # endif
29119 /* literalnumbers */
29120 #endif
29121 #endif
29123 /* These limits are merily those of a two complement byte-oriented system */
29125 /* Minimum of signed integral types. */
29126 #ifndef INT8_MIN
29127 # define INT8_MIN (-128)
29128 #endif
29129 #ifndef INT16_MIN
29130 # define INT16_MIN (-32767-1)
29131 #endif
29132 #ifndef INT32_MIN
29133 # define INT32_MIN (-2147483647-1)
29134 #endif
29135 #ifndef INT64_MIN
29136 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
29137 #endif
29139 /* Maximum of signed integral types. */
29140 #ifndef INT8_MAX
29141 # define INT8_MAX (127)
29142 #endif
29143 #ifndef INT16_MAX
29144 # define INT16_MAX (32767)
29145 #endif
29146 #ifndef INT32_MAX
29147 # define INT32_MAX (2147483647)
29148 #endif
29149 #ifndef INT64_MAX
29150 # define INT64_MAX (__INT64_C(9223372036854775807))
29151 #endif
29153 /* Maximum of unsigned integral types. */
29154 #ifndef UINT8_MAX
29155 # define UINT8_MAX (255)
29156 #endif
29157 #ifndef UINT16_MAX
29158 # define UINT16_MAX (65535)
29159 #endif
29160 #ifndef UINT32_MAX
29161 # define UINT32_MAX (4294967295U)
29162 #endif
29163 #ifndef UINT64_MAX
29164 # define UINT64_MAX (__UINT64_C(18446744073709551615))
29165 #endif
29167 /* Minimum of signed integral types having a minimum size. */
29168 # define INT_LEAST8_MIN INT8_MIN
29169 # define INT_LEAST16_MIN INT16_MIN
29170 # define INT_LEAST32_MIN INT32_MIN
29171 # define INT_LEAST64_MIN INT64_MIN
29172 /* Maximum of signed integral types having a minimum size. */
29173 # define INT_LEAST8_MAX INT8_MAX
29174 # define INT_LEAST16_MAX INT16_MAX
29175 # define INT_LEAST32_MAX INT32_MAX
29176 # define INT_LEAST64_MAX INT64_MAX
29178 /* Maximum of unsigned integral types having a minimum size. */
29179 # define UINT_LEAST8_MAX UINT8_MAX
29180 # define UINT_LEAST16_MAX UINT16_MAX
29181 # define UINT_LEAST32_MAX UINT32_MAX
29182 # define UINT_LEAST64_MAX UINT64_MAX
29184 /* shortcircuit*/
29185 #endif
29186 /* once */
29187 #endif
29188 #endif
29189 STDINT_EOF
29191 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
29193 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
29194 else
29195 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
29196 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
29197 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
29198 X"$ac_stdint_h" : 'X\(//\)$' \| \
29199 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
29200 $as_echo X"$ac_stdint_h" |
29201 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
29202 s//\1/
29205 /^X\(\/\/\)[^/].*/{
29206 s//\1/
29209 /^X\(\/\/\)$/{
29210 s//\1/
29213 /^X\(\/\).*/{
29214 s//\1/
29217 s/.*/./; q'`
29218 as_dir="$ac_dir"; as_fn_mkdir_p
29219 rm -f $ac_stdint_h
29220 mv $ac_stdint $ac_stdint_h
29223 "gappletviewer":C) chmod 755 tools/gappletviewer ;;
29224 "gjarsigner":C) chmod 755 tools/gjarsigner ;;
29225 "gkeytool":C) chmod 755 tools/gkeytool ;;
29226 "gjar":C) chmod 755 tools/gjar ;;
29227 "gnative2ascii":C) chmod 755 tools/gnative2ascii ;;
29228 "gserialver":C) chmod 755 tools/gserialver ;;
29229 "grmiregistry":C) chmod 755 tools/grmiregistry ;;
29230 "gtnameserv":C) chmod 755 tools/gtnameserv ;;
29231 "gorbd":C) chmod 755 tools/gorbd ;;
29232 "grmid":C) chmod 755 tools/grmid ;;
29233 "grmic":C) chmod 755 tools/grmic ;;
29234 "gjavah":C) chmod 755 tools/gjavah ;;
29235 "gjdoc":C) chmod 755 tools/gjdoc ;;
29236 "gen-classlist":C) chmod 755 lib/gen-classlist.sh ;;
29237 "copy-vmresources":C) chmod 755 lib/copy-vmresources.sh ;;
29239 esac
29240 done # for ac_tag
29243 as_fn_exit 0
29244 _ACEOF
29245 ac_clean_files=$ac_clean_files_save
29247 test $ac_write_fail = 0 ||
29248 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29251 # configure is writing to config.log, and then calls config.status.
29252 # config.status does its own redirection, appending to config.log.
29253 # Unfortunately, on DOS this fails, as config.log is still kept open
29254 # by configure, so config.status won't be able to write to it; its
29255 # output is simply discarded. So we exec the FD to /dev/null,
29256 # effectively closing config.log, so it can be properly (re)opened and
29257 # appended to by config.status. When coming back to configure, we
29258 # need to make the FD available again.
29259 if test "$no_create" != yes; then
29260 ac_cs_success=:
29261 ac_config_status_args=
29262 test "$silent" = yes &&
29263 ac_config_status_args="$ac_config_status_args --quiet"
29264 exec 5>/dev/null
29265 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29266 exec 5>>config.log
29267 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29268 # would make configure fail if this is the last instruction.
29269 $ac_cs_success || as_fn_exit $?
29271 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29273 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
29277 # Create standard.omit based on decisions we just made.
29278 cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
29279 if test x$use_escher != xtrue; then
29280 echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit
29283 if test "x${COMPILE_PLUGIN}" = "xyes" ; then
29284 { $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
29285 $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;}