Fix DealII type problems.
[official-gcc/Ramakrishna.git] / libjava / classpath / configure
blob2181be6c4d7db4557adc613eca8598433dfc533a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Classpath 0.98.
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"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org and classpath@gnu.org
232 $0: about your system, including any error possibly output
233 $0: before this message. Then install a modern shell, or
234 $0: manually run the script under such a shell if you do
235 $0: have one."
237 exit 1
241 SHELL=${CONFIG_SHELL-/bin/sh}
242 export SHELL
243 # Unset more variables known to interfere with behavior of common tools.
244 CLICOLOR_FORCE= GREP_OPTIONS=
245 unset CLICOLOR_FORCE GREP_OPTIONS
247 ## --------------------- ##
248 ## M4sh Shell Functions. ##
249 ## --------------------- ##
250 # as_fn_unset VAR
251 # ---------------
252 # Portably unset VAR.
253 as_fn_unset ()
255 { eval $1=; unset $1;}
257 as_unset=as_fn_unset
259 # as_fn_set_status STATUS
260 # -----------------------
261 # Set $? to STATUS, without forking.
262 as_fn_set_status ()
264 return $1
265 } # as_fn_set_status
267 # as_fn_exit STATUS
268 # -----------------
269 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
270 as_fn_exit ()
272 set +e
273 as_fn_set_status $1
274 exit $1
275 } # as_fn_exit
277 # as_fn_mkdir_p
278 # -------------
279 # Create "$as_dir" as a directory, including parents if necessary.
280 as_fn_mkdir_p ()
283 case $as_dir in #(
284 -*) as_dir=./$as_dir;;
285 esac
286 test -d "$as_dir" || eval $as_mkdir_p || {
287 as_dirs=
288 while :; do
289 case $as_dir in #(
290 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
291 *) as_qdir=$as_dir;;
292 esac
293 as_dirs="'$as_qdir' $as_dirs"
294 as_dir=`$as_dirname -- "$as_dir" ||
295 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
296 X"$as_dir" : 'X\(//\)[^/]' \| \
297 X"$as_dir" : 'X\(//\)$' \| \
298 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
299 $as_echo X"$as_dir" |
300 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
301 s//\1/
304 /^X\(\/\/\)[^/].*/{
305 s//\1/
308 /^X\(\/\/\)$/{
309 s//\1/
312 /^X\(\/\).*/{
313 s//\1/
316 s/.*/./; q'`
317 test -d "$as_dir" && break
318 done
319 test -z "$as_dirs" || eval "mkdir $as_dirs"
320 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323 } # as_fn_mkdir_p
324 # as_fn_append VAR VALUE
325 # ----------------------
326 # Append the text in VALUE to the end of the definition contained in VAR. Take
327 # advantage of any shell optimizations that allow amortized linear growth over
328 # repeated appends, instead of the typical quadratic growth present in naive
329 # implementations.
330 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
331 eval 'as_fn_append ()
333 eval $1+=\$2
335 else
336 as_fn_append ()
338 eval $1=\$$1\$2
340 fi # as_fn_append
342 # as_fn_arith ARG...
343 # ------------------
344 # Perform arithmetic evaluation on the ARGs, and store the result in the
345 # global $as_val. Take advantage of shells that can avoid forks. The arguments
346 # must be portable across $(()) and expr.
347 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
348 eval 'as_fn_arith ()
350 as_val=$(( $* ))
352 else
353 as_fn_arith ()
355 as_val=`expr "$@" || test $? -eq 1`
357 fi # as_fn_arith
360 # as_fn_error ERROR [LINENO LOG_FD]
361 # ---------------------------------
362 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
363 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
364 # script with status $?, using 1 if that was 0.
365 as_fn_error ()
367 as_status=$?; test $as_status -eq 0 && as_status=1
368 if test "$3"; then
369 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 $as_echo "$as_me: error: $1" >&2
373 as_fn_exit $as_status
374 } # as_fn_error
376 if expr a : '\(a\)' >/dev/null 2>&1 &&
377 test "X`expr 00001 : '.*\(...\)'`" = X001; then
378 as_expr=expr
379 else
380 as_expr=false
383 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
384 as_basename=basename
385 else
386 as_basename=false
389 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
390 as_dirname=dirname
391 else
392 as_dirname=false
395 as_me=`$as_basename -- "$0" ||
396 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
397 X"$0" : 'X\(//\)$' \| \
398 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 $as_echo X/"$0" |
400 sed '/^.*\/\([^/][^/]*\)\/*$/{
401 s//\1/
404 /^X\/\(\/\/\)$/{
405 s//\1/
408 /^X\/\(\/\).*/{
409 s//\1/
412 s/.*/./; q'`
414 # Avoid depending upon Character Ranges.
415 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
416 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
417 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
418 as_cr_digits='0123456789'
419 as_cr_alnum=$as_cr_Letters$as_cr_digits
422 as_lineno_1=$LINENO as_lineno_1a=$LINENO
423 as_lineno_2=$LINENO as_lineno_2a=$LINENO
424 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
425 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
426 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
427 sed -n '
429 /[$]LINENO/=
430 ' <$as_myself |
431 sed '
432 s/[$]LINENO.*/&-/
433 t lineno
435 :lineno
437 :loop
438 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 t loop
440 s/-\n.*//
441 ' >$as_me.lineno &&
442 chmod +x "$as_me.lineno" ||
443 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
445 # Don't try to exec as it changes $[0], causing all sort of problems
446 # (the dirname of $[0] is not the place where we might find the
447 # original and so on. Autoconf is especially sensitive to this).
448 . "./$as_me.lineno"
449 # Exit status is that of the last command.
450 exit
453 ECHO_C= ECHO_N= ECHO_T=
454 case `echo -n x` in #(((((
455 -n*)
456 case `echo 'xy\c'` in
457 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 xy) ECHO_C='\c';;
459 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
460 ECHO_T=' ';;
461 esac;;
463 ECHO_N='-n';;
464 esac
466 rm -f conf$$ conf$$.exe conf$$.file
467 if test -d conf$$.dir; then
468 rm -f conf$$.dir/conf$$.file
469 else
470 rm -f conf$$.dir
471 mkdir conf$$.dir 2>/dev/null
473 if (echo >conf$$.file) 2>/dev/null; then
474 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 as_ln_s='ln -s'
476 # ... but there are two gotchas:
477 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
478 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
479 # In both cases, we have to default to `cp -p'.
480 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 as_ln_s='cp -p'
482 elif ln conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s=ln
484 else
485 as_ln_s='cp -p'
487 else
488 as_ln_s='cp -p'
490 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
491 rmdir conf$$.dir 2>/dev/null
493 if mkdir -p . 2>/dev/null; then
494 as_mkdir_p='mkdir -p "$as_dir"'
495 else
496 test -d ./-p && rmdir ./-p
497 as_mkdir_p=false
500 if test -x / >/dev/null 2>&1; then
501 as_test_x='test -x'
502 else
503 if ls -dL / >/dev/null 2>&1; then
504 as_ls_L_option=L
505 else
506 as_ls_L_option=
508 as_test_x='
509 eval sh -c '\''
510 if test -d "$1"; then
511 test -d "$1/.";
512 else
513 case $1 in #(
514 -*)set "./$1";;
515 esac;
516 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
517 ???[sx]*):;;*)false;;esac;fi
518 '\'' sh
521 as_executable_p=$as_test_x
523 # Sed expression to map a string onto a valid CPP name.
524 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526 # Sed expression to map a string onto a valid variable name.
527 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531 # Check that we are running under the correct shell.
532 SHELL=${CONFIG_SHELL-/bin/sh}
534 case X$lt_ECHO in
535 X*--fallback-echo)
536 # Remove one level of quotation (which was required for Make).
537 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
539 esac
541 ECHO=${lt_ECHO-echo}
542 if test "X$1" = X--no-reexec; then
543 # Discard the --no-reexec flag, and continue.
544 shift
545 elif test "X$1" = X--fallback-echo; then
546 # Avoid inline document here, it may be left over
548 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
549 # Yippee, $ECHO works!
551 else
552 # Restart under the correct shell.
553 exec $SHELL "$0" --no-reexec ${1+"$@"}
556 if test "X$1" = X--fallback-echo; then
557 # used as fallback echo
558 shift
559 cat <<_LT_EOF
561 _LT_EOF
562 exit 0
565 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 # if CDPATH is set.
567 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
569 if test -z "$lt_ECHO"; then
570 if test "X${echo_test_string+set}" != Xset; then
571 # find a string as large as possible, as long as the shell can cope with it
572 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
573 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
574 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
575 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
576 then
577 break
579 done
582 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
583 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
584 test "X$echo_testing_string" = "X$echo_test_string"; then
586 else
587 # The Solaris, AIX, and Digital Unix default echo programs unquote
588 # backslashes. This makes it impossible to quote backslashes using
589 # echo "$something" | sed 's/\\/\\\\/g'
591 # So, first we look for a working echo in the user's PATH.
593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594 for dir in $PATH /usr/ucb; do
595 IFS="$lt_save_ifs"
596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599 test "X$echo_testing_string" = "X$echo_test_string"; then
600 ECHO="$dir/echo"
601 break
603 done
604 IFS="$lt_save_ifs"
606 if test "X$ECHO" = Xecho; then
607 # We didn't find a better echo, so look for alternatives.
608 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # This shell has a builtin print -r that does the trick.
612 ECHO='print -r'
613 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
614 test "X$CONFIG_SHELL" != X/bin/ksh; then
615 # If we have ksh, try running configure again with it.
616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617 export ORIGINAL_CONFIG_SHELL
618 CONFIG_SHELL=/bin/ksh
619 export CONFIG_SHELL
620 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621 else
622 # Try using printf.
623 ECHO='printf %s\n'
624 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
627 # Cool, printf works
629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
630 test "X$echo_testing_string" = 'X\t' &&
631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634 export CONFIG_SHELL
635 SHELL="$CONFIG_SHELL"
636 export SHELL
637 ECHO="$CONFIG_SHELL $0 --fallback-echo"
638 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 ECHO="$CONFIG_SHELL $0 --fallback-echo"
643 else
644 # maybe with a smaller string...
645 prev=:
647 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
648 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
649 then
650 break
652 prev="$cmd"
653 done
655 if test "$prev" != 'sed 50q "$0"'; then
656 echo_test_string=`eval $prev`
657 export echo_test_string
658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 else
660 # Oops. We lost completely, so just stick with echo.
661 ECHO=echo
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
671 lt_ECHO=$ECHO
672 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
673 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
679 exec 7<&0 </dev/null 6>&1
681 # Name of the host.
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
687 # Initializations.
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
698 # Identity of this package.
699 PACKAGE_NAME='GNU Classpath'
700 PACKAGE_TARNAME='classpath'
701 PACKAGE_VERSION='0.98'
702 PACKAGE_STRING='GNU Classpath 0.98'
703 PACKAGE_BUGREPORT='classpath@gnu.org'
704 PACKAGE_URL='http://www.gnu.org/software/classpath/'
706 ac_unique_file="java/lang/System.java"
707 ac_default_prefix=/usr/local/classpath
708 # Factoring default headers for most tests.
709 ac_includes_default="\
710 #include <stdio.h>
711 #ifdef HAVE_SYS_TYPES_H
712 # include <sys/types.h>
713 #endif
714 #ifdef HAVE_SYS_STAT_H
715 # include <sys/stat.h>
716 #endif
717 #ifdef STDC_HEADERS
718 # include <stdlib.h>
719 # include <stddef.h>
720 #else
721 # ifdef HAVE_STDLIB_H
722 # include <stdlib.h>
723 # endif
724 #endif
725 #ifdef HAVE_STRING_H
726 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
727 # include <memory.h>
728 # endif
729 # include <string.h>
730 #endif
731 #ifdef HAVE_STRINGS_H
732 # include <strings.h>
733 #endif
734 #ifdef HAVE_INTTYPES_H
735 # include <inttypes.h>
736 #endif
737 #ifdef HAVE_STDINT_H
738 # include <stdint.h>
739 #endif
740 #ifdef HAVE_UNISTD_H
741 # include <unistd.h>
742 #endif"
744 ac_subst_vars='am__EXEEXT_FALSE
745 am__EXEEXT_TRUE
746 LTLIBOBJS
747 LIBOBJS
748 CREATE_GMPBI_LIBRARY_FALSE
749 CREATE_GMPBI_LIBRARY_TRUE
750 WANT_NATIVE_BIG_INTEGER
751 DEFAULT_PREFS_PEER
752 ENABLE_LOCAL_SOCKETS_FALSE
753 ENABLE_LOCAL_SOCKETS_TRUE
754 PATH_TO_ESCHER
755 USE_ESCHER_FALSE
756 USE_ESCHER_TRUE
757 JAVAC_MEM_OPT
758 ac_ct_ANTLR
759 ANTLR
760 ANTLR_JAR
761 GCJ_JAVAC_FALSE
762 GCJ_JAVAC_TRUE
763 JAVAC_IS_GCJ
764 JAVAC
765 uudecode
766 JAVA
767 PATH_TO_GLIBJ_ZIP
768 USE_PREBUILT_GLIBJ_ZIP_FALSE
769 USE_PREBUILT_GLIBJ_ZIP_TRUE
770 REGEN_PARSERS_FALSE
771 REGEN_PARSERS_TRUE
772 JAY_SKELETON
774 CREATE_API_DOCS_FALSE
775 CREATE_API_DOCS_TRUE
776 GJDOC
777 TOOLSDIR
778 EXAMPLESDIR
779 BUILD_CLASS_FILES_FALSE
780 BUILD_CLASS_FILES_TRUE
781 INSTALL_CLASS_FILES_FALSE
782 INSTALL_CLASS_FILES_TRUE
783 INSTALL_GLIBJ_ZIP_FALSE
784 INSTALL_GLIBJ_ZIP_TRUE
785 WITH_JAR_FALSE
786 WITH_JAR_TRUE
789 FIND
790 DATE
792 MKDIR
793 REMOVE
794 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION
795 ECJ_JAR
796 INIT_LOAD_LIBRARY
797 LIBDEBUG
798 MAINT
799 MAINTAINER_MODE_FALSE
800 MAINTAINER_MODE_TRUE
801 vm_classes
802 CLASSPATH_INCLUDES
803 USER_JAVAH
804 GMP_LIBS
805 GMP_CFLAGS
806 PLUGIN_DIR
807 GLIB_LIBS
808 GLIB_CFLAGS
809 MOZILLA_LIBS
810 MOZILLA_CFLAGS
812 QT_LIBS
813 QT_CFLAGS
814 GSTREAMER_MIXER_PROVIDER
815 GSTREAMER_FILE_READER
816 GST_PLUGIN_LDFLAGS
817 GSTREAMER_PLUGINS_BASE_LIBS
818 GSTREAMER_PLUGINS_BASE_CFLAGS
819 GSTREAMER_BASE_LIBS
820 GSTREAMER_BASE_CFLAGS
821 GSTREAMER_LIBS
822 GSTREAMER_CFLAGS
823 GDK_LIBS
824 GDK_CFLAGS
825 GCONF_LIBS
826 GCONF_CFLAGS
827 XTEST_LIBS
828 CAIRO_LIBS
829 CAIRO_CFLAGS
830 PANGOFT2_LIBS
831 PANGOFT2_CFLAGS
832 FREETYPE2_LIBS
833 FREETYPE2_CFLAGS
834 GTK_LIBS
835 GTK_CFLAGS
836 X_EXTRA_LIBS
837 X_LIBS
838 X_PRE_LIBS
839 X_CFLAGS
840 XMKMF
841 XSLT_LIBS
842 XSLT_CFLAGS
843 XML_LIBS
844 XML_CFLAGS
845 PKG_CONFIG
846 ERROR_CFLAGS
847 STRICT_WARNING_CFLAGS
848 EXTRA_CFLAGS
849 WARNING_CFLAGS
850 LTLIBICONV
851 LIBICONV
852 LIBMAGIC
853 COLLECTIONS_PREFIX
854 PERL
855 CXXCPP
856 am__fastdepCXX_FALSE
857 am__fastdepCXX_TRUE
858 CXXDEPMODE
859 ac_ct_CXX
860 CXXFLAGS
862 OTOOL64
863 OTOOL
864 LIPO
865 NMEDIT
866 DSYMUTIL
867 lt_ECHO
868 RANLIB
870 OBJDUMP
872 ac_ct_DUMPBIN
873 DUMPBIN
875 FGREP
877 LIBTOOL
878 LN_S
879 CREATE_WRAPPERS_FALSE
880 CREATE_WRAPPERS_TRUE
881 CREATE_GJDOC_PARSER_FALSE
882 CREATE_GJDOC_PARSER_TRUE
883 CREATE_JNI_HEADERS_FALSE
884 CREATE_JNI_HEADERS_TRUE
885 glibjdir
886 nativeexeclibdir
887 toolexeclibdir
888 CREATE_GJDOC_FALSE
889 CREATE_GJDOC_TRUE
890 CREATE_PLUGIN_FALSE
891 CREATE_PLUGIN_TRUE
892 CREATE_QT_PEER_LIBRARIES_FALSE
893 CREATE_QT_PEER_LIBRARIES_TRUE
894 CREATE_GTK_PEER_LIBRARIES_FALSE
895 CREATE_GTK_PEER_LIBRARIES_TRUE
896 CREATE_DSSI_LIBRARIES_FALSE
897 CREATE_DSSI_LIBRARIES_TRUE
898 CREATE_ALSA_LIBRARIES_FALSE
899 CREATE_ALSA_LIBRARIES_TRUE
900 EGREP
901 GREP
903 am__fastdepCC_FALSE
904 am__fastdepCC_TRUE
905 CCDEPMODE
906 AMDEPBACKSLASH
907 AMDEP_FALSE
908 AMDEP_TRUE
909 am__quote
910 am__include
911 DEPDIR
912 OBJEXT
913 EXEEXT
914 ac_ct_CC
915 CPPFLAGS
916 LDFLAGS
917 CFLAGS
919 CREATE_XMLJ_LIBRARY_FALSE
920 CREATE_XMLJ_LIBRARY_TRUE
921 default_toolkit
922 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE
923 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE
924 CREATE_GCONF_PEER_LIBRARIES_FALSE
925 CREATE_GCONF_PEER_LIBRARIES_TRUE
926 CREATE_CORE_JNI_LIBRARIES_FALSE
927 CREATE_CORE_JNI_LIBRARIES_TRUE
928 CREATE_JNI_LIBRARIES_FALSE
929 CREATE_JNI_LIBRARIES_TRUE
930 CREATE_COLLECTIONS_FALSE
931 CREATE_COLLECTIONS_TRUE
932 am__untar
933 am__tar
934 AMTAR
935 am__leading_dot
936 SET_MAKE
938 mkdir_p
939 MKDIR_P
940 INSTALL_STRIP_PROGRAM
941 STRIP
942 install_sh
943 MAKEINFO
944 AUTOHEADER
945 AUTOMAKE
946 AUTOCONF
947 ACLOCAL
948 VERSION
949 PACKAGE
950 CYGPATH_W
951 am__isrc
952 INSTALL_DATA
953 INSTALL_SCRIPT
954 INSTALL_PROGRAM
955 CLASSPATH_CONVENIENCE
956 CLASSPATH_MODULE
957 LIBVERSION
958 INSTALL_BINARIES_FALSE
959 INSTALL_BINARIES_TRUE
960 multi_basedir
961 GENINSRC_FALSE
962 GENINSRC_TRUE
963 JAVA_MAINTAINER_MODE_FALSE
964 JAVA_MAINTAINER_MODE_TRUE
965 target_os
966 target_vendor
967 target_cpu
968 target
969 host_os
970 host_vendor
971 host_cpu
972 host
973 build_os
974 build_vendor
975 build_cpu
976 build
977 target_alias
978 host_alias
979 build_alias
980 LIBS
981 ECHO_T
982 ECHO_N
983 ECHO_C
984 DEFS
985 mandir
986 localedir
987 libdir
988 psdir
989 pdfdir
990 dvidir
991 htmldir
992 infodir
993 docdir
994 oldincludedir
995 includedir
996 localstatedir
997 sharedstatedir
998 sysconfdir
999 datadir
1000 datarootdir
1001 libexecdir
1002 sbindir
1003 bindir
1004 program_transform_name
1005 prefix
1006 exec_prefix
1007 PACKAGE_URL
1008 PACKAGE_BUGREPORT
1009 PACKAGE_STRING
1010 PACKAGE_VERSION
1011 PACKAGE_TARNAME
1012 PACKAGE_NAME
1013 PATH_SEPARATOR
1014 SHELL'
1015 ac_subst_files=''
1016 ac_user_opts='
1017 enable_option_checking
1018 enable_java_maintainer_mode
1019 enable_generated_files_in_srcdir
1020 enable_multilib
1021 enable_collections
1022 enable_jni
1023 enable_core_jni
1024 enable_default_preferences_peer
1025 enable_gconf_peer
1026 enable_gconf_peers
1027 enable_gstreamer_peer
1028 enable_gstreamer_peers
1029 enable_Werror
1030 enable_default_toolkit
1031 enable_xmlj
1032 enable_alsa
1033 enable_dependency_tracking
1034 enable_dssi
1035 enable_gtk_peer
1036 enable_gtk_peers
1037 enable_qt_peer
1038 enable_plugin
1039 enable_gmp
1040 enable_gjdoc
1041 with_native_libdir
1042 with_glibj_dir
1043 with_antlr_jar
1044 enable_regen_headers
1045 enable_regen_gjdoc_parser
1046 enable_tool_wrappers
1047 enable_static
1048 enable_shared
1049 with_pic
1050 enable_fast_install
1051 with_gnu_ld
1052 enable_libtool_lock
1053 enable_rpath
1054 with_libiconv_prefix
1055 with_x
1056 with_qt4dir
1057 with_javah
1058 with_vm_classes
1059 enable_maintainer_mode
1060 enable_debug
1061 enable_load_library
1062 with_ecj_jar
1063 enable_java_lang_system_explicit_initialization
1064 with_jar
1065 with_glibj
1066 enable_examples
1067 enable_tools
1068 with_gjdoc
1069 with_jay
1070 enable_portable_native_sync
1071 with_glibj_zip
1072 with_escher
1073 enable_local_sockets
1075 ac_precious_vars='build_alias
1076 host_alias
1077 target_alias
1079 CFLAGS
1080 LDFLAGS
1081 LIBS
1082 CPPFLAGS
1085 CXXFLAGS
1087 CXXCPP
1088 XMKMF'
1091 # Initialize some variables set by options.
1092 ac_init_help=
1093 ac_init_version=false
1094 ac_unrecognized_opts=
1095 ac_unrecognized_sep=
1096 # The variables have the same names as the options, with
1097 # dashes changed to underlines.
1098 cache_file=/dev/null
1099 exec_prefix=NONE
1100 no_create=
1101 no_recursion=
1102 prefix=NONE
1103 program_prefix=NONE
1104 program_suffix=NONE
1105 program_transform_name=s,x,x,
1106 silent=
1107 site=
1108 srcdir=
1109 verbose=
1110 x_includes=NONE
1111 x_libraries=NONE
1113 # Installation directory options.
1114 # These are left unexpanded so users can "make install exec_prefix=/foo"
1115 # and all the variables that are supposed to be based on exec_prefix
1116 # by default will actually change.
1117 # Use braces instead of parens because sh, perl, etc. also accept them.
1118 # (The list follows the same order as the GNU Coding Standards.)
1119 bindir='${exec_prefix}/bin'
1120 sbindir='${exec_prefix}/sbin'
1121 libexecdir='${exec_prefix}/libexec'
1122 datarootdir='${prefix}/share'
1123 datadir='${datarootdir}'
1124 sysconfdir='${prefix}/etc'
1125 sharedstatedir='${prefix}/com'
1126 localstatedir='${prefix}/var'
1127 includedir='${prefix}/include'
1128 oldincludedir='/usr/include'
1129 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1130 infodir='${datarootdir}/info'
1131 htmldir='${docdir}'
1132 dvidir='${docdir}'
1133 pdfdir='${docdir}'
1134 psdir='${docdir}'
1135 libdir='${exec_prefix}/lib'
1136 localedir='${datarootdir}/locale'
1137 mandir='${datarootdir}/man'
1139 ac_prev=
1140 ac_dashdash=
1141 for ac_option
1143 # If the previous option needs an argument, assign it.
1144 if test -n "$ac_prev"; then
1145 eval $ac_prev=\$ac_option
1146 ac_prev=
1147 continue
1150 case $ac_option in
1151 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1152 *) ac_optarg=yes ;;
1153 esac
1155 # Accept the important Cygnus configure options, so we can diagnose typos.
1157 case $ac_dashdash$ac_option in
1159 ac_dashdash=yes ;;
1161 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1162 ac_prev=bindir ;;
1163 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1164 bindir=$ac_optarg ;;
1166 -build | --build | --buil | --bui | --bu)
1167 ac_prev=build_alias ;;
1168 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1169 build_alias=$ac_optarg ;;
1171 -cache-file | --cache-file | --cache-fil | --cache-fi \
1172 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1173 ac_prev=cache_file ;;
1174 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1175 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1176 cache_file=$ac_optarg ;;
1178 --config-cache | -C)
1179 cache_file=config.cache ;;
1181 -datadir | --datadir | --datadi | --datad)
1182 ac_prev=datadir ;;
1183 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1184 datadir=$ac_optarg ;;
1186 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1187 | --dataroo | --dataro | --datar)
1188 ac_prev=datarootdir ;;
1189 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1190 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1191 datarootdir=$ac_optarg ;;
1193 -disable-* | --disable-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error "invalid feature name: $ac_useropt"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1202 "enable_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval enable_$ac_useropt=no ;;
1209 -docdir | --docdir | --docdi | --doc | --do)
1210 ac_prev=docdir ;;
1211 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1212 docdir=$ac_optarg ;;
1214 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1215 ac_prev=dvidir ;;
1216 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1217 dvidir=$ac_optarg ;;
1219 -enable-* | --enable-*)
1220 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1221 # Reject names that are not valid shell variable names.
1222 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1223 as_fn_error "invalid feature name: $ac_useropt"
1224 ac_useropt_orig=$ac_useropt
1225 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1226 case $ac_user_opts in
1228 "enable_$ac_useropt"
1229 "*) ;;
1230 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1231 ac_unrecognized_sep=', ';;
1232 esac
1233 eval enable_$ac_useropt=\$ac_optarg ;;
1235 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1236 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1237 | --exec | --exe | --ex)
1238 ac_prev=exec_prefix ;;
1239 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1240 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1241 | --exec=* | --exe=* | --ex=*)
1242 exec_prefix=$ac_optarg ;;
1244 -gas | --gas | --ga | --g)
1245 # Obsolete; use --with-gas.
1246 with_gas=yes ;;
1248 -help | --help | --hel | --he | -h)
1249 ac_init_help=long ;;
1250 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1251 ac_init_help=recursive ;;
1252 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1253 ac_init_help=short ;;
1255 -host | --host | --hos | --ho)
1256 ac_prev=host_alias ;;
1257 -host=* | --host=* | --hos=* | --ho=*)
1258 host_alias=$ac_optarg ;;
1260 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1261 ac_prev=htmldir ;;
1262 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1263 | --ht=*)
1264 htmldir=$ac_optarg ;;
1266 -includedir | --includedir | --includedi | --included | --include \
1267 | --includ | --inclu | --incl | --inc)
1268 ac_prev=includedir ;;
1269 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1270 | --includ=* | --inclu=* | --incl=* | --inc=*)
1271 includedir=$ac_optarg ;;
1273 -infodir | --infodir | --infodi | --infod | --info | --inf)
1274 ac_prev=infodir ;;
1275 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1276 infodir=$ac_optarg ;;
1278 -libdir | --libdir | --libdi | --libd)
1279 ac_prev=libdir ;;
1280 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1281 libdir=$ac_optarg ;;
1283 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1284 | --libexe | --libex | --libe)
1285 ac_prev=libexecdir ;;
1286 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1287 | --libexe=* | --libex=* | --libe=*)
1288 libexecdir=$ac_optarg ;;
1290 -localedir | --localedir | --localedi | --localed | --locale)
1291 ac_prev=localedir ;;
1292 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1293 localedir=$ac_optarg ;;
1295 -localstatedir | --localstatedir | --localstatedi | --localstated \
1296 | --localstate | --localstat | --localsta | --localst | --locals)
1297 ac_prev=localstatedir ;;
1298 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1299 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1300 localstatedir=$ac_optarg ;;
1302 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1303 ac_prev=mandir ;;
1304 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1305 mandir=$ac_optarg ;;
1307 -nfp | --nfp | --nf)
1308 # Obsolete; use --without-fp.
1309 with_fp=no ;;
1311 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1312 | --no-cr | --no-c | -n)
1313 no_create=yes ;;
1315 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1316 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1317 no_recursion=yes ;;
1319 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1320 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1321 | --oldin | --oldi | --old | --ol | --o)
1322 ac_prev=oldincludedir ;;
1323 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1324 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1325 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1326 oldincludedir=$ac_optarg ;;
1328 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1329 ac_prev=prefix ;;
1330 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1331 prefix=$ac_optarg ;;
1333 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1334 | --program-pre | --program-pr | --program-p)
1335 ac_prev=program_prefix ;;
1336 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1337 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1338 program_prefix=$ac_optarg ;;
1340 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1341 | --program-suf | --program-su | --program-s)
1342 ac_prev=program_suffix ;;
1343 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1344 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1345 program_suffix=$ac_optarg ;;
1347 -program-transform-name | --program-transform-name \
1348 | --program-transform-nam | --program-transform-na \
1349 | --program-transform-n | --program-transform- \
1350 | --program-transform | --program-transfor \
1351 | --program-transfo | --program-transf \
1352 | --program-trans | --program-tran \
1353 | --progr-tra | --program-tr | --program-t)
1354 ac_prev=program_transform_name ;;
1355 -program-transform-name=* | --program-transform-name=* \
1356 | --program-transform-nam=* | --program-transform-na=* \
1357 | --program-transform-n=* | --program-transform-=* \
1358 | --program-transform=* | --program-transfor=* \
1359 | --program-transfo=* | --program-transf=* \
1360 | --program-trans=* | --program-tran=* \
1361 | --progr-tra=* | --program-tr=* | --program-t=*)
1362 program_transform_name=$ac_optarg ;;
1364 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1365 ac_prev=pdfdir ;;
1366 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1367 pdfdir=$ac_optarg ;;
1369 -psdir | --psdir | --psdi | --psd | --ps)
1370 ac_prev=psdir ;;
1371 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1372 psdir=$ac_optarg ;;
1374 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1375 | -silent | --silent | --silen | --sile | --sil)
1376 silent=yes ;;
1378 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1379 ac_prev=sbindir ;;
1380 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1381 | --sbi=* | --sb=*)
1382 sbindir=$ac_optarg ;;
1384 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1385 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1386 | --sharedst | --shareds | --shared | --share | --shar \
1387 | --sha | --sh)
1388 ac_prev=sharedstatedir ;;
1389 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1390 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1391 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1392 | --sha=* | --sh=*)
1393 sharedstatedir=$ac_optarg ;;
1395 -site | --site | --sit)
1396 ac_prev=site ;;
1397 -site=* | --site=* | --sit=*)
1398 site=$ac_optarg ;;
1400 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1401 ac_prev=srcdir ;;
1402 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1403 srcdir=$ac_optarg ;;
1405 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1406 | --syscon | --sysco | --sysc | --sys | --sy)
1407 ac_prev=sysconfdir ;;
1408 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1409 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1410 sysconfdir=$ac_optarg ;;
1412 -target | --target | --targe | --targ | --tar | --ta | --t)
1413 ac_prev=target_alias ;;
1414 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1415 target_alias=$ac_optarg ;;
1417 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1418 verbose=yes ;;
1420 -version | --version | --versio | --versi | --vers | -V)
1421 ac_init_version=: ;;
1423 -with-* | --with-*)
1424 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1425 # Reject names that are not valid shell variable names.
1426 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1427 as_fn_error "invalid package name: $ac_useropt"
1428 ac_useropt_orig=$ac_useropt
1429 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1430 case $ac_user_opts in
1432 "with_$ac_useropt"
1433 "*) ;;
1434 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1435 ac_unrecognized_sep=', ';;
1436 esac
1437 eval with_$ac_useropt=\$ac_optarg ;;
1439 -without-* | --without-*)
1440 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1441 # Reject names that are not valid shell variable names.
1442 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1443 as_fn_error "invalid package name: $ac_useropt"
1444 ac_useropt_orig=$ac_useropt
1445 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1446 case $ac_user_opts in
1448 "with_$ac_useropt"
1449 "*) ;;
1450 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1451 ac_unrecognized_sep=', ';;
1452 esac
1453 eval with_$ac_useropt=no ;;
1455 --x)
1456 # Obsolete; use --with-x.
1457 with_x=yes ;;
1459 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1460 | --x-incl | --x-inc | --x-in | --x-i)
1461 ac_prev=x_includes ;;
1462 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1463 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1464 x_includes=$ac_optarg ;;
1466 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1467 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1468 ac_prev=x_libraries ;;
1469 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1470 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1471 x_libraries=$ac_optarg ;;
1473 -*) as_fn_error "unrecognized option: \`$ac_option'
1474 Try \`$0 --help' for more information."
1477 *=*)
1478 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1479 # Reject names that are not valid shell variable names.
1480 case $ac_envvar in #(
1481 '' | [0-9]* | *[!_$as_cr_alnum]* )
1482 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1483 esac
1484 eval $ac_envvar=\$ac_optarg
1485 export $ac_envvar ;;
1488 # FIXME: should be removed in autoconf 3.0.
1489 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1490 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1491 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1492 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1495 esac
1496 done
1498 if test -n "$ac_prev"; then
1499 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1500 as_fn_error "missing argument to $ac_option"
1503 if test -n "$ac_unrecognized_opts"; then
1504 case $enable_option_checking in
1505 no) ;;
1506 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1507 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1508 esac
1511 # Check all directory arguments for consistency.
1512 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1513 datadir sysconfdir sharedstatedir localstatedir includedir \
1514 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1515 libdir localedir mandir
1517 eval ac_val=\$$ac_var
1518 # Remove trailing slashes.
1519 case $ac_val in
1520 */ )
1521 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1522 eval $ac_var=\$ac_val;;
1523 esac
1524 # Be sure to have absolute directory names.
1525 case $ac_val in
1526 [\\/$]* | ?:[\\/]* ) continue;;
1527 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1528 esac
1529 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1530 done
1532 # There might be people who depend on the old broken behavior: `$host'
1533 # used to hold the argument of --host etc.
1534 # FIXME: To remove some day.
1535 build=$build_alias
1536 host=$host_alias
1537 target=$target_alias
1539 # FIXME: To remove some day.
1540 if test "x$host_alias" != x; then
1541 if test "x$build_alias" = x; then
1542 cross_compiling=maybe
1543 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1544 If a cross compiler is detected then cross compile mode will be used." >&2
1545 elif test "x$build_alias" != "x$host_alias"; then
1546 cross_compiling=yes
1550 ac_tool_prefix=
1551 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1553 test "$silent" = yes && exec 6>/dev/null
1556 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1557 ac_ls_di=`ls -di .` &&
1558 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1559 as_fn_error "working directory cannot be determined"
1560 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1561 as_fn_error "pwd does not report name of working directory"
1564 # Find the source files, if location was not specified.
1565 if test -z "$srcdir"; then
1566 ac_srcdir_defaulted=yes
1567 # Try the directory containing this script, then the parent directory.
1568 ac_confdir=`$as_dirname -- "$as_myself" ||
1569 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1570 X"$as_myself" : 'X\(//\)[^/]' \| \
1571 X"$as_myself" : 'X\(//\)$' \| \
1572 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1573 $as_echo X"$as_myself" |
1574 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1575 s//\1/
1578 /^X\(\/\/\)[^/].*/{
1579 s//\1/
1582 /^X\(\/\/\)$/{
1583 s//\1/
1586 /^X\(\/\).*/{
1587 s//\1/
1590 s/.*/./; q'`
1591 srcdir=$ac_confdir
1592 if test ! -r "$srcdir/$ac_unique_file"; then
1593 srcdir=..
1595 else
1596 ac_srcdir_defaulted=no
1598 if test ! -r "$srcdir/$ac_unique_file"; then
1599 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1600 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1602 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1603 ac_abs_confdir=`(
1604 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1605 pwd)`
1606 # When building in place, set srcdir=.
1607 if test "$ac_abs_confdir" = "$ac_pwd"; then
1608 srcdir=.
1610 # Remove unnecessary trailing slashes from srcdir.
1611 # Double slashes in file names in object file debugging info
1612 # mess up M-x gdb in Emacs.
1613 case $srcdir in
1614 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1615 esac
1616 for ac_var in $ac_precious_vars; do
1617 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1618 eval ac_env_${ac_var}_value=\$${ac_var}
1619 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1620 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1621 done
1624 # Report the --help message.
1626 if test "$ac_init_help" = "long"; then
1627 # Omit some internal or obsolete options to make the list less imposing.
1628 # This message is too long to be a string in the A/UX 3.1 sh.
1629 cat <<_ACEOF
1630 \`configure' configures GNU Classpath 0.98 to adapt to many kinds of systems.
1632 Usage: $0 [OPTION]... [VAR=VALUE]...
1634 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1635 VAR=VALUE. See below for descriptions of some of the useful variables.
1637 Defaults for the options are specified in brackets.
1639 Configuration:
1640 -h, --help display this help and exit
1641 --help=short display options specific to this package
1642 --help=recursive display the short help of all the included packages
1643 -V, --version display version information and exit
1644 -q, --quiet, --silent do not print \`checking...' messages
1645 --cache-file=FILE cache test results in FILE [disabled]
1646 -C, --config-cache alias for \`--cache-file=config.cache'
1647 -n, --no-create do not create output files
1648 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1650 Installation directories:
1651 --prefix=PREFIX install architecture-independent files in PREFIX
1652 [$ac_default_prefix]
1653 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1654 [PREFIX]
1656 By default, \`make install' will install all the files in
1657 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1658 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1659 for instance \`--prefix=\$HOME'.
1661 For better control, use the options below.
1663 Fine tuning of the installation directories:
1664 --bindir=DIR user executables [EPREFIX/bin]
1665 --sbindir=DIR system admin executables [EPREFIX/sbin]
1666 --libexecdir=DIR program executables [EPREFIX/libexec]
1667 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1668 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1669 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1670 --libdir=DIR object code libraries [EPREFIX/lib]
1671 --includedir=DIR C header files [PREFIX/include]
1672 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1673 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1674 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1675 --infodir=DIR info documentation [DATAROOTDIR/info]
1676 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1677 --mandir=DIR man documentation [DATAROOTDIR/man]
1678 --docdir=DIR documentation root [DATAROOTDIR/doc/classpath]
1679 --htmldir=DIR html documentation [DOCDIR]
1680 --dvidir=DIR dvi documentation [DOCDIR]
1681 --pdfdir=DIR pdf documentation [DOCDIR]
1682 --psdir=DIR ps documentation [DOCDIR]
1683 _ACEOF
1685 cat <<\_ACEOF
1687 Program names:
1688 --program-prefix=PREFIX prepend PREFIX to installed program names
1689 --program-suffix=SUFFIX append SUFFIX to installed program names
1690 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1692 X features:
1693 --x-includes=DIR X include files are in DIR
1694 --x-libraries=DIR X library files are in DIR
1696 System types:
1697 --build=BUILD configure for building on BUILD [guessed]
1698 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1699 --target=TARGET configure for building compilers for TARGET [HOST]
1700 _ACEOF
1703 if test -n "$ac_init_help"; then
1704 case $ac_init_help in
1705 short | recursive ) echo "Configuration of GNU Classpath 0.98:";;
1706 esac
1707 cat <<\_ACEOF
1709 Optional Features:
1710 --disable-option-checking ignore unrecognized --enable/--with options
1711 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1712 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1713 --enable-java-maintainer-mode
1714 allow rebuilding of .class and .h files
1715 --enable-generated-files-in-srcdir
1716 put copies of generated files in source dir
1717 intended for creating source tarballs for users
1718 without texinfo, perl, bison or flex.
1719 --enable-multilib build many library versions (default)
1720 --enable-collections create collections.jar default=no
1721 --enable-jni compile JNI source default=yes
1722 --enable-core-jni compile JNI sources for core default=yes
1723 --enable-default-preferences-peer[=peer type or class name]
1724 specify one of: "gconf" [default] for a GConf based
1725 backend, "file" for a file based one, "memory" for a
1726 transient one, or a fully qualified class name
1727 implementing java.util.prefs.PreferencesFactory
1728 --disable-gconf-peer compile GConf native peers (disabled by
1729 --disable-jni) default=yes
1731 --enable-gstreamer-peer compile GStreamer native peers (disabled by
1732 --disable-jni) default=no
1733 --enable-Werror whether to compile C code with -Werror which turns
1734 any compiler warning into a compilation failure
1735 default=no
1736 --enable-default-toolkit
1737 fully qualified class name of default AWT toolkit
1738 --enable-xmlj compile native libxml/xslt library default=no
1739 --disable-alsa compile ALSA providers (enable by --enable-alsa)
1740 default=yes
1741 --disable-dependency-tracking speeds up one-time build
1742 --enable-dependency-tracking do not reject slow dependency extractors
1743 --disable-dssi compile DSSI providers (enable by --enable-dssi)
1744 default=yes
1745 --disable-gtk-peer compile GTK native peers (disabled by --disable-jni)
1746 default=yes
1747 --enable-qt-peer compile Qt4 native peers (disabled by --disable-jni)
1748 default=no
1749 --disable-plugin compile gcjwebplugin (disabled by --disable-plugin)
1750 default=yes
1751 --enable-gmp compile native java.math.BigInteger library
1752 (disabled by --disable-gmp) default=yes
1753 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1754 default=yes
1755 --enable-regen-headers automatically regenerate JNI headers default=yes if
1756 headers don't exist
1757 --enable-regen-gjdoc-parser
1758 automatically regenerate the GJDoc parser
1759 default=yes if generated source doesn't exist
1760 --enable-tool-wrappers create tool wrapper binaries default=no
1761 --enable-static[=PKGS] build static libraries [default=no]
1762 --enable-shared[=PKGS] build shared libraries [default=yes]
1763 --enable-fast-install[=PKGS]
1764 optimize for fast installation [default=yes]
1765 --disable-libtool-lock avoid locking (might break parallel builds)
1766 --disable-rpath do not hardcode runtime library paths
1767 --enable-maintainer-mode enable make rules and dependencies not useful
1768 (and sometimes confusing) to the casual installer
1769 --enable-debug enable runtime debugging code
1770 --enable-load-library enable to use JNI native methods default=yes
1771 --enable-java-lang-system-explicit-initialization
1772 will the VM explicitly invoke java.lang.System's
1773 static initialization methods default=no
1774 --enable-examples enable build of the examples default=yes
1775 --enable-tools enable build of the tools default=yes
1776 --enable-portable-native-sync
1777 synchronize VM threads portably
1778 --enable-local-sockets enables local (AF_LOCAL) socket API default: no
1780 Optional Packages:
1781 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1782 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1783 --with-native-libdir sets the installation directory for native libraries
1784 default='${libdir}/${PACKAGE}'
1785 --with-glibj-dir sets the installation directory for glibj.zip
1786 default='${libdir}/${PACKAGE}'
1787 --with-antlr-jar=file Use ANTLR from the specified jar file
1788 --with-pic try to use only PIC/non-PIC objects [default=use
1789 both]
1790 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1791 --with-gnu-ld assume the C compiler uses GNU ld default=no
1792 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1793 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1794 --with-x use the X Window System
1795 --with-qt4dir=DIR Qt4 installation directory used for OS-X. For other
1796 systems use pkg-config.
1797 --with-javah specify path or name of a javah-like program
1798 --with-vm-classes specify path to VM override source files
1799 --with-ecj-jar=ABS.PATH specify jar file containing the Eclipse Java
1800 Compiler
1801 --with-jar=PATH define to use a jar style tool
1802 --with-glibj define what to install (zip|flat|both|none|build)
1803 [default=zip]
1804 --with-gjdoc generate documentation using gjdoc (default is NO)
1805 --with-jay=DIR|PATH Regenerate the parsers with jay
1806 --with-glibj-zip=ABS.PATH
1807 use prebuilt glibj.zip class library
1808 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1810 Some influential environment variables:
1811 CC C compiler command
1812 CFLAGS C compiler flags
1813 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1814 nonstandard directory <lib dir>
1815 LIBS libraries to pass to the linker, e.g. -l<library>
1816 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1817 you have headers in a nonstandard directory <include dir>
1818 CPP C preprocessor
1819 CXX C++ compiler command
1820 CXXFLAGS C++ compiler flags
1821 CXXCPP C++ preprocessor
1822 XMKMF Path to xmkmf, Makefile generator for X Window System
1824 Use these variables to override the choices made by `configure' or to help
1825 it to find libraries and programs with nonstandard names/locations.
1827 Report bugs to <classpath@gnu.org>.
1828 GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
1829 General help using GNU software: <http://www.gnu.org/gethelp/>.
1830 _ACEOF
1831 ac_status=$?
1834 if test "$ac_init_help" = "recursive"; then
1835 # If there are subdirs, report their specific --help.
1836 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1837 test -d "$ac_dir" ||
1838 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1839 continue
1840 ac_builddir=.
1842 case "$ac_dir" in
1843 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1845 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1846 # A ".." for each directory in $ac_dir_suffix.
1847 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1848 case $ac_top_builddir_sub in
1849 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1850 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1851 esac ;;
1852 esac
1853 ac_abs_top_builddir=$ac_pwd
1854 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1855 # for backward compatibility:
1856 ac_top_builddir=$ac_top_build_prefix
1858 case $srcdir in
1859 .) # We are building in place.
1860 ac_srcdir=.
1861 ac_top_srcdir=$ac_top_builddir_sub
1862 ac_abs_top_srcdir=$ac_pwd ;;
1863 [\\/]* | ?:[\\/]* ) # Absolute name.
1864 ac_srcdir=$srcdir$ac_dir_suffix;
1865 ac_top_srcdir=$srcdir
1866 ac_abs_top_srcdir=$srcdir ;;
1867 *) # Relative name.
1868 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1869 ac_top_srcdir=$ac_top_build_prefix$srcdir
1870 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1871 esac
1872 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1874 cd "$ac_dir" || { ac_status=$?; continue; }
1875 # Check for guested configure.
1876 if test -f "$ac_srcdir/configure.gnu"; then
1877 echo &&
1878 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1879 elif test -f "$ac_srcdir/configure"; then
1880 echo &&
1881 $SHELL "$ac_srcdir/configure" --help=recursive
1882 else
1883 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1884 fi || ac_status=$?
1885 cd "$ac_pwd" || { ac_status=$?; break; }
1886 done
1889 test -n "$ac_init_help" && exit $ac_status
1890 if $ac_init_version; then
1891 cat <<\_ACEOF
1892 GNU Classpath configure 0.98
1893 generated by GNU Autoconf 2.64
1895 Copyright (C) 2009 Free Software Foundation, Inc.
1896 This configure script is free software; the Free Software Foundation
1897 gives unlimited permission to copy, distribute and modify it.
1898 _ACEOF
1899 exit
1902 ## ------------------------ ##
1903 ## Autoconf initialization. ##
1904 ## ------------------------ ##
1906 # ac_fn_c_try_compile LINENO
1907 # --------------------------
1908 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1909 ac_fn_c_try_compile ()
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 rm -f conftest.$ac_objext
1913 if { { ac_try="$ac_compile"
1914 case "(($ac_try" in
1915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1916 *) ac_try_echo=$ac_try;;
1917 esac
1918 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1919 $as_echo "$ac_try_echo"; } >&5
1920 (eval "$ac_compile") 2>conftest.err
1921 ac_status=$?
1922 if test -s conftest.err; then
1923 grep -v '^ *+' conftest.err >conftest.er1
1924 cat conftest.er1 >&5
1925 mv -f conftest.er1 conftest.err
1927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1928 test $ac_status = 0; } && {
1929 test -z "$ac_c_werror_flag" ||
1930 test ! -s conftest.err
1931 } && test -s conftest.$ac_objext; then :
1932 ac_retval=0
1933 else
1934 $as_echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1937 ac_retval=1
1939 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1940 return $ac_retval
1942 } # ac_fn_c_try_compile
1944 # ac_fn_c_try_cpp LINENO
1945 # ----------------------
1946 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1947 ac_fn_c_try_cpp ()
1949 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950 if { { ac_try="$ac_cpp conftest.$ac_ext"
1951 case "(($ac_try" in
1952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953 *) ac_try_echo=$ac_try;;
1954 esac
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1958 ac_status=$?
1959 if test -s conftest.err; then
1960 grep -v '^ *+' conftest.err >conftest.er1
1961 cat conftest.er1 >&5
1962 mv -f conftest.er1 conftest.err
1964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965 test $ac_status = 0; } >/dev/null && {
1966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1967 test ! -s conftest.err
1968 }; then :
1969 ac_retval=0
1970 else
1971 $as_echo "$as_me: failed program was:" >&5
1972 sed 's/^/| /' conftest.$ac_ext >&5
1974 ac_retval=1
1976 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977 return $ac_retval
1979 } # ac_fn_c_try_cpp
1981 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1982 # -------------------------------------------------------
1983 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1984 # the include files in INCLUDES and setting the cache variable VAR
1985 # accordingly.
1986 ac_fn_c_check_header_mongrel ()
1988 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1993 $as_echo_n "(cached) " >&6
1995 eval ac_res=\$$3
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998 else
1999 # Is the header compilable?
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2001 $as_echo_n "checking $2 usability... " >&6; }
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2005 #include <$2>
2006 _ACEOF
2007 if ac_fn_c_try_compile "$LINENO"; then :
2008 ac_header_compiler=yes
2009 else
2010 ac_header_compiler=no
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2014 $as_echo "$ac_header_compiler" >&6; }
2016 # Is the header present?
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2018 $as_echo_n "checking $2 presence... " >&6; }
2019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h. */
2021 #include <$2>
2022 _ACEOF
2023 if ac_fn_c_try_cpp "$LINENO"; then :
2024 ac_header_preproc=yes
2025 else
2026 ac_header_preproc=no
2028 rm -f conftest.err conftest.$ac_ext
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2030 $as_echo "$ac_header_preproc" >&6; }
2032 # So? What about this header?
2033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2034 yes:no: )
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2036 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2038 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2040 no:yes:* )
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2042 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2044 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2046 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2048 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2050 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2051 ( cat <<\_ASBOX
2052 ## -------------------------------- ##
2053 ## Report this to classpath@gnu.org ##
2054 ## -------------------------------- ##
2055 _ASBOX
2056 ) | sed "s/^/$as_me: WARNING: /" >&2
2058 esac
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2062 $as_echo_n "(cached) " >&6
2063 else
2064 eval "$3=\$ac_header_compiler"
2066 eval ac_res=\$$3
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2070 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2072 } # ac_fn_c_check_header_mongrel
2074 # ac_fn_c_try_run LINENO
2075 # ----------------------
2076 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2077 # that executables *can* be run.
2078 ac_fn_c_try_run ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 if { { ac_try="$ac_link"
2082 case "(($ac_try" in
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2085 esac
2086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2087 $as_echo "$ac_try_echo"; } >&5
2088 (eval "$ac_link") 2>&5
2089 ac_status=$?
2090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2091 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2092 { { case "(($ac_try" in
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2095 esac
2096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2097 $as_echo "$ac_try_echo"; } >&5
2098 (eval "$ac_try") 2>&5
2099 ac_status=$?
2100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2101 test $ac_status = 0; }; }; then :
2102 ac_retval=0
2103 else
2104 $as_echo "$as_me: program exited with status $ac_status" >&5
2105 $as_echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2108 ac_retval=$ac_status
2110 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2111 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2112 return $ac_retval
2114 } # ac_fn_c_try_run
2116 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2117 # -------------------------------------------------------
2118 # Tests whether HEADER exists and can be compiled using the include files in
2119 # INCLUDES, setting the cache variable VAR accordingly.
2120 ac_fn_c_check_header_compile ()
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124 $as_echo_n "checking for $2... " >&6; }
2125 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2126 $as_echo_n "(cached) " >&6
2127 else
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2131 #include <$2>
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134 eval "$3=yes"
2135 else
2136 eval "$3=no"
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 eval ac_res=\$$3
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2145 } # ac_fn_c_check_header_compile
2147 # ac_fn_c_try_link LINENO
2148 # -----------------------
2149 # Try to link conftest.$ac_ext, and return whether this succeeded.
2150 ac_fn_c_try_link ()
2152 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153 rm -f conftest.$ac_objext conftest$ac_exeext
2154 if { { ac_try="$ac_link"
2155 case "(($ac_try" in
2156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2157 *) ac_try_echo=$ac_try;;
2158 esac
2159 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2160 $as_echo "$ac_try_echo"; } >&5
2161 (eval "$ac_link") 2>conftest.err
2162 ac_status=$?
2163 if test -s conftest.err; then
2164 grep -v '^ *+' conftest.err >conftest.er1
2165 cat conftest.er1 >&5
2166 mv -f conftest.er1 conftest.err
2168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2169 test $ac_status = 0; } && {
2170 test -z "$ac_c_werror_flag" ||
2171 test ! -s conftest.err
2172 } && test -s conftest$ac_exeext && {
2173 test "$cross_compiling" = yes ||
2174 $as_test_x conftest$ac_exeext
2175 }; then :
2176 ac_retval=0
2177 else
2178 $as_echo "$as_me: failed program was:" >&5
2179 sed 's/^/| /' conftest.$ac_ext >&5
2181 ac_retval=1
2183 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2184 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2185 # interfere with the next link command; also delete a directory that is
2186 # left behind by Apple's compiler. We do this before executing the actions.
2187 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2188 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2189 return $ac_retval
2191 } # ac_fn_c_try_link
2193 # ac_fn_c_check_func LINENO FUNC VAR
2194 # ----------------------------------
2195 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2196 ac_fn_c_check_func ()
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2200 $as_echo_n "checking for $2... " >&6; }
2201 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2202 $as_echo_n "(cached) " >&6
2203 else
2204 if test x$gcc_no_link = xyes; then
2205 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2209 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2211 #define $2 innocuous_$2
2213 /* System header to define __stub macros and hopefully few prototypes,
2214 which can conflict with char $2 (); below.
2215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2216 <limits.h> exists even on freestanding compilers. */
2218 #ifdef __STDC__
2219 # include <limits.h>
2220 #else
2221 # include <assert.h>
2222 #endif
2224 #undef $2
2226 /* Override any GCC internal prototype to avoid an error.
2227 Use char because int might match the return type of a GCC
2228 builtin and then its argument prototype would still apply. */
2229 #ifdef __cplusplus
2230 extern "C"
2231 #endif
2232 char $2 ();
2233 /* The GNU C library defines this for functions which it implements
2234 to always fail with ENOSYS. Some functions are actually named
2235 something starting with __ and the normal name is an alias. */
2236 #if defined __stub_$2 || defined __stub___$2
2237 choke me
2238 #endif
2241 main ()
2243 return $2 ();
2245 return 0;
2247 _ACEOF
2248 if ac_fn_c_try_link "$LINENO"; then :
2249 eval "$3=yes"
2250 else
2251 eval "$3=no"
2253 rm -f core conftest.err conftest.$ac_objext \
2254 conftest$ac_exeext conftest.$ac_ext
2256 eval ac_res=\$$3
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2258 $as_echo "$ac_res" >&6; }
2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261 } # ac_fn_c_check_func
2263 # ac_fn_cxx_try_compile LINENO
2264 # ----------------------------
2265 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2266 ac_fn_cxx_try_compile ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 rm -f conftest.$ac_objext
2270 if { { ac_try="$ac_compile"
2271 case "(($ac_try" in
2272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2273 *) ac_try_echo=$ac_try;;
2274 esac
2275 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2276 $as_echo "$ac_try_echo"; } >&5
2277 (eval "$ac_compile") 2>conftest.err
2278 ac_status=$?
2279 if test -s conftest.err; then
2280 grep -v '^ *+' conftest.err >conftest.er1
2281 cat conftest.er1 >&5
2282 mv -f conftest.er1 conftest.err
2284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2285 test $ac_status = 0; } && {
2286 test -z "$ac_cxx_werror_flag" ||
2287 test ! -s conftest.err
2288 } && test -s conftest.$ac_objext; then :
2289 ac_retval=0
2290 else
2291 $as_echo "$as_me: failed program was:" >&5
2292 sed 's/^/| /' conftest.$ac_ext >&5
2294 ac_retval=1
2296 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2297 return $ac_retval
2299 } # ac_fn_cxx_try_compile
2301 # ac_fn_cxx_try_cpp LINENO
2302 # ------------------------
2303 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2304 ac_fn_cxx_try_cpp ()
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 if { { ac_try="$ac_cpp conftest.$ac_ext"
2308 case "(($ac_try" in
2309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2310 *) ac_try_echo=$ac_try;;
2311 esac
2312 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2313 $as_echo "$ac_try_echo"; } >&5
2314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2315 ac_status=$?
2316 if test -s conftest.err; then
2317 grep -v '^ *+' conftest.err >conftest.er1
2318 cat conftest.er1 >&5
2319 mv -f conftest.er1 conftest.err
2321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2322 test $ac_status = 0; } >/dev/null && {
2323 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2324 test ! -s conftest.err
2325 }; then :
2326 ac_retval=0
2327 else
2328 $as_echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2331 ac_retval=1
2333 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2334 return $ac_retval
2336 } # ac_fn_cxx_try_cpp
2338 # ac_fn_cxx_try_link LINENO
2339 # -------------------------
2340 # Try to link conftest.$ac_ext, and return whether this succeeded.
2341 ac_fn_cxx_try_link ()
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 rm -f conftest.$ac_objext conftest$ac_exeext
2345 if { { ac_try="$ac_link"
2346 case "(($ac_try" in
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2349 esac
2350 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2351 $as_echo "$ac_try_echo"; } >&5
2352 (eval "$ac_link") 2>conftest.err
2353 ac_status=$?
2354 if test -s conftest.err; then
2355 grep -v '^ *+' conftest.err >conftest.er1
2356 cat conftest.er1 >&5
2357 mv -f conftest.er1 conftest.err
2359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2360 test $ac_status = 0; } && {
2361 test -z "$ac_cxx_werror_flag" ||
2362 test ! -s conftest.err
2363 } && test -s conftest$ac_exeext && {
2364 test "$cross_compiling" = yes ||
2365 $as_test_x conftest$ac_exeext
2366 }; then :
2367 ac_retval=0
2368 else
2369 $as_echo "$as_me: failed program was:" >&5
2370 sed 's/^/| /' conftest.$ac_ext >&5
2372 ac_retval=1
2374 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2375 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2376 # interfere with the next link command; also delete a directory that is
2377 # left behind by Apple's compiler. We do this before executing the actions.
2378 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2379 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2380 return $ac_retval
2382 } # ac_fn_cxx_try_link
2384 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2385 # ----------------------------------------------------
2386 # Tries to find if the field MEMBER exists in type AGGR, after including
2387 # INCLUDES, setting cache variable VAR accordingly.
2388 ac_fn_c_check_member ()
2390 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2392 $as_echo_n "checking for $2.$3... " >&6; }
2393 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2394 $as_echo_n "(cached) " >&6
2395 else
2396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h. */
2400 main ()
2402 static $2 ac_aggr;
2403 if (ac_aggr.$3)
2404 return 0;
2406 return 0;
2408 _ACEOF
2409 if ac_fn_c_try_compile "$LINENO"; then :
2410 eval "$4=yes"
2411 else
2412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413 /* end confdefs.h. */
2416 main ()
2418 static $2 ac_aggr;
2419 if (sizeof ac_aggr.$3)
2420 return 0;
2422 return 0;
2424 _ACEOF
2425 if ac_fn_c_try_compile "$LINENO"; then :
2426 eval "$4=yes"
2427 else
2428 eval "$4=no"
2430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434 eval ac_res=\$$4
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2436 $as_echo "$ac_res" >&6; }
2437 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2439 } # ac_fn_c_check_member
2441 # ac_fn_c_check_decl LINENO SYMBOL VAR
2442 # ------------------------------------
2443 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2444 ac_fn_c_check_decl ()
2446 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2448 $as_echo_n "checking whether $2 is declared... " >&6; }
2449 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2450 $as_echo_n "(cached) " >&6
2451 else
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2456 main ()
2458 #ifndef $2
2459 (void) $2;
2460 #endif
2463 return 0;
2465 _ACEOF
2466 if ac_fn_c_try_compile "$LINENO"; then :
2467 eval "$3=yes"
2468 else
2469 eval "$3=no"
2471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473 eval ac_res=\$$3
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2475 $as_echo "$ac_res" >&6; }
2476 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2478 } # ac_fn_c_check_decl
2480 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2481 # -------------------------------------------
2482 # Tests whether TYPE exists after having included INCLUDES, setting cache
2483 # variable VAR accordingly.
2484 ac_fn_c_check_type ()
2486 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2488 $as_echo_n "checking for $2... " >&6; }
2489 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2490 $as_echo_n "(cached) " >&6
2491 else
2492 eval "$3=no"
2493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h. */
2497 main ()
2499 if (sizeof ($2))
2500 return 0;
2502 return 0;
2504 _ACEOF
2505 if ac_fn_c_try_compile "$LINENO"; then :
2506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h. */
2510 main ()
2512 if (sizeof (($2)))
2513 return 0;
2515 return 0;
2517 _ACEOF
2518 if ac_fn_c_try_compile "$LINENO"; then :
2520 else
2521 eval "$3=yes"
2523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2527 eval ac_res=\$$3
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2529 $as_echo "$ac_res" >&6; }
2530 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2532 } # ac_fn_c_check_type
2534 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2535 # --------------------------------------------
2536 # Tries to find the compile-time value of EXPR in a program that includes
2537 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2538 # computed
2539 ac_fn_c_compute_int ()
2541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2542 if test "$cross_compiling" = yes; then
2543 # Depending upon the size, compute the lo and hi bounds.
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2548 main ()
2550 static int test_array [1 - 2 * !(($2) >= 0)];
2551 test_array [0] = 0
2554 return 0;
2556 _ACEOF
2557 if ac_fn_c_try_compile "$LINENO"; then :
2558 ac_lo=0 ac_mid=0
2559 while :; do
2560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2561 /* end confdefs.h. */
2564 main ()
2566 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2567 test_array [0] = 0
2570 return 0;
2572 _ACEOF
2573 if ac_fn_c_try_compile "$LINENO"; then :
2574 ac_hi=$ac_mid; break
2575 else
2576 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2577 if test $ac_lo -le $ac_mid; then
2578 ac_lo= ac_hi=
2579 break
2581 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 done
2585 else
2586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2587 /* end confdefs.h. */
2590 main ()
2592 static int test_array [1 - 2 * !(($2) < 0)];
2593 test_array [0] = 0
2596 return 0;
2598 _ACEOF
2599 if ac_fn_c_try_compile "$LINENO"; then :
2600 ac_hi=-1 ac_mid=-1
2601 while :; do
2602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2603 /* end confdefs.h. */
2606 main ()
2608 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2609 test_array [0] = 0
2612 return 0;
2614 _ACEOF
2615 if ac_fn_c_try_compile "$LINENO"; then :
2616 ac_lo=$ac_mid; break
2617 else
2618 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2619 if test $ac_mid -le $ac_hi; then
2620 ac_lo= ac_hi=
2621 break
2623 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626 done
2627 else
2628 ac_lo= ac_hi=
2630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633 # Binary search between lo and hi bounds.
2634 while test "x$ac_lo" != "x$ac_hi"; do
2635 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637 /* end confdefs.h. */
2640 main ()
2642 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2643 test_array [0] = 0
2646 return 0;
2648 _ACEOF
2649 if ac_fn_c_try_compile "$LINENO"; then :
2650 ac_hi=$ac_mid
2651 else
2652 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2655 done
2656 case $ac_lo in #((
2657 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2658 '') ac_retval=1 ;;
2659 esac
2660 else
2661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662 /* end confdefs.h. */
2664 static long int longval () { return $2; }
2665 static unsigned long int ulongval () { return $2; }
2666 #include <stdio.h>
2667 #include <stdlib.h>
2669 main ()
2672 FILE *f = fopen ("conftest.val", "w");
2673 if (! f)
2674 return 1;
2675 if (($2) < 0)
2677 long int i = longval ();
2678 if (i != ($2))
2679 return 1;
2680 fprintf (f, "%ld", i);
2682 else
2684 unsigned long int i = ulongval ();
2685 if (i != ($2))
2686 return 1;
2687 fprintf (f, "%lu", i);
2689 /* Do not output a trailing newline, as this causes \r\n confusion
2690 on some platforms. */
2691 return ferror (f) || fclose (f) != 0;
2694 return 0;
2696 _ACEOF
2697 if ac_fn_c_try_run "$LINENO"; then :
2698 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2699 else
2700 ac_retval=1
2702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2703 conftest.$ac_objext conftest.beam conftest.$ac_ext
2704 rm -f conftest.val
2707 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2708 return $ac_retval
2710 } # ac_fn_c_compute_int
2711 cat >config.log <<_ACEOF
2712 This file contains any messages produced by compilers while
2713 running configure, to aid debugging if configure makes a mistake.
2715 It was created by GNU Classpath $as_me 0.98, which was
2716 generated by GNU Autoconf 2.64. Invocation command line was
2718 $ $0 $@
2720 _ACEOF
2721 exec 5>>config.log
2723 cat <<_ASUNAME
2724 ## --------- ##
2725 ## Platform. ##
2726 ## --------- ##
2728 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2729 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2730 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2731 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2732 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2734 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2735 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2737 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2738 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2739 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2740 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2741 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2742 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2743 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2745 _ASUNAME
2747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2748 for as_dir in $PATH
2750 IFS=$as_save_IFS
2751 test -z "$as_dir" && as_dir=.
2752 $as_echo "PATH: $as_dir"
2753 done
2754 IFS=$as_save_IFS
2756 } >&5
2758 cat >&5 <<_ACEOF
2761 ## ----------- ##
2762 ## Core tests. ##
2763 ## ----------- ##
2765 _ACEOF
2768 # Keep a trace of the command line.
2769 # Strip out --no-create and --no-recursion so they do not pile up.
2770 # Strip out --silent because we don't want to record it for future runs.
2771 # Also quote any args containing shell meta-characters.
2772 # Make two passes to allow for proper duplicate-argument suppression.
2773 ac_configure_args=
2774 ac_configure_args0=
2775 ac_configure_args1=
2776 ac_must_keep_next=false
2777 for ac_pass in 1 2
2779 for ac_arg
2781 case $ac_arg in
2782 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2783 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2784 | -silent | --silent | --silen | --sile | --sil)
2785 continue ;;
2786 *\'*)
2787 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2788 esac
2789 case $ac_pass in
2790 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2792 as_fn_append ac_configure_args1 " '$ac_arg'"
2793 if test $ac_must_keep_next = true; then
2794 ac_must_keep_next=false # Got value, back to normal.
2795 else
2796 case $ac_arg in
2797 *=* | --config-cache | -C | -disable-* | --disable-* \
2798 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2799 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2800 | -with-* | --with-* | -without-* | --without-* | --x)
2801 case "$ac_configure_args0 " in
2802 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2803 esac
2805 -* ) ac_must_keep_next=true ;;
2806 esac
2808 as_fn_append ac_configure_args " '$ac_arg'"
2810 esac
2811 done
2812 done
2813 { ac_configure_args0=; unset ac_configure_args0;}
2814 { ac_configure_args1=; unset ac_configure_args1;}
2816 # When interrupted or exit'd, cleanup temporary files, and complete
2817 # config.log. We remove comments because anyway the quotes in there
2818 # would cause problems or look ugly.
2819 # WARNING: Use '\'' to represent an apostrophe within the trap.
2820 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2821 trap 'exit_status=$?
2822 # Save into config.log some information that might help in debugging.
2824 echo
2826 cat <<\_ASBOX
2827 ## ---------------- ##
2828 ## Cache variables. ##
2829 ## ---------------- ##
2830 _ASBOX
2831 echo
2832 # The following way of writing the cache mishandles newlines in values,
2834 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2835 eval ac_val=\$$ac_var
2836 case $ac_val in #(
2837 *${as_nl}*)
2838 case $ac_var in #(
2839 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2840 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2841 esac
2842 case $ac_var in #(
2843 _ | IFS | as_nl) ;; #(
2844 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2845 *) { eval $ac_var=; unset $ac_var;} ;;
2846 esac ;;
2847 esac
2848 done
2849 (set) 2>&1 |
2850 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2851 *${as_nl}ac_space=\ *)
2852 sed -n \
2853 "s/'\''/'\''\\\\'\'''\''/g;
2854 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2855 ;; #(
2857 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2859 esac |
2860 sort
2862 echo
2864 cat <<\_ASBOX
2865 ## ----------------- ##
2866 ## Output variables. ##
2867 ## ----------------- ##
2868 _ASBOX
2869 echo
2870 for ac_var in $ac_subst_vars
2872 eval ac_val=\$$ac_var
2873 case $ac_val in
2874 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2875 esac
2876 $as_echo "$ac_var='\''$ac_val'\''"
2877 done | sort
2878 echo
2880 if test -n "$ac_subst_files"; then
2881 cat <<\_ASBOX
2882 ## ------------------- ##
2883 ## File substitutions. ##
2884 ## ------------------- ##
2885 _ASBOX
2886 echo
2887 for ac_var in $ac_subst_files
2889 eval ac_val=\$$ac_var
2890 case $ac_val in
2891 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2892 esac
2893 $as_echo "$ac_var='\''$ac_val'\''"
2894 done | sort
2895 echo
2898 if test -s confdefs.h; then
2899 cat <<\_ASBOX
2900 ## ----------- ##
2901 ## confdefs.h. ##
2902 ## ----------- ##
2903 _ASBOX
2904 echo
2905 cat confdefs.h
2906 echo
2908 test "$ac_signal" != 0 &&
2909 $as_echo "$as_me: caught signal $ac_signal"
2910 $as_echo "$as_me: exit $exit_status"
2911 } >&5
2912 rm -f core *.core core.conftest.* &&
2913 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2914 exit $exit_status
2916 for ac_signal in 1 2 13 15; do
2917 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2918 done
2919 ac_signal=0
2921 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2922 rm -f -r conftest* confdefs.h
2924 $as_echo "/* confdefs.h */" > confdefs.h
2926 # Predefined preprocessor variables.
2928 cat >>confdefs.h <<_ACEOF
2929 #define PACKAGE_NAME "$PACKAGE_NAME"
2930 _ACEOF
2932 cat >>confdefs.h <<_ACEOF
2933 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2934 _ACEOF
2936 cat >>confdefs.h <<_ACEOF
2937 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2938 _ACEOF
2940 cat >>confdefs.h <<_ACEOF
2941 #define PACKAGE_STRING "$PACKAGE_STRING"
2942 _ACEOF
2944 cat >>confdefs.h <<_ACEOF
2945 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2946 _ACEOF
2948 cat >>confdefs.h <<_ACEOF
2949 #define PACKAGE_URL "$PACKAGE_URL"
2950 _ACEOF
2953 # Let the site file select an alternate cache file if it wants to.
2954 # Prefer an explicitly selected file to automatically selected ones.
2955 ac_site_file1=NONE
2956 ac_site_file2=NONE
2957 if test -n "$CONFIG_SITE"; then
2958 ac_site_file1=$CONFIG_SITE
2959 elif test "x$prefix" != xNONE; then
2960 ac_site_file1=$prefix/share/config.site
2961 ac_site_file2=$prefix/etc/config.site
2962 else
2963 ac_site_file1=$ac_default_prefix/share/config.site
2964 ac_site_file2=$ac_default_prefix/etc/config.site
2966 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2968 test "x$ac_site_file" = xNONE && continue
2969 if test -r "$ac_site_file"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2971 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2972 sed 's/^/| /' "$ac_site_file" >&5
2973 . "$ac_site_file"
2975 done
2977 if test -r "$cache_file"; then
2978 # Some versions of bash will fail to source /dev/null (special
2979 # files actually), so we avoid doing that.
2980 if test -f "$cache_file"; then
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2982 $as_echo "$as_me: loading cache $cache_file" >&6;}
2983 case $cache_file in
2984 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2985 *) . "./$cache_file";;
2986 esac
2988 else
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2990 $as_echo "$as_me: creating cache $cache_file" >&6;}
2991 >$cache_file
2994 # Check that the precious variables saved in the cache have kept the same
2995 # value.
2996 ac_cache_corrupted=false
2997 for ac_var in $ac_precious_vars; do
2998 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2999 eval ac_new_set=\$ac_env_${ac_var}_set
3000 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3001 eval ac_new_val=\$ac_env_${ac_var}_value
3002 case $ac_old_set,$ac_new_set in
3003 set,)
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3005 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3006 ac_cache_corrupted=: ;;
3007 ,set)
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3009 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3010 ac_cache_corrupted=: ;;
3011 ,);;
3013 if test "x$ac_old_val" != "x$ac_new_val"; then
3014 # differences in whitespace do not lead to failure.
3015 ac_old_val_w=`echo x $ac_old_val`
3016 ac_new_val_w=`echo x $ac_new_val`
3017 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3019 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3020 ac_cache_corrupted=:
3021 else
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3023 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3024 eval $ac_var=\$ac_old_val
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3027 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3029 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3030 fi;;
3031 esac
3032 # Pass precious variables to config.status.
3033 if test "$ac_new_set" = set; then
3034 case $ac_new_val in
3035 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3036 *) ac_arg=$ac_var=$ac_new_val ;;
3037 esac
3038 case " $ac_configure_args " in
3039 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3040 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3041 esac
3043 done
3044 if $ac_cache_corrupted; then
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3048 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3049 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3051 ## -------------------- ##
3052 ## Main body of script. ##
3053 ## -------------------- ##
3055 ac_ext=c
3056 ac_cpp='$CPP $CPPFLAGS'
3057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3067 ac_aux_dir=
3068 for ac_dir in ../.. "$srcdir"/../..; do
3069 for ac_t in install-sh install.sh shtool; do
3070 if test -f "$ac_dir/$ac_t"; then
3071 ac_aux_dir=$ac_dir
3072 ac_install_sh="$ac_aux_dir/$ac_t -c"
3073 break 2
3075 done
3076 done
3077 if test -z "$ac_aux_dir"; then
3078 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
3081 # These three variables are undocumented and unsupported,
3082 # and are intended to be withdrawn in a future Autoconf release.
3083 # They can cause serious problems if a builder's source tree is in a directory
3084 # whose full name contains unusual characters.
3085 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3086 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3087 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3091 # Make sure we can run config.sub.
3092 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3093 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3096 $as_echo_n "checking build system type... " >&6; }
3097 if test "${ac_cv_build+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 ac_build_alias=$build_alias
3101 test "x$ac_build_alias" = x &&
3102 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3103 test "x$ac_build_alias" = x &&
3104 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3105 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3106 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3110 $as_echo "$ac_cv_build" >&6; }
3111 case $ac_cv_build in
3112 *-*-*) ;;
3113 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3114 esac
3115 build=$ac_cv_build
3116 ac_save_IFS=$IFS; IFS='-'
3117 set x $ac_cv_build
3118 shift
3119 build_cpu=$1
3120 build_vendor=$2
3121 shift; shift
3122 # Remember, the first character of IFS is used to create $*,
3123 # except with old shells:
3124 build_os=$*
3125 IFS=$ac_save_IFS
3126 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3130 $as_echo_n "checking host system type... " >&6; }
3131 if test "${ac_cv_host+set}" = set; then :
3132 $as_echo_n "(cached) " >&6
3133 else
3134 if test "x$host_alias" = x; then
3135 ac_cv_host=$ac_cv_build
3136 else
3137 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3138 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3143 $as_echo "$ac_cv_host" >&6; }
3144 case $ac_cv_host in
3145 *-*-*) ;;
3146 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3147 esac
3148 host=$ac_cv_host
3149 ac_save_IFS=$IFS; IFS='-'
3150 set x $ac_cv_host
3151 shift
3152 host_cpu=$1
3153 host_vendor=$2
3154 shift; shift
3155 # Remember, the first character of IFS is used to create $*,
3156 # except with old shells:
3157 host_os=$*
3158 IFS=$ac_save_IFS
3159 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3163 $as_echo_n "checking target system type... " >&6; }
3164 if test "${ac_cv_target+set}" = set; then :
3165 $as_echo_n "(cached) " >&6
3166 else
3167 if test "x$target_alias" = x; then
3168 ac_cv_target=$ac_cv_host
3169 else
3170 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3171 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3176 $as_echo "$ac_cv_target" >&6; }
3177 case $ac_cv_target in
3178 *-*-*) ;;
3179 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3180 esac
3181 target=$ac_cv_target
3182 ac_save_IFS=$IFS; IFS='-'
3183 set x $ac_cv_target
3184 shift
3185 target_cpu=$1
3186 target_vendor=$2
3187 shift; shift
3188 # Remember, the first character of IFS is used to create $*,
3189 # except with old shells:
3190 target_os=$*
3191 IFS=$ac_save_IFS
3192 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3195 # The aliases save the names the user supplied, while $host etc.
3196 # will get canonicalized.
3197 test -n "$target_alias" &&
3198 test "$program_prefix$program_suffix$program_transform_name" = \
3199 NONENONEs,x,x, &&
3200 program_prefix=${target_alias}-
3202 # Check whether --enable-java-maintainer-mode was given.
3203 if test "${enable_java_maintainer_mode+set}" = set; then :
3204 enableval=$enable_java_maintainer_mode;
3207 if test "$enable_java_maintainer_mode" = yes; then
3208 JAVA_MAINTAINER_MODE_TRUE=
3209 JAVA_MAINTAINER_MODE_FALSE='#'
3210 else
3211 JAVA_MAINTAINER_MODE_TRUE='#'
3212 JAVA_MAINTAINER_MODE_FALSE=
3216 # We would like to our source tree to be readonly. However when releases or
3217 # pre-releases are generated, the man pages need to be included as they are
3218 # converted from the texi files via perl which we don't require end users to
3219 # have installed.
3220 # Therefore we have --enable-generated-files-in-srcdir to do just that.
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3223 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3224 # Check whether --enable-generated-files-in-srcdir was given.
3225 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3226 enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3227 else
3228 generated_files_in_srcdir=no
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3233 $as_echo "$generated_files_in_srcdir" >&6; }
3234 if test x$generated_files_in_srcdir = xyes; then
3235 GENINSRC_TRUE=
3236 GENINSRC_FALSE='#'
3237 else
3238 GENINSRC_TRUE='#'
3239 GENINSRC_FALSE=
3243 # Find the rest of the source tree framework.
3244 # Default to --enable-multilib
3245 # Check whether --enable-multilib was given.
3246 if test "${enable_multilib+set}" = set; then :
3247 enableval=$enable_multilib; case "$enableval" in
3248 yes) multilib=yes ;;
3249 no) multilib=no ;;
3250 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3251 esac
3252 else
3253 multilib=yes
3257 # We may get other options which we leave undocumented:
3258 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3259 # See config-ml.in if you want the gory details.
3261 if test "$srcdir" = "."; then
3262 if test "$with_target_subdir" != "."; then
3263 multi_basedir="$srcdir/$with_multisrctop../../.."
3264 else
3265 multi_basedir="$srcdir/$with_multisrctop../.."
3267 else
3268 multi_basedir="$srcdir/../.."
3272 # Even if the default multilib is not a cross compilation,
3273 # it may be that some of the other multilibs are.
3274 if test $cross_compiling = no && test $multilib = yes \
3275 && test "x${with_multisubdir}" != x ; then
3276 cross_compiling=maybe
3279 ac_config_commands="$ac_config_commands default-1"
3282 if test -z "${with_multisubdir}"; then
3283 INSTALL_BINARIES_TRUE=
3284 INSTALL_BINARIES_FALSE='#'
3285 else
3286 INSTALL_BINARIES_TRUE='#'
3287 INSTALL_BINARIES_FALSE=
3291 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
3293 LIBVERSION="0:0:0"
3295 case "$host_os" in
3296 darwin*)
3297 cp_module=""
3300 cp_module="-module"
3302 esac
3304 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
3307 CLASSPATH_CONVENIENCE="-no-undefined"
3311 am__api_version='1.11'
3313 # Find a good install program. We prefer a C program (faster),
3314 # so one script is as good as another. But avoid the broken or
3315 # incompatible versions:
3316 # SysV /etc/install, /usr/sbin/install
3317 # SunOS /usr/etc/install
3318 # IRIX /sbin/install
3319 # AIX /bin/install
3320 # AmigaOS /C/install, which installs bootblocks on floppy discs
3321 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3322 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3323 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3324 # OS/2's system install, which has a completely different semantic
3325 # ./install, which can be erroneously created by make from ./install.sh.
3326 # Reject install programs that cannot install multiple files.
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3328 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3329 if test -z "$INSTALL"; then
3330 if test "${ac_cv_path_install+set}" = set; then :
3331 $as_echo_n "(cached) " >&6
3332 else
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3336 IFS=$as_save_IFS
3337 test -z "$as_dir" && as_dir=.
3338 # Account for people who put trailing slashes in PATH elements.
3339 case $as_dir/ in #((
3340 ./ | .// | /[cC]/* | \
3341 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3342 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3343 /usr/ucb/* ) ;;
3345 # OSF1 and SCO ODT 3.0 have their own names for install.
3346 # Don't use installbsd from OSF since it installs stuff as root
3347 # by default.
3348 for ac_prog in ginstall scoinst install; do
3349 for ac_exec_ext in '' $ac_executable_extensions; do
3350 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3351 if test $ac_prog = install &&
3352 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3353 # AIX install. It has an incompatible calling convention.
3355 elif test $ac_prog = install &&
3356 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3357 # program-specific install script used by HP pwplus--don't use.
3359 else
3360 rm -rf conftest.one conftest.two conftest.dir
3361 echo one > conftest.one
3362 echo two > conftest.two
3363 mkdir conftest.dir
3364 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3365 test -s conftest.one && test -s conftest.two &&
3366 test -s conftest.dir/conftest.one &&
3367 test -s conftest.dir/conftest.two
3368 then
3369 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3370 break 3
3374 done
3375 done
3377 esac
3379 done
3380 IFS=$as_save_IFS
3382 rm -rf conftest.one conftest.two conftest.dir
3385 if test "${ac_cv_path_install+set}" = set; then
3386 INSTALL=$ac_cv_path_install
3387 else
3388 # As a last resort, use the slow shell script. Don't cache a
3389 # value for INSTALL within a source directory, because that will
3390 # break other packages using the cache if that directory is
3391 # removed, or if the value is a relative name.
3392 INSTALL=$ac_install_sh
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3396 $as_echo "$INSTALL" >&6; }
3398 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3399 # It thinks the first close brace ends the variable substitution.
3400 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3402 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3404 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3407 $as_echo_n "checking whether build environment is sane... " >&6; }
3408 # Just in case
3409 sleep 1
3410 echo timestamp > conftest.file
3411 # Reject unsafe characters in $srcdir or the absolute working directory
3412 # name. Accept space and tab only in the latter.
3413 am_lf='
3415 case `pwd` in
3416 *[\\\"\#\$\&\'\`$am_lf]*)
3417 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3418 esac
3419 case $srcdir in
3420 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3421 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3422 esac
3424 # Do `set' in a subshell so we don't clobber the current shell's
3425 # arguments. Must try -L first in case configure is actually a
3426 # symlink; some systems play weird games with the mod time of symlinks
3427 # (eg FreeBSD returns the mod time of the symlink's containing
3428 # directory).
3429 if (
3430 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3431 if test "$*" = "X"; then
3432 # -L didn't work.
3433 set X `ls -t "$srcdir/configure" conftest.file`
3435 rm -f conftest.file
3436 if test "$*" != "X $srcdir/configure conftest.file" \
3437 && test "$*" != "X conftest.file $srcdir/configure"; then
3439 # If neither matched, then we have a broken ls. This can happen
3440 # if, for instance, CONFIG_SHELL is bash and it inherits a
3441 # broken ls alias from the environment. This has actually
3442 # happened. Such a system could not be considered "sane".
3443 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3444 alias in your environment" "$LINENO" 5
3447 test "$2" = conftest.file
3449 then
3450 # Ok.
3452 else
3453 as_fn_error "newly created file is older than distributed files!
3454 Check your system clock" "$LINENO" 5
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3457 $as_echo "yes" >&6; }
3458 test "$program_prefix" != NONE &&
3459 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3460 # Use a double $ so make ignores it.
3461 test "$program_suffix" != NONE &&
3462 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3463 # Double any \ or $.
3464 # By default was `s,x,x', remove it if useless.
3465 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3466 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3468 # expand $ac_aux_dir to an absolute path
3469 am_aux_dir=`cd $ac_aux_dir && pwd`
3471 if test x"${MISSING+set}" != xset; then
3472 case $am_aux_dir in
3473 *\ * | *\ *)
3474 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3476 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3477 esac
3479 # Use eval to expand $SHELL
3480 if eval "$MISSING --run true"; then
3481 am_missing_run="$MISSING --run "
3482 else
3483 am_missing_run=
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3485 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3488 if test x"${install_sh}" != xset; then
3489 case $am_aux_dir in
3490 *\ * | *\ *)
3491 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3493 install_sh="\${SHELL} $am_aux_dir/install-sh"
3494 esac
3497 # Installed binaries are usually stripped using `strip' when the user
3498 # run `make install-strip'. However `strip' might not be the right
3499 # tool to use in cross-compilation environments, therefore Automake
3500 # will honor the `STRIP' environment variable to overrule this program.
3501 if test "$cross_compiling" != no; then
3502 if test -n "$ac_tool_prefix"; then
3503 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3504 set dummy ${ac_tool_prefix}strip; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if test "${ac_cv_prog_STRIP+set}" = set; then :
3508 $as_echo_n "(cached) " >&6
3509 else
3510 if test -n "$STRIP"; then
3511 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3512 else
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3514 for as_dir in $PATH
3516 IFS=$as_save_IFS
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3522 break 2
3524 done
3525 done
3526 IFS=$as_save_IFS
3530 STRIP=$ac_cv_prog_STRIP
3531 if test -n "$STRIP"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3533 $as_echo "$STRIP" >&6; }
3534 else
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3541 if test -z "$ac_cv_prog_STRIP"; then
3542 ac_ct_STRIP=$STRIP
3543 # Extract the first word of "strip", so it can be a program name with args.
3544 set dummy strip; ac_word=$2
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3546 $as_echo_n "checking for $ac_word... " >&6; }
3547 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3548 $as_echo_n "(cached) " >&6
3549 else
3550 if test -n "$ac_ct_STRIP"; then
3551 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3552 else
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3554 for as_dir in $PATH
3556 IFS=$as_save_IFS
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3560 ac_cv_prog_ac_ct_STRIP="strip"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 break 2
3564 done
3565 done
3566 IFS=$as_save_IFS
3570 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3571 if test -n "$ac_ct_STRIP"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3573 $as_echo "$ac_ct_STRIP" >&6; }
3574 else
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3579 if test "x$ac_ct_STRIP" = x; then
3580 STRIP=":"
3581 else
3582 case $cross_compiling:$ac_tool_warned in
3583 yes:)
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3586 ac_tool_warned=yes ;;
3587 esac
3588 STRIP=$ac_ct_STRIP
3590 else
3591 STRIP="$ac_cv_prog_STRIP"
3595 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3598 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3599 if test -z "$MKDIR_P"; then
3600 if test "${ac_cv_path_mkdir+set}" = set; then :
3601 $as_echo_n "(cached) " >&6
3602 else
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3606 IFS=$as_save_IFS
3607 test -z "$as_dir" && as_dir=.
3608 for ac_prog in mkdir gmkdir; do
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3611 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3612 'mkdir (GNU coreutils) '* | \
3613 'mkdir (coreutils) '* | \
3614 'mkdir (fileutils) '4.1*)
3615 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3616 break 3;;
3617 esac
3618 done
3619 done
3620 done
3621 IFS=$as_save_IFS
3625 if test "${ac_cv_path_mkdir+set}" = set; then
3626 MKDIR_P="$ac_cv_path_mkdir -p"
3627 else
3628 # As a last resort, use the slow shell script. Don't cache a
3629 # value for MKDIR_P within a source directory, because that will
3630 # break other packages using the cache if that directory is
3631 # removed, or if the value is a relative name.
3632 test -d ./--version && rmdir ./--version
3633 MKDIR_P="$ac_install_sh -d"
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3637 $as_echo "$MKDIR_P" >&6; }
3639 mkdir_p="$MKDIR_P"
3640 case $mkdir_p in
3641 [\\/$]* | ?:[\\/]*) ;;
3642 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3643 esac
3645 for ac_prog in gawk mawk nawk awk
3647 # Extract the first word of "$ac_prog", so it can be a program name with args.
3648 set dummy $ac_prog; ac_word=$2
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 $as_echo_n "checking for $ac_word... " >&6; }
3651 if test "${ac_cv_prog_AWK+set}" = set; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 if test -n "$AWK"; then
3655 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3656 else
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in $PATH
3660 IFS=$as_save_IFS
3661 test -z "$as_dir" && as_dir=.
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3664 ac_cv_prog_AWK="$ac_prog"
3665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 break 2
3668 done
3669 done
3670 IFS=$as_save_IFS
3674 AWK=$ac_cv_prog_AWK
3675 if test -n "$AWK"; then
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3677 $as_echo "$AWK" >&6; }
3678 else
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680 $as_echo "no" >&6; }
3684 test -n "$AWK" && break
3685 done
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3688 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3689 set x ${MAKE-make}
3690 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3691 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3692 $as_echo_n "(cached) " >&6
3693 else
3694 cat >conftest.make <<\_ACEOF
3695 SHELL = /bin/sh
3696 all:
3697 @echo '@@@%%%=$(MAKE)=@@@%%%'
3698 _ACEOF
3699 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3700 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3701 *@@@%%%=?*=@@@%%%*)
3702 eval ac_cv_prog_make_${ac_make}_set=yes;;
3704 eval ac_cv_prog_make_${ac_make}_set=no;;
3705 esac
3706 rm -f conftest.make
3708 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3710 $as_echo "yes" >&6; }
3711 SET_MAKE=
3712 else
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 $as_echo "no" >&6; }
3715 SET_MAKE="MAKE=${MAKE-make}"
3718 rm -rf .tst 2>/dev/null
3719 mkdir .tst 2>/dev/null
3720 if test -d .tst; then
3721 am__leading_dot=.
3722 else
3723 am__leading_dot=_
3725 rmdir .tst 2>/dev/null
3727 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3728 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3729 # is not polluted with repeated "-I."
3730 am__isrc=' -I$(srcdir)'
3731 # test to see if srcdir already configured
3732 if test -f $srcdir/config.status; then
3733 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3737 # test whether we have cygpath
3738 if test -z "$CYGPATH_W"; then
3739 if (cygpath --version) >/dev/null 2>/dev/null; then
3740 CYGPATH_W='cygpath -w'
3741 else
3742 CYGPATH_W=echo
3747 # Define the identity of the package.
3748 PACKAGE='classpath'
3749 VERSION='0.98'
3752 cat >>confdefs.h <<_ACEOF
3753 #define PACKAGE "$PACKAGE"
3754 _ACEOF
3757 cat >>confdefs.h <<_ACEOF
3758 #define VERSION "$VERSION"
3759 _ACEOF
3761 # Some tools Automake needs.
3763 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3766 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3769 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3772 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3775 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3777 # We need awk for the "check" target. The system "awk" is bad on
3778 # some platforms.
3779 # Always define AMTAR for backward compatibility.
3781 AMTAR=${AMTAR-"${am_missing_run}tar"}
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3785 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3786 # Loop over all known methods to create a tar archive until one works.
3787 _am_tools='gnutar plaintar pax cpio none'
3788 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3789 # Do not fold the above two line into one, because Tru64 sh and
3790 # Solaris sh will not grok spaces in the rhs of `-'.
3791 for _am_tool in $_am_tools
3793 case $_am_tool in
3794 gnutar)
3795 for _am_tar in tar gnutar gtar;
3797 { echo "$as_me:$LINENO: $_am_tar --version" >&5
3798 ($_am_tar --version) >&5 2>&5
3799 ac_status=$?
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } && break
3802 done
3803 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3804 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3805 am__untar="$_am_tar -xf -"
3807 plaintar)
3808 # Must skip GNU tar: if it does not support --format= it doesn't create
3809 # ustar tarball either.
3810 (tar --version) >/dev/null 2>&1 && continue
3811 am__tar='tar chf - "$$tardir"'
3812 am__tar_='tar chf - "$tardir"'
3813 am__untar='tar xf -'
3815 pax)
3816 am__tar='pax -L -x ustar -w "$$tardir"'
3817 am__tar_='pax -L -x ustar -w "$tardir"'
3818 am__untar='pax -r'
3820 cpio)
3821 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3822 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3823 am__untar='cpio -i -H ustar -d'
3825 none)
3826 am__tar=false
3827 am__tar_=false
3828 am__untar=false
3830 esac
3832 # If the value was cached, stop now. We just wanted to have am__tar
3833 # and am__untar set.
3834 test -n "${am_cv_prog_tar_ustar}" && break
3836 # tar/untar a dummy directory, and stop if the command works
3837 rm -rf conftest.dir
3838 mkdir conftest.dir
3839 echo GrepMe > conftest.dir/file
3840 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3841 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3842 ac_status=$?
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); }
3845 rm -rf conftest.dir
3846 if test -s conftest.tar; then
3847 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3848 ($am__untar <conftest.tar) >&5 2>&5
3849 ac_status=$?
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }
3852 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3854 done
3855 rm -rf conftest.dir
3857 if test "${am_cv_prog_tar_ustar+set}" = set; then :
3858 $as_echo_n "(cached) " >&6
3859 else
3860 am_cv_prog_tar_ustar=$_am_tool
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3864 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3870 ac_config_headers="$ac_config_headers include/config.h"
3876 # Check whether --enable-collections was given.
3877 if test "${enable_collections+set}" = set; then :
3878 enableval=$enable_collections; case x"${enableval}" in
3879 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
3880 xno) COMPILE_COLLECTIONS=no ;;
3881 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
3882 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
3883 esac
3884 else
3885 COMPILE_COLLECTIONS=no
3888 if test "x${COMPILE_COLLECTIONS}" = xyes; then
3889 CREATE_COLLECTIONS_TRUE=
3890 CREATE_COLLECTIONS_FALSE='#'
3891 else
3892 CREATE_COLLECTIONS_TRUE='#'
3893 CREATE_COLLECTIONS_FALSE=
3897 # Check whether --enable-jni was given.
3898 if test "${enable_jni+set}" = set; then :
3899 enableval=$enable_jni; case "${enableval}" in
3900 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
3901 no) COMPILE_JNI=no ;;
3902 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
3903 esac
3904 else
3905 COMPILE_JNI=yes
3908 if test "x${COMPILE_JNI}" = xyes; then
3909 CREATE_JNI_LIBRARIES_TRUE=
3910 CREATE_JNI_LIBRARIES_FALSE='#'
3911 else
3912 CREATE_JNI_LIBRARIES_TRUE='#'
3913 CREATE_JNI_LIBRARIES_FALSE=
3917 # Check whether --enable-core-jni was given.
3918 if test "${enable_core_jni+set}" = set; then :
3919 enableval=$enable_core_jni; case "${enableval}" in
3920 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
3921 no) COMPILE_CORE_JNI=no ;;
3922 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
3923 esac
3924 else
3925 COMPILE_CORE_JNI=yes
3928 if test "x${COMPILE_CORE_JNI}" = xyes; then
3929 CREATE_CORE_JNI_LIBRARIES_TRUE=
3930 CREATE_CORE_JNI_LIBRARIES_FALSE='#'
3931 else
3932 CREATE_CORE_JNI_LIBRARIES_TRUE='#'
3933 CREATE_CORE_JNI_LIBRARIES_FALSE=
3937 # Check whether --enable-default-preferences-peer was given.
3938 if test "${enable_default_preferences_peer+set}" = set; then :
3939 enableval=$enable_default_preferences_peer; case "${enableval}" in
3940 file) DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory ;;
3941 gconf|yes|true) DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory ;;
3942 memory) DEFAULT_PREFS_PEER=gnu.java.util.prefs.MemoryBasedFactory ;;
3943 no|false) as_fn_error "bad value '${enableval}' for --enable-default-preferences-peer" "$LINENO" 5 ;;
3944 *) DEFAULT_PREFS_PEER=${enableval} ;;
3945 esac
3946 else
3947 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
3951 # Check whether --enable-gconf-peer was given.
3952 if test "${enable_gconf_peer+set}" = set; then :
3953 enableval=$enable_gconf_peer; case "${enableval}" in
3954 yes) COMPILE_GCONF_PEER=yes ;;
3955 no) COMPILE_GCONF_PEER=no ;;
3956 *) COMPILE_GCONF_PEER=yes ;;
3957 esac
3958 else
3959 COMPILE_GCONF_PEER=yes
3962 if test "x${COMPILE_GCONF_PEER}" = xyes; then
3963 CREATE_GCONF_PEER_LIBRARIES_TRUE=
3964 CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
3965 else
3966 CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
3967 CREATE_GCONF_PEER_LIBRARIES_FALSE=
3971 # Check whether --enable-gconf-peers was given.
3972 if test "${enable_gconf_peers+set}" = set; then :
3973 enableval=$enable_gconf_peers; as_fn_error "No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" "$LINENO" 5
3977 # Check whether --enable-gstreamer-peer was given.
3978 if test "${enable_gstreamer_peer+set}" = set; then :
3979 enableval=$enable_gstreamer_peer; case "${enableval}" in
3980 yes) COMPILE_GSTREAMER_PEER=yes ;;
3981 no) COMPILE_GSTREAMER_PEER=no ;;
3982 *) COMPILE_GSTREAMER_PEER=default ;;
3983 esac
3984 else
3985 COMPILE_GSTREAMER_PEER=default
3988 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
3989 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE=
3990 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE='#'
3991 else
3992 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE='#'
3993 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE=
3997 # Check whether --enable-gstreamer-peers was given.
3998 if test "${enable_gstreamer_peers+set}" = set; then :
3999 enableval=$enable_gstreamer_peers; as_fn_error "No --enable-gstreamer-peers (or --disable-gstreamer-peers) option; you want --enable-gstreamer-peer" "$LINENO" 5
4003 # Check whether --enable-Werror was given.
4004 if test "${enable_Werror+set}" = set; then :
4005 enableval=$enable_Werror; case "${enableval}" in
4006 yes) ENABLE_WERROR=yes ;;
4007 no) ENABLE_WERROR=no ;;
4008 *) ENABLE_WERROR=default ;;
4009 esac
4010 else
4011 ENABLE_WERROR=default
4015 # Check whether --enable-default-toolkit was given.
4016 if test "${enable_default_toolkit+set}" = set; then :
4017 enableval=$enable_default_toolkit;
4020 default_toolkit=$enable_default_toolkit
4021 if test "$default_toolkit" = ""; then
4022 default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
4026 # Check whether --enable-xmlj was given.
4027 if test "${enable_xmlj+set}" = set; then :
4028 enableval=$enable_xmlj; case "${enableval}" in
4029 yes) COMPILE_XMLJ=yes ;;
4030 no) COMPILE_XMLJ=no ;;
4031 *) COMPILE_XMLJ=no ;;
4032 esac
4033 else
4034 COMPILE_XMLJ=no
4037 if test "x${COMPILE_XMLJ}" = xyes; then
4038 CREATE_XMLJ_LIBRARY_TRUE=
4039 CREATE_XMLJ_LIBRARY_FALSE='#'
4040 else
4041 CREATE_XMLJ_LIBRARY_TRUE='#'
4042 CREATE_XMLJ_LIBRARY_FALSE=
4046 DEPDIR="${am__leading_dot}deps"
4048 ac_config_commands="$ac_config_commands depfiles"
4051 am_make=${MAKE-make}
4052 cat > confinc << 'END'
4053 am__doit:
4054 @echo this is the am__doit target
4055 .PHONY: am__doit
4057 # If we don't find an include directive, just comment out the code.
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4059 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4060 am__include="#"
4061 am__quote=
4062 _am_result=none
4063 # First try GNU make style include.
4064 echo "include confinc" > confmf
4065 # Ignore all kinds of additional output from `make'.
4066 case `$am_make -s -f confmf 2> /dev/null` in #(
4067 *the\ am__doit\ target*)
4068 am__include=include
4069 am__quote=
4070 _am_result=GNU
4072 esac
4073 # Now try BSD make style include.
4074 if test "$am__include" = "#"; then
4075 echo '.include "confinc"' > confmf
4076 case `$am_make -s -f confmf 2> /dev/null` in #(
4077 *the\ am__doit\ target*)
4078 am__include=.include
4079 am__quote="\""
4080 _am_result=BSD
4082 esac
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4087 $as_echo "$_am_result" >&6; }
4088 rm -f confinc confmf
4090 # Check whether --enable-dependency-tracking was given.
4091 if test "${enable_dependency_tracking+set}" = set; then :
4092 enableval=$enable_dependency_tracking;
4095 if test "x$enable_dependency_tracking" != xno; then
4096 am_depcomp="$ac_aux_dir/depcomp"
4097 AMDEPBACKSLASH='\'
4099 if test "x$enable_dependency_tracking" != xno; then
4100 AMDEP_TRUE=
4101 AMDEP_FALSE='#'
4102 else
4103 AMDEP_TRUE='#'
4104 AMDEP_FALSE=
4108 ac_ext=c
4109 ac_cpp='$CPP $CPPFLAGS'
4110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113 if test -n "$ac_tool_prefix"; then
4114 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4115 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117 $as_echo_n "checking for $ac_word... " >&6; }
4118 if test "${ac_cv_prog_CC+set}" = set; then :
4119 $as_echo_n "(cached) " >&6
4120 else
4121 if test -n "$CC"; then
4122 ac_cv_prog_CC="$CC" # Let the user override the test.
4123 else
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4131 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 break 2
4135 done
4136 done
4137 IFS=$as_save_IFS
4141 CC=$ac_cv_prog_CC
4142 if test -n "$CC"; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4144 $as_echo "$CC" >&6; }
4145 else
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4152 if test -z "$ac_cv_prog_CC"; then
4153 ac_ct_CC=$CC
4154 # Extract the first word of "gcc", so it can be a program name with args.
4155 set dummy gcc; ac_word=$2
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4157 $as_echo_n "checking for $ac_word... " >&6; }
4158 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4159 $as_echo_n "(cached) " >&6
4160 else
4161 if test -n "$ac_ct_CC"; then
4162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4163 else
4164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165 for as_dir in $PATH
4167 IFS=$as_save_IFS
4168 test -z "$as_dir" && as_dir=.
4169 for ac_exec_ext in '' $ac_executable_extensions; do
4170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4171 ac_cv_prog_ac_ct_CC="gcc"
4172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4173 break 2
4175 done
4176 done
4177 IFS=$as_save_IFS
4181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4182 if test -n "$ac_ct_CC"; then
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4184 $as_echo "$ac_ct_CC" >&6; }
4185 else
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187 $as_echo "no" >&6; }
4190 if test "x$ac_ct_CC" = x; then
4191 CC=""
4192 else
4193 case $cross_compiling:$ac_tool_warned in
4194 yes:)
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4197 ac_tool_warned=yes ;;
4198 esac
4199 CC=$ac_ct_CC
4201 else
4202 CC="$ac_cv_prog_CC"
4205 if test -z "$CC"; then
4206 if test -n "$ac_tool_prefix"; then
4207 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4208 set dummy ${ac_tool_prefix}cc; ac_word=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if test "${ac_cv_prog_CC+set}" = set; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 if test -n "$CC"; then
4215 ac_cv_prog_CC="$CC" # Let the user override the test.
4216 else
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4218 for as_dir in $PATH
4220 IFS=$as_save_IFS
4221 test -z "$as_dir" && as_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4224 ac_cv_prog_CC="${ac_tool_prefix}cc"
4225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4226 break 2
4228 done
4229 done
4230 IFS=$as_save_IFS
4234 CC=$ac_cv_prog_CC
4235 if test -n "$CC"; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4237 $as_echo "$CC" >&6; }
4238 else
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 $as_echo "no" >&6; }
4246 if test -z "$CC"; then
4247 # Extract the first word of "cc", so it can be a program name with args.
4248 set dummy cc; ac_word=$2
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4250 $as_echo_n "checking for $ac_word... " >&6; }
4251 if test "${ac_cv_prog_CC+set}" = set; then :
4252 $as_echo_n "(cached) " >&6
4253 else
4254 if test -n "$CC"; then
4255 ac_cv_prog_CC="$CC" # Let the user override the test.
4256 else
4257 ac_prog_rejected=no
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4265 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4266 ac_prog_rejected=yes
4267 continue
4269 ac_cv_prog_CC="cc"
4270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4271 break 2
4273 done
4274 done
4275 IFS=$as_save_IFS
4277 if test $ac_prog_rejected = yes; then
4278 # We found a bogon in the path, so make sure we never use it.
4279 set dummy $ac_cv_prog_CC
4280 shift
4281 if test $# != 0; then
4282 # We chose a different compiler from the bogus one.
4283 # However, it has the same basename, so the bogon will be chosen
4284 # first if we set CC to just the basename; use the full file name.
4285 shift
4286 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4291 CC=$ac_cv_prog_CC
4292 if test -n "$CC"; then
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4294 $as_echo "$CC" >&6; }
4295 else
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 $as_echo "no" >&6; }
4302 if test -z "$CC"; then
4303 if test -n "$ac_tool_prefix"; then
4304 for ac_prog in cl.exe
4306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4309 $as_echo_n "checking for $ac_word... " >&6; }
4310 if test "${ac_cv_prog_CC+set}" = set; then :
4311 $as_echo_n "(cached) " >&6
4312 else
4313 if test -n "$CC"; then
4314 ac_cv_prog_CC="$CC" # Let the user override the test.
4315 else
4316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317 for as_dir in $PATH
4319 IFS=$as_save_IFS
4320 test -z "$as_dir" && as_dir=.
4321 for ac_exec_ext in '' $ac_executable_extensions; do
4322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4325 break 2
4327 done
4328 done
4329 IFS=$as_save_IFS
4333 CC=$ac_cv_prog_CC
4334 if test -n "$CC"; then
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4336 $as_echo "$CC" >&6; }
4337 else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4343 test -n "$CC" && break
4344 done
4346 if test -z "$CC"; then
4347 ac_ct_CC=$CC
4348 for ac_prog in cl.exe
4350 # Extract the first word of "$ac_prog", so it can be a program name with args.
4351 set dummy $ac_prog; ac_word=$2
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4353 $as_echo_n "checking for $ac_word... " >&6; }
4354 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4355 $as_echo_n "(cached) " >&6
4356 else
4357 if test -n "$ac_ct_CC"; then
4358 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4359 else
4360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4361 for as_dir in $PATH
4363 IFS=$as_save_IFS
4364 test -z "$as_dir" && as_dir=.
4365 for ac_exec_ext in '' $ac_executable_extensions; do
4366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4367 ac_cv_prog_ac_ct_CC="$ac_prog"
4368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 break 2
4371 done
4372 done
4373 IFS=$as_save_IFS
4377 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4378 if test -n "$ac_ct_CC"; then
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4380 $as_echo "$ac_ct_CC" >&6; }
4381 else
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4383 $as_echo "no" >&6; }
4387 test -n "$ac_ct_CC" && break
4388 done
4390 if test "x$ac_ct_CC" = x; then
4391 CC=""
4392 else
4393 case $cross_compiling:$ac_tool_warned in
4394 yes:)
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4397 ac_tool_warned=yes ;;
4398 esac
4399 CC=$ac_ct_CC
4406 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4408 as_fn_error "no acceptable C compiler found in \$PATH
4409 See \`config.log' for more details." "$LINENO" 5; }
4411 # Provide some information about the compiler.
4412 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4413 set X $ac_compile
4414 ac_compiler=$2
4415 for ac_option in --version -v -V -qversion; do
4416 { { ac_try="$ac_compiler $ac_option >&5"
4417 case "(($ac_try" in
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4420 esac
4421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4422 $as_echo "$ac_try_echo"; } >&5
4423 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4424 ac_status=$?
4425 if test -s conftest.err; then
4426 sed '10a\
4427 ... rest of stderr output deleted ...
4428 10q' conftest.err >conftest.er1
4429 cat conftest.er1 >&5
4430 rm -f conftest.er1 conftest.err
4432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4433 test $ac_status = 0; }
4434 done
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4440 main ()
4444 return 0;
4446 _ACEOF
4447 # FIXME: Cleanup?
4448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4449 (eval $ac_link) 2>&5
4450 ac_status=$?
4451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4452 test $ac_status = 0; }; then :
4453 gcc_no_link=no
4454 else
4455 gcc_no_link=yes
4457 if test x$gcc_no_link = xyes; then
4458 # Setting cross_compile will disable run tests; it will
4459 # also disable AC_CHECK_FILE but that's generally
4460 # correct if we can't link.
4461 cross_compiling=yes
4462 EXEEXT=
4463 else
4464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4465 /* end confdefs.h. */
4468 main ()
4472 return 0;
4474 _ACEOF
4475 ac_clean_files_save=$ac_clean_files
4476 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4477 # Try to create an executable without -o first, disregard a.out.
4478 # It will help us diagnose broken compilers, and finding out an intuition
4479 # of exeext.
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4481 $as_echo_n "checking for C compiler default output file name... " >&6; }
4482 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4484 # The possible output files:
4485 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4487 ac_rmfiles=
4488 for ac_file in $ac_files
4490 case $ac_file in
4491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4492 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4493 esac
4494 done
4495 rm -f $ac_rmfiles
4497 if { { ac_try="$ac_link_default"
4498 case "(($ac_try" in
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4501 esac
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 $as_echo "$ac_try_echo"; } >&5
4504 (eval "$ac_link_default") 2>&5
4505 ac_status=$?
4506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4507 test $ac_status = 0; }; then :
4508 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4509 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4510 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4511 # so that the user can short-circuit this test for compilers unknown to
4512 # Autoconf.
4513 for ac_file in $ac_files ''
4515 test -f "$ac_file" || continue
4516 case $ac_file in
4517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4519 [ab].out )
4520 # We found the default executable, but exeext='' is most
4521 # certainly right.
4522 break;;
4523 *.* )
4524 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4525 then :; else
4526 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4528 # We set ac_cv_exeext here because the later test for it is not
4529 # safe: cross compilers may not add the suffix if given an `-o'
4530 # argument, so we may need to know it at that point already.
4531 # Even if this section looks crufty: it has the advantage of
4532 # actually working.
4533 break;;
4535 break;;
4536 esac
4537 done
4538 test "$ac_cv_exeext" = no && ac_cv_exeext=
4540 else
4541 ac_file=''
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4544 $as_echo "$ac_file" >&6; }
4545 if test -z "$ac_file"; then :
4546 $as_echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4551 { as_fn_set_status 77
4552 as_fn_error "C compiler cannot create executables
4553 See \`config.log' for more details." "$LINENO" 5; }; }
4555 ac_exeext=$ac_cv_exeext
4557 # Check that the compiler produces executables we can run. If not, either
4558 # the compiler is broken, or we cross compile.
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4560 $as_echo_n "checking whether the C compiler works... " >&6; }
4561 # If not cross compiling, check that we can run a simple program.
4562 if test "$cross_compiling" != yes; then
4563 if { ac_try='./$ac_file'
4564 { { case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567 esac
4568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569 $as_echo "$ac_try_echo"; } >&5
4570 (eval "$ac_try") 2>&5
4571 ac_status=$?
4572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4573 test $ac_status = 0; }; }; then
4574 cross_compiling=no
4575 else
4576 if test "$cross_compiling" = maybe; then
4577 cross_compiling=yes
4578 else
4579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4581 as_fn_error "cannot run C compiled programs.
4582 If you meant to cross compile, use \`--host'.
4583 See \`config.log' for more details." "$LINENO" 5; }
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4588 $as_echo "yes" >&6; }
4590 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4591 ac_clean_files=$ac_clean_files_save
4592 # Check that the compiler produces executables we can run. If not, either
4593 # the compiler is broken, or we cross compile.
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4595 $as_echo_n "checking whether we are cross compiling... " >&6; }
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4597 $as_echo "$cross_compiling" >&6; }
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4600 $as_echo_n "checking for suffix of executables... " >&6; }
4601 if { { ac_try="$ac_link"
4602 case "(($ac_try" in
4603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4604 *) ac_try_echo=$ac_try;;
4605 esac
4606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4607 $as_echo "$ac_try_echo"; } >&5
4608 (eval "$ac_link") 2>&5
4609 ac_status=$?
4610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4611 test $ac_status = 0; }; then :
4612 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4613 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4614 # work properly (i.e., refer to `conftest.exe'), while it won't with
4615 # `rm'.
4616 for ac_file in conftest.exe conftest conftest.*; do
4617 test -f "$ac_file" || continue
4618 case $ac_file in
4619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4620 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4621 break;;
4622 * ) break;;
4623 esac
4624 done
4625 else
4626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4628 as_fn_error "cannot compute suffix of executables: cannot compile and link
4629 See \`config.log' for more details." "$LINENO" 5; }
4631 rm -f conftest$ac_cv_exeext
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4633 $as_echo "$ac_cv_exeext" >&6; }
4635 rm -f conftest.$ac_ext
4636 EXEEXT=$ac_cv_exeext
4637 ac_exeext=$EXEEXT
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4640 $as_echo_n "checking for suffix of object files... " >&6; }
4641 if test "${ac_cv_objext+set}" = set; then :
4642 $as_echo_n "(cached) " >&6
4643 else
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645 /* end confdefs.h. */
4648 main ()
4652 return 0;
4654 _ACEOF
4655 rm -f conftest.o conftest.obj
4656 if { { ac_try="$ac_compile"
4657 case "(($ac_try" in
4658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4659 *) ac_try_echo=$ac_try;;
4660 esac
4661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4662 $as_echo "$ac_try_echo"; } >&5
4663 (eval "$ac_compile") 2>&5
4664 ac_status=$?
4665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4666 test $ac_status = 0; }; then :
4667 for ac_file in conftest.o conftest.obj conftest.*; do
4668 test -f "$ac_file" || continue;
4669 case $ac_file in
4670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4671 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4672 break;;
4673 esac
4674 done
4675 else
4676 $as_echo "$as_me: failed program was:" >&5
4677 sed 's/^/| /' conftest.$ac_ext >&5
4679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4681 as_fn_error "cannot compute suffix of object files: cannot compile
4682 See \`config.log' for more details." "$LINENO" 5; }
4684 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4687 $as_echo "$ac_cv_objext" >&6; }
4688 OBJEXT=$ac_cv_objext
4689 ac_objext=$OBJEXT
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4691 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4692 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4693 $as_echo_n "(cached) " >&6
4694 else
4695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4696 /* end confdefs.h. */
4699 main ()
4701 #ifndef __GNUC__
4702 choke me
4703 #endif
4706 return 0;
4708 _ACEOF
4709 if ac_fn_c_try_compile "$LINENO"; then :
4710 ac_compiler_gnu=yes
4711 else
4712 ac_compiler_gnu=no
4714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4715 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4719 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4720 if test $ac_compiler_gnu = yes; then
4721 GCC=yes
4722 else
4723 GCC=
4725 ac_test_CFLAGS=${CFLAGS+set}
4726 ac_save_CFLAGS=$CFLAGS
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4728 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4729 if test "${ac_cv_prog_cc_g+set}" = set; then :
4730 $as_echo_n "(cached) " >&6
4731 else
4732 ac_save_c_werror_flag=$ac_c_werror_flag
4733 ac_c_werror_flag=yes
4734 ac_cv_prog_cc_g=no
4735 CFLAGS="-g"
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4740 main ()
4744 return 0;
4746 _ACEOF
4747 if ac_fn_c_try_compile "$LINENO"; then :
4748 ac_cv_prog_cc_g=yes
4749 else
4750 CFLAGS=""
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4755 main ()
4759 return 0;
4761 _ACEOF
4762 if ac_fn_c_try_compile "$LINENO"; then :
4764 else
4765 ac_c_werror_flag=$ac_save_c_werror_flag
4766 CFLAGS="-g"
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4771 main ()
4775 return 0;
4777 _ACEOF
4778 if ac_fn_c_try_compile "$LINENO"; then :
4779 ac_cv_prog_cc_g=yes
4781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4786 ac_c_werror_flag=$ac_save_c_werror_flag
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4789 $as_echo "$ac_cv_prog_cc_g" >&6; }
4790 if test "$ac_test_CFLAGS" = set; then
4791 CFLAGS=$ac_save_CFLAGS
4792 elif test $ac_cv_prog_cc_g = yes; then
4793 if test "$GCC" = yes; then
4794 CFLAGS="-g -O2"
4795 else
4796 CFLAGS="-g"
4798 else
4799 if test "$GCC" = yes; then
4800 CFLAGS="-O2"
4801 else
4802 CFLAGS=
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4806 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4807 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 ac_cv_prog_cc_c89=no
4811 ac_save_CC=$CC
4812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4814 #include <stdarg.h>
4815 #include <stdio.h>
4816 #include <sys/types.h>
4817 #include <sys/stat.h>
4818 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4819 struct buf { int x; };
4820 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4821 static char *e (p, i)
4822 char **p;
4823 int i;
4825 return p[i];
4827 static char *f (char * (*g) (char **, int), char **p, ...)
4829 char *s;
4830 va_list v;
4831 va_start (v,p);
4832 s = g (p, va_arg (v,int));
4833 va_end (v);
4834 return s;
4837 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4838 function prototypes and stuff, but not '\xHH' hex character constants.
4839 These don't provoke an error unfortunately, instead are silently treated
4840 as 'x'. The following induces an error, until -std is added to get
4841 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4842 array size at least. It's necessary to write '\x00'==0 to get something
4843 that's true only with -std. */
4844 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4846 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4847 inside strings and character constants. */
4848 #define FOO(x) 'x'
4849 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4851 int test (int i, double x);
4852 struct s1 {int (*f) (int a);};
4853 struct s2 {int (*f) (double a);};
4854 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4855 int argc;
4856 char **argv;
4858 main ()
4860 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4862 return 0;
4864 _ACEOF
4865 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4866 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4868 CC="$ac_save_CC $ac_arg"
4869 if ac_fn_c_try_compile "$LINENO"; then :
4870 ac_cv_prog_cc_c89=$ac_arg
4872 rm -f core conftest.err conftest.$ac_objext
4873 test "x$ac_cv_prog_cc_c89" != "xno" && break
4874 done
4875 rm -f conftest.$ac_ext
4876 CC=$ac_save_CC
4879 # AC_CACHE_VAL
4880 case "x$ac_cv_prog_cc_c89" in
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4883 $as_echo "none needed" >&6; } ;;
4884 xno)
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4886 $as_echo "unsupported" >&6; } ;;
4888 CC="$CC $ac_cv_prog_cc_c89"
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4890 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4891 esac
4892 if test "x$ac_cv_prog_cc_c89" != xno; then :
4896 ac_ext=c
4897 ac_cpp='$CPP $CPPFLAGS'
4898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4902 depcc="$CC" am_compiler_list=
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4905 $as_echo_n "checking dependency style of $depcc... " >&6; }
4906 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4907 $as_echo_n "(cached) " >&6
4908 else
4909 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4910 # We make a subdir and do the tests there. Otherwise we can end up
4911 # making bogus files that we don't know about and never remove. For
4912 # instance it was reported that on HP-UX the gcc test will end up
4913 # making a dummy file named `D' -- because `-MD' means `put the output
4914 # in D'.
4915 mkdir conftest.dir
4916 # Copy depcomp to subdir because otherwise we won't find it if we're
4917 # using a relative directory.
4918 cp "$am_depcomp" conftest.dir
4919 cd conftest.dir
4920 # We will build objects and dependencies in a subdirectory because
4921 # it helps to detect inapplicable dependency modes. For instance
4922 # both Tru64's cc and ICC support -MD to output dependencies as a
4923 # side effect of compilation, but ICC will put the dependencies in
4924 # the current directory while Tru64 will put them in the object
4925 # directory.
4926 mkdir sub
4928 am_cv_CC_dependencies_compiler_type=none
4929 if test "$am_compiler_list" = ""; then
4930 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4932 am__universal=false
4933 case " $depcc " in #(
4934 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4935 esac
4937 for depmode in $am_compiler_list; do
4938 # Setup a source with many dependencies, because some compilers
4939 # like to wrap large dependency lists on column 80 (with \), and
4940 # we should not choose a depcomp mode which is confused by this.
4942 # We need to recreate these files for each test, as the compiler may
4943 # overwrite some of them when testing with obscure command lines.
4944 # This happens at least with the AIX C compiler.
4945 : > sub/conftest.c
4946 for i in 1 2 3 4 5 6; do
4947 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4948 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4949 # Solaris 8's {/usr,}/bin/sh.
4950 touch sub/conftst$i.h
4951 done
4952 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4954 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4955 # mode. It turns out that the SunPro C++ compiler does not properly
4956 # handle `-M -o', and we need to detect this. Also, some Intel
4957 # versions had trouble with output in subdirs
4958 am__obj=sub/conftest.${OBJEXT-o}
4959 am__minus_obj="-o $am__obj"
4960 case $depmode in
4961 gcc)
4962 # This depmode causes a compiler race in universal mode.
4963 test "$am__universal" = false || continue
4965 nosideeffect)
4966 # after this tag, mechanisms are not by side-effect, so they'll
4967 # only be used when explicitly requested
4968 if test "x$enable_dependency_tracking" = xyes; then
4969 continue
4970 else
4971 break
4974 msvisualcpp | msvcmsys)
4975 # This compiler won't grok `-c -o', but also, the minuso test has
4976 # not run yet. These depmodes are late enough in the game, and
4977 # so weak that their functioning should not be impacted.
4978 am__obj=conftest.${OBJEXT-o}
4979 am__minus_obj=
4981 none) break ;;
4982 esac
4983 if depmode=$depmode \
4984 source=sub/conftest.c object=$am__obj \
4985 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4986 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4987 >/dev/null 2>conftest.err &&
4988 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4989 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4990 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4991 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4992 # icc doesn't choke on unknown options, it will just issue warnings
4993 # or remarks (even with -Werror). So we grep stderr for any message
4994 # that says an option was ignored or not supported.
4995 # When given -MP, icc 7.0 and 7.1 complain thusly:
4996 # icc: Command line warning: ignoring option '-M'; no argument required
4997 # The diagnosis changed in icc 8.0:
4998 # icc: Command line remark: option '-MP' not supported
4999 if (grep 'ignoring option' conftest.err ||
5000 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5001 am_cv_CC_dependencies_compiler_type=$depmode
5002 break
5005 done
5007 cd ..
5008 rm -rf conftest.dir
5009 else
5010 am_cv_CC_dependencies_compiler_type=none
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5015 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5016 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5019 test "x$enable_dependency_tracking" != xno \
5020 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5021 am__fastdepCC_TRUE=
5022 am__fastdepCC_FALSE='#'
5023 else
5024 am__fastdepCC_TRUE='#'
5025 am__fastdepCC_FALSE=
5030 ac_ext=c
5031 ac_cpp='$CPP $CPPFLAGS'
5032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5036 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5037 # On Suns, sometimes $CPP names a directory.
5038 if test -n "$CPP" && test -d "$CPP"; then
5039 CPP=
5041 if test -z "$CPP"; then
5042 if test "${ac_cv_prog_CPP+set}" = set; then :
5043 $as_echo_n "(cached) " >&6
5044 else
5045 # Double quotes because CPP needs to be expanded
5046 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5048 ac_preproc_ok=false
5049 for ac_c_preproc_warn_flag in '' yes
5051 # Use a header file that comes with gcc, so configuring glibc
5052 # with a fresh cross-compiler works.
5053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5054 # <limits.h> exists even on freestanding compilers.
5055 # On the NeXT, cc -E runs the code through the compiler's parser,
5056 # not just through cpp. "Syntax error" is here to catch this case.
5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h. */
5059 #ifdef __STDC__
5060 # include <limits.h>
5061 #else
5062 # include <assert.h>
5063 #endif
5064 Syntax error
5065 _ACEOF
5066 if ac_fn_c_try_cpp "$LINENO"; then :
5068 else
5069 # Broken: fails on valid input.
5070 continue
5072 rm -f conftest.err conftest.$ac_ext
5074 # OK, works on sane cases. Now check whether nonexistent headers
5075 # can be detected and how.
5076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5077 /* end confdefs.h. */
5078 #include <ac_nonexistent.h>
5079 _ACEOF
5080 if ac_fn_c_try_cpp "$LINENO"; then :
5081 # Broken: success on invalid input.
5082 continue
5083 else
5084 # Passes both tests.
5085 ac_preproc_ok=:
5086 break
5088 rm -f conftest.err conftest.$ac_ext
5090 done
5091 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5092 rm -f conftest.err conftest.$ac_ext
5093 if $ac_preproc_ok; then :
5094 break
5097 done
5098 ac_cv_prog_CPP=$CPP
5101 CPP=$ac_cv_prog_CPP
5102 else
5103 ac_cv_prog_CPP=$CPP
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5106 $as_echo "$CPP" >&6; }
5107 ac_preproc_ok=false
5108 for ac_c_preproc_warn_flag in '' yes
5110 # Use a header file that comes with gcc, so configuring glibc
5111 # with a fresh cross-compiler works.
5112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5113 # <limits.h> exists even on freestanding compilers.
5114 # On the NeXT, cc -E runs the code through the compiler's parser,
5115 # not just through cpp. "Syntax error" is here to catch this case.
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5118 #ifdef __STDC__
5119 # include <limits.h>
5120 #else
5121 # include <assert.h>
5122 #endif
5123 Syntax error
5124 _ACEOF
5125 if ac_fn_c_try_cpp "$LINENO"; then :
5127 else
5128 # Broken: fails on valid input.
5129 continue
5131 rm -f conftest.err conftest.$ac_ext
5133 # OK, works on sane cases. Now check whether nonexistent headers
5134 # can be detected and how.
5135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5136 /* end confdefs.h. */
5137 #include <ac_nonexistent.h>
5138 _ACEOF
5139 if ac_fn_c_try_cpp "$LINENO"; then :
5140 # Broken: success on invalid input.
5141 continue
5142 else
5143 # Passes both tests.
5144 ac_preproc_ok=:
5145 break
5147 rm -f conftest.err conftest.$ac_ext
5149 done
5150 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5151 rm -f conftest.err conftest.$ac_ext
5152 if $ac_preproc_ok; then :
5154 else
5155 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5156 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5157 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5158 See \`config.log' for more details." "$LINENO" 5; }
5161 ac_ext=c
5162 ac_cpp='$CPP $CPPFLAGS'
5163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5169 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5170 if test "${ac_cv_path_GREP+set}" = set; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 if test -z "$GREP"; then
5174 ac_path_GREP_found=false
5175 # Loop through the user's path and test for each of PROGNAME-LIST
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_prog in grep ggrep; do
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5184 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5185 # Check for GNU ac_path_GREP and select it if it is found.
5186 # Check for GNU $ac_path_GREP
5187 case `"$ac_path_GREP" --version 2>&1` in
5188 *GNU*)
5189 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5191 ac_count=0
5192 $as_echo_n 0123456789 >"conftest.in"
5193 while :
5195 cat "conftest.in" "conftest.in" >"conftest.tmp"
5196 mv "conftest.tmp" "conftest.in"
5197 cp "conftest.in" "conftest.nl"
5198 $as_echo 'GREP' >> "conftest.nl"
5199 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5201 as_fn_arith $ac_count + 1 && ac_count=$as_val
5202 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5203 # Best one so far, save it but keep looking for a better one
5204 ac_cv_path_GREP="$ac_path_GREP"
5205 ac_path_GREP_max=$ac_count
5207 # 10*(2^10) chars as input seems more than enough
5208 test $ac_count -gt 10 && break
5209 done
5210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5211 esac
5213 $ac_path_GREP_found && break 3
5214 done
5215 done
5216 done
5217 IFS=$as_save_IFS
5218 if test -z "$ac_cv_path_GREP"; then
5219 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5221 else
5222 ac_cv_path_GREP=$GREP
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5227 $as_echo "$ac_cv_path_GREP" >&6; }
5228 GREP="$ac_cv_path_GREP"
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5232 $as_echo_n "checking for egrep... " >&6; }
5233 if test "${ac_cv_path_EGREP+set}" = set; then :
5234 $as_echo_n "(cached) " >&6
5235 else
5236 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5237 then ac_cv_path_EGREP="$GREP -E"
5238 else
5239 if test -z "$EGREP"; then
5240 ac_path_EGREP_found=false
5241 # Loop through the user's path and test for each of PROGNAME-LIST
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5243 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5245 IFS=$as_save_IFS
5246 test -z "$as_dir" && as_dir=.
5247 for ac_prog in egrep; do
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5250 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5251 # Check for GNU ac_path_EGREP and select it if it is found.
5252 # Check for GNU $ac_path_EGREP
5253 case `"$ac_path_EGREP" --version 2>&1` in
5254 *GNU*)
5255 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5257 ac_count=0
5258 $as_echo_n 0123456789 >"conftest.in"
5259 while :
5261 cat "conftest.in" "conftest.in" >"conftest.tmp"
5262 mv "conftest.tmp" "conftest.in"
5263 cp "conftest.in" "conftest.nl"
5264 $as_echo 'EGREP' >> "conftest.nl"
5265 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5266 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5267 as_fn_arith $ac_count + 1 && ac_count=$as_val
5268 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5269 # Best one so far, save it but keep looking for a better one
5270 ac_cv_path_EGREP="$ac_path_EGREP"
5271 ac_path_EGREP_max=$ac_count
5273 # 10*(2^10) chars as input seems more than enough
5274 test $ac_count -gt 10 && break
5275 done
5276 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5277 esac
5279 $ac_path_EGREP_found && break 3
5280 done
5281 done
5282 done
5283 IFS=$as_save_IFS
5284 if test -z "$ac_cv_path_EGREP"; then
5285 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5287 else
5288 ac_cv_path_EGREP=$EGREP
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5294 $as_echo "$ac_cv_path_EGREP" >&6; }
5295 EGREP="$ac_cv_path_EGREP"
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5299 $as_echo_n "checking for ANSI C header files... " >&6; }
5300 if test "${ac_cv_header_stdc+set}" = set; then :
5301 $as_echo_n "(cached) " >&6
5302 else
5303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5305 #include <stdlib.h>
5306 #include <stdarg.h>
5307 #include <string.h>
5308 #include <float.h>
5311 main ()
5315 return 0;
5317 _ACEOF
5318 if ac_fn_c_try_compile "$LINENO"; then :
5319 ac_cv_header_stdc=yes
5320 else
5321 ac_cv_header_stdc=no
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325 if test $ac_cv_header_stdc = yes; then
5326 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5328 /* end confdefs.h. */
5329 #include <string.h>
5331 _ACEOF
5332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5333 $EGREP "memchr" >/dev/null 2>&1; then :
5335 else
5336 ac_cv_header_stdc=no
5338 rm -f conftest*
5342 if test $ac_cv_header_stdc = yes; then
5343 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5346 #include <stdlib.h>
5348 _ACEOF
5349 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5350 $EGREP "free" >/dev/null 2>&1; then :
5352 else
5353 ac_cv_header_stdc=no
5355 rm -f conftest*
5359 if test $ac_cv_header_stdc = yes; then
5360 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5361 if test "$cross_compiling" = yes; then :
5363 else
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5366 #include <ctype.h>
5367 #include <stdlib.h>
5368 #if ((' ' & 0x0FF) == 0x020)
5369 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5370 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5371 #else
5372 # define ISLOWER(c) \
5373 (('a' <= (c) && (c) <= 'i') \
5374 || ('j' <= (c) && (c) <= 'r') \
5375 || ('s' <= (c) && (c) <= 'z'))
5376 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5377 #endif
5379 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5381 main ()
5383 int i;
5384 for (i = 0; i < 256; i++)
5385 if (XOR (islower (i), ISLOWER (i))
5386 || toupper (i) != TOUPPER (i))
5387 return 2;
5388 return 0;
5390 _ACEOF
5391 if ac_fn_c_try_run "$LINENO"; then :
5393 else
5394 ac_cv_header_stdc=no
5396 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5397 conftest.$ac_objext conftest.beam conftest.$ac_ext
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5403 $as_echo "$ac_cv_header_stdc" >&6; }
5404 if test $ac_cv_header_stdc = yes; then
5406 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5410 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5411 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5412 inttypes.h stdint.h unistd.h
5413 do :
5414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5415 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5417 eval as_val=\$$as_ac_Header
5418 if test "x$as_val" = x""yes; then :
5419 cat >>confdefs.h <<_ACEOF
5420 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5421 _ACEOF
5425 done
5428 # Check whether --enable-alsa was given.
5429 if test "${enable_alsa+set}" = set; then :
5430 enableval=$enable_alsa; case "${enableval}" in
5431 yes) COMPILE_ALSA=yes ;;
5432 no) COMPILE_ALSA=no ;;
5433 *) COMPILE_ALSA=yes ;;
5434 esac
5435 else
5436 for ac_header in alsa/asoundlib.h
5437 do :
5438 ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
5439 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
5440 cat >>confdefs.h <<_ACEOF
5441 #define HAVE_ALSA_ASOUNDLIB_H 1
5442 _ACEOF
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_seq_open in -lasound" >&5
5444 $as_echo_n "checking for snd_seq_open in -lasound... " >&6; }
5445 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then :
5446 $as_echo_n "(cached) " >&6
5447 else
5448 ac_check_lib_save_LIBS=$LIBS
5449 LIBS="-lasound $LIBS"
5450 if test x$gcc_no_link = xyes; then
5451 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5456 /* Override any GCC internal prototype to avoid an error.
5457 Use char because int might match the return type of a GCC
5458 builtin and then its argument prototype would still apply. */
5459 #ifdef __cplusplus
5460 extern "C"
5461 #endif
5462 char snd_seq_open ();
5464 main ()
5466 return snd_seq_open ();
5468 return 0;
5470 _ACEOF
5471 if ac_fn_c_try_link "$LINENO"; then :
5472 ac_cv_lib_asound_snd_seq_open=yes
5473 else
5474 ac_cv_lib_asound_snd_seq_open=no
5476 rm -f core conftest.err conftest.$ac_objext \
5477 conftest$ac_exeext conftest.$ac_ext
5478 LIBS=$ac_check_lib_save_LIBS
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_seq_open" >&5
5481 $as_echo "$ac_cv_lib_asound_snd_seq_open" >&6; }
5482 if test "x$ac_cv_lib_asound_snd_seq_open" = x""yes; then :
5483 COMPILE_ALSA=yes
5484 else
5485 COMPILE_ALSA=no
5488 else
5489 COMPILE_ALSA=no
5492 done
5496 if test "x${COMPILE_ALSA}" = xyes; then
5497 CREATE_ALSA_LIBRARIES_TRUE=
5498 CREATE_ALSA_LIBRARIES_FALSE='#'
5499 else
5500 CREATE_ALSA_LIBRARIES_TRUE='#'
5501 CREATE_ALSA_LIBRARIES_FALSE=
5505 # Check whether --enable-dssi was given.
5506 if test "${enable_dssi+set}" = set; then :
5507 enableval=$enable_dssi; case "${enableval}" in
5508 yes) COMPILE_DSSI=yes ;;
5509 no) COMPILE_DSSI=no ;;
5510 *) COMPILE_DSSI=yes ;;
5511 esac
5512 else
5513 COMPILE_DSSI=no
5514 for ac_header in dssi.h
5515 do :
5516 ac_fn_c_check_header_mongrel "$LINENO" "dssi.h" "ac_cv_header_dssi_h" "$ac_includes_default"
5517 if test "x$ac_cv_header_dssi_h" = x""yes; then :
5518 cat >>confdefs.h <<_ACEOF
5519 #define HAVE_DSSI_H 1
5520 _ACEOF
5522 for ac_header in jack/jack.h
5523 do :
5524 ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
5525 if test "x$ac_cv_header_jack_jack_h" = x""yes; then :
5526 cat >>confdefs.h <<_ACEOF
5527 #define HAVE_JACK_JACK_H 1
5528 _ACEOF
5529 COMPILE_DSSI=yes
5532 done
5536 done
5540 if test "x${COMPILE_DSSI}" = xyes; then
5541 CREATE_DSSI_LIBRARIES_TRUE=
5542 CREATE_DSSI_LIBRARIES_FALSE='#'
5543 else
5544 CREATE_DSSI_LIBRARIES_TRUE='#'
5545 CREATE_DSSI_LIBRARIES_FALSE=
5549 # Check whether --enable-gtk-peer was given.
5550 if test "${enable_gtk_peer+set}" = set; then :
5551 enableval=$enable_gtk_peer; case "${enableval}" in
5552 yes) COMPILE_GTK_PEER=yes ;;
5553 no) COMPILE_GTK_PEER=no ;;
5554 *) COMPILE_GTK_PEER=yes ;;
5555 esac
5556 else
5557 COMPILE_GTK_PEER=yes
5560 if test "x${COMPILE_GTK_PEER}" = xyes; then
5561 CREATE_GTK_PEER_LIBRARIES_TRUE=
5562 CREATE_GTK_PEER_LIBRARIES_FALSE='#'
5563 else
5564 CREATE_GTK_PEER_LIBRARIES_TRUE='#'
5565 CREATE_GTK_PEER_LIBRARIES_FALSE=
5569 # Check whether --enable-gtk-peers was given.
5570 if test "${enable_gtk_peers+set}" = set; then :
5571 enableval=$enable_gtk_peers; as_fn_error "No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" "$LINENO" 5
5575 # Check whether --enable-qt-peer was given.
5576 if test "${enable_qt_peer+set}" = set; then :
5577 enableval=$enable_qt_peer; case "${enableval}" in
5578 yes) COMPILE_QT_PEER=yes ;;
5579 no) COMPILE_QT_PEER=no ;;
5580 *) COMPILE_QT_PEER=yes ;;
5581 esac
5582 else
5583 COMPILE_QT_PEER=no
5586 if test "x${COMPILE_QT_PEER}" = xyes; then
5587 CREATE_QT_PEER_LIBRARIES_TRUE=
5588 CREATE_QT_PEER_LIBRARIES_FALSE='#'
5589 else
5590 CREATE_QT_PEER_LIBRARIES_TRUE='#'
5591 CREATE_QT_PEER_LIBRARIES_FALSE=
5595 # Check whether --enable-plugin was given.
5596 if test "${enable_plugin+set}" = set; then :
5597 enableval=$enable_plugin; case "${enableval}" in
5598 yes) COMPILE_PLUGIN=yes ;;
5599 no) COMPILE_PLUGIN=no ;;
5600 *) COMPILE_PLUGIN=yes ;;
5601 esac
5602 else
5603 COMPILE_PLUGIN=yes
5606 if test "x${COMPILE_PLUGIN}" = xyes; then
5607 CREATE_PLUGIN_TRUE=
5608 CREATE_PLUGIN_FALSE='#'
5609 else
5610 CREATE_PLUGIN_TRUE='#'
5611 CREATE_PLUGIN_FALSE=
5615 # Check whether --enable-gmp was given.
5616 if test "${enable_gmp+set}" = set; then :
5617 enableval=$enable_gmp; case "${enableval}" in
5618 yes|true) COMPILE_GMP=yes ;;
5619 no|false) COMPILE_GMP=no ;;
5620 *) COMPILE_GMP=yes ;;
5621 esac
5622 else
5623 COMPILE_GMP=yes
5627 # Check whether --enable-gjdoc was given.
5628 if test "${enable_gjdoc+set}" = set; then :
5629 enableval=$enable_gjdoc; case "${enableval}" in
5630 yes) COMPILE_GJDOC=yes ;;
5631 no) COMPILE_GJDOC=no ;;
5632 *) COMPILE_GJDOC=yes ;;
5633 esac
5634 else
5635 COMPILE_GJDOC=yes
5638 if test "x${COMPILE_GJDOC}" = xyes; then
5639 CREATE_GJDOC_TRUE=
5640 CREATE_GJDOC_FALSE='#'
5641 else
5642 CREATE_GJDOC_TRUE='#'
5643 CREATE_GJDOC_FALSE=
5648 multi_os_directory=`$CC -print-multi-os-directory`
5649 case $multi_os_directory in
5650 .) toolexeclibdir=${libdir} ;; # Avoid trailing /.
5651 *) toolexeclibdir=${libdir}/${multi_os_directory} ;;
5652 esac
5657 # Check whether --with-native-libdir was given.
5658 if test "${with_native_libdir+set}" = set; then :
5659 withval=$with_native_libdir;
5660 nativeexeclibdir=${withval}
5662 else
5664 nativeexeclibdir='${toolexeclibdir}/gcj-'`cat ${srcdir}/../../gcc/BASE-VER`-`awk -F: '/^[^#].*:/ { print $1 }' ${srcdir}/../libtool-version`
5672 # Check whether --with-glibj-dir was given.
5673 if test "${with_glibj_dir+set}" = set; then :
5674 withval=$with_glibj_dir;
5675 glibjdir=${withval}
5677 else
5679 glibjdir='${datadir}/${PACKAGE}'
5687 # Check whether --with-antlr-jar was given.
5688 if test "${with_antlr_jar+set}" = set; then :
5689 withval=$with_antlr_jar;
5690 ANTLR_JAR=$withval
5692 else
5694 ANTLR_JAR="$ANTLR_JAR"
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the headers" >&5
5700 $as_echo_n "checking whether to regenerate the headers... " >&6; }
5701 # Check whether --enable-regen-headers was given.
5702 if test "${enable_regen_headers+set}" = set; then :
5703 enableval=$enable_regen_headers; case "${enableval}" in
5704 yes) REGENERATE_JNI_HEADERS=yes ;;
5705 no) REGENERATE_JNI_HEADERS=no ;;
5706 *) REGENERATE_JNI_HEADERS=yes ;;
5707 esac
5708 else
5709 if test -e ${srcdir}/include/java_lang_VMSystem.h; then
5710 REGENERATE_JNI_HEADERS=no ;
5711 else
5712 REGENERATE_JNI_HEADERS=yes ;
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_JNI_HEADERS}" >&5
5717 $as_echo "${REGENERATE_JNI_HEADERS}" >&6; }
5718 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
5719 CREATE_JNI_HEADERS_TRUE=
5720 CREATE_JNI_HEADERS_FALSE='#'
5721 else
5722 CREATE_JNI_HEADERS_TRUE='#'
5723 CREATE_JNI_HEADERS_FALSE=
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the GJDoc parser" >&5
5728 $as_echo_n "checking whether to regenerate the GJDoc parser... " >&6; }
5729 # Check whether --enable-regen-gjdoc-parser was given.
5730 if test "${enable_regen_gjdoc_parser+set}" = set; then :
5731 enableval=$enable_regen_gjdoc_parser; case "${enableval}" in
5732 yes) REGENERATE_GJDOC_PARSER=yes ;;
5733 no) REGENERATE_GJDOC_PARSER=no ;;
5734 *) REGENERATE_GJDOC_PARSER=yes ;;
5735 esac
5736 else
5737 if test -e ${srcdir}/tools/generated/gnu/classpath/tools/gjdoc/expr/JavaLexer.java; then
5738 REGENERATE_GJDOC_PARSER=no ;
5739 else
5740 REGENERATE_GJDOC_PARSER=yes ;
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_GJDOC_PARSER}" >&5
5745 $as_echo "${REGENERATE_GJDOC_PARSER}" >&6; }
5746 if test "x${REGENERATE_GJDOC_PARSER}" = xyes; then
5747 CREATE_GJDOC_PARSER_TRUE=
5748 CREATE_GJDOC_PARSER_FALSE='#'
5749 else
5750 CREATE_GJDOC_PARSER_TRUE='#'
5751 CREATE_GJDOC_PARSER_FALSE=
5755 # Check whether --enable-tool-wrappers was given.
5756 if test "${enable_tool_wrappers+set}" = set; then :
5757 enableval=$enable_tool_wrappers; case x"${enableval}" in
5758 xyes)
5759 COMPILE_WRAPPERS=yes;
5760 for ac_header in ltdl.h
5761 do :
5762 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
5763 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
5764 cat >>confdefs.h <<_ACEOF
5765 #define HAVE_LTDL_H 1
5766 _ACEOF
5768 else
5769 as_fn_error "cannot find ltdl.h" "$LINENO" 5
5772 done
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
5775 $as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
5776 if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
5777 $as_echo_n "(cached) " >&6
5778 else
5779 ac_check_lib_save_LIBS=$LIBS
5780 LIBS="-lltdl $LIBS"
5781 if test x$gcc_no_link = xyes; then
5782 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5787 /* Override any GCC internal prototype to avoid an error.
5788 Use char because int might match the return type of a GCC
5789 builtin and then its argument prototype would still apply. */
5790 #ifdef __cplusplus
5791 extern "C"
5792 #endif
5793 char lt_dlopen ();
5795 main ()
5797 return lt_dlopen ();
5799 return 0;
5801 _ACEOF
5802 if ac_fn_c_try_link "$LINENO"; then :
5803 ac_cv_lib_ltdl_lt_dlopen=yes
5804 else
5805 ac_cv_lib_ltdl_lt_dlopen=no
5807 rm -f core conftest.err conftest.$ac_objext \
5808 conftest$ac_exeext conftest.$ac_ext
5809 LIBS=$ac_check_lib_save_LIBS
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
5812 $as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
5813 if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
5814 cat >>confdefs.h <<_ACEOF
5815 #define HAVE_LIBLTDL 1
5816 _ACEOF
5818 LIBS="-lltdl $LIBS"
5820 else
5821 as_fn_error "cannot find libltdl" "$LINENO" 5
5825 xno) COMPILE_WRAPPERS=no ;;
5826 x) COMPILE_WRAPPERS=yes ;;
5827 *) COMPILE_WRAPPERS=yes ;;
5828 esac
5829 else
5830 COMPILE_WRAPPERS=no
5833 if test "x${COMPILE_WRAPPERS}" = xyes; then
5834 CREATE_WRAPPERS_TRUE=
5835 CREATE_WRAPPERS_FALSE='#'
5836 else
5837 CREATE_WRAPPERS_TRUE='#'
5838 CREATE_WRAPPERS_FALSE=
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5843 $as_echo_n "checking whether ln -s works... " >&6; }
5844 LN_S=$as_ln_s
5845 if test "$LN_S" = "ln -s"; then
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5847 $as_echo "yes" >&6; }
5848 else
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5850 $as_echo "no, using $LN_S" >&6; }
5856 # Check whether --enable-static was given.
5857 if test "${enable_static+set}" = set; then :
5858 enableval=$enable_static; p=${PACKAGE-default}
5859 case $enableval in
5860 yes) enable_static=yes ;;
5861 no) enable_static=no ;;
5863 enable_static=no
5864 # Look at the argument we got. We use all the common list separators.
5865 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5866 for pkg in $enableval; do
5867 IFS="$lt_save_ifs"
5868 if test "X$pkg" = "X$p"; then
5869 enable_static=yes
5871 done
5872 IFS="$lt_save_ifs"
5874 esac
5875 else
5876 enable_static=no
5887 case `pwd` in
5888 *\ * | *\ *)
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5890 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5891 esac
5895 macro_version='2.2.6'
5896 macro_revision='1.3012'
5910 ltmain="$ac_aux_dir/ltmain.sh"
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5913 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5914 if test "${ac_cv_path_SED+set}" = set; then :
5915 $as_echo_n "(cached) " >&6
5916 else
5917 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5918 for ac_i in 1 2 3 4 5 6 7; do
5919 ac_script="$ac_script$as_nl$ac_script"
5920 done
5921 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5922 { ac_script=; unset ac_script;}
5923 if test -z "$SED"; then
5924 ac_path_SED_found=false
5925 # Loop through the user's path and test for each of PROGNAME-LIST
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5929 IFS=$as_save_IFS
5930 test -z "$as_dir" && as_dir=.
5931 for ac_prog in sed gsed; do
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5934 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5935 # Check for GNU ac_path_SED and select it if it is found.
5936 # Check for GNU $ac_path_SED
5937 case `"$ac_path_SED" --version 2>&1` in
5938 *GNU*)
5939 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5941 ac_count=0
5942 $as_echo_n 0123456789 >"conftest.in"
5943 while :
5945 cat "conftest.in" "conftest.in" >"conftest.tmp"
5946 mv "conftest.tmp" "conftest.in"
5947 cp "conftest.in" "conftest.nl"
5948 $as_echo '' >> "conftest.nl"
5949 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5950 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5951 as_fn_arith $ac_count + 1 && ac_count=$as_val
5952 if test $ac_count -gt ${ac_path_SED_max-0}; then
5953 # Best one so far, save it but keep looking for a better one
5954 ac_cv_path_SED="$ac_path_SED"
5955 ac_path_SED_max=$ac_count
5957 # 10*(2^10) chars as input seems more than enough
5958 test $ac_count -gt 10 && break
5959 done
5960 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5961 esac
5963 $ac_path_SED_found && break 3
5964 done
5965 done
5966 done
5967 IFS=$as_save_IFS
5968 if test -z "$ac_cv_path_SED"; then
5969 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5971 else
5972 ac_cv_path_SED=$SED
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5977 $as_echo "$ac_cv_path_SED" >&6; }
5978 SED="$ac_cv_path_SED"
5979 rm -f conftest.sed
5981 test -z "$SED" && SED=sed
5982 Xsed="$SED -e 1s/^X//"
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5995 $as_echo_n "checking for fgrep... " >&6; }
5996 if test "${ac_cv_path_FGREP+set}" = set; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6000 then ac_cv_path_FGREP="$GREP -F"
6001 else
6002 if test -z "$FGREP"; then
6003 ac_path_FGREP_found=false
6004 # Loop through the user's path and test for each of PROGNAME-LIST
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6006 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6008 IFS=$as_save_IFS
6009 test -z "$as_dir" && as_dir=.
6010 for ac_prog in fgrep; do
6011 for ac_exec_ext in '' $ac_executable_extensions; do
6012 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6013 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6014 # Check for GNU ac_path_FGREP and select it if it is found.
6015 # Check for GNU $ac_path_FGREP
6016 case `"$ac_path_FGREP" --version 2>&1` in
6017 *GNU*)
6018 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6020 ac_count=0
6021 $as_echo_n 0123456789 >"conftest.in"
6022 while :
6024 cat "conftest.in" "conftest.in" >"conftest.tmp"
6025 mv "conftest.tmp" "conftest.in"
6026 cp "conftest.in" "conftest.nl"
6027 $as_echo 'FGREP' >> "conftest.nl"
6028 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6029 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6030 as_fn_arith $ac_count + 1 && ac_count=$as_val
6031 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6032 # Best one so far, save it but keep looking for a better one
6033 ac_cv_path_FGREP="$ac_path_FGREP"
6034 ac_path_FGREP_max=$ac_count
6036 # 10*(2^10) chars as input seems more than enough
6037 test $ac_count -gt 10 && break
6038 done
6039 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6040 esac
6042 $ac_path_FGREP_found && break 3
6043 done
6044 done
6045 done
6046 IFS=$as_save_IFS
6047 if test -z "$ac_cv_path_FGREP"; then
6048 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6050 else
6051 ac_cv_path_FGREP=$FGREP
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6057 $as_echo "$ac_cv_path_FGREP" >&6; }
6058 FGREP="$ac_cv_path_FGREP"
6061 test -z "$GREP" && GREP=grep
6081 # Check whether --with-gnu-ld was given.
6082 if test "${with_gnu_ld+set}" = set; then :
6083 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6084 else
6085 with_gnu_ld=no
6088 ac_prog=ld
6089 if test "$GCC" = yes; then
6090 # Check if gcc -print-prog-name=ld gives a path.
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6092 $as_echo_n "checking for ld used by $CC... " >&6; }
6093 case $host in
6094 *-*-mingw*)
6095 # gcc leaves a trailing carriage return which upsets mingw
6096 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6098 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6099 esac
6100 case $ac_prog in
6101 # Accept absolute paths.
6102 [\\/]* | ?:[\\/]*)
6103 re_direlt='/[^/][^/]*/\.\./'
6104 # Canonicalize the pathname of ld
6105 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6106 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6107 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6108 done
6109 test -z "$LD" && LD="$ac_prog"
6112 # If it fails, then pretend we aren't using GCC.
6113 ac_prog=ld
6116 # If it is relative, then search for the first ld in PATH.
6117 with_gnu_ld=unknown
6119 esac
6120 elif test "$with_gnu_ld" = yes; then
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6122 $as_echo_n "checking for GNU ld... " >&6; }
6123 else
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6125 $as_echo_n "checking for non-GNU ld... " >&6; }
6127 if test "${lt_cv_path_LD+set}" = set; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 if test -z "$LD"; then
6131 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6132 for ac_dir in $PATH; do
6133 IFS="$lt_save_ifs"
6134 test -z "$ac_dir" && ac_dir=.
6135 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6136 lt_cv_path_LD="$ac_dir/$ac_prog"
6137 # Check to see if the program is GNU ld. I'd rather use --version,
6138 # but apparently some variants of GNU ld only accept -v.
6139 # Break only if it was the GNU/non-GNU ld that we prefer.
6140 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6141 *GNU* | *'with BFD'*)
6142 test "$with_gnu_ld" != no && break
6145 test "$with_gnu_ld" != yes && break
6147 esac
6149 done
6150 IFS="$lt_save_ifs"
6151 else
6152 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6156 LD="$lt_cv_path_LD"
6157 if test -n "$LD"; then
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6159 $as_echo "$LD" >&6; }
6160 else
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6162 $as_echo "no" >&6; }
6164 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6166 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6167 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6168 $as_echo_n "(cached) " >&6
6169 else
6170 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6171 case `$LD -v 2>&1 </dev/null` in
6172 *GNU* | *'with BFD'*)
6173 lt_cv_prog_gnu_ld=yes
6176 lt_cv_prog_gnu_ld=no
6178 esac
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6181 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6182 with_gnu_ld=$lt_cv_prog_gnu_ld
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6193 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6194 if test "${lt_cv_path_NM+set}" = set; then :
6195 $as_echo_n "(cached) " >&6
6196 else
6197 if test -n "$NM"; then
6198 # Let the user override the test.
6199 lt_cv_path_NM="$NM"
6200 else
6201 lt_nm_to_check="${ac_tool_prefix}nm"
6202 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6203 lt_nm_to_check="$lt_nm_to_check nm"
6205 for lt_tmp_nm in $lt_nm_to_check; do
6206 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6207 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6208 IFS="$lt_save_ifs"
6209 test -z "$ac_dir" && ac_dir=.
6210 tmp_nm="$ac_dir/$lt_tmp_nm"
6211 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6212 # Check to see if the nm accepts a BSD-compat flag.
6213 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6214 # nm: unknown option "B" ignored
6215 # Tru64's nm complains that /dev/null is an invalid object file
6216 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6217 */dev/null* | *'Invalid file or object type'*)
6218 lt_cv_path_NM="$tmp_nm -B"
6219 break
6222 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6223 */dev/null*)
6224 lt_cv_path_NM="$tmp_nm -p"
6225 break
6228 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6229 continue # so that we can try to find one that supports BSD flags
6231 esac
6233 esac
6235 done
6236 IFS="$lt_save_ifs"
6237 done
6238 : ${lt_cv_path_NM=no}
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6242 $as_echo "$lt_cv_path_NM" >&6; }
6243 if test "$lt_cv_path_NM" != "no"; then
6244 NM="$lt_cv_path_NM"
6245 else
6246 # Didn't find any BSD compatible name lister, look for dumpbin.
6247 if test -n "$ac_tool_prefix"; then
6248 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6250 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6251 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6256 else
6257 if test -n "$DUMPBIN"; then
6258 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6259 else
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261 for as_dir in $PATH
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6269 break 2
6271 done
6272 done
6273 IFS=$as_save_IFS
6277 DUMPBIN=$ac_cv_prog_DUMPBIN
6278 if test -n "$DUMPBIN"; then
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6280 $as_echo "$DUMPBIN" >&6; }
6281 else
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283 $as_echo "no" >&6; }
6287 test -n "$DUMPBIN" && break
6288 done
6290 if test -z "$DUMPBIN"; then
6291 ac_ct_DUMPBIN=$DUMPBIN
6292 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6294 # Extract the first word of "$ac_prog", so it can be a program name with args.
6295 set dummy $ac_prog; ac_word=$2
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6297 $as_echo_n "checking for $ac_word... " >&6; }
6298 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6299 $as_echo_n "(cached) " >&6
6300 else
6301 if test -n "$ac_ct_DUMPBIN"; then
6302 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6303 else
6304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6305 for as_dir in $PATH
6307 IFS=$as_save_IFS
6308 test -z "$as_dir" && as_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6311 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6313 break 2
6315 done
6316 done
6317 IFS=$as_save_IFS
6321 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6322 if test -n "$ac_ct_DUMPBIN"; then
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6324 $as_echo "$ac_ct_DUMPBIN" >&6; }
6325 else
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6327 $as_echo "no" >&6; }
6331 test -n "$ac_ct_DUMPBIN" && break
6332 done
6334 if test "x$ac_ct_DUMPBIN" = x; then
6335 DUMPBIN=":"
6336 else
6337 case $cross_compiling:$ac_tool_warned in
6338 yes:)
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6341 ac_tool_warned=yes ;;
6342 esac
6343 DUMPBIN=$ac_ct_DUMPBIN
6348 if test "$DUMPBIN" != ":"; then
6349 NM="$DUMPBIN"
6352 test -z "$NM" && NM=nm
6359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6360 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6361 if test "${lt_cv_nm_interface+set}" = set; then :
6362 $as_echo_n "(cached) " >&6
6363 else
6364 lt_cv_nm_interface="BSD nm"
6365 echo "int some_variable = 0;" > conftest.$ac_ext
6366 (eval echo "\"\$as_me:6366: $ac_compile\"" >&5)
6367 (eval "$ac_compile" 2>conftest.err)
6368 cat conftest.err >&5
6369 (eval echo "\"\$as_me:6369: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6370 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6371 cat conftest.err >&5
6372 (eval echo "\"\$as_me:6372: output\"" >&5)
6373 cat conftest.out >&5
6374 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6375 lt_cv_nm_interface="MS dumpbin"
6377 rm -f conftest*
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6380 $as_echo "$lt_cv_nm_interface" >&6; }
6382 # find the maximum length of command line arguments
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6384 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6385 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6386 $as_echo_n "(cached) " >&6
6387 else
6389 teststring="ABCD"
6391 case $build_os in
6392 msdosdjgpp*)
6393 # On DJGPP, this test can blow up pretty badly due to problems in libc
6394 # (any single argument exceeding 2000 bytes causes a buffer overrun
6395 # during glob expansion). Even if it were fixed, the result of this
6396 # check would be larger than it should be.
6397 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6400 gnu*)
6401 # Under GNU Hurd, this test is not required because there is
6402 # no limit to the length of command line arguments.
6403 # Libtool will interpret -1 as no limit whatsoever
6404 lt_cv_sys_max_cmd_len=-1;
6407 cygwin* | mingw* | cegcc*)
6408 # On Win9x/ME, this test blows up -- it succeeds, but takes
6409 # about 5 minutes as the teststring grows exponentially.
6410 # Worse, since 9x/ME are not pre-emptively multitasking,
6411 # you end up with a "frozen" computer, even though with patience
6412 # the test eventually succeeds (with a max line length of 256k).
6413 # Instead, let's just punt: use the minimum linelength reported by
6414 # all of the supported platforms: 8192 (on NT/2K/XP).
6415 lt_cv_sys_max_cmd_len=8192;
6418 amigaos*)
6419 # On AmigaOS with pdksh, this test takes hours, literally.
6420 # So we just punt and use a minimum line length of 8192.
6421 lt_cv_sys_max_cmd_len=8192;
6424 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6425 # This has been around since 386BSD, at least. Likely further.
6426 if test -x /sbin/sysctl; then
6427 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6428 elif test -x /usr/sbin/sysctl; then
6429 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6430 else
6431 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6433 # And add a safety zone
6434 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6435 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6438 interix*)
6439 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6440 lt_cv_sys_max_cmd_len=196608
6443 osf*)
6444 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6445 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6446 # nice to cause kernel panics so lets avoid the loop below.
6447 # First set a reasonable default.
6448 lt_cv_sys_max_cmd_len=16384
6450 if test -x /sbin/sysconfig; then
6451 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6452 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6453 esac
6456 sco3.2v5*)
6457 lt_cv_sys_max_cmd_len=102400
6459 sysv5* | sco5v6* | sysv4.2uw2*)
6460 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6461 if test -n "$kargmax"; then
6462 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6463 else
6464 lt_cv_sys_max_cmd_len=32768
6468 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6469 if test -n "$lt_cv_sys_max_cmd_len"; then
6470 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6471 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6472 else
6473 # Make teststring a little bigger before we do anything with it.
6474 # a 1K string should be a reasonable start.
6475 for i in 1 2 3 4 5 6 7 8 ; do
6476 teststring=$teststring$teststring
6477 done
6478 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6479 # If test is not a shell built-in, we'll probably end up computing a
6480 # maximum length that is only half of the actual maximum length, but
6481 # we can't tell.
6482 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6483 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6484 test $i != 17 # 1/2 MB should be enough
6486 i=`expr $i + 1`
6487 teststring=$teststring$teststring
6488 done
6489 # Only check the string length outside the loop.
6490 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6491 teststring=
6492 # Add a significant safety factor because C++ compilers can tack on
6493 # massive amounts of additional arguments before passing them to the
6494 # linker. It appears as though 1/2 is a usable value.
6495 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6498 esac
6502 if test -n $lt_cv_sys_max_cmd_len ; then
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6504 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6505 else
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6507 $as_echo "none" >&6; }
6509 max_cmd_len=$lt_cv_sys_max_cmd_len
6516 : ${CP="cp -f"}
6517 : ${MV="mv -f"}
6518 : ${RM="rm -f"}
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6521 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6522 # Try some XSI features
6523 xsi_shell=no
6524 ( _lt_dummy="a/b/c"
6525 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6526 = c,a/b,, \
6527 && eval 'test $(( 1 + 1 )) -eq 2 \
6528 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6529 && xsi_shell=yes
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6531 $as_echo "$xsi_shell" >&6; }
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6535 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6536 lt_shell_append=no
6537 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6538 >/dev/null 2>&1 \
6539 && lt_shell_append=yes
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6541 $as_echo "$lt_shell_append" >&6; }
6544 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6545 lt_unset=unset
6546 else
6547 lt_unset=false
6554 # test EBCDIC or ASCII
6555 case `echo X|tr X '\101'` in
6556 A) # ASCII based system
6557 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6558 lt_SP2NL='tr \040 \012'
6559 lt_NL2SP='tr \015\012 \040\040'
6561 *) # EBCDIC based system
6562 lt_SP2NL='tr \100 \n'
6563 lt_NL2SP='tr \r\n \100\100'
6565 esac
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6576 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6577 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 lt_cv_ld_reload_flag='-r'
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6583 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6584 reload_flag=$lt_cv_ld_reload_flag
6585 case $reload_flag in
6586 "" | " "*) ;;
6587 *) reload_flag=" $reload_flag" ;;
6588 esac
6589 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6590 case $host_os in
6591 darwin*)
6592 if test "$GCC" = yes; then
6593 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6594 else
6595 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6598 esac
6608 if test -n "$ac_tool_prefix"; then
6609 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6610 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6614 $as_echo_n "(cached) " >&6
6615 else
6616 if test -n "$OBJDUMP"; then
6617 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6618 else
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6622 IFS=$as_save_IFS
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6626 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 break 2
6630 done
6631 done
6632 IFS=$as_save_IFS
6636 OBJDUMP=$ac_cv_prog_OBJDUMP
6637 if test -n "$OBJDUMP"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6639 $as_echo "$OBJDUMP" >&6; }
6640 else
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6647 if test -z "$ac_cv_prog_OBJDUMP"; then
6648 ac_ct_OBJDUMP=$OBJDUMP
6649 # Extract the first word of "objdump", so it can be a program name with args.
6650 set dummy objdump; ac_word=$2
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652 $as_echo_n "checking for $ac_word... " >&6; }
6653 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6654 $as_echo_n "(cached) " >&6
6655 else
6656 if test -n "$ac_ct_OBJDUMP"; then
6657 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6658 else
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6662 IFS=$as_save_IFS
6663 test -z "$as_dir" && as_dir=.
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6666 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 break 2
6670 done
6671 done
6672 IFS=$as_save_IFS
6676 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6677 if test -n "$ac_ct_OBJDUMP"; then
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6679 $as_echo "$ac_ct_OBJDUMP" >&6; }
6680 else
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 $as_echo "no" >&6; }
6685 if test "x$ac_ct_OBJDUMP" = x; then
6686 OBJDUMP="false"
6687 else
6688 case $cross_compiling:$ac_tool_warned in
6689 yes:)
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6692 ac_tool_warned=yes ;;
6693 esac
6694 OBJDUMP=$ac_ct_OBJDUMP
6696 else
6697 OBJDUMP="$ac_cv_prog_OBJDUMP"
6700 test -z "$OBJDUMP" && OBJDUMP=objdump
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6711 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6712 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 lt_cv_file_magic_cmd='$MAGIC_CMD'
6716 lt_cv_file_magic_test_file=
6717 lt_cv_deplibs_check_method='unknown'
6718 # Need to set the preceding variable on all platforms that support
6719 # interlibrary dependencies.
6720 # 'none' -- dependencies not supported.
6721 # `unknown' -- same as none, but documents that we really don't know.
6722 # 'pass_all' -- all dependencies passed with no checks.
6723 # 'test_compile' -- check by making test program.
6724 # 'file_magic [[regex]]' -- check by looking for files in library path
6725 # which responds to the $file_magic_cmd with a given extended regex.
6726 # If you have `file' or equivalent on your system and you're not sure
6727 # whether `pass_all' will *always* work, you probably want this one.
6729 case $host_os in
6730 aix[4-9]*)
6731 lt_cv_deplibs_check_method=pass_all
6734 beos*)
6735 lt_cv_deplibs_check_method=pass_all
6738 bsdi[45]*)
6739 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6740 lt_cv_file_magic_cmd='/usr/bin/file -L'
6741 lt_cv_file_magic_test_file=/shlib/libc.so
6744 cygwin*)
6745 # func_win32_libid is a shell function defined in ltmain.sh
6746 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6747 lt_cv_file_magic_cmd='func_win32_libid'
6750 mingw* | pw32*)
6751 # Base MSYS/MinGW do not provide the 'file' command needed by
6752 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6753 # unless we find 'file', for example because we are cross-compiling.
6754 if ( file / ) >/dev/null 2>&1; then
6755 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6756 lt_cv_file_magic_cmd='func_win32_libid'
6757 else
6758 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6759 lt_cv_file_magic_cmd='$OBJDUMP -f'
6763 cegcc)
6764 # use the weaker test based on 'objdump'. See mingw*.
6765 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6766 lt_cv_file_magic_cmd='$OBJDUMP -f'
6769 darwin* | rhapsody*)
6770 lt_cv_deplibs_check_method=pass_all
6773 freebsd* | dragonfly*)
6774 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6775 case $host_cpu in
6776 i*86 )
6777 # Not sure whether the presence of OpenBSD here was a mistake.
6778 # Let's accept both of them until this is cleared up.
6779 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6780 lt_cv_file_magic_cmd=/usr/bin/file
6781 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6783 esac
6784 else
6785 lt_cv_deplibs_check_method=pass_all
6789 gnu*)
6790 lt_cv_deplibs_check_method=pass_all
6793 hpux10.20* | hpux11*)
6794 lt_cv_file_magic_cmd=/usr/bin/file
6795 case $host_cpu in
6796 ia64*)
6797 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6798 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6800 hppa*64*)
6801 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6802 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6805 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6806 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6808 esac
6811 interix[3-9]*)
6812 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6813 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6816 irix5* | irix6* | nonstopux*)
6817 case $LD in
6818 *-32|*"-32 ") libmagic=32-bit;;
6819 *-n32|*"-n32 ") libmagic=N32;;
6820 *-64|*"-64 ") libmagic=64-bit;;
6821 *) libmagic=never-match;;
6822 esac
6823 lt_cv_deplibs_check_method=pass_all
6826 # This must be Linux ELF.
6827 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6828 lt_cv_deplibs_check_method=pass_all
6831 netbsd*)
6832 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6833 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6834 else
6835 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6839 newos6*)
6840 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6841 lt_cv_file_magic_cmd=/usr/bin/file
6842 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6845 *nto* | *qnx*)
6846 lt_cv_deplibs_check_method=pass_all
6849 openbsd*)
6850 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6851 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6852 else
6853 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6857 osf3* | osf4* | osf5*)
6858 lt_cv_deplibs_check_method=pass_all
6861 rdos*)
6862 lt_cv_deplibs_check_method=pass_all
6865 solaris*)
6866 lt_cv_deplibs_check_method=pass_all
6869 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6870 lt_cv_deplibs_check_method=pass_all
6873 sysv4 | sysv4.3*)
6874 case $host_vendor in
6875 motorola)
6876 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]'
6877 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6879 ncr)
6880 lt_cv_deplibs_check_method=pass_all
6882 sequent)
6883 lt_cv_file_magic_cmd='/bin/file'
6884 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6886 sni)
6887 lt_cv_file_magic_cmd='/bin/file'
6888 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6889 lt_cv_file_magic_test_file=/lib/libc.so
6891 siemens)
6892 lt_cv_deplibs_check_method=pass_all
6895 lt_cv_deplibs_check_method=pass_all
6897 esac
6900 tpf*)
6901 lt_cv_deplibs_check_method=pass_all
6903 esac
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6907 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6908 file_magic_cmd=$lt_cv_file_magic_cmd
6909 deplibs_check_method=$lt_cv_deplibs_check_method
6910 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6923 if test -n "$ac_tool_prefix"; then
6924 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6925 set dummy ${ac_tool_prefix}ar; ac_word=$2
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6927 $as_echo_n "checking for $ac_word... " >&6; }
6928 if test "${ac_cv_prog_AR+set}" = set; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 if test -n "$AR"; then
6932 ac_cv_prog_AR="$AR" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6937 IFS=$as_save_IFS
6938 test -z "$as_dir" && as_dir=.
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6941 ac_cv_prog_AR="${ac_tool_prefix}ar"
6942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6943 break 2
6945 done
6946 done
6947 IFS=$as_save_IFS
6951 AR=$ac_cv_prog_AR
6952 if test -n "$AR"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6954 $as_echo "$AR" >&6; }
6955 else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6962 if test -z "$ac_cv_prog_AR"; then
6963 ac_ct_AR=$AR
6964 # Extract the first word of "ar", so it can be a program name with args.
6965 set dummy ar; ac_word=$2
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6967 $as_echo_n "checking for $ac_word... " >&6; }
6968 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6969 $as_echo_n "(cached) " >&6
6970 else
6971 if test -n "$ac_ct_AR"; then
6972 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6973 else
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6977 IFS=$as_save_IFS
6978 test -z "$as_dir" && as_dir=.
6979 for ac_exec_ext in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_prog_ac_ct_AR="ar"
6982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6983 break 2
6985 done
6986 done
6987 IFS=$as_save_IFS
6991 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6992 if test -n "$ac_ct_AR"; then
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6994 $as_echo "$ac_ct_AR" >&6; }
6995 else
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6997 $as_echo "no" >&6; }
7000 if test "x$ac_ct_AR" = x; then
7001 AR="false"
7002 else
7003 case $cross_compiling:$ac_tool_warned in
7004 yes:)
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7007 ac_tool_warned=yes ;;
7008 esac
7009 AR=$ac_ct_AR
7011 else
7012 AR="$ac_cv_prog_AR"
7015 test -z "$AR" && AR=ar
7016 test -z "$AR_FLAGS" && AR_FLAGS=cru
7028 if test -n "$ac_tool_prefix"; then
7029 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7030 set dummy ${ac_tool_prefix}strip; ac_word=$2
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7032 $as_echo_n "checking for $ac_word... " >&6; }
7033 if test "${ac_cv_prog_STRIP+set}" = set; then :
7034 $as_echo_n "(cached) " >&6
7035 else
7036 if test -n "$STRIP"; then
7037 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7038 else
7039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7040 for as_dir in $PATH
7042 IFS=$as_save_IFS
7043 test -z "$as_dir" && as_dir=.
7044 for ac_exec_ext in '' $ac_executable_extensions; do
7045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7046 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7048 break 2
7050 done
7051 done
7052 IFS=$as_save_IFS
7056 STRIP=$ac_cv_prog_STRIP
7057 if test -n "$STRIP"; then
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7059 $as_echo "$STRIP" >&6; }
7060 else
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7067 if test -z "$ac_cv_prog_STRIP"; then
7068 ac_ct_STRIP=$STRIP
7069 # Extract the first word of "strip", so it can be a program name with args.
7070 set dummy strip; ac_word=$2
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7072 $as_echo_n "checking for $ac_word... " >&6; }
7073 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7074 $as_echo_n "(cached) " >&6
7075 else
7076 if test -n "$ac_ct_STRIP"; then
7077 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7078 else
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH
7082 IFS=$as_save_IFS
7083 test -z "$as_dir" && as_dir=.
7084 for ac_exec_ext in '' $ac_executable_extensions; do
7085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7086 ac_cv_prog_ac_ct_STRIP="strip"
7087 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 break 2
7090 done
7091 done
7092 IFS=$as_save_IFS
7096 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7097 if test -n "$ac_ct_STRIP"; then
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7099 $as_echo "$ac_ct_STRIP" >&6; }
7100 else
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7102 $as_echo "no" >&6; }
7105 if test "x$ac_ct_STRIP" = x; then
7106 STRIP=":"
7107 else
7108 case $cross_compiling:$ac_tool_warned in
7109 yes:)
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7112 ac_tool_warned=yes ;;
7113 esac
7114 STRIP=$ac_ct_STRIP
7116 else
7117 STRIP="$ac_cv_prog_STRIP"
7120 test -z "$STRIP" && STRIP=:
7127 if test -n "$ac_tool_prefix"; then
7128 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7129 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 if test -n "$RANLIB"; then
7136 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7137 else
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7149 done
7150 done
7151 IFS=$as_save_IFS
7155 RANLIB=$ac_cv_prog_RANLIB
7156 if test -n "$RANLIB"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7158 $as_echo "$RANLIB" >&6; }
7159 else
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7166 if test -z "$ac_cv_prog_RANLIB"; then
7167 ac_ct_RANLIB=$RANLIB
7168 # Extract the first word of "ranlib", so it can be a program name with args.
7169 set dummy ranlib; ac_word=$2
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171 $as_echo_n "checking for $ac_word... " >&6; }
7172 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7173 $as_echo_n "(cached) " >&6
7174 else
7175 if test -n "$ac_ct_RANLIB"; then
7176 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7177 else
7178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7179 for as_dir in $PATH
7181 IFS=$as_save_IFS
7182 test -z "$as_dir" && as_dir=.
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7185 ac_cv_prog_ac_ct_RANLIB="ranlib"
7186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7187 break 2
7189 done
7190 done
7191 IFS=$as_save_IFS
7195 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7196 if test -n "$ac_ct_RANLIB"; then
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7198 $as_echo "$ac_ct_RANLIB" >&6; }
7199 else
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7201 $as_echo "no" >&6; }
7204 if test "x$ac_ct_RANLIB" = x; then
7205 RANLIB=":"
7206 else
7207 case $cross_compiling:$ac_tool_warned in
7208 yes:)
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7211 ac_tool_warned=yes ;;
7212 esac
7213 RANLIB=$ac_ct_RANLIB
7215 else
7216 RANLIB="$ac_cv_prog_RANLIB"
7219 test -z "$RANLIB" && RANLIB=:
7226 # Determine commands to create old-style static archives.
7227 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7228 old_postinstall_cmds='chmod 644 $oldlib'
7229 old_postuninstall_cmds=
7231 if test -n "$RANLIB"; then
7232 case $host_os in
7233 openbsd*)
7234 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7237 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7239 esac
7240 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7276 # If no C compiler was specified, use CC.
7277 LTCC=${LTCC-"$CC"}
7279 # If no C compiler flags were specified, use CFLAGS.
7280 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7282 # Allow CC to be a program name with arguments.
7283 compiler=$CC
7286 # Check for command to grab the raw symbol name followed by C symbol from nm.
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7288 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7289 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7290 $as_echo_n "(cached) " >&6
7291 else
7293 # These are sane defaults that work on at least a few old systems.
7294 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7296 # Character class describing NM global symbol codes.
7297 symcode='[BCDEGRST]'
7299 # Regexp to match symbols that can be accessed directly from C.
7300 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7302 # Define system-specific variables.
7303 case $host_os in
7304 aix*)
7305 symcode='[BCDT]'
7307 cygwin* | mingw* | pw32* | cegcc*)
7308 symcode='[ABCDGISTW]'
7310 hpux*)
7311 if test "$host_cpu" = ia64; then
7312 symcode='[ABCDEGRST]'
7315 irix* | nonstopux*)
7316 symcode='[BCDEGRST]'
7318 osf*)
7319 symcode='[BCDEGQRST]'
7321 solaris*)
7322 symcode='[BDRT]'
7324 sco3.2v5*)
7325 symcode='[DT]'
7327 sysv4.2uw2*)
7328 symcode='[DT]'
7330 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7331 symcode='[ABDT]'
7333 sysv4)
7334 symcode='[DFNSTU]'
7336 esac
7338 # If we're using GNU nm, then use its standard symbol codes.
7339 case `$NM -V 2>&1` in
7340 *GNU* | *'with BFD'*)
7341 symcode='[ABCDGIRSTW]' ;;
7342 esac
7344 # Transform an extracted symbol line into a proper C declaration.
7345 # Some systems (esp. on ia64) link data and code symbols differently,
7346 # so use this general approach.
7347 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7349 # Transform an extracted symbol line into symbol name and symbol address
7350 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7351 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'"
7353 # Handle CRLF in mingw tool chain
7354 opt_cr=
7355 case $build_os in
7356 mingw*)
7357 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7359 esac
7361 # Try without a prefix underscore, then with it.
7362 for ac_symprfx in "" "_"; do
7364 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7365 symxfrm="\\1 $ac_symprfx\\2 \\2"
7367 # Write the raw and C identifiers.
7368 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7369 # Fake it for dumpbin and say T for any non-static function
7370 # and D for any global variable.
7371 # Also find C++ and __fastcall symbols from MSVC++,
7372 # which start with @ or ?.
7373 lt_cv_sys_global_symbol_pipe="$AWK '"\
7374 " {last_section=section; section=\$ 3};"\
7375 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7376 " \$ 0!~/External *\|/{next};"\
7377 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7378 " {if(hide[section]) next};"\
7379 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7380 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7381 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7382 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7383 " ' prfx=^$ac_symprfx"
7384 else
7385 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7388 # Check to see that the pipe works correctly.
7389 pipe_works=no
7391 rm -f conftest*
7392 cat > conftest.$ac_ext <<_LT_EOF
7393 #ifdef __cplusplus
7394 extern "C" {
7395 #endif
7396 char nm_test_var;
7397 void nm_test_func(void);
7398 void nm_test_func(void){}
7399 #ifdef __cplusplus
7401 #endif
7402 int main(){nm_test_var='a';nm_test_func();return(0);}
7403 _LT_EOF
7405 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7406 (eval $ac_compile) 2>&5
7407 ac_status=$?
7408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7409 test $ac_status = 0; }; then
7410 # Now try to grab the symbols.
7411 nlist=conftest.nm
7412 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7413 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7414 ac_status=$?
7415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7416 test $ac_status = 0; } && test -s "$nlist"; then
7417 # Try sorting and uniquifying the output.
7418 if sort "$nlist" | uniq > "$nlist"T; then
7419 mv -f "$nlist"T "$nlist"
7420 else
7421 rm -f "$nlist"T
7424 # Make sure that we snagged all the symbols we need.
7425 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7426 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7427 cat <<_LT_EOF > conftest.$ac_ext
7428 #ifdef __cplusplus
7429 extern "C" {
7430 #endif
7432 _LT_EOF
7433 # Now generate the symbol file.
7434 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7436 cat <<_LT_EOF >> conftest.$ac_ext
7438 /* The mapping between symbol names and symbols. */
7439 const struct {
7440 const char *name;
7441 void *address;
7443 lt__PROGRAM__LTX_preloaded_symbols[] =
7445 { "@PROGRAM@", (void *) 0 },
7446 _LT_EOF
7447 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7448 cat <<\_LT_EOF >> conftest.$ac_ext
7449 {0, (void *) 0}
7452 /* This works around a problem in FreeBSD linker */
7453 #ifdef FREEBSD_WORKAROUND
7454 static const void *lt_preloaded_setup() {
7455 return lt__PROGRAM__LTX_preloaded_symbols;
7457 #endif
7459 #ifdef __cplusplus
7461 #endif
7462 _LT_EOF
7463 # Now try linking the two files.
7464 mv conftest.$ac_objext conftstm.$ac_objext
7465 lt_save_LIBS="$LIBS"
7466 lt_save_CFLAGS="$CFLAGS"
7467 LIBS="conftstm.$ac_objext"
7468 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7470 (eval $ac_link) 2>&5
7471 ac_status=$?
7472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7473 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7474 pipe_works=yes
7476 LIBS="$lt_save_LIBS"
7477 CFLAGS="$lt_save_CFLAGS"
7478 else
7479 echo "cannot find nm_test_func in $nlist" >&5
7481 else
7482 echo "cannot find nm_test_var in $nlist" >&5
7484 else
7485 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7487 else
7488 echo "$progname: failed program was:" >&5
7489 cat conftest.$ac_ext >&5
7491 rm -rf conftest* conftst*
7493 # Do not use the global_symbol_pipe unless it works.
7494 if test "$pipe_works" = yes; then
7495 break
7496 else
7497 lt_cv_sys_global_symbol_pipe=
7499 done
7503 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7504 lt_cv_sys_global_symbol_to_cdecl=
7506 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7508 $as_echo "failed" >&6; }
7509 else
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7511 $as_echo "ok" >&6; }
7535 # Check whether --enable-libtool-lock was given.
7536 if test "${enable_libtool_lock+set}" = set; then :
7537 enableval=$enable_libtool_lock;
7540 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7542 # Some flags need to be propagated to the compiler or linker for good
7543 # libtool support.
7544 case $host in
7545 ia64-*-hpux*)
7546 # Find out which ABI we are using.
7547 echo 'int i;' > conftest.$ac_ext
7548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7549 (eval $ac_compile) 2>&5
7550 ac_status=$?
7551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7552 test $ac_status = 0; }; then
7553 case `/usr/bin/file conftest.$ac_objext` in
7554 *ELF-32*)
7555 HPUX_IA64_MODE="32"
7557 *ELF-64*)
7558 HPUX_IA64_MODE="64"
7560 esac
7562 rm -rf conftest*
7564 *-*-irix6*)
7565 # Find out which ABI we are using.
7566 echo '#line 7566 "configure"' > conftest.$ac_ext
7567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7568 (eval $ac_compile) 2>&5
7569 ac_status=$?
7570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7571 test $ac_status = 0; }; then
7572 if test "$lt_cv_prog_gnu_ld" = yes; then
7573 case `/usr/bin/file conftest.$ac_objext` in
7574 *32-bit*)
7575 LD="${LD-ld} -melf32bsmip"
7577 *N32*)
7578 LD="${LD-ld} -melf32bmipn32"
7580 *64-bit*)
7581 LD="${LD-ld} -melf64bmip"
7583 esac
7584 else
7585 case `/usr/bin/file conftest.$ac_objext` in
7586 *32-bit*)
7587 LD="${LD-ld} -32"
7589 *N32*)
7590 LD="${LD-ld} -n32"
7592 *64-bit*)
7593 LD="${LD-ld} -64"
7595 esac
7598 rm -rf conftest*
7601 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7602 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7603 # Find out which ABI we are using.
7604 echo 'int i;' > conftest.$ac_ext
7605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7606 (eval $ac_compile) 2>&5
7607 ac_status=$?
7608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7609 test $ac_status = 0; }; then
7610 case `/usr/bin/file conftest.o` in
7611 *32-bit*)
7612 case $host in
7613 x86_64-*kfreebsd*-gnu)
7614 LD="${LD-ld} -m elf_i386_fbsd"
7616 x86_64-*linux*)
7617 LD="${LD-ld} -m elf_i386"
7619 ppc64-*linux*|powerpc64-*linux*)
7620 LD="${LD-ld} -m elf32ppclinux"
7622 s390x-*linux*)
7623 LD="${LD-ld} -m elf_s390"
7625 sparc64-*linux*)
7626 LD="${LD-ld} -m elf32_sparc"
7628 esac
7630 *64-bit*)
7631 case $host in
7632 x86_64-*kfreebsd*-gnu)
7633 LD="${LD-ld} -m elf_x86_64_fbsd"
7635 x86_64-*linux*)
7636 LD="${LD-ld} -m elf_x86_64"
7638 ppc*-*linux*|powerpc*-*linux*)
7639 LD="${LD-ld} -m elf64ppc"
7641 s390*-*linux*|s390*-*tpf*)
7642 LD="${LD-ld} -m elf64_s390"
7644 sparc*-*linux*)
7645 LD="${LD-ld} -m elf64_sparc"
7647 esac
7649 esac
7651 rm -rf conftest*
7654 *-*-sco3.2v5*)
7655 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7656 SAVE_CFLAGS="$CFLAGS"
7657 CFLAGS="$CFLAGS -belf"
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7659 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7660 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7661 $as_echo_n "(cached) " >&6
7662 else
7663 ac_ext=c
7664 ac_cpp='$CPP $CPPFLAGS'
7665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7669 if test x$gcc_no_link = xyes; then
7670 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7673 /* end confdefs.h. */
7676 main ()
7680 return 0;
7682 _ACEOF
7683 if ac_fn_c_try_link "$LINENO"; then :
7684 lt_cv_cc_needs_belf=yes
7685 else
7686 lt_cv_cc_needs_belf=no
7688 rm -f core conftest.err conftest.$ac_objext \
7689 conftest$ac_exeext conftest.$ac_ext
7690 ac_ext=c
7691 ac_cpp='$CPP $CPPFLAGS'
7692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7698 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7699 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7700 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7701 CFLAGS="$SAVE_CFLAGS"
7704 sparc*-*solaris*)
7705 # Find out which ABI we are using.
7706 echo 'int i;' > conftest.$ac_ext
7707 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7708 (eval $ac_compile) 2>&5
7709 ac_status=$?
7710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7711 test $ac_status = 0; }; then
7712 case `/usr/bin/file conftest.o` in
7713 *64-bit*)
7714 case $lt_cv_prog_gnu_ld in
7715 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7717 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7718 LD="${LD-ld} -64"
7721 esac
7723 esac
7725 rm -rf conftest*
7727 esac
7729 need_locks="$enable_libtool_lock"
7732 case $host_os in
7733 rhapsody* | darwin*)
7734 if test -n "$ac_tool_prefix"; then
7735 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7736 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7738 $as_echo_n "checking for $ac_word... " >&6; }
7739 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7740 $as_echo_n "(cached) " >&6
7741 else
7742 if test -n "$DSYMUTIL"; then
7743 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7744 else
7745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7746 for as_dir in $PATH
7748 IFS=$as_save_IFS
7749 test -z "$as_dir" && as_dir=.
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7752 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7754 break 2
7756 done
7757 done
7758 IFS=$as_save_IFS
7762 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7763 if test -n "$DSYMUTIL"; then
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7765 $as_echo "$DSYMUTIL" >&6; }
7766 else
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7768 $as_echo "no" >&6; }
7773 if test -z "$ac_cv_prog_DSYMUTIL"; then
7774 ac_ct_DSYMUTIL=$DSYMUTIL
7775 # Extract the first word of "dsymutil", so it can be a program name with args.
7776 set dummy dsymutil; ac_word=$2
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7778 $as_echo_n "checking for $ac_word... " >&6; }
7779 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7780 $as_echo_n "(cached) " >&6
7781 else
7782 if test -n "$ac_ct_DSYMUTIL"; then
7783 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7784 else
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 for as_dir in $PATH
7788 IFS=$as_save_IFS
7789 test -z "$as_dir" && as_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7792 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 break 2
7796 done
7797 done
7798 IFS=$as_save_IFS
7802 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7803 if test -n "$ac_ct_DSYMUTIL"; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7805 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7806 else
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7808 $as_echo "no" >&6; }
7811 if test "x$ac_ct_DSYMUTIL" = x; then
7812 DSYMUTIL=":"
7813 else
7814 case $cross_compiling:$ac_tool_warned in
7815 yes:)
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7818 ac_tool_warned=yes ;;
7819 esac
7820 DSYMUTIL=$ac_ct_DSYMUTIL
7822 else
7823 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7826 if test -n "$ac_tool_prefix"; then
7827 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7828 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7830 $as_echo_n "checking for $ac_word... " >&6; }
7831 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7832 $as_echo_n "(cached) " >&6
7833 else
7834 if test -n "$NMEDIT"; then
7835 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7836 else
7837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7838 for as_dir in $PATH
7840 IFS=$as_save_IFS
7841 test -z "$as_dir" && as_dir=.
7842 for ac_exec_ext in '' $ac_executable_extensions; do
7843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7844 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7846 break 2
7848 done
7849 done
7850 IFS=$as_save_IFS
7854 NMEDIT=$ac_cv_prog_NMEDIT
7855 if test -n "$NMEDIT"; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7857 $as_echo "$NMEDIT" >&6; }
7858 else
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860 $as_echo "no" >&6; }
7865 if test -z "$ac_cv_prog_NMEDIT"; then
7866 ac_ct_NMEDIT=$NMEDIT
7867 # Extract the first word of "nmedit", so it can be a program name with args.
7868 set dummy nmedit; ac_word=$2
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7870 $as_echo_n "checking for $ac_word... " >&6; }
7871 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7872 $as_echo_n "(cached) " >&6
7873 else
7874 if test -n "$ac_ct_NMEDIT"; then
7875 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7876 else
7877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7878 for as_dir in $PATH
7880 IFS=$as_save_IFS
7881 test -z "$as_dir" && as_dir=.
7882 for ac_exec_ext in '' $ac_executable_extensions; do
7883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7884 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7886 break 2
7888 done
7889 done
7890 IFS=$as_save_IFS
7894 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7895 if test -n "$ac_ct_NMEDIT"; then
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7897 $as_echo "$ac_ct_NMEDIT" >&6; }
7898 else
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7900 $as_echo "no" >&6; }
7903 if test "x$ac_ct_NMEDIT" = x; then
7904 NMEDIT=":"
7905 else
7906 case $cross_compiling:$ac_tool_warned in
7907 yes:)
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7910 ac_tool_warned=yes ;;
7911 esac
7912 NMEDIT=$ac_ct_NMEDIT
7914 else
7915 NMEDIT="$ac_cv_prog_NMEDIT"
7918 if test -n "$ac_tool_prefix"; then
7919 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7920 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7922 $as_echo_n "checking for $ac_word... " >&6; }
7923 if test "${ac_cv_prog_LIPO+set}" = set; then :
7924 $as_echo_n "(cached) " >&6
7925 else
7926 if test -n "$LIPO"; then
7927 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7928 else
7929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7930 for as_dir in $PATH
7932 IFS=$as_save_IFS
7933 test -z "$as_dir" && as_dir=.
7934 for ac_exec_ext in '' $ac_executable_extensions; do
7935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7936 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7938 break 2
7940 done
7941 done
7942 IFS=$as_save_IFS
7946 LIPO=$ac_cv_prog_LIPO
7947 if test -n "$LIPO"; then
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7949 $as_echo "$LIPO" >&6; }
7950 else
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7952 $as_echo "no" >&6; }
7957 if test -z "$ac_cv_prog_LIPO"; then
7958 ac_ct_LIPO=$LIPO
7959 # Extract the first word of "lipo", so it can be a program name with args.
7960 set dummy lipo; ac_word=$2
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7962 $as_echo_n "checking for $ac_word... " >&6; }
7963 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7964 $as_echo_n "(cached) " >&6
7965 else
7966 if test -n "$ac_ct_LIPO"; then
7967 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7968 else
7969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7970 for as_dir in $PATH
7972 IFS=$as_save_IFS
7973 test -z "$as_dir" && as_dir=.
7974 for ac_exec_ext in '' $ac_executable_extensions; do
7975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7976 ac_cv_prog_ac_ct_LIPO="lipo"
7977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7978 break 2
7980 done
7981 done
7982 IFS=$as_save_IFS
7986 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7987 if test -n "$ac_ct_LIPO"; then
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7989 $as_echo "$ac_ct_LIPO" >&6; }
7990 else
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7992 $as_echo "no" >&6; }
7995 if test "x$ac_ct_LIPO" = x; then
7996 LIPO=":"
7997 else
7998 case $cross_compiling:$ac_tool_warned in
7999 yes:)
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8001 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8002 ac_tool_warned=yes ;;
8003 esac
8004 LIPO=$ac_ct_LIPO
8006 else
8007 LIPO="$ac_cv_prog_LIPO"
8010 if test -n "$ac_tool_prefix"; then
8011 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8012 set dummy ${ac_tool_prefix}otool; ac_word=$2
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014 $as_echo_n "checking for $ac_word... " >&6; }
8015 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8016 $as_echo_n "(cached) " >&6
8017 else
8018 if test -n "$OTOOL"; then
8019 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8020 else
8021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022 for as_dir in $PATH
8024 IFS=$as_save_IFS
8025 test -z "$as_dir" && as_dir=.
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8028 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030 break 2
8032 done
8033 done
8034 IFS=$as_save_IFS
8038 OTOOL=$ac_cv_prog_OTOOL
8039 if test -n "$OTOOL"; then
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8041 $as_echo "$OTOOL" >&6; }
8042 else
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044 $as_echo "no" >&6; }
8049 if test -z "$ac_cv_prog_OTOOL"; then
8050 ac_ct_OTOOL=$OTOOL
8051 # Extract the first word of "otool", so it can be a program name with args.
8052 set dummy otool; ac_word=$2
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054 $as_echo_n "checking for $ac_word... " >&6; }
8055 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8056 $as_echo_n "(cached) " >&6
8057 else
8058 if test -n "$ac_ct_OTOOL"; then
8059 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8060 else
8061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062 for as_dir in $PATH
8064 IFS=$as_save_IFS
8065 test -z "$as_dir" && as_dir=.
8066 for ac_exec_ext in '' $ac_executable_extensions; do
8067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8068 ac_cv_prog_ac_ct_OTOOL="otool"
8069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8070 break 2
8072 done
8073 done
8074 IFS=$as_save_IFS
8078 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8079 if test -n "$ac_ct_OTOOL"; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8081 $as_echo "$ac_ct_OTOOL" >&6; }
8082 else
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8087 if test "x$ac_ct_OTOOL" = x; then
8088 OTOOL=":"
8089 else
8090 case $cross_compiling:$ac_tool_warned in
8091 yes:)
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8094 ac_tool_warned=yes ;;
8095 esac
8096 OTOOL=$ac_ct_OTOOL
8098 else
8099 OTOOL="$ac_cv_prog_OTOOL"
8102 if test -n "$ac_tool_prefix"; then
8103 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8104 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8106 $as_echo_n "checking for $ac_word... " >&6; }
8107 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8108 $as_echo_n "(cached) " >&6
8109 else
8110 if test -n "$OTOOL64"; then
8111 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8112 else
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 for as_dir in $PATH
8116 IFS=$as_save_IFS
8117 test -z "$as_dir" && as_dir=.
8118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8120 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8122 break 2
8124 done
8125 done
8126 IFS=$as_save_IFS
8130 OTOOL64=$ac_cv_prog_OTOOL64
8131 if test -n "$OTOOL64"; then
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8133 $as_echo "$OTOOL64" >&6; }
8134 else
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8136 $as_echo "no" >&6; }
8141 if test -z "$ac_cv_prog_OTOOL64"; then
8142 ac_ct_OTOOL64=$OTOOL64
8143 # Extract the first word of "otool64", so it can be a program name with args.
8144 set dummy otool64; ac_word=$2
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8146 $as_echo_n "checking for $ac_word... " >&6; }
8147 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8148 $as_echo_n "(cached) " >&6
8149 else
8150 if test -n "$ac_ct_OTOOL64"; then
8151 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8152 else
8153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8154 for as_dir in $PATH
8156 IFS=$as_save_IFS
8157 test -z "$as_dir" && as_dir=.
8158 for ac_exec_ext in '' $ac_executable_extensions; do
8159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8160 ac_cv_prog_ac_ct_OTOOL64="otool64"
8161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8162 break 2
8164 done
8165 done
8166 IFS=$as_save_IFS
8170 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8171 if test -n "$ac_ct_OTOOL64"; then
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8173 $as_echo "$ac_ct_OTOOL64" >&6; }
8174 else
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176 $as_echo "no" >&6; }
8179 if test "x$ac_ct_OTOOL64" = x; then
8180 OTOOL64=":"
8181 else
8182 case $cross_compiling:$ac_tool_warned in
8183 yes:)
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8186 ac_tool_warned=yes ;;
8187 esac
8188 OTOOL64=$ac_ct_OTOOL64
8190 else
8191 OTOOL64="$ac_cv_prog_OTOOL64"
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8221 $as_echo_n "checking for -single_module linker flag... " >&6; }
8222 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8223 $as_echo_n "(cached) " >&6
8224 else
8225 lt_cv_apple_cc_single_mod=no
8226 if test -z "${LT_MULTI_MODULE}"; then
8227 # By default we will add the -single_module flag. You can override
8228 # by either setting the environment variable LT_MULTI_MODULE
8229 # non-empty at configure time, or by adding -multi_module to the
8230 # link flags.
8231 rm -rf libconftest.dylib*
8232 echo "int foo(void){return 1;}" > conftest.c
8233 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8234 -dynamiclib -Wl,-single_module conftest.c" >&5
8235 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8236 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8237 _lt_result=$?
8238 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8239 lt_cv_apple_cc_single_mod=yes
8240 else
8241 cat conftest.err >&5
8243 rm -rf libconftest.dylib*
8244 rm -f conftest.*
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8248 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8250 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8251 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 lt_cv_ld_exported_symbols_list=no
8255 save_LDFLAGS=$LDFLAGS
8256 echo "_main" > conftest.sym
8257 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8258 if test x$gcc_no_link = xyes; then
8259 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262 /* end confdefs.h. */
8265 main ()
8269 return 0;
8271 _ACEOF
8272 if ac_fn_c_try_link "$LINENO"; then :
8273 lt_cv_ld_exported_symbols_list=yes
8274 else
8275 lt_cv_ld_exported_symbols_list=no
8277 rm -f core conftest.err conftest.$ac_objext \
8278 conftest$ac_exeext conftest.$ac_ext
8279 LDFLAGS="$save_LDFLAGS"
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8283 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8284 case $host_os in
8285 rhapsody* | darwin1.[012])
8286 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8287 darwin1.*)
8288 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8289 darwin*) # darwin 5.x on
8290 # if running on 10.5 or later, the deployment target defaults
8291 # to the OS version, if on x86, and 10.4, the deployment
8292 # target defaults to 10.4. Don't you love it?
8293 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8294 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8295 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8296 10.[012]*)
8297 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8298 10.*)
8299 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8300 esac
8302 esac
8303 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8304 _lt_dar_single_mod='$single_module'
8306 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8307 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8308 else
8309 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8311 if test "$DSYMUTIL" != ":"; then
8312 _lt_dsymutil='~$DSYMUTIL $lib || :'
8313 else
8314 _lt_dsymutil=
8317 esac
8319 for ac_header in dlfcn.h
8320 do :
8321 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8323 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8324 cat >>confdefs.h <<_ACEOF
8325 #define HAVE_DLFCN_H 1
8326 _ACEOF
8330 done
8334 # Set options
8338 enable_dlopen=no
8341 enable_win32_dll=no
8344 # Check whether --enable-shared was given.
8345 if test "${enable_shared+set}" = set; then :
8346 enableval=$enable_shared; p=${PACKAGE-default}
8347 case $enableval in
8348 yes) enable_shared=yes ;;
8349 no) enable_shared=no ;;
8351 enable_shared=no
8352 # Look at the argument we got. We use all the common list separators.
8353 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8354 for pkg in $enableval; do
8355 IFS="$lt_save_ifs"
8356 if test "X$pkg" = "X$p"; then
8357 enable_shared=yes
8359 done
8360 IFS="$lt_save_ifs"
8362 esac
8363 else
8364 enable_shared=yes
8377 # Check whether --with-pic was given.
8378 if test "${with_pic+set}" = set; then :
8379 withval=$with_pic; pic_mode="$withval"
8380 else
8381 pic_mode=default
8385 test -z "$pic_mode" && pic_mode=default
8393 # Check whether --enable-fast-install was given.
8394 if test "${enable_fast_install+set}" = set; then :
8395 enableval=$enable_fast_install; p=${PACKAGE-default}
8396 case $enableval in
8397 yes) enable_fast_install=yes ;;
8398 no) enable_fast_install=no ;;
8400 enable_fast_install=no
8401 # Look at the argument we got. We use all the common list separators.
8402 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8403 for pkg in $enableval; do
8404 IFS="$lt_save_ifs"
8405 if test "X$pkg" = "X$p"; then
8406 enable_fast_install=yes
8408 done
8409 IFS="$lt_save_ifs"
8411 esac
8412 else
8413 enable_fast_install=yes
8426 # This can be used to rebuild libtool when needed
8427 LIBTOOL_DEPS="$ltmain"
8429 # Always use our own libtool.
8430 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8456 test -z "$LN_S" && LN_S="ln -s"
8471 if test -n "${ZSH_VERSION+set}" ; then
8472 setopt NO_GLOB_SUBST
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8476 $as_echo_n "checking for objdir... " >&6; }
8477 if test "${lt_cv_objdir+set}" = set; then :
8478 $as_echo_n "(cached) " >&6
8479 else
8480 rm -f .libs 2>/dev/null
8481 mkdir .libs 2>/dev/null
8482 if test -d .libs; then
8483 lt_cv_objdir=.libs
8484 else
8485 # MS-DOS does not allow filenames that begin with a dot.
8486 lt_cv_objdir=_libs
8488 rmdir .libs 2>/dev/null
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8491 $as_echo "$lt_cv_objdir" >&6; }
8492 objdir=$lt_cv_objdir
8498 cat >>confdefs.h <<_ACEOF
8499 #define LT_OBJDIR "$lt_cv_objdir/"
8500 _ACEOF
8518 case $host_os in
8519 aix3*)
8520 # AIX sometimes has problems with the GCC collect2 program. For some
8521 # reason, if we set the COLLECT_NAMES environment variable, the problems
8522 # vanish in a puff of smoke.
8523 if test "X${COLLECT_NAMES+set}" != Xset; then
8524 COLLECT_NAMES=
8525 export COLLECT_NAMES
8528 esac
8530 # Sed substitution that helps us do robust quoting. It backslashifies
8531 # metacharacters that are still active within double-quoted strings.
8532 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8534 # Same as above, but do not quote variable references.
8535 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8537 # Sed substitution to delay expansion of an escaped shell variable in a
8538 # double_quote_subst'ed string.
8539 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8541 # Sed substitution to delay expansion of an escaped single quote.
8542 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8544 # Sed substitution to avoid accidental globbing in evaled expressions
8545 no_glob_subst='s/\*/\\\*/g'
8547 # Global variables:
8548 ofile=libtool
8549 can_build_shared=yes
8551 # All known linkers require a `.a' archive for static linking (except MSVC,
8552 # which needs '.lib').
8553 libext=a
8555 with_gnu_ld="$lt_cv_prog_gnu_ld"
8557 old_CC="$CC"
8558 old_CFLAGS="$CFLAGS"
8560 # Set sane defaults for various variables
8561 test -z "$CC" && CC=cc
8562 test -z "$LTCC" && LTCC=$CC
8563 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8564 test -z "$LD" && LD=ld
8565 test -z "$ac_objext" && ac_objext=o
8567 for cc_temp in $compiler""; do
8568 case $cc_temp in
8569 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8570 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8571 \-*) ;;
8572 *) break;;
8573 esac
8574 done
8575 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8578 # Only perform the check for file, if the check method requires it
8579 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8580 case $deplibs_check_method in
8581 file_magic*)
8582 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8584 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8585 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8586 $as_echo_n "(cached) " >&6
8587 else
8588 case $MAGIC_CMD in
8589 [\\/*] | ?:[\\/]*)
8590 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8593 lt_save_MAGIC_CMD="$MAGIC_CMD"
8594 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8595 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8596 for ac_dir in $ac_dummy; do
8597 IFS="$lt_save_ifs"
8598 test -z "$ac_dir" && ac_dir=.
8599 if test -f $ac_dir/${ac_tool_prefix}file; then
8600 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8601 if test -n "$file_magic_test_file"; then
8602 case $deplibs_check_method in
8603 "file_magic "*)
8604 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8605 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8606 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8607 $EGREP "$file_magic_regex" > /dev/null; then
8609 else
8610 cat <<_LT_EOF 1>&2
8612 *** Warning: the command libtool uses to detect shared libraries,
8613 *** $file_magic_cmd, produces output that libtool cannot recognize.
8614 *** The result is that libtool may fail to recognize shared libraries
8615 *** as such. This will affect the creation of libtool libraries that
8616 *** depend on shared libraries, but programs linked with such libtool
8617 *** libraries will work regardless of this problem. Nevertheless, you
8618 *** may want to report the problem to your system manager and/or to
8619 *** bug-libtool@gnu.org
8621 _LT_EOF
8622 fi ;;
8623 esac
8625 break
8627 done
8628 IFS="$lt_save_ifs"
8629 MAGIC_CMD="$lt_save_MAGIC_CMD"
8631 esac
8634 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8635 if test -n "$MAGIC_CMD"; then
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8637 $as_echo "$MAGIC_CMD" >&6; }
8638 else
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8640 $as_echo "no" >&6; }
8647 if test -z "$lt_cv_path_MAGIC_CMD"; then
8648 if test -n "$ac_tool_prefix"; then
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8650 $as_echo_n "checking for file... " >&6; }
8651 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8654 case $MAGIC_CMD in
8655 [\\/*] | ?:[\\/]*)
8656 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8659 lt_save_MAGIC_CMD="$MAGIC_CMD"
8660 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8661 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8662 for ac_dir in $ac_dummy; do
8663 IFS="$lt_save_ifs"
8664 test -z "$ac_dir" && ac_dir=.
8665 if test -f $ac_dir/file; then
8666 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8667 if test -n "$file_magic_test_file"; then
8668 case $deplibs_check_method in
8669 "file_magic "*)
8670 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8671 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8672 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8673 $EGREP "$file_magic_regex" > /dev/null; then
8675 else
8676 cat <<_LT_EOF 1>&2
8678 *** Warning: the command libtool uses to detect shared libraries,
8679 *** $file_magic_cmd, produces output that libtool cannot recognize.
8680 *** The result is that libtool may fail to recognize shared libraries
8681 *** as such. This will affect the creation of libtool libraries that
8682 *** depend on shared libraries, but programs linked with such libtool
8683 *** libraries will work regardless of this problem. Nevertheless, you
8684 *** may want to report the problem to your system manager and/or to
8685 *** bug-libtool@gnu.org
8687 _LT_EOF
8688 fi ;;
8689 esac
8691 break
8693 done
8694 IFS="$lt_save_ifs"
8695 MAGIC_CMD="$lt_save_MAGIC_CMD"
8697 esac
8700 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8701 if test -n "$MAGIC_CMD"; then
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8703 $as_echo "$MAGIC_CMD" >&6; }
8704 else
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8706 $as_echo "no" >&6; }
8710 else
8711 MAGIC_CMD=:
8717 esac
8719 # Use C for the default configuration in the libtool script
8721 lt_save_CC="$CC"
8722 ac_ext=c
8723 ac_cpp='$CPP $CPPFLAGS'
8724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8729 # Source file extension for C test sources.
8730 ac_ext=c
8732 # Object file extension for compiled C test sources.
8733 objext=o
8734 objext=$objext
8736 # Code to be used in simple compile tests
8737 lt_simple_compile_test_code="int some_variable = 0;"
8739 # Code to be used in simple link tests
8740 lt_simple_link_test_code='int main(){return(0);}'
8748 # If no C compiler was specified, use CC.
8749 LTCC=${LTCC-"$CC"}
8751 # If no C compiler flags were specified, use CFLAGS.
8752 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8754 # Allow CC to be a program name with arguments.
8755 compiler=$CC
8757 # Save the default compiler, since it gets overwritten when the other
8758 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8759 compiler_DEFAULT=$CC
8761 # save warnings/boilerplate of simple test code
8762 ac_outfile=conftest.$ac_objext
8763 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8764 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8765 _lt_compiler_boilerplate=`cat conftest.err`
8766 $RM conftest*
8768 ac_outfile=conftest.$ac_objext
8769 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8770 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8771 _lt_linker_boilerplate=`cat conftest.err`
8772 $RM -r conftest*
8775 ## CAVEAT EMPTOR:
8776 ## There is no encapsulation within the following macros, do not change
8777 ## the running order or otherwise move them around unless you know exactly
8778 ## what you are doing...
8779 if test -n "$compiler"; then
8781 lt_prog_compiler_no_builtin_flag=
8783 if test "$GCC" = yes; then
8784 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8787 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8788 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8789 $as_echo_n "(cached) " >&6
8790 else
8791 lt_cv_prog_compiler_rtti_exceptions=no
8792 ac_outfile=conftest.$ac_objext
8793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8794 lt_compiler_flag="-fno-rtti -fno-exceptions"
8795 # Insert the option either (1) after the last *FLAGS variable, or
8796 # (2) before a word containing "conftest.", or (3) at the end.
8797 # Note that $ac_compile itself does not contain backslashes and begins
8798 # with a dollar sign (not a hyphen), so the echo should work correctly.
8799 # The option is referenced via a variable to avoid confusing sed.
8800 lt_compile=`echo "$ac_compile" | $SED \
8801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8803 -e 's:$: $lt_compiler_flag:'`
8804 (eval echo "\"\$as_me:8804: $lt_compile\"" >&5)
8805 (eval "$lt_compile" 2>conftest.err)
8806 ac_status=$?
8807 cat conftest.err >&5
8808 echo "$as_me:8808: \$? = $ac_status" >&5
8809 if (exit $ac_status) && test -s "$ac_outfile"; then
8810 # The compiler can only warn and ignore the option if not recognized
8811 # So say no if there are warnings other than the usual output.
8812 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8814 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8815 lt_cv_prog_compiler_rtti_exceptions=yes
8818 $RM conftest*
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8822 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8824 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8825 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8826 else
8837 lt_prog_compiler_wl=
8838 lt_prog_compiler_pic=
8839 lt_prog_compiler_static=
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8842 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8844 if test "$GCC" = yes; then
8845 lt_prog_compiler_wl='-Wl,'
8846 lt_prog_compiler_static='-static'
8848 case $host_os in
8849 aix*)
8850 # All AIX code is PIC.
8851 if test "$host_cpu" = ia64; then
8852 # AIX 5 now supports IA64 processor
8853 lt_prog_compiler_static='-Bstatic'
8857 amigaos*)
8858 case $host_cpu in
8859 powerpc)
8860 # see comment about AmigaOS4 .so support
8861 lt_prog_compiler_pic='-fPIC'
8863 m68k)
8864 # FIXME: we need at least 68020 code to build shared libraries, but
8865 # adding the `-m68020' flag to GCC prevents building anything better,
8866 # like `-m68040'.
8867 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8869 esac
8872 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8873 # PIC is the default for these OSes.
8876 mingw* | cygwin* | pw32* | os2* | cegcc*)
8877 # This hack is so that the source file can tell whether it is being
8878 # built for inclusion in a dll (and should export symbols for example).
8879 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8880 # (--disable-auto-import) libraries
8881 lt_prog_compiler_pic='-DDLL_EXPORT'
8884 darwin* | rhapsody*)
8885 # PIC is the default on this platform
8886 # Common symbols not allowed in MH_DYLIB files
8887 lt_prog_compiler_pic='-fno-common'
8890 hpux*)
8891 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8892 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8893 # sets the default TLS model and affects inlining.
8894 case $host_cpu in
8895 hppa*64*)
8896 # +Z the default
8899 lt_prog_compiler_pic='-fPIC'
8901 esac
8904 interix[3-9]*)
8905 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8906 # Instead, we relocate shared libraries at runtime.
8909 msdosdjgpp*)
8910 # Just because we use GCC doesn't mean we suddenly get shared libraries
8911 # on systems that don't support them.
8912 lt_prog_compiler_can_build_shared=no
8913 enable_shared=no
8916 *nto* | *qnx*)
8917 # QNX uses GNU C++, but need to define -shared option too, otherwise
8918 # it will coredump.
8919 lt_prog_compiler_pic='-fPIC -shared'
8922 sysv4*MP*)
8923 if test -d /usr/nec; then
8924 lt_prog_compiler_pic=-Kconform_pic
8929 lt_prog_compiler_pic='-fPIC'
8931 esac
8932 else
8933 # PORTME Check for flag to pass linker flags through the system compiler.
8934 case $host_os in
8935 aix*)
8936 lt_prog_compiler_wl='-Wl,'
8937 if test "$host_cpu" = ia64; then
8938 # AIX 5 now supports IA64 processor
8939 lt_prog_compiler_static='-Bstatic'
8940 else
8941 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8945 mingw* | cygwin* | pw32* | os2* | cegcc*)
8946 # This hack is so that the source file can tell whether it is being
8947 # built for inclusion in a dll (and should export symbols for example).
8948 lt_prog_compiler_pic='-DDLL_EXPORT'
8951 hpux9* | hpux10* | hpux11*)
8952 lt_prog_compiler_wl='-Wl,'
8953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8954 # not for PA HP-UX.
8955 case $host_cpu in
8956 hppa*64*|ia64*)
8957 # +Z the default
8960 lt_prog_compiler_pic='+Z'
8962 esac
8963 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8964 lt_prog_compiler_static='${wl}-a ${wl}archive'
8967 irix5* | irix6* | nonstopux*)
8968 lt_prog_compiler_wl='-Wl,'
8969 # PIC (with -KPIC) is the default.
8970 lt_prog_compiler_static='-non_shared'
8973 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8974 case $cc_basename in
8975 # old Intel for x86_64 which still supported -KPIC.
8976 ecc*)
8977 lt_prog_compiler_wl='-Wl,'
8978 lt_prog_compiler_pic='-KPIC'
8979 lt_prog_compiler_static='-static'
8981 # icc used to be incompatible with GCC.
8982 # ICC 10 doesn't accept -KPIC any more.
8983 icc* | ifort*)
8984 lt_prog_compiler_wl='-Wl,'
8985 lt_prog_compiler_pic='-fPIC'
8986 lt_prog_compiler_static='-static'
8988 # Lahey Fortran 8.1.
8989 lf95*)
8990 lt_prog_compiler_wl='-Wl,'
8991 lt_prog_compiler_pic='--shared'
8992 lt_prog_compiler_static='--static'
8994 pgcc* | pgf77* | pgf90* | pgf95*)
8995 # Portland Group compilers (*not* the Pentium gcc compiler,
8996 # which looks to be a dead project)
8997 lt_prog_compiler_wl='-Wl,'
8998 lt_prog_compiler_pic='-fpic'
8999 lt_prog_compiler_static='-Bstatic'
9001 ccc*)
9002 lt_prog_compiler_wl='-Wl,'
9003 # All Alpha code is PIC.
9004 lt_prog_compiler_static='-non_shared'
9006 xl*)
9007 # IBM XL C 8.0/Fortran 10.1 on PPC
9008 lt_prog_compiler_wl='-Wl,'
9009 lt_prog_compiler_pic='-qpic'
9010 lt_prog_compiler_static='-qstaticlink'
9013 case `$CC -V 2>&1 | sed 5q` in
9014 *Sun\ C*)
9015 # Sun C 5.9
9016 lt_prog_compiler_pic='-KPIC'
9017 lt_prog_compiler_static='-Bstatic'
9018 lt_prog_compiler_wl='-Wl,'
9020 *Sun\ F*)
9021 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9022 lt_prog_compiler_pic='-KPIC'
9023 lt_prog_compiler_static='-Bstatic'
9024 lt_prog_compiler_wl=''
9026 esac
9028 esac
9031 newsos6)
9032 lt_prog_compiler_pic='-KPIC'
9033 lt_prog_compiler_static='-Bstatic'
9036 *nto* | *qnx*)
9037 # QNX uses GNU C++, but need to define -shared option too, otherwise
9038 # it will coredump.
9039 lt_prog_compiler_pic='-fPIC -shared'
9042 osf3* | osf4* | osf5*)
9043 lt_prog_compiler_wl='-Wl,'
9044 # All OSF/1 code is PIC.
9045 lt_prog_compiler_static='-non_shared'
9048 rdos*)
9049 lt_prog_compiler_static='-non_shared'
9052 solaris*)
9053 lt_prog_compiler_pic='-KPIC'
9054 lt_prog_compiler_static='-Bstatic'
9055 case $cc_basename in
9056 f77* | f90* | f95*)
9057 lt_prog_compiler_wl='-Qoption ld ';;
9059 lt_prog_compiler_wl='-Wl,';;
9060 esac
9063 sunos4*)
9064 lt_prog_compiler_wl='-Qoption ld '
9065 lt_prog_compiler_pic='-PIC'
9066 lt_prog_compiler_static='-Bstatic'
9069 sysv4 | sysv4.2uw2* | sysv4.3*)
9070 lt_prog_compiler_wl='-Wl,'
9071 lt_prog_compiler_pic='-KPIC'
9072 lt_prog_compiler_static='-Bstatic'
9075 sysv4*MP*)
9076 if test -d /usr/nec ;then
9077 lt_prog_compiler_pic='-Kconform_pic'
9078 lt_prog_compiler_static='-Bstatic'
9082 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9083 lt_prog_compiler_wl='-Wl,'
9084 lt_prog_compiler_pic='-KPIC'
9085 lt_prog_compiler_static='-Bstatic'
9088 unicos*)
9089 lt_prog_compiler_wl='-Wl,'
9090 lt_prog_compiler_can_build_shared=no
9093 uts4*)
9094 lt_prog_compiler_pic='-pic'
9095 lt_prog_compiler_static='-Bstatic'
9099 lt_prog_compiler_can_build_shared=no
9101 esac
9104 case $host_os in
9105 # For platforms which do not support PIC, -DPIC is meaningless:
9106 *djgpp*)
9107 lt_prog_compiler_pic=
9110 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9112 esac
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9114 $as_echo "$lt_prog_compiler_pic" >&6; }
9122 # Check to make sure the PIC flag actually works.
9124 if test -n "$lt_prog_compiler_pic"; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9126 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9127 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9128 $as_echo_n "(cached) " >&6
9129 else
9130 lt_cv_prog_compiler_pic_works=no
9131 ac_outfile=conftest.$ac_objext
9132 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9133 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9134 # Insert the option either (1) after the last *FLAGS variable, or
9135 # (2) before a word containing "conftest.", or (3) at the end.
9136 # Note that $ac_compile itself does not contain backslashes and begins
9137 # with a dollar sign (not a hyphen), so the echo should work correctly.
9138 # The option is referenced via a variable to avoid confusing sed.
9139 lt_compile=`echo "$ac_compile" | $SED \
9140 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9141 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9142 -e 's:$: $lt_compiler_flag:'`
9143 (eval echo "\"\$as_me:9143: $lt_compile\"" >&5)
9144 (eval "$lt_compile" 2>conftest.err)
9145 ac_status=$?
9146 cat conftest.err >&5
9147 echo "$as_me:9147: \$? = $ac_status" >&5
9148 if (exit $ac_status) && test -s "$ac_outfile"; then
9149 # The compiler can only warn and ignore the option if not recognized
9150 # So say no if there are warnings other than the usual output.
9151 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9153 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9154 lt_cv_prog_compiler_pic_works=yes
9157 $RM conftest*
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9161 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9163 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9164 case $lt_prog_compiler_pic in
9165 "" | " "*) ;;
9166 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9167 esac
9168 else
9169 lt_prog_compiler_pic=
9170 lt_prog_compiler_can_build_shared=no
9181 # Check to make sure the static flag actually works.
9183 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9185 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9186 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9187 $as_echo_n "(cached) " >&6
9188 else
9189 lt_cv_prog_compiler_static_works=no
9190 save_LDFLAGS="$LDFLAGS"
9191 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9192 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9193 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9194 # The linker can only warn and ignore the option if not recognized
9195 # So say no if there are warnings
9196 if test -s conftest.err; then
9197 # Append any errors to the config.log.
9198 cat conftest.err 1>&5
9199 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9201 if diff conftest.exp conftest.er2 >/dev/null; then
9202 lt_cv_prog_compiler_static_works=yes
9204 else
9205 lt_cv_prog_compiler_static_works=yes
9208 $RM -r conftest*
9209 LDFLAGS="$save_LDFLAGS"
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9213 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9215 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9217 else
9218 lt_prog_compiler_static=
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9228 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9229 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9230 $as_echo_n "(cached) " >&6
9231 else
9232 lt_cv_prog_compiler_c_o=no
9233 $RM -r conftest 2>/dev/null
9234 mkdir conftest
9235 cd conftest
9236 mkdir out
9237 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9239 lt_compiler_flag="-o out/conftest2.$ac_objext"
9240 # Insert the option either (1) after the last *FLAGS variable, or
9241 # (2) before a word containing "conftest.", or (3) at the end.
9242 # Note that $ac_compile itself does not contain backslashes and begins
9243 # with a dollar sign (not a hyphen), so the echo should work correctly.
9244 lt_compile=`echo "$ac_compile" | $SED \
9245 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9246 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9247 -e 's:$: $lt_compiler_flag:'`
9248 (eval echo "\"\$as_me:9248: $lt_compile\"" >&5)
9249 (eval "$lt_compile" 2>out/conftest.err)
9250 ac_status=$?
9251 cat out/conftest.err >&5
9252 echo "$as_me:9252: \$? = $ac_status" >&5
9253 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9254 then
9255 # The compiler can only warn and ignore the option if not recognized
9256 # So say no if there are warnings
9257 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9258 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9259 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9260 lt_cv_prog_compiler_c_o=yes
9263 chmod u+w . 2>&5
9264 $RM conftest*
9265 # SGI C++ compiler will create directory out/ii_files/ for
9266 # template instantiation
9267 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9268 $RM out/* && rmdir out
9269 cd ..
9270 $RM -r conftest
9271 $RM conftest*
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9275 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9283 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9284 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 lt_cv_prog_compiler_c_o=no
9288 $RM -r conftest 2>/dev/null
9289 mkdir conftest
9290 cd conftest
9291 mkdir out
9292 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9294 lt_compiler_flag="-o out/conftest2.$ac_objext"
9295 # Insert the option either (1) after the last *FLAGS variable, or
9296 # (2) before a word containing "conftest.", or (3) at the end.
9297 # Note that $ac_compile itself does not contain backslashes and begins
9298 # with a dollar sign (not a hyphen), so the echo should work correctly.
9299 lt_compile=`echo "$ac_compile" | $SED \
9300 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9302 -e 's:$: $lt_compiler_flag:'`
9303 (eval echo "\"\$as_me:9303: $lt_compile\"" >&5)
9304 (eval "$lt_compile" 2>out/conftest.err)
9305 ac_status=$?
9306 cat out/conftest.err >&5
9307 echo "$as_me:9307: \$? = $ac_status" >&5
9308 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9309 then
9310 # The compiler can only warn and ignore the option if not recognized
9311 # So say no if there are warnings
9312 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9313 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9314 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9315 lt_cv_prog_compiler_c_o=yes
9318 chmod u+w . 2>&5
9319 $RM conftest*
9320 # SGI C++ compiler will create directory out/ii_files/ for
9321 # template instantiation
9322 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9323 $RM out/* && rmdir out
9324 cd ..
9325 $RM -r conftest
9326 $RM conftest*
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9330 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9335 hard_links="nottested"
9336 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9337 # do not overwrite the value of need_locks provided by the user
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9339 $as_echo_n "checking if we can lock with hard links... " >&6; }
9340 hard_links=yes
9341 $RM conftest*
9342 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9343 touch conftest.a
9344 ln conftest.a conftest.b 2>&5 || hard_links=no
9345 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9347 $as_echo "$hard_links" >&6; }
9348 if test "$hard_links" = no; then
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9350 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9351 need_locks=warn
9353 else
9354 need_locks=no
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9363 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9365 runpath_var=
9366 allow_undefined_flag=
9367 always_export_symbols=no
9368 archive_cmds=
9369 archive_expsym_cmds=
9370 compiler_needs_object=no
9371 enable_shared_with_static_runtimes=no
9372 export_dynamic_flag_spec=
9373 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9374 hardcode_automatic=no
9375 hardcode_direct=no
9376 hardcode_direct_absolute=no
9377 hardcode_libdir_flag_spec=
9378 hardcode_libdir_flag_spec_ld=
9379 hardcode_libdir_separator=
9380 hardcode_minus_L=no
9381 hardcode_shlibpath_var=unsupported
9382 inherit_rpath=no
9383 link_all_deplibs=unknown
9384 module_cmds=
9385 module_expsym_cmds=
9386 old_archive_from_new_cmds=
9387 old_archive_from_expsyms_cmds=
9388 thread_safe_flag_spec=
9389 whole_archive_flag_spec=
9390 # include_expsyms should be a list of space-separated symbols to be *always*
9391 # included in the symbol list
9392 include_expsyms=
9393 # exclude_expsyms can be an extended regexp of symbols to exclude
9394 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9395 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9396 # as well as any symbol that contains `d'.
9397 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9398 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9399 # platforms (ab)use it in PIC code, but their linkers get confused if
9400 # the symbol is explicitly referenced. Since portable code cannot
9401 # rely on this symbol name, it's probably fine to never include it in
9402 # preloaded symbol tables.
9403 # Exclude shared library initialization/finalization symbols.
9404 extract_expsyms_cmds=
9406 case $host_os in
9407 cygwin* | mingw* | pw32* | cegcc*)
9408 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9409 # When not using gcc, we currently assume that we are using
9410 # Microsoft Visual C++.
9411 if test "$GCC" != yes; then
9412 with_gnu_ld=no
9415 interix*)
9416 # we just hope/assume this is gcc and not c89 (= MSVC++)
9417 with_gnu_ld=yes
9419 openbsd*)
9420 with_gnu_ld=no
9422 esac
9424 ld_shlibs=yes
9425 if test "$with_gnu_ld" = yes; then
9426 # If archive_cmds runs LD, not CC, wlarc should be empty
9427 wlarc='${wl}'
9429 # Set some defaults for GNU ld with shared library support. These
9430 # are reset later if shared libraries are not supported. Putting them
9431 # here allows them to be overridden if necessary.
9432 runpath_var=LD_RUN_PATH
9433 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9434 export_dynamic_flag_spec='${wl}--export-dynamic'
9435 # ancient GNU ld didn't support --whole-archive et. al.
9436 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9437 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9438 else
9439 whole_archive_flag_spec=
9441 supports_anon_versioning=no
9442 case `$LD -v 2>&1` in
9443 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9444 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9445 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9446 *\ 2.11.*) ;; # other 2.11 versions
9447 *) supports_anon_versioning=yes ;;
9448 esac
9450 # See if GNU ld supports shared libraries.
9451 case $host_os in
9452 aix[3-9]*)
9453 # On AIX/PPC, the GNU linker is very broken
9454 if test "$host_cpu" != ia64; then
9455 ld_shlibs=no
9456 cat <<_LT_EOF 1>&2
9458 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9459 *** to be unable to reliably create shared libraries on AIX.
9460 *** Therefore, libtool is disabling shared libraries support. If you
9461 *** really care for shared libraries, you may want to modify your PATH
9462 *** so that a non-GNU linker is found, and then restart.
9464 _LT_EOF
9468 amigaos*)
9469 case $host_cpu in
9470 powerpc)
9471 # see comment about AmigaOS4 .so support
9472 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9473 archive_expsym_cmds=''
9475 m68k)
9476 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)'
9477 hardcode_libdir_flag_spec='-L$libdir'
9478 hardcode_minus_L=yes
9480 esac
9483 beos*)
9484 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9485 allow_undefined_flag=unsupported
9486 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9487 # support --undefined. This deserves some investigation. FIXME
9488 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9489 else
9490 ld_shlibs=no
9494 cygwin* | mingw* | pw32* | cegcc*)
9495 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9496 # as there is no search path for DLLs.
9497 hardcode_libdir_flag_spec='-L$libdir'
9498 allow_undefined_flag=unsupported
9499 always_export_symbols=no
9500 enable_shared_with_static_runtimes=yes
9501 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9503 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9505 # If the export-symbols file already is a .def file (1st line
9506 # is EXPORTS), use it as is; otherwise, prepend...
9507 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9508 cp $export_symbols $output_objdir/$soname.def;
9509 else
9510 echo EXPORTS > $output_objdir/$soname.def;
9511 cat $export_symbols >> $output_objdir/$soname.def;
9513 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9514 else
9515 ld_shlibs=no
9519 interix[3-9]*)
9520 hardcode_direct=no
9521 hardcode_shlibpath_var=no
9522 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9523 export_dynamic_flag_spec='${wl}-E'
9524 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9525 # Instead, shared libraries are loaded at an image base (0x10000000 by
9526 # default) and relocated if they conflict, which is a slow very memory
9527 # consuming and fragmenting process. To avoid this, we pick a random,
9528 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9529 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9530 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9531 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'
9534 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9535 tmp_diet=no
9536 if test "$host_os" = linux-dietlibc; then
9537 case $cc_basename in
9538 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9539 esac
9541 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9542 && test "$tmp_diet" = no
9543 then
9544 tmp_addflag=
9545 tmp_sharedflag='-shared'
9546 case $cc_basename,$host_cpu in
9547 pgcc*) # Portland Group C compiler
9548 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9549 tmp_addflag=' $pic_flag'
9551 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9552 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9553 tmp_addflag=' $pic_flag -Mnomain' ;;
9554 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9555 tmp_addflag=' -i_dynamic' ;;
9556 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9557 tmp_addflag=' -i_dynamic -nofor_main' ;;
9558 ifc* | ifort*) # Intel Fortran compiler
9559 tmp_addflag=' -nofor_main' ;;
9560 lf95*) # Lahey Fortran 8.1
9561 whole_archive_flag_spec=
9562 tmp_sharedflag='--shared' ;;
9563 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9564 tmp_sharedflag='-qmkshrobj'
9565 tmp_addflag= ;;
9566 esac
9567 case `$CC -V 2>&1 | sed 5q` in
9568 *Sun\ C*) # Sun C 5.9
9569 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9570 compiler_needs_object=yes
9571 tmp_sharedflag='-G' ;;
9572 *Sun\ F*) # Sun Fortran 8.3
9573 tmp_sharedflag='-G' ;;
9574 esac
9575 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9577 if test "x$supports_anon_versioning" = xyes; then
9578 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9579 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9580 echo "local: *; };" >> $output_objdir/$libname.ver~
9581 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9584 case $cc_basename in
9585 xlf*)
9586 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9587 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9588 hardcode_libdir_flag_spec=
9589 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9590 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9591 if test "x$supports_anon_versioning" = xyes; then
9592 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9593 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9594 echo "local: *; };" >> $output_objdir/$libname.ver~
9595 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9598 esac
9599 else
9600 ld_shlibs=no
9604 netbsd*)
9605 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9606 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9607 wlarc=
9608 else
9609 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9610 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9614 solaris*)
9615 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9616 ld_shlibs=no
9617 cat <<_LT_EOF 1>&2
9619 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9620 *** create shared libraries on Solaris systems. Therefore, libtool
9621 *** is disabling shared libraries support. We urge you to upgrade GNU
9622 *** binutils to release 2.9.1 or newer. Another option is to modify
9623 *** your PATH or compiler configuration so that the native linker is
9624 *** used, and then restart.
9626 _LT_EOF
9627 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9628 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9629 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9630 else
9631 ld_shlibs=no
9635 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9636 case `$LD -v 2>&1` in
9637 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9638 ld_shlibs=no
9639 cat <<_LT_EOF 1>&2
9641 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9642 *** reliably create shared libraries on SCO systems. Therefore, libtool
9643 *** is disabling shared libraries support. We urge you to upgrade GNU
9644 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9645 *** your PATH or compiler configuration so that the native linker is
9646 *** used, and then restart.
9648 _LT_EOF
9651 # For security reasons, it is highly recommended that you always
9652 # use absolute paths for naming shared libraries, and exclude the
9653 # DT_RUNPATH tag from executables and libraries. But doing so
9654 # requires that you compile everything twice, which is a pain.
9655 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9656 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9657 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9658 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9659 else
9660 ld_shlibs=no
9663 esac
9666 sunos4*)
9667 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9668 wlarc=
9669 hardcode_direct=yes
9670 hardcode_shlibpath_var=no
9674 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9676 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9677 else
9678 ld_shlibs=no
9681 esac
9683 if test "$ld_shlibs" = no; then
9684 runpath_var=
9685 hardcode_libdir_flag_spec=
9686 export_dynamic_flag_spec=
9687 whole_archive_flag_spec=
9689 else
9690 # PORTME fill in a description of your system's linker (not GNU ld)
9691 case $host_os in
9692 aix3*)
9693 allow_undefined_flag=unsupported
9694 always_export_symbols=yes
9695 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'
9696 # Note: this linker hardcodes the directories in LIBPATH if there
9697 # are no directories specified by -L.
9698 hardcode_minus_L=yes
9699 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9700 # Neither direct hardcoding nor static linking is supported with a
9701 # broken collect2.
9702 hardcode_direct=unsupported
9706 aix[4-9]*)
9707 if test "$host_cpu" = ia64; then
9708 # On IA64, the linker does run time linking by default, so we don't
9709 # have to do anything special.
9710 aix_use_runtimelinking=no
9711 exp_sym_flag='-Bexport'
9712 no_entry_flag=""
9713 else
9714 # If we're using GNU nm, then we don't want the "-C" option.
9715 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9716 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9717 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9718 else
9719 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'
9721 aix_use_runtimelinking=no
9723 # Test if we are trying to use run time linking or normal
9724 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9725 # need to do runtime linking.
9726 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9727 for ld_flag in $LDFLAGS; do
9728 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9729 aix_use_runtimelinking=yes
9730 break
9732 done
9734 esac
9736 exp_sym_flag='-bexport'
9737 no_entry_flag='-bnoentry'
9740 # When large executables or shared objects are built, AIX ld can
9741 # have problems creating the table of contents. If linking a library
9742 # or program results in "error TOC overflow" add -mminimal-toc to
9743 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9744 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9746 archive_cmds=''
9747 hardcode_direct=yes
9748 hardcode_direct_absolute=yes
9749 hardcode_libdir_separator=':'
9750 link_all_deplibs=yes
9751 file_list_spec='${wl}-f,'
9753 if test "$GCC" = yes; then
9754 case $host_os in aix4.[012]|aix4.[012].*)
9755 # We only want to do this on AIX 4.2 and lower, the check
9756 # below for broken collect2 doesn't work under 4.3+
9757 collect2name=`${CC} -print-prog-name=collect2`
9758 if test -f "$collect2name" &&
9759 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9760 then
9761 # We have reworked collect2
9763 else
9764 # We have old collect2
9765 hardcode_direct=unsupported
9766 # It fails to find uninstalled libraries when the uninstalled
9767 # path is not listed in the libpath. Setting hardcode_minus_L
9768 # to unsupported forces relinking
9769 hardcode_minus_L=yes
9770 hardcode_libdir_flag_spec='-L$libdir'
9771 hardcode_libdir_separator=
9774 esac
9775 shared_flag='-shared'
9776 if test "$aix_use_runtimelinking" = yes; then
9777 shared_flag="$shared_flag "'${wl}-G'
9779 else
9780 # not using gcc
9781 if test "$host_cpu" = ia64; then
9782 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9783 # chokes on -Wl,-G. The following line is correct:
9784 shared_flag='-G'
9785 else
9786 if test "$aix_use_runtimelinking" = yes; then
9787 shared_flag='${wl}-G'
9788 else
9789 shared_flag='${wl}-bM:SRE'
9794 export_dynamic_flag_spec='${wl}-bexpall'
9795 # It seems that -bexpall does not export symbols beginning with
9796 # underscore (_), so it is better to generate a list of symbols to export.
9797 always_export_symbols=yes
9798 if test "$aix_use_runtimelinking" = yes; then
9799 # Warning - without using the other runtime loading flags (-brtl),
9800 # -berok will link without error, but may produce a broken library.
9801 allow_undefined_flag='-berok'
9802 # Determine the default libpath from the value encoded in an
9803 # empty executable.
9804 if test x$gcc_no_link = xyes; then
9805 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808 /* end confdefs.h. */
9811 main ()
9815 return 0;
9817 _ACEOF
9818 if ac_fn_c_try_link "$LINENO"; then :
9820 lt_aix_libpath_sed='
9821 /Import File Strings/,/^$/ {
9822 /^0/ {
9823 s/^0 *\(.*\)$/\1/
9827 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9828 # Check for a 64-bit object if we didn't find anything.
9829 if test -z "$aix_libpath"; then
9830 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9833 rm -f core conftest.err conftest.$ac_objext \
9834 conftest$ac_exeext conftest.$ac_ext
9835 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9837 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9838 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9839 else
9840 if test "$host_cpu" = ia64; then
9841 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9842 allow_undefined_flag="-z nodefs"
9843 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"
9844 else
9845 # Determine the default libpath from the value encoded in an
9846 # empty executable.
9847 if test x$gcc_no_link = xyes; then
9848 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9854 main ()
9858 return 0;
9860 _ACEOF
9861 if ac_fn_c_try_link "$LINENO"; then :
9863 lt_aix_libpath_sed='
9864 /Import File Strings/,/^$/ {
9865 /^0/ {
9866 s/^0 *\(.*\)$/\1/
9870 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9871 # Check for a 64-bit object if we didn't find anything.
9872 if test -z "$aix_libpath"; then
9873 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9876 rm -f core conftest.err conftest.$ac_objext \
9877 conftest$ac_exeext conftest.$ac_ext
9878 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9880 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9881 # Warning - without using the other run time loading flags,
9882 # -berok will link without error, but may produce a broken library.
9883 no_undefined_flag=' ${wl}-bernotok'
9884 allow_undefined_flag=' ${wl}-berok'
9885 # Exported symbols can be pulled into shared objects from archives
9886 whole_archive_flag_spec='$convenience'
9887 archive_cmds_need_lc=yes
9888 # This is similar to how AIX traditionally builds its shared libraries.
9889 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'
9894 amigaos*)
9895 case $host_cpu in
9896 powerpc)
9897 # see comment about AmigaOS4 .so support
9898 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9899 archive_expsym_cmds=''
9901 m68k)
9902 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)'
9903 hardcode_libdir_flag_spec='-L$libdir'
9904 hardcode_minus_L=yes
9906 esac
9909 bsdi[45]*)
9910 export_dynamic_flag_spec=-rdynamic
9913 cygwin* | mingw* | pw32* | cegcc*)
9914 # When not using gcc, we currently assume that we are using
9915 # Microsoft Visual C++.
9916 # hardcode_libdir_flag_spec is actually meaningless, as there is
9917 # no search path for DLLs.
9918 hardcode_libdir_flag_spec=' '
9919 allow_undefined_flag=unsupported
9920 # Tell ltmain to make .lib files, not .a files.
9921 libext=lib
9922 # Tell ltmain to make .dll files, not .so files.
9923 shrext_cmds=".dll"
9924 # FIXME: Setting linknames here is a bad hack.
9925 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9926 # The linker will automatically build a .lib file if we build a DLL.
9927 old_archive_from_new_cmds='true'
9928 # FIXME: Should let the user specify the lib program.
9929 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9930 fix_srcfile_path='`cygpath -w "$srcfile"`'
9931 enable_shared_with_static_runtimes=yes
9934 darwin* | rhapsody*)
9937 archive_cmds_need_lc=no
9938 hardcode_direct=no
9939 hardcode_automatic=yes
9940 hardcode_shlibpath_var=unsupported
9941 whole_archive_flag_spec=''
9942 link_all_deplibs=yes
9943 allow_undefined_flag="$_lt_dar_allow_undefined"
9944 case $cc_basename in
9945 ifort*) _lt_dar_can_shared=yes ;;
9946 *) _lt_dar_can_shared=$GCC ;;
9947 esac
9948 if test "$_lt_dar_can_shared" = "yes"; then
9949 output_verbose_link_cmd=echo
9950 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9951 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9952 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}"
9953 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}"
9955 else
9956 ld_shlibs=no
9961 dgux*)
9962 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9963 hardcode_libdir_flag_spec='-L$libdir'
9964 hardcode_shlibpath_var=no
9967 freebsd1*)
9968 ld_shlibs=no
9971 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9972 # support. Future versions do this automatically, but an explicit c++rt0.o
9973 # does not break anything, and helps significantly (at the cost of a little
9974 # extra space).
9975 freebsd2.2*)
9976 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9977 hardcode_libdir_flag_spec='-R$libdir'
9978 hardcode_direct=yes
9979 hardcode_shlibpath_var=no
9982 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9983 freebsd2*)
9984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9985 hardcode_direct=yes
9986 hardcode_minus_L=yes
9987 hardcode_shlibpath_var=no
9990 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9991 freebsd* | dragonfly*)
9992 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9993 hardcode_libdir_flag_spec='-R$libdir'
9994 hardcode_direct=yes
9995 hardcode_shlibpath_var=no
9998 hpux9*)
9999 if test "$GCC" = yes; then
10000 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'
10001 else
10002 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'
10004 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10005 hardcode_libdir_separator=:
10006 hardcode_direct=yes
10008 # hardcode_minus_L: Not really in the search PATH,
10009 # but as the default location of the library.
10010 hardcode_minus_L=yes
10011 export_dynamic_flag_spec='${wl}-E'
10014 hpux10*)
10015 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10016 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10017 else
10018 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10020 if test "$with_gnu_ld" = no; then
10021 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10022 hardcode_libdir_flag_spec_ld='+b $libdir'
10023 hardcode_libdir_separator=:
10024 hardcode_direct=yes
10025 hardcode_direct_absolute=yes
10026 export_dynamic_flag_spec='${wl}-E'
10027 # hardcode_minus_L: Not really in the search PATH,
10028 # but as the default location of the library.
10029 hardcode_minus_L=yes
10033 hpux11*)
10034 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10035 case $host_cpu in
10036 hppa*64*)
10037 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10039 ia64*)
10040 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10043 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10045 esac
10046 else
10047 case $host_cpu in
10048 hppa*64*)
10049 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10051 ia64*)
10052 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10055 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10057 esac
10059 if test "$with_gnu_ld" = no; then
10060 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10061 hardcode_libdir_separator=:
10063 case $host_cpu in
10064 hppa*64*|ia64*)
10065 hardcode_direct=no
10066 hardcode_shlibpath_var=no
10069 hardcode_direct=yes
10070 hardcode_direct_absolute=yes
10071 export_dynamic_flag_spec='${wl}-E'
10073 # hardcode_minus_L: Not really in the search PATH,
10074 # but as the default location of the library.
10075 hardcode_minus_L=yes
10077 esac
10081 irix5* | irix6* | nonstopux*)
10082 if test "$GCC" = yes; then
10083 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10084 # Try to use the -exported_symbol ld option, if it does not
10085 # work, assume that -exports_file does not work either and
10086 # implicitly export all symbols.
10087 save_LDFLAGS="$LDFLAGS"
10088 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10089 if test x$gcc_no_link = xyes; then
10090 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10093 /* end confdefs.h. */
10094 int foo(void) {}
10095 _ACEOF
10096 if ac_fn_c_try_link "$LINENO"; then :
10097 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10100 rm -f core conftest.err conftest.$ac_objext \
10101 conftest$ac_exeext conftest.$ac_ext
10102 LDFLAGS="$save_LDFLAGS"
10103 else
10104 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10105 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10107 archive_cmds_need_lc='no'
10108 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10109 hardcode_libdir_separator=:
10110 inherit_rpath=yes
10111 link_all_deplibs=yes
10114 netbsd*)
10115 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10116 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10117 else
10118 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10120 hardcode_libdir_flag_spec='-R$libdir'
10121 hardcode_direct=yes
10122 hardcode_shlibpath_var=no
10125 newsos6)
10126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127 hardcode_direct=yes
10128 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10129 hardcode_libdir_separator=:
10130 hardcode_shlibpath_var=no
10133 *nto* | *qnx*)
10136 openbsd*)
10137 if test -f /usr/libexec/ld.so; then
10138 hardcode_direct=yes
10139 hardcode_shlibpath_var=no
10140 hardcode_direct_absolute=yes
10141 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10142 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10143 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10144 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10145 export_dynamic_flag_spec='${wl}-E'
10146 else
10147 case $host_os in
10148 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10150 hardcode_libdir_flag_spec='-R$libdir'
10153 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10154 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10156 esac
10158 else
10159 ld_shlibs=no
10163 os2*)
10164 hardcode_libdir_flag_spec='-L$libdir'
10165 hardcode_minus_L=yes
10166 allow_undefined_flag=unsupported
10167 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'
10168 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10171 osf3*)
10172 if test "$GCC" = yes; then
10173 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10174 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10175 else
10176 allow_undefined_flag=' -expect_unresolved \*'
10177 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10179 archive_cmds_need_lc='no'
10180 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10181 hardcode_libdir_separator=:
10184 osf4* | osf5*) # as osf3* with the addition of -msym flag
10185 if test "$GCC" = yes; then
10186 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10187 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10188 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10189 else
10190 allow_undefined_flag=' -expect_unresolved \*'
10191 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10192 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~
10193 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10195 # Both c and cxx compiler support -rpath directly
10196 hardcode_libdir_flag_spec='-rpath $libdir'
10198 archive_cmds_need_lc='no'
10199 hardcode_libdir_separator=:
10202 solaris*)
10203 no_undefined_flag=' -z defs'
10204 if test "$GCC" = yes; then
10205 wlarc='${wl}'
10206 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10207 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10208 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10209 else
10210 case `$CC -V 2>&1` in
10211 *"Compilers 5.0"*)
10212 wlarc=''
10213 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10214 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10215 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10218 wlarc='${wl}'
10219 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10220 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10221 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10223 esac
10225 hardcode_libdir_flag_spec='-R$libdir'
10226 hardcode_shlibpath_var=no
10227 case $host_os in
10228 solaris2.[0-5] | solaris2.[0-5].*) ;;
10230 # The compiler driver will combine and reorder linker options,
10231 # but understands `-z linker_flag'. GCC discards it without `$wl',
10232 # but is careful enough not to reorder.
10233 # Supported since Solaris 2.6 (maybe 2.5.1?)
10234 if test "$GCC" = yes; then
10235 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10236 else
10237 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10240 esac
10241 link_all_deplibs=yes
10244 sunos4*)
10245 if test "x$host_vendor" = xsequent; then
10246 # Use $CC to link under sequent, because it throws in some extra .o
10247 # files that make .init and .fini sections work.
10248 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10249 else
10250 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10252 hardcode_libdir_flag_spec='-L$libdir'
10253 hardcode_direct=yes
10254 hardcode_minus_L=yes
10255 hardcode_shlibpath_var=no
10258 sysv4)
10259 case $host_vendor in
10260 sni)
10261 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10262 hardcode_direct=yes # is this really true???
10264 siemens)
10265 ## LD is ld it makes a PLAMLIB
10266 ## CC just makes a GrossModule.
10267 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10268 reload_cmds='$CC -r -o $output$reload_objs'
10269 hardcode_direct=no
10271 motorola)
10272 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10273 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10275 esac
10276 runpath_var='LD_RUN_PATH'
10277 hardcode_shlibpath_var=no
10280 sysv4.3*)
10281 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10282 hardcode_shlibpath_var=no
10283 export_dynamic_flag_spec='-Bexport'
10286 sysv4*MP*)
10287 if test -d /usr/nec; then
10288 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10289 hardcode_shlibpath_var=no
10290 runpath_var=LD_RUN_PATH
10291 hardcode_runpath_var=yes
10292 ld_shlibs=yes
10296 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10297 no_undefined_flag='${wl}-z,text'
10298 archive_cmds_need_lc=no
10299 hardcode_shlibpath_var=no
10300 runpath_var='LD_RUN_PATH'
10302 if test "$GCC" = yes; then
10303 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10304 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10305 else
10306 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10307 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10311 sysv5* | sco3.2v5* | sco5v6*)
10312 # Note: We can NOT use -z defs as we might desire, because we do not
10313 # link with -lc, and that would cause any symbols used from libc to
10314 # always be unresolved, which means just about no library would
10315 # ever link correctly. If we're not using GNU ld we use -z text
10316 # though, which does catch some bad symbols but isn't as heavy-handed
10317 # as -z defs.
10318 no_undefined_flag='${wl}-z,text'
10319 allow_undefined_flag='${wl}-z,nodefs'
10320 archive_cmds_need_lc=no
10321 hardcode_shlibpath_var=no
10322 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10323 hardcode_libdir_separator=':'
10324 link_all_deplibs=yes
10325 export_dynamic_flag_spec='${wl}-Bexport'
10326 runpath_var='LD_RUN_PATH'
10328 if test "$GCC" = yes; then
10329 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10330 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10331 else
10332 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10333 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10337 uts4*)
10338 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10339 hardcode_libdir_flag_spec='-L$libdir'
10340 hardcode_shlibpath_var=no
10344 ld_shlibs=no
10346 esac
10348 if test x$host_vendor = xsni; then
10349 case $host in
10350 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10351 export_dynamic_flag_spec='${wl}-Blargedynsym'
10353 esac
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10358 $as_echo "$ld_shlibs" >&6; }
10359 test "$ld_shlibs" = no && can_build_shared=no
10361 with_gnu_ld=$with_gnu_ld
10378 # Do we need to explicitly link libc?
10380 case "x$archive_cmds_need_lc" in
10381 x|xyes)
10382 # Assume -lc should be added
10383 archive_cmds_need_lc=yes
10385 if test "$enable_shared" = yes && test "$GCC" = yes; then
10386 case $archive_cmds in
10387 *'~'*)
10388 # FIXME: we may have to deal with multi-command sequences.
10390 '$CC '*)
10391 # Test whether the compiler implicitly links with -lc since on some
10392 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10393 # to ld, don't add -lc before -lgcc.
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10395 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10396 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10397 $as_echo_n "(cached) " >&6
10398 else
10399 $RM conftest*
10400 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10403 (eval $ac_compile) 2>&5
10404 ac_status=$?
10405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10406 test $ac_status = 0; } 2>conftest.err; then
10407 soname=conftest
10408 lib=conftest
10409 libobjs=conftest.$ac_objext
10410 deplibs=
10411 wl=$lt_prog_compiler_wl
10412 pic_flag=$lt_prog_compiler_pic
10413 compiler_flags=-v
10414 linker_flags=-v
10415 verstring=
10416 output_objdir=.
10417 libname=conftest
10418 lt_save_allow_undefined_flag=$allow_undefined_flag
10419 allow_undefined_flag=
10420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10421 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10422 ac_status=$?
10423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10424 test $ac_status = 0; }
10425 then
10426 lt_cv_archive_cmds_need_lc=no
10427 else
10428 lt_cv_archive_cmds_need_lc=yes
10430 allow_undefined_flag=$lt_save_allow_undefined_flag
10431 else
10432 cat conftest.err 1>&5
10434 $RM conftest*
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10438 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10439 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10441 esac
10444 esac
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10603 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10605 if test "$GCC" = yes; then
10606 case $host_os in
10607 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10608 *) lt_awk_arg="/^libraries:/" ;;
10609 esac
10610 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10611 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10612 # if the path contains ";" then we assume it to be the separator
10613 # otherwise default to the standard path separator (i.e. ":") - it is
10614 # assumed that no part of a normal pathname contains ";" but that should
10615 # okay in the real world where ";" in dirpaths is itself problematic.
10616 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10617 else
10618 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10620 # Ok, now we have the path, separated by spaces, we can step through it
10621 # and add multilib dir if necessary.
10622 lt_tmp_lt_search_path_spec=
10623 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10624 for lt_sys_path in $lt_search_path_spec; do
10625 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10626 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10627 else
10628 test -d "$lt_sys_path" && \
10629 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10631 done
10632 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10633 BEGIN {RS=" "; FS="/|\n";} {
10634 lt_foo="";
10635 lt_count=0;
10636 for (lt_i = NF; lt_i > 0; lt_i--) {
10637 if ($lt_i != "" && $lt_i != ".") {
10638 if ($lt_i == "..") {
10639 lt_count++;
10640 } else {
10641 if (lt_count == 0) {
10642 lt_foo="/" $lt_i lt_foo;
10643 } else {
10644 lt_count--;
10649 if (lt_foo != "") { lt_freq[lt_foo]++; }
10650 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10652 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10653 else
10654 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10656 library_names_spec=
10657 libname_spec='lib$name'
10658 soname_spec=
10659 shrext_cmds=".so"
10660 postinstall_cmds=
10661 postuninstall_cmds=
10662 finish_cmds=
10663 finish_eval=
10664 shlibpath_var=
10665 shlibpath_overrides_runpath=unknown
10666 version_type=none
10667 dynamic_linker="$host_os ld.so"
10668 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10669 need_lib_prefix=unknown
10670 hardcode_into_libs=no
10672 # when you set need_version to no, make sure it does not cause -set_version
10673 # flags to be left without arguments
10674 need_version=unknown
10676 case $host_os in
10677 aix3*)
10678 version_type=linux
10679 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10680 shlibpath_var=LIBPATH
10682 # AIX 3 has no versioning support, so we append a major version to the name.
10683 soname_spec='${libname}${release}${shared_ext}$major'
10686 aix[4-9]*)
10687 version_type=linux
10688 need_lib_prefix=no
10689 need_version=no
10690 hardcode_into_libs=yes
10691 if test "$host_cpu" = ia64; then
10692 # AIX 5 supports IA64
10693 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10694 shlibpath_var=LD_LIBRARY_PATH
10695 else
10696 # With GCC up to 2.95.x, collect2 would create an import file
10697 # for dependence libraries. The import file would start with
10698 # the line `#! .'. This would cause the generated library to
10699 # depend on `.', always an invalid library. This was fixed in
10700 # development snapshots of GCC prior to 3.0.
10701 case $host_os in
10702 aix4 | aix4.[01] | aix4.[01].*)
10703 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10704 echo ' yes '
10705 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10707 else
10708 can_build_shared=no
10711 esac
10712 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10713 # soname into executable. Probably we can add versioning support to
10714 # collect2, so additional links can be useful in future.
10715 if test "$aix_use_runtimelinking" = yes; then
10716 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10717 # instead of lib<name>.a to let people know that these are not
10718 # typical AIX shared libraries.
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10720 else
10721 # We preserve .a as extension for shared libraries through AIX4.2
10722 # and later when we are not doing run time linking.
10723 library_names_spec='${libname}${release}.a $libname.a'
10724 soname_spec='${libname}${release}${shared_ext}$major'
10726 shlibpath_var=LIBPATH
10730 amigaos*)
10731 case $host_cpu in
10732 powerpc)
10733 # Since July 2007 AmigaOS4 officially supports .so libraries.
10734 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10737 m68k)
10738 library_names_spec='$libname.ixlibrary $libname.a'
10739 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10740 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
10742 esac
10745 beos*)
10746 library_names_spec='${libname}${shared_ext}'
10747 dynamic_linker="$host_os ld.so"
10748 shlibpath_var=LIBRARY_PATH
10751 bsdi[45]*)
10752 version_type=linux
10753 need_version=no
10754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10755 soname_spec='${libname}${release}${shared_ext}$major'
10756 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10757 shlibpath_var=LD_LIBRARY_PATH
10758 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10759 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10760 # the default ld.so.conf also contains /usr/contrib/lib and
10761 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10762 # libtool to hard-code these into programs
10765 cygwin* | mingw* | pw32* | cegcc*)
10766 version_type=windows
10767 shrext_cmds=".dll"
10768 need_version=no
10769 need_lib_prefix=no
10771 case $GCC,$host_os in
10772 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10773 library_names_spec='$libname.dll.a'
10774 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10775 postinstall_cmds='base_file=`basename \${file}`~
10776 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10777 dldir=$destdir/`dirname \$dlpath`~
10778 test -d \$dldir || mkdir -p \$dldir~
10779 $install_prog $dir/$dlname \$dldir/$dlname~
10780 chmod a+x \$dldir/$dlname~
10781 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10782 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10784 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10785 dlpath=$dir/\$dldll~
10786 $RM \$dlpath'
10787 shlibpath_overrides_runpath=yes
10789 case $host_os in
10790 cygwin*)
10791 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10792 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10793 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10795 mingw* | cegcc*)
10796 # MinGW DLLs use traditional 'lib' prefix
10797 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10798 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10799 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10800 # It is most probably a Windows format PATH printed by
10801 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10802 # path with ; separators, and with drive letters. We can handle the
10803 # drive letters (cygwin fileutils understands them), so leave them,
10804 # especially as we might pass files found there to a mingw objdump,
10805 # which wouldn't understand a cygwinified path. Ahh.
10806 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10807 else
10808 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10811 pw32*)
10812 # pw32 DLLs use 'pw' prefix rather than 'lib'
10813 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10815 esac
10819 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10821 esac
10822 dynamic_linker='Win32 ld.exe'
10823 # FIXME: first we should search . and the directory the executable is in
10824 shlibpath_var=PATH
10827 darwin* | rhapsody*)
10828 dynamic_linker="$host_os dyld"
10829 version_type=darwin
10830 need_lib_prefix=no
10831 need_version=no
10832 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10833 soname_spec='${libname}${release}${major}$shared_ext'
10834 shlibpath_overrides_runpath=yes
10835 shlibpath_var=DYLD_LIBRARY_PATH
10836 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10838 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10839 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10842 dgux*)
10843 version_type=linux
10844 need_lib_prefix=no
10845 need_version=no
10846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10847 soname_spec='${libname}${release}${shared_ext}$major'
10848 shlibpath_var=LD_LIBRARY_PATH
10851 freebsd1*)
10852 dynamic_linker=no
10855 freebsd* | dragonfly*)
10856 # DragonFly does not have aout. When/if they implement a new
10857 # versioning mechanism, adjust this.
10858 if test -x /usr/bin/objformat; then
10859 objformat=`/usr/bin/objformat`
10860 else
10861 case $host_os in
10862 freebsd[123]*) objformat=aout ;;
10863 *) objformat=elf ;;
10864 esac
10866 version_type=freebsd-$objformat
10867 case $version_type in
10868 freebsd-elf*)
10869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10870 need_version=no
10871 need_lib_prefix=no
10873 freebsd-*)
10874 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10875 need_version=yes
10877 esac
10878 shlibpath_var=LD_LIBRARY_PATH
10879 case $host_os in
10880 freebsd2*)
10881 shlibpath_overrides_runpath=yes
10883 freebsd3.[01]* | freebsdelf3.[01]*)
10884 shlibpath_overrides_runpath=yes
10885 hardcode_into_libs=yes
10887 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10888 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10889 shlibpath_overrides_runpath=no
10890 hardcode_into_libs=yes
10892 *) # from 4.6 on, and DragonFly
10893 shlibpath_overrides_runpath=yes
10894 hardcode_into_libs=yes
10896 esac
10899 gnu*)
10900 version_type=linux
10901 need_lib_prefix=no
10902 need_version=no
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10904 soname_spec='${libname}${release}${shared_ext}$major'
10905 shlibpath_var=LD_LIBRARY_PATH
10906 hardcode_into_libs=yes
10909 hpux9* | hpux10* | hpux11*)
10910 # Give a soname corresponding to the major version so that dld.sl refuses to
10911 # link against other versions.
10912 version_type=sunos
10913 need_lib_prefix=no
10914 need_version=no
10915 case $host_cpu in
10916 ia64*)
10917 shrext_cmds='.so'
10918 hardcode_into_libs=yes
10919 dynamic_linker="$host_os dld.so"
10920 shlibpath_var=LD_LIBRARY_PATH
10921 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
10925 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10926 else
10927 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10929 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10931 hppa*64*)
10932 shrext_cmds='.sl'
10933 hardcode_into_libs=yes
10934 dynamic_linker="$host_os dld.sl"
10935 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10936 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10938 soname_spec='${libname}${release}${shared_ext}$major'
10939 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10940 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10943 shrext_cmds='.sl'
10944 dynamic_linker="$host_os dld.sl"
10945 shlibpath_var=SHLIB_PATH
10946 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948 soname_spec='${libname}${release}${shared_ext}$major'
10950 esac
10951 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10952 postinstall_cmds='chmod 555 $lib'
10955 interix[3-9]*)
10956 version_type=linux
10957 need_lib_prefix=no
10958 need_version=no
10959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10960 soname_spec='${libname}${release}${shared_ext}$major'
10961 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10962 shlibpath_var=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath=no
10964 hardcode_into_libs=yes
10967 irix5* | irix6* | nonstopux*)
10968 case $host_os in
10969 nonstopux*) version_type=nonstopux ;;
10971 if test "$lt_cv_prog_gnu_ld" = yes; then
10972 version_type=linux
10973 else
10974 version_type=irix
10975 fi ;;
10976 esac
10977 need_lib_prefix=no
10978 need_version=no
10979 soname_spec='${libname}${release}${shared_ext}$major'
10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10981 case $host_os in
10982 irix5* | nonstopux*)
10983 libsuff= shlibsuff=
10986 case $LD in # libtool.m4 will add one of these switches to LD
10987 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10988 libsuff= shlibsuff= libmagic=32-bit;;
10989 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10990 libsuff=32 shlibsuff=N32 libmagic=N32;;
10991 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10992 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10993 *) libsuff= shlibsuff= libmagic=never-match;;
10994 esac
10996 esac
10997 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10998 shlibpath_overrides_runpath=no
10999 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11000 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11001 hardcode_into_libs=yes
11004 # No shared lib support for Linux oldld, aout, or coff.
11005 linux*oldld* | linux*aout* | linux*coff*)
11006 dynamic_linker=no
11009 # This must be Linux ELF.
11010 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11011 version_type=linux
11012 need_lib_prefix=no
11013 need_version=no
11014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11015 soname_spec='${libname}${release}${shared_ext}$major'
11016 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11017 shlibpath_var=LD_LIBRARY_PATH
11018 shlibpath_overrides_runpath=no
11020 # Some binutils ld are patched to set DT_RUNPATH
11021 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11022 $as_echo_n "(cached) " >&6
11023 else
11024 lt_cv_shlibpath_overrides_runpath=no
11025 save_LDFLAGS=$LDFLAGS
11026 save_libdir=$libdir
11027 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11028 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11029 if test x$gcc_no_link = xyes; then
11030 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11033 /* end confdefs.h. */
11036 main ()
11040 return 0;
11042 _ACEOF
11043 if ac_fn_c_try_link "$LINENO"; then :
11044 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11045 lt_cv_shlibpath_overrides_runpath=yes
11048 rm -f core conftest.err conftest.$ac_objext \
11049 conftest$ac_exeext conftest.$ac_ext
11050 LDFLAGS=$save_LDFLAGS
11051 libdir=$save_libdir
11055 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11057 # This implies no fast_install, which is unacceptable.
11058 # Some rework will be needed to allow for fast_install
11059 # before this can be enabled.
11060 hardcode_into_libs=yes
11062 # Append ld.so.conf contents to the search path
11063 if test -f /etc/ld.so.conf; then
11064 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;/^$/d' | tr '\n' ' '`
11065 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11068 # We used to test for /lib/ld.so.1 and disable shared libraries on
11069 # powerpc, because MkLinux only supported shared libraries with the
11070 # GNU dynamic linker. Since this was broken with cross compilers,
11071 # most powerpc-linux boxes support dynamic linking these days and
11072 # people can always --disable-shared, the test was removed, and we
11073 # assume the GNU/Linux dynamic linker is in use.
11074 dynamic_linker='GNU/Linux ld.so'
11077 netbsd*)
11078 version_type=sunos
11079 need_lib_prefix=no
11080 need_version=no
11081 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11084 dynamic_linker='NetBSD (a.out) ld.so'
11085 else
11086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11087 soname_spec='${libname}${release}${shared_ext}$major'
11088 dynamic_linker='NetBSD ld.elf_so'
11090 shlibpath_var=LD_LIBRARY_PATH
11091 shlibpath_overrides_runpath=yes
11092 hardcode_into_libs=yes
11095 newsos6)
11096 version_type=linux
11097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11098 shlibpath_var=LD_LIBRARY_PATH
11099 shlibpath_overrides_runpath=yes
11102 *nto* | *qnx*)
11103 version_type=qnx
11104 need_lib_prefix=no
11105 need_version=no
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11107 soname_spec='${libname}${release}${shared_ext}$major'
11108 shlibpath_var=LD_LIBRARY_PATH
11109 shlibpath_overrides_runpath=no
11110 hardcode_into_libs=yes
11111 dynamic_linker='ldqnx.so'
11114 openbsd*)
11115 version_type=sunos
11116 sys_lib_dlsearch_path_spec="/usr/lib"
11117 need_lib_prefix=no
11118 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11119 case $host_os in
11120 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11121 *) need_version=no ;;
11122 esac
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11127 case $host_os in
11128 openbsd2.[89] | openbsd2.[89].*)
11129 shlibpath_overrides_runpath=no
11132 shlibpath_overrides_runpath=yes
11134 esac
11135 else
11136 shlibpath_overrides_runpath=yes
11140 os2*)
11141 libname_spec='$name'
11142 shrext_cmds=".dll"
11143 need_lib_prefix=no
11144 library_names_spec='$libname${shared_ext} $libname.a'
11145 dynamic_linker='OS/2 ld.exe'
11146 shlibpath_var=LIBPATH
11149 osf3* | osf4* | osf5*)
11150 version_type=osf
11151 need_lib_prefix=no
11152 need_version=no
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 shlibpath_var=LD_LIBRARY_PATH
11156 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11157 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11160 rdos*)
11161 dynamic_linker=no
11164 solaris*)
11165 version_type=linux
11166 need_lib_prefix=no
11167 need_version=no
11168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11169 soname_spec='${libname}${release}${shared_ext}$major'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 shlibpath_overrides_runpath=yes
11172 hardcode_into_libs=yes
11173 # ldd complains unless libraries are executable
11174 postinstall_cmds='chmod +x $lib'
11177 sunos4*)
11178 version_type=sunos
11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11180 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11181 shlibpath_var=LD_LIBRARY_PATH
11182 shlibpath_overrides_runpath=yes
11183 if test "$with_gnu_ld" = yes; then
11184 need_lib_prefix=no
11186 need_version=yes
11189 sysv4 | sysv4.3*)
11190 version_type=linux
11191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192 soname_spec='${libname}${release}${shared_ext}$major'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 case $host_vendor in
11195 sni)
11196 shlibpath_overrides_runpath=no
11197 need_lib_prefix=no
11198 runpath_var=LD_RUN_PATH
11200 siemens)
11201 need_lib_prefix=no
11203 motorola)
11204 need_lib_prefix=no
11205 need_version=no
11206 shlibpath_overrides_runpath=no
11207 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11209 esac
11212 sysv4*MP*)
11213 if test -d /usr/nec ;then
11214 version_type=linux
11215 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11216 soname_spec='$libname${shared_ext}.$major'
11217 shlibpath_var=LD_LIBRARY_PATH
11221 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11222 version_type=freebsd-elf
11223 need_lib_prefix=no
11224 need_version=no
11225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11226 soname_spec='${libname}${release}${shared_ext}$major'
11227 shlibpath_var=LD_LIBRARY_PATH
11228 shlibpath_overrides_runpath=yes
11229 hardcode_into_libs=yes
11230 if test "$with_gnu_ld" = yes; then
11231 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11232 else
11233 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11234 case $host_os in
11235 sco3.2v5*)
11236 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11238 esac
11240 sys_lib_dlsearch_path_spec='/usr/lib'
11243 tpf*)
11244 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11245 version_type=linux
11246 need_lib_prefix=no
11247 need_version=no
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11249 shlibpath_var=LD_LIBRARY_PATH
11250 shlibpath_overrides_runpath=no
11251 hardcode_into_libs=yes
11254 uts4*)
11255 version_type=linux
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11257 soname_spec='${libname}${release}${shared_ext}$major'
11258 shlibpath_var=LD_LIBRARY_PATH
11262 dynamic_linker=no
11264 esac
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11266 $as_echo "$dynamic_linker" >&6; }
11267 test "$dynamic_linker" = no && can_build_shared=no
11269 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11270 if test "$GCC" = yes; then
11271 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11274 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11275 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11277 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11278 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11368 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11369 hardcode_action=
11370 if test -n "$hardcode_libdir_flag_spec" ||
11371 test -n "$runpath_var" ||
11372 test "X$hardcode_automatic" = "Xyes" ; then
11374 # We can hardcode non-existent directories.
11375 if test "$hardcode_direct" != no &&
11376 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11377 # have to relink, otherwise we might link with an installed library
11378 # when we should be linking with a yet-to-be-installed one
11379 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11380 test "$hardcode_minus_L" != no; then
11381 # Linking always hardcodes the temporary library directory.
11382 hardcode_action=relink
11383 else
11384 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11385 hardcode_action=immediate
11387 else
11388 # We cannot hardcode anything, or else we can only hardcode existing
11389 # directories.
11390 hardcode_action=unsupported
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11393 $as_echo "$hardcode_action" >&6; }
11395 if test "$hardcode_action" = relink ||
11396 test "$inherit_rpath" = yes; then
11397 # Fast installation is not supported
11398 enable_fast_install=no
11399 elif test "$shlibpath_overrides_runpath" = yes ||
11400 test "$enable_shared" = no; then
11401 # Fast installation is not necessary
11402 enable_fast_install=needless
11410 if test "x$enable_dlopen" != xyes; then
11411 enable_dlopen=unknown
11412 enable_dlopen_self=unknown
11413 enable_dlopen_self_static=unknown
11414 else
11415 lt_cv_dlopen=no
11416 lt_cv_dlopen_libs=
11418 case $host_os in
11419 beos*)
11420 lt_cv_dlopen="load_add_on"
11421 lt_cv_dlopen_libs=
11422 lt_cv_dlopen_self=yes
11425 mingw* | pw32* | cegcc*)
11426 lt_cv_dlopen="LoadLibrary"
11427 lt_cv_dlopen_libs=
11430 cygwin*)
11431 lt_cv_dlopen="dlopen"
11432 lt_cv_dlopen_libs=
11435 darwin*)
11436 # if libdl is installed we need to link against it
11437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11438 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11439 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11440 $as_echo_n "(cached) " >&6
11441 else
11442 ac_check_lib_save_LIBS=$LIBS
11443 LIBS="-ldl $LIBS"
11444 if test x$gcc_no_link = xyes; then
11445 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11450 /* Override any GCC internal prototype to avoid an error.
11451 Use char because int might match the return type of a GCC
11452 builtin and then its argument prototype would still apply. */
11453 #ifdef __cplusplus
11454 extern "C"
11455 #endif
11456 char dlopen ();
11458 main ()
11460 return dlopen ();
11462 return 0;
11464 _ACEOF
11465 if ac_fn_c_try_link "$LINENO"; then :
11466 ac_cv_lib_dl_dlopen=yes
11467 else
11468 ac_cv_lib_dl_dlopen=no
11470 rm -f core conftest.err conftest.$ac_objext \
11471 conftest$ac_exeext conftest.$ac_ext
11472 LIBS=$ac_check_lib_save_LIBS
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11475 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11476 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11477 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11478 else
11480 lt_cv_dlopen="dyld"
11481 lt_cv_dlopen_libs=
11482 lt_cv_dlopen_self=yes
11489 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11490 if test "x$ac_cv_func_shl_load" = x""yes; then :
11491 lt_cv_dlopen="shl_load"
11492 else
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11494 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11495 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11496 $as_echo_n "(cached) " >&6
11497 else
11498 ac_check_lib_save_LIBS=$LIBS
11499 LIBS="-ldld $LIBS"
11500 if test x$gcc_no_link = xyes; then
11501 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11504 /* end confdefs.h. */
11506 /* Override any GCC internal prototype to avoid an error.
11507 Use char because int might match the return type of a GCC
11508 builtin and then its argument prototype would still apply. */
11509 #ifdef __cplusplus
11510 extern "C"
11511 #endif
11512 char shl_load ();
11514 main ()
11516 return shl_load ();
11518 return 0;
11520 _ACEOF
11521 if ac_fn_c_try_link "$LINENO"; then :
11522 ac_cv_lib_dld_shl_load=yes
11523 else
11524 ac_cv_lib_dld_shl_load=no
11526 rm -f core conftest.err conftest.$ac_objext \
11527 conftest$ac_exeext conftest.$ac_ext
11528 LIBS=$ac_check_lib_save_LIBS
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11531 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11532 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11533 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11534 else
11535 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11536 if test "x$ac_cv_func_dlopen" = x""yes; then :
11537 lt_cv_dlopen="dlopen"
11538 else
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11540 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11541 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11542 $as_echo_n "(cached) " >&6
11543 else
11544 ac_check_lib_save_LIBS=$LIBS
11545 LIBS="-ldl $LIBS"
11546 if test x$gcc_no_link = xyes; then
11547 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550 /* end confdefs.h. */
11552 /* Override any GCC internal prototype to avoid an error.
11553 Use char because int might match the return type of a GCC
11554 builtin and then its argument prototype would still apply. */
11555 #ifdef __cplusplus
11556 extern "C"
11557 #endif
11558 char dlopen ();
11560 main ()
11562 return dlopen ();
11564 return 0;
11566 _ACEOF
11567 if ac_fn_c_try_link "$LINENO"; then :
11568 ac_cv_lib_dl_dlopen=yes
11569 else
11570 ac_cv_lib_dl_dlopen=no
11572 rm -f core conftest.err conftest.$ac_objext \
11573 conftest$ac_exeext conftest.$ac_ext
11574 LIBS=$ac_check_lib_save_LIBS
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11577 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11578 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11579 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11580 else
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11582 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11583 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11584 $as_echo_n "(cached) " >&6
11585 else
11586 ac_check_lib_save_LIBS=$LIBS
11587 LIBS="-lsvld $LIBS"
11588 if test x$gcc_no_link = xyes; then
11589 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11592 /* end confdefs.h. */
11594 /* Override any GCC internal prototype to avoid an error.
11595 Use char because int might match the return type of a GCC
11596 builtin and then its argument prototype would still apply. */
11597 #ifdef __cplusplus
11598 extern "C"
11599 #endif
11600 char dlopen ();
11602 main ()
11604 return dlopen ();
11606 return 0;
11608 _ACEOF
11609 if ac_fn_c_try_link "$LINENO"; then :
11610 ac_cv_lib_svld_dlopen=yes
11611 else
11612 ac_cv_lib_svld_dlopen=no
11614 rm -f core conftest.err conftest.$ac_objext \
11615 conftest$ac_exeext conftest.$ac_ext
11616 LIBS=$ac_check_lib_save_LIBS
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11619 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11620 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11621 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11622 else
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11624 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11625 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11626 $as_echo_n "(cached) " >&6
11627 else
11628 ac_check_lib_save_LIBS=$LIBS
11629 LIBS="-ldld $LIBS"
11630 if test x$gcc_no_link = xyes; then
11631 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h. */
11636 /* Override any GCC internal prototype to avoid an error.
11637 Use char because int might match the return type of a GCC
11638 builtin and then its argument prototype would still apply. */
11639 #ifdef __cplusplus
11640 extern "C"
11641 #endif
11642 char dld_link ();
11644 main ()
11646 return dld_link ();
11648 return 0;
11650 _ACEOF
11651 if ac_fn_c_try_link "$LINENO"; then :
11652 ac_cv_lib_dld_dld_link=yes
11653 else
11654 ac_cv_lib_dld_dld_link=no
11656 rm -f core conftest.err conftest.$ac_objext \
11657 conftest$ac_exeext conftest.$ac_ext
11658 LIBS=$ac_check_lib_save_LIBS
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11661 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11662 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11663 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11682 esac
11684 if test "x$lt_cv_dlopen" != xno; then
11685 enable_dlopen=yes
11686 else
11687 enable_dlopen=no
11690 case $lt_cv_dlopen in
11691 dlopen)
11692 save_CPPFLAGS="$CPPFLAGS"
11693 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11695 save_LDFLAGS="$LDFLAGS"
11696 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11698 save_LIBS="$LIBS"
11699 LIBS="$lt_cv_dlopen_libs $LIBS"
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11702 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11703 if test "${lt_cv_dlopen_self+set}" = set; then :
11704 $as_echo_n "(cached) " >&6
11705 else
11706 if test "$cross_compiling" = yes; then :
11707 lt_cv_dlopen_self=cross
11708 else
11709 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11710 lt_status=$lt_dlunknown
11711 cat > conftest.$ac_ext <<_LT_EOF
11712 #line 11712 "configure"
11713 #include "confdefs.h"
11715 #if HAVE_DLFCN_H
11716 #include <dlfcn.h>
11717 #endif
11719 #include <stdio.h>
11721 #ifdef RTLD_GLOBAL
11722 # define LT_DLGLOBAL RTLD_GLOBAL
11723 #else
11724 # ifdef DL_GLOBAL
11725 # define LT_DLGLOBAL DL_GLOBAL
11726 # else
11727 # define LT_DLGLOBAL 0
11728 # endif
11729 #endif
11731 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11732 find out it does not work in some platform. */
11733 #ifndef LT_DLLAZY_OR_NOW
11734 # ifdef RTLD_LAZY
11735 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11736 # else
11737 # ifdef DL_LAZY
11738 # define LT_DLLAZY_OR_NOW DL_LAZY
11739 # else
11740 # ifdef RTLD_NOW
11741 # define LT_DLLAZY_OR_NOW RTLD_NOW
11742 # else
11743 # ifdef DL_NOW
11744 # define LT_DLLAZY_OR_NOW DL_NOW
11745 # else
11746 # define LT_DLLAZY_OR_NOW 0
11747 # endif
11748 # endif
11749 # endif
11750 # endif
11751 #endif
11753 void fnord() { int i=42;}
11754 int main ()
11756 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11757 int status = $lt_dlunknown;
11759 if (self)
11761 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11762 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11763 /* dlclose (self); */
11765 else
11766 puts (dlerror ());
11768 return status;
11770 _LT_EOF
11771 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11772 (eval $ac_link) 2>&5
11773 ac_status=$?
11774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11775 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11776 (./conftest; exit; ) >&5 2>/dev/null
11777 lt_status=$?
11778 case x$lt_status in
11779 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11780 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11781 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11782 esac
11783 else :
11784 # compilation failed
11785 lt_cv_dlopen_self=no
11788 rm -fr conftest*
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11793 $as_echo "$lt_cv_dlopen_self" >&6; }
11795 if test "x$lt_cv_dlopen_self" = xyes; then
11796 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11798 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11799 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11800 $as_echo_n "(cached) " >&6
11801 else
11802 if test "$cross_compiling" = yes; then :
11803 lt_cv_dlopen_self_static=cross
11804 else
11805 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11806 lt_status=$lt_dlunknown
11807 cat > conftest.$ac_ext <<_LT_EOF
11808 #line 11808 "configure"
11809 #include "confdefs.h"
11811 #if HAVE_DLFCN_H
11812 #include <dlfcn.h>
11813 #endif
11815 #include <stdio.h>
11817 #ifdef RTLD_GLOBAL
11818 # define LT_DLGLOBAL RTLD_GLOBAL
11819 #else
11820 # ifdef DL_GLOBAL
11821 # define LT_DLGLOBAL DL_GLOBAL
11822 # else
11823 # define LT_DLGLOBAL 0
11824 # endif
11825 #endif
11827 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11828 find out it does not work in some platform. */
11829 #ifndef LT_DLLAZY_OR_NOW
11830 # ifdef RTLD_LAZY
11831 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11832 # else
11833 # ifdef DL_LAZY
11834 # define LT_DLLAZY_OR_NOW DL_LAZY
11835 # else
11836 # ifdef RTLD_NOW
11837 # define LT_DLLAZY_OR_NOW RTLD_NOW
11838 # else
11839 # ifdef DL_NOW
11840 # define LT_DLLAZY_OR_NOW DL_NOW
11841 # else
11842 # define LT_DLLAZY_OR_NOW 0
11843 # endif
11844 # endif
11845 # endif
11846 # endif
11847 #endif
11849 void fnord() { int i=42;}
11850 int main ()
11852 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11853 int status = $lt_dlunknown;
11855 if (self)
11857 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11858 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11859 /* dlclose (self); */
11861 else
11862 puts (dlerror ());
11864 return status;
11866 _LT_EOF
11867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11868 (eval $ac_link) 2>&5
11869 ac_status=$?
11870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11871 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11872 (./conftest; exit; ) >&5 2>/dev/null
11873 lt_status=$?
11874 case x$lt_status in
11875 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11876 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11877 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11878 esac
11879 else :
11880 # compilation failed
11881 lt_cv_dlopen_self_static=no
11884 rm -fr conftest*
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11889 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11892 CPPFLAGS="$save_CPPFLAGS"
11893 LDFLAGS="$save_LDFLAGS"
11894 LIBS="$save_LIBS"
11896 esac
11898 case $lt_cv_dlopen_self in
11899 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11900 *) enable_dlopen_self=unknown ;;
11901 esac
11903 case $lt_cv_dlopen_self_static in
11904 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11905 *) enable_dlopen_self_static=unknown ;;
11906 esac
11925 striplib=
11926 old_striplib=
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11928 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11929 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11930 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11931 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11933 $as_echo "yes" >&6; }
11934 else
11935 # FIXME - insert some real tests, host_os isn't really good enough
11936 case $host_os in
11937 darwin*)
11938 if test -n "$STRIP" ; then
11939 striplib="$STRIP -x"
11940 old_striplib="$STRIP -S"
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11942 $as_echo "yes" >&6; }
11943 else
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11945 $as_echo "no" >&6; }
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950 $as_echo "no" >&6; }
11952 esac
11966 # Report which library types will actually be built
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11968 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11970 $as_echo "$can_build_shared" >&6; }
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11973 $as_echo_n "checking whether to build shared libraries... " >&6; }
11974 test "$can_build_shared" = "no" && enable_shared=no
11976 # On AIX, shared libraries and static libraries use the same namespace, and
11977 # are all built from PIC.
11978 case $host_os in
11979 aix3*)
11980 test "$enable_shared" = yes && enable_static=no
11981 if test -n "$RANLIB"; then
11982 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11983 postinstall_cmds='$RANLIB $lib'
11987 aix[4-9]*)
11988 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11989 test "$enable_shared" = yes && enable_static=no
11992 esac
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11994 $as_echo "$enable_shared" >&6; }
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11997 $as_echo_n "checking whether to build static libraries... " >&6; }
11998 # Make sure either enable_shared or enable_static is yes.
11999 test "$enable_shared" = yes || enable_static=yes
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12001 $as_echo "$enable_static" >&6; }
12007 ac_ext=c
12008 ac_cpp='$CPP $CPPFLAGS'
12009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12013 CC="$lt_save_CC"
12027 ac_config_commands="$ac_config_commands libtool"
12032 # Only expand once:
12035 for ac_prog in gawk mawk nawk awk
12037 # Extract the first word of "$ac_prog", so it can be a program name with args.
12038 set dummy $ac_prog; ac_word=$2
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12040 $as_echo_n "checking for $ac_word... " >&6; }
12041 if test "${ac_cv_prog_AWK+set}" = set; then :
12042 $as_echo_n "(cached) " >&6
12043 else
12044 if test -n "$AWK"; then
12045 ac_cv_prog_AWK="$AWK" # Let the user override the test.
12046 else
12047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12048 for as_dir in $PATH
12050 IFS=$as_save_IFS
12051 test -z "$as_dir" && as_dir=.
12052 for ac_exec_ext in '' $ac_executable_extensions; do
12053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12054 ac_cv_prog_AWK="$ac_prog"
12055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12056 break 2
12058 done
12059 done
12060 IFS=$as_save_IFS
12064 AWK=$ac_cv_prog_AWK
12065 if test -n "$AWK"; then
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12067 $as_echo "$AWK" >&6; }
12068 else
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12070 $as_echo "no" >&6; }
12074 test -n "$AWK" && break
12075 done
12077 ac_ext=c
12078 ac_cpp='$CPP $CPPFLAGS'
12079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12082 if test -n "$ac_tool_prefix"; then
12083 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12084 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12086 $as_echo_n "checking for $ac_word... " >&6; }
12087 if test "${ac_cv_prog_CC+set}" = set; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090 if test -n "$CC"; then
12091 ac_cv_prog_CC="$CC" # Let the user override the test.
12092 else
12093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12094 for as_dir in $PATH
12096 IFS=$as_save_IFS
12097 test -z "$as_dir" && as_dir=.
12098 for ac_exec_ext in '' $ac_executable_extensions; do
12099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12100 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12102 break 2
12104 done
12105 done
12106 IFS=$as_save_IFS
12110 CC=$ac_cv_prog_CC
12111 if test -n "$CC"; then
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12113 $as_echo "$CC" >&6; }
12114 else
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116 $as_echo "no" >&6; }
12121 if test -z "$ac_cv_prog_CC"; then
12122 ac_ct_CC=$CC
12123 # Extract the first word of "gcc", so it can be a program name with args.
12124 set dummy gcc; ac_word=$2
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12126 $as_echo_n "checking for $ac_word... " >&6; }
12127 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12128 $as_echo_n "(cached) " >&6
12129 else
12130 if test -n "$ac_ct_CC"; then
12131 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12132 else
12133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12134 for as_dir in $PATH
12136 IFS=$as_save_IFS
12137 test -z "$as_dir" && as_dir=.
12138 for ac_exec_ext in '' $ac_executable_extensions; do
12139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12140 ac_cv_prog_ac_ct_CC="gcc"
12141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12142 break 2
12144 done
12145 done
12146 IFS=$as_save_IFS
12150 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12151 if test -n "$ac_ct_CC"; then
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12153 $as_echo "$ac_ct_CC" >&6; }
12154 else
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12156 $as_echo "no" >&6; }
12159 if test "x$ac_ct_CC" = x; then
12160 CC=""
12161 else
12162 case $cross_compiling:$ac_tool_warned in
12163 yes:)
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12166 ac_tool_warned=yes ;;
12167 esac
12168 CC=$ac_ct_CC
12170 else
12171 CC="$ac_cv_prog_CC"
12174 if test -z "$CC"; then
12175 if test -n "$ac_tool_prefix"; then
12176 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12177 set dummy ${ac_tool_prefix}cc; ac_word=$2
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12179 $as_echo_n "checking for $ac_word... " >&6; }
12180 if test "${ac_cv_prog_CC+set}" = set; then :
12181 $as_echo_n "(cached) " >&6
12182 else
12183 if test -n "$CC"; then
12184 ac_cv_prog_CC="$CC" # Let the user override the test.
12185 else
12186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187 for as_dir in $PATH
12189 IFS=$as_save_IFS
12190 test -z "$as_dir" && as_dir=.
12191 for ac_exec_ext in '' $ac_executable_extensions; do
12192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12193 ac_cv_prog_CC="${ac_tool_prefix}cc"
12194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12195 break 2
12197 done
12198 done
12199 IFS=$as_save_IFS
12203 CC=$ac_cv_prog_CC
12204 if test -n "$CC"; then
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12206 $as_echo "$CC" >&6; }
12207 else
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209 $as_echo "no" >&6; }
12215 if test -z "$CC"; then
12216 # Extract the first word of "cc", so it can be a program name with args.
12217 set dummy cc; ac_word=$2
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12219 $as_echo_n "checking for $ac_word... " >&6; }
12220 if test "${ac_cv_prog_CC+set}" = set; then :
12221 $as_echo_n "(cached) " >&6
12222 else
12223 if test -n "$CC"; then
12224 ac_cv_prog_CC="$CC" # Let the user override the test.
12225 else
12226 ac_prog_rejected=no
12227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12228 for as_dir in $PATH
12230 IFS=$as_save_IFS
12231 test -z "$as_dir" && as_dir=.
12232 for ac_exec_ext in '' $ac_executable_extensions; do
12233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12234 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12235 ac_prog_rejected=yes
12236 continue
12238 ac_cv_prog_CC="cc"
12239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12240 break 2
12242 done
12243 done
12244 IFS=$as_save_IFS
12246 if test $ac_prog_rejected = yes; then
12247 # We found a bogon in the path, so make sure we never use it.
12248 set dummy $ac_cv_prog_CC
12249 shift
12250 if test $# != 0; then
12251 # We chose a different compiler from the bogus one.
12252 # However, it has the same basename, so the bogon will be chosen
12253 # first if we set CC to just the basename; use the full file name.
12254 shift
12255 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12260 CC=$ac_cv_prog_CC
12261 if test -n "$CC"; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12263 $as_echo "$CC" >&6; }
12264 else
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12266 $as_echo "no" >&6; }
12271 if test -z "$CC"; then
12272 if test -n "$ac_tool_prefix"; then
12273 for ac_prog in cl.exe
12275 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12276 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12278 $as_echo_n "checking for $ac_word... " >&6; }
12279 if test "${ac_cv_prog_CC+set}" = set; then :
12280 $as_echo_n "(cached) " >&6
12281 else
12282 if test -n "$CC"; then
12283 ac_cv_prog_CC="$CC" # Let the user override the test.
12284 else
12285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286 for as_dir in $PATH
12288 IFS=$as_save_IFS
12289 test -z "$as_dir" && as_dir=.
12290 for ac_exec_ext in '' $ac_executable_extensions; do
12291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12292 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12294 break 2
12296 done
12297 done
12298 IFS=$as_save_IFS
12302 CC=$ac_cv_prog_CC
12303 if test -n "$CC"; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12305 $as_echo "$CC" >&6; }
12306 else
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12308 $as_echo "no" >&6; }
12312 test -n "$CC" && break
12313 done
12315 if test -z "$CC"; then
12316 ac_ct_CC=$CC
12317 for ac_prog in cl.exe
12319 # Extract the first word of "$ac_prog", so it can be a program name with args.
12320 set dummy $ac_prog; ac_word=$2
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12322 $as_echo_n "checking for $ac_word... " >&6; }
12323 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12324 $as_echo_n "(cached) " >&6
12325 else
12326 if test -n "$ac_ct_CC"; then
12327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12328 else
12329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12330 for as_dir in $PATH
12332 IFS=$as_save_IFS
12333 test -z "$as_dir" && as_dir=.
12334 for ac_exec_ext in '' $ac_executable_extensions; do
12335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12336 ac_cv_prog_ac_ct_CC="$ac_prog"
12337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12338 break 2
12340 done
12341 done
12342 IFS=$as_save_IFS
12346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12347 if test -n "$ac_ct_CC"; then
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12349 $as_echo "$ac_ct_CC" >&6; }
12350 else
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12352 $as_echo "no" >&6; }
12356 test -n "$ac_ct_CC" && break
12357 done
12359 if test "x$ac_ct_CC" = x; then
12360 CC=""
12361 else
12362 case $cross_compiling:$ac_tool_warned in
12363 yes:)
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12366 ac_tool_warned=yes ;;
12367 esac
12368 CC=$ac_ct_CC
12375 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12376 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12377 as_fn_error "no acceptable C compiler found in \$PATH
12378 See \`config.log' for more details." "$LINENO" 5; }
12380 # Provide some information about the compiler.
12381 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12382 set X $ac_compile
12383 ac_compiler=$2
12384 for ac_option in --version -v -V -qversion; do
12385 { { ac_try="$ac_compiler $ac_option >&5"
12386 case "(($ac_try" in
12387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388 *) ac_try_echo=$ac_try;;
12389 esac
12390 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12391 $as_echo "$ac_try_echo"; } >&5
12392 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12393 ac_status=$?
12394 if test -s conftest.err; then
12395 sed '10a\
12396 ... rest of stderr output deleted ...
12397 10q' conftest.err >conftest.er1
12398 cat conftest.er1 >&5
12399 rm -f conftest.er1 conftest.err
12401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12402 test $ac_status = 0; }
12403 done
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12406 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12407 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
12408 $as_echo_n "(cached) " >&6
12409 else
12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411 /* end confdefs.h. */
12414 main ()
12416 #ifndef __GNUC__
12417 choke me
12418 #endif
12421 return 0;
12423 _ACEOF
12424 if ac_fn_c_try_compile "$LINENO"; then :
12425 ac_compiler_gnu=yes
12426 else
12427 ac_compiler_gnu=no
12429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12430 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12434 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12435 if test $ac_compiler_gnu = yes; then
12436 GCC=yes
12437 else
12438 GCC=
12440 ac_test_CFLAGS=${CFLAGS+set}
12441 ac_save_CFLAGS=$CFLAGS
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12443 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12444 if test "${ac_cv_prog_cc_g+set}" = set; then :
12445 $as_echo_n "(cached) " >&6
12446 else
12447 ac_save_c_werror_flag=$ac_c_werror_flag
12448 ac_c_werror_flag=yes
12449 ac_cv_prog_cc_g=no
12450 CFLAGS="-g"
12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452 /* end confdefs.h. */
12455 main ()
12459 return 0;
12461 _ACEOF
12462 if ac_fn_c_try_compile "$LINENO"; then :
12463 ac_cv_prog_cc_g=yes
12464 else
12465 CFLAGS=""
12466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467 /* end confdefs.h. */
12470 main ()
12474 return 0;
12476 _ACEOF
12477 if ac_fn_c_try_compile "$LINENO"; then :
12479 else
12480 ac_c_werror_flag=$ac_save_c_werror_flag
12481 CFLAGS="-g"
12482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12483 /* end confdefs.h. */
12486 main ()
12490 return 0;
12492 _ACEOF
12493 if ac_fn_c_try_compile "$LINENO"; then :
12494 ac_cv_prog_cc_g=yes
12496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12501 ac_c_werror_flag=$ac_save_c_werror_flag
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12504 $as_echo "$ac_cv_prog_cc_g" >&6; }
12505 if test "$ac_test_CFLAGS" = set; then
12506 CFLAGS=$ac_save_CFLAGS
12507 elif test $ac_cv_prog_cc_g = yes; then
12508 if test "$GCC" = yes; then
12509 CFLAGS="-g -O2"
12510 else
12511 CFLAGS="-g"
12513 else
12514 if test "$GCC" = yes; then
12515 CFLAGS="-O2"
12516 else
12517 CFLAGS=
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12521 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12522 if test "${ac_cv_prog_cc_c89+set}" = set; then :
12523 $as_echo_n "(cached) " >&6
12524 else
12525 ac_cv_prog_cc_c89=no
12526 ac_save_CC=$CC
12527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12528 /* end confdefs.h. */
12529 #include <stdarg.h>
12530 #include <stdio.h>
12531 #include <sys/types.h>
12532 #include <sys/stat.h>
12533 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12534 struct buf { int x; };
12535 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12536 static char *e (p, i)
12537 char **p;
12538 int i;
12540 return p[i];
12542 static char *f (char * (*g) (char **, int), char **p, ...)
12544 char *s;
12545 va_list v;
12546 va_start (v,p);
12547 s = g (p, va_arg (v,int));
12548 va_end (v);
12549 return s;
12552 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12553 function prototypes and stuff, but not '\xHH' hex character constants.
12554 These don't provoke an error unfortunately, instead are silently treated
12555 as 'x'. The following induces an error, until -std is added to get
12556 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12557 array size at least. It's necessary to write '\x00'==0 to get something
12558 that's true only with -std. */
12559 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12561 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12562 inside strings and character constants. */
12563 #define FOO(x) 'x'
12564 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12566 int test (int i, double x);
12567 struct s1 {int (*f) (int a);};
12568 struct s2 {int (*f) (double a);};
12569 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12570 int argc;
12571 char **argv;
12573 main ()
12575 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12577 return 0;
12579 _ACEOF
12580 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12581 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12583 CC="$ac_save_CC $ac_arg"
12584 if ac_fn_c_try_compile "$LINENO"; then :
12585 ac_cv_prog_cc_c89=$ac_arg
12587 rm -f core conftest.err conftest.$ac_objext
12588 test "x$ac_cv_prog_cc_c89" != "xno" && break
12589 done
12590 rm -f conftest.$ac_ext
12591 CC=$ac_save_CC
12594 # AC_CACHE_VAL
12595 case "x$ac_cv_prog_cc_c89" in
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12598 $as_echo "none needed" >&6; } ;;
12599 xno)
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12601 $as_echo "unsupported" >&6; } ;;
12603 CC="$CC $ac_cv_prog_cc_c89"
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12605 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12606 esac
12607 if test "x$ac_cv_prog_cc_c89" != xno; then :
12611 ac_ext=c
12612 ac_cpp='$CPP $CPPFLAGS'
12613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12617 depcc="$CC" am_compiler_list=
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12620 $as_echo_n "checking dependency style of $depcc... " >&6; }
12621 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
12622 $as_echo_n "(cached) " >&6
12623 else
12624 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12625 # We make a subdir and do the tests there. Otherwise we can end up
12626 # making bogus files that we don't know about and never remove. For
12627 # instance it was reported that on HP-UX the gcc test will end up
12628 # making a dummy file named `D' -- because `-MD' means `put the output
12629 # in D'.
12630 mkdir conftest.dir
12631 # Copy depcomp to subdir because otherwise we won't find it if we're
12632 # using a relative directory.
12633 cp "$am_depcomp" conftest.dir
12634 cd conftest.dir
12635 # We will build objects and dependencies in a subdirectory because
12636 # it helps to detect inapplicable dependency modes. For instance
12637 # both Tru64's cc and ICC support -MD to output dependencies as a
12638 # side effect of compilation, but ICC will put the dependencies in
12639 # the current directory while Tru64 will put them in the object
12640 # directory.
12641 mkdir sub
12643 am_cv_CC_dependencies_compiler_type=none
12644 if test "$am_compiler_list" = ""; then
12645 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12647 am__universal=false
12648 case " $depcc " in #(
12649 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12650 esac
12652 for depmode in $am_compiler_list; do
12653 # Setup a source with many dependencies, because some compilers
12654 # like to wrap large dependency lists on column 80 (with \), and
12655 # we should not choose a depcomp mode which is confused by this.
12657 # We need to recreate these files for each test, as the compiler may
12658 # overwrite some of them when testing with obscure command lines.
12659 # This happens at least with the AIX C compiler.
12660 : > sub/conftest.c
12661 for i in 1 2 3 4 5 6; do
12662 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12663 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12664 # Solaris 8's {/usr,}/bin/sh.
12665 touch sub/conftst$i.h
12666 done
12667 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12669 # We check with `-c' and `-o' for the sake of the "dashmstdout"
12670 # mode. It turns out that the SunPro C++ compiler does not properly
12671 # handle `-M -o', and we need to detect this. Also, some Intel
12672 # versions had trouble with output in subdirs
12673 am__obj=sub/conftest.${OBJEXT-o}
12674 am__minus_obj="-o $am__obj"
12675 case $depmode in
12676 gcc)
12677 # This depmode causes a compiler race in universal mode.
12678 test "$am__universal" = false || continue
12680 nosideeffect)
12681 # after this tag, mechanisms are not by side-effect, so they'll
12682 # only be used when explicitly requested
12683 if test "x$enable_dependency_tracking" = xyes; then
12684 continue
12685 else
12686 break
12689 msvisualcpp | msvcmsys)
12690 # This compiler won't grok `-c -o', but also, the minuso test has
12691 # not run yet. These depmodes are late enough in the game, and
12692 # so weak that their functioning should not be impacted.
12693 am__obj=conftest.${OBJEXT-o}
12694 am__minus_obj=
12696 none) break ;;
12697 esac
12698 if depmode=$depmode \
12699 source=sub/conftest.c object=$am__obj \
12700 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12701 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12702 >/dev/null 2>conftest.err &&
12703 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12704 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12705 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12706 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12707 # icc doesn't choke on unknown options, it will just issue warnings
12708 # or remarks (even with -Werror). So we grep stderr for any message
12709 # that says an option was ignored or not supported.
12710 # When given -MP, icc 7.0 and 7.1 complain thusly:
12711 # icc: Command line warning: ignoring option '-M'; no argument required
12712 # The diagnosis changed in icc 8.0:
12713 # icc: Command line remark: option '-MP' not supported
12714 if (grep 'ignoring option' conftest.err ||
12715 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12716 am_cv_CC_dependencies_compiler_type=$depmode
12717 break
12720 done
12722 cd ..
12723 rm -rf conftest.dir
12724 else
12725 am_cv_CC_dependencies_compiler_type=none
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12730 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12731 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12734 test "x$enable_dependency_tracking" != xno \
12735 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12736 am__fastdepCC_TRUE=
12737 am__fastdepCC_FALSE='#'
12738 else
12739 am__fastdepCC_TRUE='#'
12740 am__fastdepCC_FALSE=
12744 if test "x$CC" != xcc; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12746 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12747 else
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12749 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12751 set dummy $CC; ac_cc=`$as_echo "$2" |
12752 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12753 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
12754 $as_echo_n "(cached) " >&6
12755 else
12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12760 main ()
12764 return 0;
12766 _ACEOF
12767 # Make sure it works both with $CC and with simple cc.
12768 # We do the test twice because some compilers refuse to overwrite an
12769 # existing .o file with -o, though they will create one.
12770 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12771 rm -f conftest2.*
12772 if { { case "(($ac_try" in
12773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774 *) ac_try_echo=$ac_try;;
12775 esac
12776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12777 $as_echo "$ac_try_echo"; } >&5
12778 (eval "$ac_try") 2>&5
12779 ac_status=$?
12780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12781 test $ac_status = 0; } &&
12782 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12784 *) ac_try_echo=$ac_try;;
12785 esac
12786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12787 $as_echo "$ac_try_echo"; } >&5
12788 (eval "$ac_try") 2>&5
12789 ac_status=$?
12790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12791 test $ac_status = 0; };
12792 then
12793 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12794 if test "x$CC" != xcc; then
12795 # Test first that cc exists at all.
12796 if { ac_try='cc -c conftest.$ac_ext >&5'
12797 { { case "(($ac_try" in
12798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12799 *) ac_try_echo=$ac_try;;
12800 esac
12801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12802 $as_echo "$ac_try_echo"; } >&5
12803 (eval "$ac_try") 2>&5
12804 ac_status=$?
12805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12806 test $ac_status = 0; }; }; then
12807 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12808 rm -f conftest2.*
12809 if { { case "(($ac_try" in
12810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12812 esac
12813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12814 $as_echo "$ac_try_echo"; } >&5
12815 (eval "$ac_try") 2>&5
12816 ac_status=$?
12817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12818 test $ac_status = 0; } &&
12819 test -f conftest2.$ac_objext && { { case "(($ac_try" in
12820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821 *) ac_try_echo=$ac_try;;
12822 esac
12823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12824 $as_echo "$ac_try_echo"; } >&5
12825 (eval "$ac_try") 2>&5
12826 ac_status=$?
12827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12828 test $ac_status = 0; };
12829 then
12830 # cc works too.
12832 else
12833 # cc exists but doesn't like -o.
12834 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12838 else
12839 eval ac_cv_prog_cc_${ac_cc}_c_o=no
12841 rm -f core conftest*
12844 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12846 $as_echo "yes" >&6; }
12847 else
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12849 $as_echo "no" >&6; }
12851 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12855 # FIXME: we rely on the cache variable name because
12856 # there is no other way.
12857 set dummy $CC
12858 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12859 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12860 if test "$am_t" != yes; then
12861 # Losing compiler, so override with the script.
12862 # FIXME: It is wrong to rewrite CC.
12863 # But if we don't then we get into trouble of one sort or another.
12864 # A longer-term fix would be to have automake use am__CC in this case,
12865 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12866 CC="$am_aux_dir/compile $CC"
12870 ac_ext=c
12871 ac_cpp='$CPP $CPPFLAGS'
12872 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12873 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12874 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
12876 $as_echo_n "checking how to run the C preprocessor... " >&6; }
12877 # On Suns, sometimes $CPP names a directory.
12878 if test -n "$CPP" && test -d "$CPP"; then
12879 CPP=
12881 if test -z "$CPP"; then
12882 if test "${ac_cv_prog_CPP+set}" = set; then :
12883 $as_echo_n "(cached) " >&6
12884 else
12885 # Double quotes because CPP needs to be expanded
12886 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12888 ac_preproc_ok=false
12889 for ac_c_preproc_warn_flag in '' yes
12891 # Use a header file that comes with gcc, so configuring glibc
12892 # with a fresh cross-compiler works.
12893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12894 # <limits.h> exists even on freestanding compilers.
12895 # On the NeXT, cc -E runs the code through the compiler's parser,
12896 # not just through cpp. "Syntax error" is here to catch this case.
12897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12898 /* end confdefs.h. */
12899 #ifdef __STDC__
12900 # include <limits.h>
12901 #else
12902 # include <assert.h>
12903 #endif
12904 Syntax error
12905 _ACEOF
12906 if ac_fn_c_try_cpp "$LINENO"; then :
12908 else
12909 # Broken: fails on valid input.
12910 continue
12912 rm -f conftest.err conftest.$ac_ext
12914 # OK, works on sane cases. Now check whether nonexistent headers
12915 # can be detected and how.
12916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12917 /* end confdefs.h. */
12918 #include <ac_nonexistent.h>
12919 _ACEOF
12920 if ac_fn_c_try_cpp "$LINENO"; then :
12921 # Broken: success on invalid input.
12922 continue
12923 else
12924 # Passes both tests.
12925 ac_preproc_ok=:
12926 break
12928 rm -f conftest.err conftest.$ac_ext
12930 done
12931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12932 rm -f conftest.err conftest.$ac_ext
12933 if $ac_preproc_ok; then :
12934 break
12937 done
12938 ac_cv_prog_CPP=$CPP
12941 CPP=$ac_cv_prog_CPP
12942 else
12943 ac_cv_prog_CPP=$CPP
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
12946 $as_echo "$CPP" >&6; }
12947 ac_preproc_ok=false
12948 for ac_c_preproc_warn_flag in '' yes
12950 # Use a header file that comes with gcc, so configuring glibc
12951 # with a fresh cross-compiler works.
12952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12953 # <limits.h> exists even on freestanding compilers.
12954 # On the NeXT, cc -E runs the code through the compiler's parser,
12955 # not just through cpp. "Syntax error" is here to catch this case.
12956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h. */
12958 #ifdef __STDC__
12959 # include <limits.h>
12960 #else
12961 # include <assert.h>
12962 #endif
12963 Syntax error
12964 _ACEOF
12965 if ac_fn_c_try_cpp "$LINENO"; then :
12967 else
12968 # Broken: fails on valid input.
12969 continue
12971 rm -f conftest.err conftest.$ac_ext
12973 # OK, works on sane cases. Now check whether nonexistent headers
12974 # can be detected and how.
12975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976 /* end confdefs.h. */
12977 #include <ac_nonexistent.h>
12978 _ACEOF
12979 if ac_fn_c_try_cpp "$LINENO"; then :
12980 # Broken: success on invalid input.
12981 continue
12982 else
12983 # Passes both tests.
12984 ac_preproc_ok=:
12985 break
12987 rm -f conftest.err conftest.$ac_ext
12989 done
12990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12991 rm -f conftest.err conftest.$ac_ext
12992 if $ac_preproc_ok; then :
12994 else
12995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12996 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12997 as_fn_error "C preprocessor \"$CPP\" fails sanity check
12998 See \`config.log' for more details." "$LINENO" 5; }
13001 ac_ext=c
13002 ac_cpp='$CPP $CPPFLAGS'
13003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13007 ac_ext=cpp
13008 ac_cpp='$CXXCPP $CPPFLAGS'
13009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13012 if test -z "$CXX"; then
13013 if test -n "$CCC"; then
13014 CXX=$CCC
13015 else
13016 if test -n "$ac_tool_prefix"; then
13017 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13022 $as_echo_n "checking for $ac_word... " >&6; }
13023 if test "${ac_cv_prog_CXX+set}" = set; then :
13024 $as_echo_n "(cached) " >&6
13025 else
13026 if test -n "$CXX"; then
13027 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13028 else
13029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13030 for as_dir in $PATH
13032 IFS=$as_save_IFS
13033 test -z "$as_dir" && as_dir=.
13034 for ac_exec_ext in '' $ac_executable_extensions; do
13035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13036 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13038 break 2
13040 done
13041 done
13042 IFS=$as_save_IFS
13046 CXX=$ac_cv_prog_CXX
13047 if test -n "$CXX"; then
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13049 $as_echo "$CXX" >&6; }
13050 else
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13052 $as_echo "no" >&6; }
13056 test -n "$CXX" && break
13057 done
13059 if test -z "$CXX"; then
13060 ac_ct_CXX=$CXX
13061 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13063 # Extract the first word of "$ac_prog", so it can be a program name with args.
13064 set dummy $ac_prog; ac_word=$2
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13066 $as_echo_n "checking for $ac_word... " >&6; }
13067 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13068 $as_echo_n "(cached) " >&6
13069 else
13070 if test -n "$ac_ct_CXX"; then
13071 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13072 else
13073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13074 for as_dir in $PATH
13076 IFS=$as_save_IFS
13077 test -z "$as_dir" && as_dir=.
13078 for ac_exec_ext in '' $ac_executable_extensions; do
13079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13080 ac_cv_prog_ac_ct_CXX="$ac_prog"
13081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13082 break 2
13084 done
13085 done
13086 IFS=$as_save_IFS
13090 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13091 if test -n "$ac_ct_CXX"; then
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13093 $as_echo "$ac_ct_CXX" >&6; }
13094 else
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13096 $as_echo "no" >&6; }
13100 test -n "$ac_ct_CXX" && break
13101 done
13103 if test "x$ac_ct_CXX" = x; then
13104 CXX="g++"
13105 else
13106 case $cross_compiling:$ac_tool_warned in
13107 yes:)
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13110 ac_tool_warned=yes ;;
13111 esac
13112 CXX=$ac_ct_CXX
13118 # Provide some information about the compiler.
13119 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13120 set X $ac_compile
13121 ac_compiler=$2
13122 for ac_option in --version -v -V -qversion; do
13123 { { ac_try="$ac_compiler $ac_option >&5"
13124 case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13127 esac
13128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13129 $as_echo "$ac_try_echo"; } >&5
13130 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13131 ac_status=$?
13132 if test -s conftest.err; then
13133 sed '10a\
13134 ... rest of stderr output deleted ...
13135 10q' conftest.err >conftest.er1
13136 cat conftest.er1 >&5
13137 rm -f conftest.er1 conftest.err
13139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13140 test $ac_status = 0; }
13141 done
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13144 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13145 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13146 $as_echo_n "(cached) " >&6
13147 else
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149 /* end confdefs.h. */
13152 main ()
13154 #ifndef __GNUC__
13155 choke me
13156 #endif
13159 return 0;
13161 _ACEOF
13162 if ac_fn_cxx_try_compile "$LINENO"; then :
13163 ac_compiler_gnu=yes
13164 else
13165 ac_compiler_gnu=no
13167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13168 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13172 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13173 if test $ac_compiler_gnu = yes; then
13174 GXX=yes
13175 else
13176 GXX=
13178 ac_test_CXXFLAGS=${CXXFLAGS+set}
13179 ac_save_CXXFLAGS=$CXXFLAGS
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13181 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13182 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13183 $as_echo_n "(cached) " >&6
13184 else
13185 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13186 ac_cxx_werror_flag=yes
13187 ac_cv_prog_cxx_g=no
13188 CXXFLAGS="-g"
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13193 main ()
13197 return 0;
13199 _ACEOF
13200 if ac_fn_cxx_try_compile "$LINENO"; then :
13201 ac_cv_prog_cxx_g=yes
13202 else
13203 CXXFLAGS=""
13204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13205 /* end confdefs.h. */
13208 main ()
13212 return 0;
13214 _ACEOF
13215 if ac_fn_cxx_try_compile "$LINENO"; then :
13217 else
13218 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13219 CXXFLAGS="-g"
13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h. */
13224 main ()
13228 return 0;
13230 _ACEOF
13231 if ac_fn_cxx_try_compile "$LINENO"; then :
13232 ac_cv_prog_cxx_g=yes
13234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13239 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13242 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13243 if test "$ac_test_CXXFLAGS" = set; then
13244 CXXFLAGS=$ac_save_CXXFLAGS
13245 elif test $ac_cv_prog_cxx_g = yes; then
13246 if test "$GXX" = yes; then
13247 CXXFLAGS="-g -O2"
13248 else
13249 CXXFLAGS="-g"
13251 else
13252 if test "$GXX" = yes; then
13253 CXXFLAGS="-O2"
13254 else
13255 CXXFLAGS=
13258 ac_ext=c
13259 ac_cpp='$CPP $CPPFLAGS'
13260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13264 depcc="$CXX" am_compiler_list=
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13267 $as_echo_n "checking dependency style of $depcc... " >&6; }
13268 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13269 $as_echo_n "(cached) " >&6
13270 else
13271 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13272 # We make a subdir and do the tests there. Otherwise we can end up
13273 # making bogus files that we don't know about and never remove. For
13274 # instance it was reported that on HP-UX the gcc test will end up
13275 # making a dummy file named `D' -- because `-MD' means `put the output
13276 # in D'.
13277 mkdir conftest.dir
13278 # Copy depcomp to subdir because otherwise we won't find it if we're
13279 # using a relative directory.
13280 cp "$am_depcomp" conftest.dir
13281 cd conftest.dir
13282 # We will build objects and dependencies in a subdirectory because
13283 # it helps to detect inapplicable dependency modes. For instance
13284 # both Tru64's cc and ICC support -MD to output dependencies as a
13285 # side effect of compilation, but ICC will put the dependencies in
13286 # the current directory while Tru64 will put them in the object
13287 # directory.
13288 mkdir sub
13290 am_cv_CXX_dependencies_compiler_type=none
13291 if test "$am_compiler_list" = ""; then
13292 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13294 am__universal=false
13295 case " $depcc " in #(
13296 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13297 esac
13299 for depmode in $am_compiler_list; do
13300 # Setup a source with many dependencies, because some compilers
13301 # like to wrap large dependency lists on column 80 (with \), and
13302 # we should not choose a depcomp mode which is confused by this.
13304 # We need to recreate these files for each test, as the compiler may
13305 # overwrite some of them when testing with obscure command lines.
13306 # This happens at least with the AIX C compiler.
13307 : > sub/conftest.c
13308 for i in 1 2 3 4 5 6; do
13309 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13310 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13311 # Solaris 8's {/usr,}/bin/sh.
13312 touch sub/conftst$i.h
13313 done
13314 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13316 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13317 # mode. It turns out that the SunPro C++ compiler does not properly
13318 # handle `-M -o', and we need to detect this. Also, some Intel
13319 # versions had trouble with output in subdirs
13320 am__obj=sub/conftest.${OBJEXT-o}
13321 am__minus_obj="-o $am__obj"
13322 case $depmode in
13323 gcc)
13324 # This depmode causes a compiler race in universal mode.
13325 test "$am__universal" = false || continue
13327 nosideeffect)
13328 # after this tag, mechanisms are not by side-effect, so they'll
13329 # only be used when explicitly requested
13330 if test "x$enable_dependency_tracking" = xyes; then
13331 continue
13332 else
13333 break
13336 msvisualcpp | msvcmsys)
13337 # This compiler won't grok `-c -o', but also, the minuso test has
13338 # not run yet. These depmodes are late enough in the game, and
13339 # so weak that their functioning should not be impacted.
13340 am__obj=conftest.${OBJEXT-o}
13341 am__minus_obj=
13343 none) break ;;
13344 esac
13345 if depmode=$depmode \
13346 source=sub/conftest.c object=$am__obj \
13347 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13348 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13349 >/dev/null 2>conftest.err &&
13350 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13351 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13352 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13353 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13354 # icc doesn't choke on unknown options, it will just issue warnings
13355 # or remarks (even with -Werror). So we grep stderr for any message
13356 # that says an option was ignored or not supported.
13357 # When given -MP, icc 7.0 and 7.1 complain thusly:
13358 # icc: Command line warning: ignoring option '-M'; no argument required
13359 # The diagnosis changed in icc 8.0:
13360 # icc: Command line remark: option '-MP' not supported
13361 if (grep 'ignoring option' conftest.err ||
13362 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13363 am_cv_CXX_dependencies_compiler_type=$depmode
13364 break
13367 done
13369 cd ..
13370 rm -rf conftest.dir
13371 else
13372 am_cv_CXX_dependencies_compiler_type=none
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13377 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13378 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13381 test "x$enable_dependency_tracking" != xno \
13382 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13383 am__fastdepCXX_TRUE=
13384 am__fastdepCXX_FALSE='#'
13385 else
13386 am__fastdepCXX_TRUE='#'
13387 am__fastdepCXX_FALSE=
13392 ac_ext=cpp
13393 ac_cpp='$CXXCPP $CPPFLAGS'
13394 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13395 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13396 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13397 if test -z "$CXX"; then
13398 if test -n "$CCC"; then
13399 CXX=$CCC
13400 else
13401 if test -n "$ac_tool_prefix"; then
13402 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13404 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13407 $as_echo_n "checking for $ac_word... " >&6; }
13408 if test "${ac_cv_prog_CXX+set}" = set; then :
13409 $as_echo_n "(cached) " >&6
13410 else
13411 if test -n "$CXX"; then
13412 ac_cv_prog_CXX="$CXX" # Let the user override the test.
13413 else
13414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13415 for as_dir in $PATH
13417 IFS=$as_save_IFS
13418 test -z "$as_dir" && as_dir=.
13419 for ac_exec_ext in '' $ac_executable_extensions; do
13420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13421 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13423 break 2
13425 done
13426 done
13427 IFS=$as_save_IFS
13431 CXX=$ac_cv_prog_CXX
13432 if test -n "$CXX"; then
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13434 $as_echo "$CXX" >&6; }
13435 else
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13437 $as_echo "no" >&6; }
13441 test -n "$CXX" && break
13442 done
13444 if test -z "$CXX"; then
13445 ac_ct_CXX=$CXX
13446 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13448 # Extract the first word of "$ac_prog", so it can be a program name with args.
13449 set dummy $ac_prog; ac_word=$2
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13451 $as_echo_n "checking for $ac_word... " >&6; }
13452 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13453 $as_echo_n "(cached) " >&6
13454 else
13455 if test -n "$ac_ct_CXX"; then
13456 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13457 else
13458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13459 for as_dir in $PATH
13461 IFS=$as_save_IFS
13462 test -z "$as_dir" && as_dir=.
13463 for ac_exec_ext in '' $ac_executable_extensions; do
13464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13465 ac_cv_prog_ac_ct_CXX="$ac_prog"
13466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13467 break 2
13469 done
13470 done
13471 IFS=$as_save_IFS
13475 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13476 if test -n "$ac_ct_CXX"; then
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13478 $as_echo "$ac_ct_CXX" >&6; }
13479 else
13480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13481 $as_echo "no" >&6; }
13485 test -n "$ac_ct_CXX" && break
13486 done
13488 if test "x$ac_ct_CXX" = x; then
13489 CXX="g++"
13490 else
13491 case $cross_compiling:$ac_tool_warned in
13492 yes:)
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13495 ac_tool_warned=yes ;;
13496 esac
13497 CXX=$ac_ct_CXX
13503 # Provide some information about the compiler.
13504 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13505 set X $ac_compile
13506 ac_compiler=$2
13507 for ac_option in --version -v -V -qversion; do
13508 { { ac_try="$ac_compiler $ac_option >&5"
13509 case "(($ac_try" in
13510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511 *) ac_try_echo=$ac_try;;
13512 esac
13513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13514 $as_echo "$ac_try_echo"; } >&5
13515 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13516 ac_status=$?
13517 if test -s conftest.err; then
13518 sed '10a\
13519 ... rest of stderr output deleted ...
13520 10q' conftest.err >conftest.er1
13521 cat conftest.er1 >&5
13522 rm -f conftest.er1 conftest.err
13524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13525 test $ac_status = 0; }
13526 done
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13529 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13530 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13531 $as_echo_n "(cached) " >&6
13532 else
13533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13534 /* end confdefs.h. */
13537 main ()
13539 #ifndef __GNUC__
13540 choke me
13541 #endif
13544 return 0;
13546 _ACEOF
13547 if ac_fn_cxx_try_compile "$LINENO"; then :
13548 ac_compiler_gnu=yes
13549 else
13550 ac_compiler_gnu=no
13552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13553 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13557 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13558 if test $ac_compiler_gnu = yes; then
13559 GXX=yes
13560 else
13561 GXX=
13563 ac_test_CXXFLAGS=${CXXFLAGS+set}
13564 ac_save_CXXFLAGS=$CXXFLAGS
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13566 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13567 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13568 $as_echo_n "(cached) " >&6
13569 else
13570 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13571 ac_cxx_werror_flag=yes
13572 ac_cv_prog_cxx_g=no
13573 CXXFLAGS="-g"
13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13578 main ()
13582 return 0;
13584 _ACEOF
13585 if ac_fn_cxx_try_compile "$LINENO"; then :
13586 ac_cv_prog_cxx_g=yes
13587 else
13588 CXXFLAGS=""
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13593 main ()
13597 return 0;
13599 _ACEOF
13600 if ac_fn_cxx_try_compile "$LINENO"; then :
13602 else
13603 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13604 CXXFLAGS="-g"
13605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13606 /* end confdefs.h. */
13609 main ()
13613 return 0;
13615 _ACEOF
13616 if ac_fn_cxx_try_compile "$LINENO"; then :
13617 ac_cv_prog_cxx_g=yes
13619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13624 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13627 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13628 if test "$ac_test_CXXFLAGS" = set; then
13629 CXXFLAGS=$ac_save_CXXFLAGS
13630 elif test $ac_cv_prog_cxx_g = yes; then
13631 if test "$GXX" = yes; then
13632 CXXFLAGS="-g -O2"
13633 else
13634 CXXFLAGS="-g"
13636 else
13637 if test "$GXX" = yes; then
13638 CXXFLAGS="-O2"
13639 else
13640 CXXFLAGS=
13643 ac_ext=c
13644 ac_cpp='$CPP $CPPFLAGS'
13645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13649 depcc="$CXX" am_compiler_list=
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13652 $as_echo_n "checking dependency style of $depcc... " >&6; }
13653 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13654 $as_echo_n "(cached) " >&6
13655 else
13656 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13657 # We make a subdir and do the tests there. Otherwise we can end up
13658 # making bogus files that we don't know about and never remove. For
13659 # instance it was reported that on HP-UX the gcc test will end up
13660 # making a dummy file named `D' -- because `-MD' means `put the output
13661 # in D'.
13662 mkdir conftest.dir
13663 # Copy depcomp to subdir because otherwise we won't find it if we're
13664 # using a relative directory.
13665 cp "$am_depcomp" conftest.dir
13666 cd conftest.dir
13667 # We will build objects and dependencies in a subdirectory because
13668 # it helps to detect inapplicable dependency modes. For instance
13669 # both Tru64's cc and ICC support -MD to output dependencies as a
13670 # side effect of compilation, but ICC will put the dependencies in
13671 # the current directory while Tru64 will put them in the object
13672 # directory.
13673 mkdir sub
13675 am_cv_CXX_dependencies_compiler_type=none
13676 if test "$am_compiler_list" = ""; then
13677 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13679 am__universal=false
13680 case " $depcc " in #(
13681 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13682 esac
13684 for depmode in $am_compiler_list; do
13685 # Setup a source with many dependencies, because some compilers
13686 # like to wrap large dependency lists on column 80 (with \), and
13687 # we should not choose a depcomp mode which is confused by this.
13689 # We need to recreate these files for each test, as the compiler may
13690 # overwrite some of them when testing with obscure command lines.
13691 # This happens at least with the AIX C compiler.
13692 : > sub/conftest.c
13693 for i in 1 2 3 4 5 6; do
13694 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13695 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13696 # Solaris 8's {/usr,}/bin/sh.
13697 touch sub/conftst$i.h
13698 done
13699 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13701 # We check with `-c' and `-o' for the sake of the "dashmstdout"
13702 # mode. It turns out that the SunPro C++ compiler does not properly
13703 # handle `-M -o', and we need to detect this. Also, some Intel
13704 # versions had trouble with output in subdirs
13705 am__obj=sub/conftest.${OBJEXT-o}
13706 am__minus_obj="-o $am__obj"
13707 case $depmode in
13708 gcc)
13709 # This depmode causes a compiler race in universal mode.
13710 test "$am__universal" = false || continue
13712 nosideeffect)
13713 # after this tag, mechanisms are not by side-effect, so they'll
13714 # only be used when explicitly requested
13715 if test "x$enable_dependency_tracking" = xyes; then
13716 continue
13717 else
13718 break
13721 msvisualcpp | msvcmsys)
13722 # This compiler won't grok `-c -o', but also, the minuso test has
13723 # not run yet. These depmodes are late enough in the game, and
13724 # so weak that their functioning should not be impacted.
13725 am__obj=conftest.${OBJEXT-o}
13726 am__minus_obj=
13728 none) break ;;
13729 esac
13730 if depmode=$depmode \
13731 source=sub/conftest.c object=$am__obj \
13732 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13733 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13734 >/dev/null 2>conftest.err &&
13735 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13736 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13737 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13738 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13739 # icc doesn't choke on unknown options, it will just issue warnings
13740 # or remarks (even with -Werror). So we grep stderr for any message
13741 # that says an option was ignored or not supported.
13742 # When given -MP, icc 7.0 and 7.1 complain thusly:
13743 # icc: Command line warning: ignoring option '-M'; no argument required
13744 # The diagnosis changed in icc 8.0:
13745 # icc: Command line remark: option '-MP' not supported
13746 if (grep 'ignoring option' conftest.err ||
13747 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13748 am_cv_CXX_dependencies_compiler_type=$depmode
13749 break
13752 done
13754 cd ..
13755 rm -rf conftest.dir
13756 else
13757 am_cv_CXX_dependencies_compiler_type=none
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13762 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13763 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13766 test "x$enable_dependency_tracking" != xno \
13767 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13768 am__fastdepCXX_TRUE=
13769 am__fastdepCXX_FALSE='#'
13770 else
13771 am__fastdepCXX_TRUE='#'
13772 am__fastdepCXX_FALSE=
13776 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13777 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13778 (test "X$CXX" != "Xg++"))) ; then
13779 ac_ext=cpp
13780 ac_cpp='$CXXCPP $CPPFLAGS'
13781 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13782 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13783 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13785 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13786 if test -z "$CXXCPP"; then
13787 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13788 $as_echo_n "(cached) " >&6
13789 else
13790 # Double quotes because CXXCPP needs to be expanded
13791 for CXXCPP in "$CXX -E" "/lib/cpp"
13793 ac_preproc_ok=false
13794 for ac_cxx_preproc_warn_flag in '' yes
13796 # Use a header file that comes with gcc, so configuring glibc
13797 # with a fresh cross-compiler works.
13798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13799 # <limits.h> exists even on freestanding compilers.
13800 # On the NeXT, cc -E runs the code through the compiler's parser,
13801 # not just through cpp. "Syntax error" is here to catch this case.
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13804 #ifdef __STDC__
13805 # include <limits.h>
13806 #else
13807 # include <assert.h>
13808 #endif
13809 Syntax error
13810 _ACEOF
13811 if ac_fn_cxx_try_cpp "$LINENO"; then :
13813 else
13814 # Broken: fails on valid input.
13815 continue
13817 rm -f conftest.err conftest.$ac_ext
13819 # OK, works on sane cases. Now check whether nonexistent headers
13820 # can be detected and how.
13821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13822 /* end confdefs.h. */
13823 #include <ac_nonexistent.h>
13824 _ACEOF
13825 if ac_fn_cxx_try_cpp "$LINENO"; then :
13826 # Broken: success on invalid input.
13827 continue
13828 else
13829 # Passes both tests.
13830 ac_preproc_ok=:
13831 break
13833 rm -f conftest.err conftest.$ac_ext
13835 done
13836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13837 rm -f conftest.err conftest.$ac_ext
13838 if $ac_preproc_ok; then :
13839 break
13842 done
13843 ac_cv_prog_CXXCPP=$CXXCPP
13846 CXXCPP=$ac_cv_prog_CXXCPP
13847 else
13848 ac_cv_prog_CXXCPP=$CXXCPP
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13851 $as_echo "$CXXCPP" >&6; }
13852 ac_preproc_ok=false
13853 for ac_cxx_preproc_warn_flag in '' yes
13855 # Use a header file that comes with gcc, so configuring glibc
13856 # with a fresh cross-compiler works.
13857 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13858 # <limits.h> exists even on freestanding compilers.
13859 # On the NeXT, cc -E runs the code through the compiler's parser,
13860 # not just through cpp. "Syntax error" is here to catch this case.
13861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13862 /* end confdefs.h. */
13863 #ifdef __STDC__
13864 # include <limits.h>
13865 #else
13866 # include <assert.h>
13867 #endif
13868 Syntax error
13869 _ACEOF
13870 if ac_fn_cxx_try_cpp "$LINENO"; then :
13872 else
13873 # Broken: fails on valid input.
13874 continue
13876 rm -f conftest.err conftest.$ac_ext
13878 # OK, works on sane cases. Now check whether nonexistent headers
13879 # can be detected and how.
13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13881 /* end confdefs.h. */
13882 #include <ac_nonexistent.h>
13883 _ACEOF
13884 if ac_fn_cxx_try_cpp "$LINENO"; then :
13885 # Broken: success on invalid input.
13886 continue
13887 else
13888 # Passes both tests.
13889 ac_preproc_ok=:
13890 break
13892 rm -f conftest.err conftest.$ac_ext
13894 done
13895 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13896 rm -f conftest.err conftest.$ac_ext
13897 if $ac_preproc_ok; then :
13899 else
13900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13902 _lt_caught_CXX_error=yes; }
13905 ac_ext=c
13906 ac_cpp='$CPP $CPPFLAGS'
13907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13911 else
13912 _lt_caught_CXX_error=yes
13918 ac_ext=cpp
13919 ac_cpp='$CXXCPP $CPPFLAGS'
13920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13924 archive_cmds_need_lc_CXX=no
13925 allow_undefined_flag_CXX=
13926 always_export_symbols_CXX=no
13927 archive_expsym_cmds_CXX=
13928 compiler_needs_object_CXX=no
13929 export_dynamic_flag_spec_CXX=
13930 hardcode_direct_CXX=no
13931 hardcode_direct_absolute_CXX=no
13932 hardcode_libdir_flag_spec_CXX=
13933 hardcode_libdir_flag_spec_ld_CXX=
13934 hardcode_libdir_separator_CXX=
13935 hardcode_minus_L_CXX=no
13936 hardcode_shlibpath_var_CXX=unsupported
13937 hardcode_automatic_CXX=no
13938 inherit_rpath_CXX=no
13939 module_cmds_CXX=
13940 module_expsym_cmds_CXX=
13941 link_all_deplibs_CXX=unknown
13942 old_archive_cmds_CXX=$old_archive_cmds
13943 no_undefined_flag_CXX=
13944 whole_archive_flag_spec_CXX=
13945 enable_shared_with_static_runtimes_CXX=no
13947 # Source file extension for C++ test sources.
13948 ac_ext=cpp
13950 # Object file extension for compiled C++ test sources.
13951 objext=o
13952 objext_CXX=$objext
13954 # No sense in running all these tests if we already determined that
13955 # the CXX compiler isn't working. Some variables (like enable_shared)
13956 # are currently assumed to apply to all compilers on this platform,
13957 # and will be corrupted by setting them based on a non-working compiler.
13958 if test "$_lt_caught_CXX_error" != yes; then
13959 # Code to be used in simple compile tests
13960 lt_simple_compile_test_code="int some_variable = 0;"
13962 # Code to be used in simple link tests
13963 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13965 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13972 # If no C compiler was specified, use CC.
13973 LTCC=${LTCC-"$CC"}
13975 # If no C compiler flags were specified, use CFLAGS.
13976 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13978 # Allow CC to be a program name with arguments.
13979 compiler=$CC
13982 # save warnings/boilerplate of simple test code
13983 ac_outfile=conftest.$ac_objext
13984 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13985 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13986 _lt_compiler_boilerplate=`cat conftest.err`
13987 $RM conftest*
13989 ac_outfile=conftest.$ac_objext
13990 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13991 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13992 _lt_linker_boilerplate=`cat conftest.err`
13993 $RM -r conftest*
13996 # Allow CC to be a program name with arguments.
13997 lt_save_CC=$CC
13998 lt_save_LD=$LD
13999 lt_save_GCC=$GCC
14000 GCC=$GXX
14001 lt_save_with_gnu_ld=$with_gnu_ld
14002 lt_save_path_LD=$lt_cv_path_LD
14003 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14004 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14005 else
14006 $as_unset lt_cv_prog_gnu_ld
14008 if test -n "${lt_cv_path_LDCXX+set}"; then
14009 lt_cv_path_LD=$lt_cv_path_LDCXX
14010 else
14011 $as_unset lt_cv_path_LD
14013 test -z "${LDCXX+set}" || LD=$LDCXX
14014 CC=${CXX-"c++"}
14015 compiler=$CC
14016 compiler_CXX=$CC
14017 for cc_temp in $compiler""; do
14018 case $cc_temp in
14019 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14020 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14021 \-*) ;;
14022 *) break;;
14023 esac
14024 done
14025 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14028 if test -n "$compiler"; then
14029 # We don't want -fno-exception when compiling C++ code, so set the
14030 # no_builtin_flag separately
14031 if test "$GXX" = yes; then
14032 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14033 else
14034 lt_prog_compiler_no_builtin_flag_CXX=
14037 if test "$GXX" = yes; then
14038 # Set up default GNU C++ configuration
14042 # Check whether --with-gnu-ld was given.
14043 if test "${with_gnu_ld+set}" = set; then :
14044 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14045 else
14046 with_gnu_ld=no
14049 ac_prog=ld
14050 if test "$GCC" = yes; then
14051 # Check if gcc -print-prog-name=ld gives a path.
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14053 $as_echo_n "checking for ld used by $CC... " >&6; }
14054 case $host in
14055 *-*-mingw*)
14056 # gcc leaves a trailing carriage return which upsets mingw
14057 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14059 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14060 esac
14061 case $ac_prog in
14062 # Accept absolute paths.
14063 [\\/]* | ?:[\\/]*)
14064 re_direlt='/[^/][^/]*/\.\./'
14065 # Canonicalize the pathname of ld
14066 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14067 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14068 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14069 done
14070 test -z "$LD" && LD="$ac_prog"
14073 # If it fails, then pretend we aren't using GCC.
14074 ac_prog=ld
14077 # If it is relative, then search for the first ld in PATH.
14078 with_gnu_ld=unknown
14080 esac
14081 elif test "$with_gnu_ld" = yes; then
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14083 $as_echo_n "checking for GNU ld... " >&6; }
14084 else
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14086 $as_echo_n "checking for non-GNU ld... " >&6; }
14088 if test "${lt_cv_path_LD+set}" = set; then :
14089 $as_echo_n "(cached) " >&6
14090 else
14091 if test -z "$LD"; then
14092 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14093 for ac_dir in $PATH; do
14094 IFS="$lt_save_ifs"
14095 test -z "$ac_dir" && ac_dir=.
14096 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14097 lt_cv_path_LD="$ac_dir/$ac_prog"
14098 # Check to see if the program is GNU ld. I'd rather use --version,
14099 # but apparently some variants of GNU ld only accept -v.
14100 # Break only if it was the GNU/non-GNU ld that we prefer.
14101 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14102 *GNU* | *'with BFD'*)
14103 test "$with_gnu_ld" != no && break
14106 test "$with_gnu_ld" != yes && break
14108 esac
14110 done
14111 IFS="$lt_save_ifs"
14112 else
14113 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14117 LD="$lt_cv_path_LD"
14118 if test -n "$LD"; then
14119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14120 $as_echo "$LD" >&6; }
14121 else
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14123 $as_echo "no" >&6; }
14125 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14127 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14128 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14129 $as_echo_n "(cached) " >&6
14130 else
14131 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14132 case `$LD -v 2>&1 </dev/null` in
14133 *GNU* | *'with BFD'*)
14134 lt_cv_prog_gnu_ld=yes
14137 lt_cv_prog_gnu_ld=no
14139 esac
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14142 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14143 with_gnu_ld=$lt_cv_prog_gnu_ld
14151 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14152 # archiving commands below assume that GNU ld is being used.
14153 if test "$with_gnu_ld" = yes; then
14154 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14155 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14157 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14158 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14160 # If archive_cmds runs LD, not CC, wlarc should be empty
14161 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14162 # investigate it a little bit more. (MM)
14163 wlarc='${wl}'
14165 # ancient GNU ld didn't support --whole-archive et. al.
14166 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14167 $GREP 'no-whole-archive' > /dev/null; then
14168 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14169 else
14170 whole_archive_flag_spec_CXX=
14172 else
14173 with_gnu_ld=no
14174 wlarc=
14176 # A generic and very simple default shared library creation
14177 # command for GNU C++ for the case where it uses the native
14178 # linker, instead of GNU ld. If possible, this setting should
14179 # overridden to take advantage of the native linker features on
14180 # the platform it is being used on.
14181 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14184 # Commands to make compiler produce verbose output that lists
14185 # what "hidden" libraries, object files and flags are used when
14186 # linking a shared library.
14187 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14189 else
14190 GXX=no
14191 with_gnu_ld=no
14192 wlarc=
14195 # PORTME: fill in a description of your system's C++ link characteristics
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14197 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14198 ld_shlibs_CXX=yes
14199 case $host_os in
14200 aix3*)
14201 # FIXME: insert proper C++ library support
14202 ld_shlibs_CXX=no
14204 aix[4-9]*)
14205 if test "$host_cpu" = ia64; then
14206 # On IA64, the linker does run time linking by default, so we don't
14207 # have to do anything special.
14208 aix_use_runtimelinking=no
14209 exp_sym_flag='-Bexport'
14210 no_entry_flag=""
14211 else
14212 aix_use_runtimelinking=no
14214 # Test if we are trying to use run time linking or normal
14215 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14216 # need to do runtime linking.
14217 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14218 for ld_flag in $LDFLAGS; do
14219 case $ld_flag in
14220 *-brtl*)
14221 aix_use_runtimelinking=yes
14222 break
14224 esac
14225 done
14227 esac
14229 exp_sym_flag='-bexport'
14230 no_entry_flag='-bnoentry'
14233 # When large executables or shared objects are built, AIX ld can
14234 # have problems creating the table of contents. If linking a library
14235 # or program results in "error TOC overflow" add -mminimal-toc to
14236 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14237 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14239 archive_cmds_CXX=''
14240 hardcode_direct_CXX=yes
14241 hardcode_direct_absolute_CXX=yes
14242 hardcode_libdir_separator_CXX=':'
14243 link_all_deplibs_CXX=yes
14244 file_list_spec_CXX='${wl}-f,'
14246 if test "$GXX" = yes; then
14247 case $host_os in aix4.[012]|aix4.[012].*)
14248 # We only want to do this on AIX 4.2 and lower, the check
14249 # below for broken collect2 doesn't work under 4.3+
14250 collect2name=`${CC} -print-prog-name=collect2`
14251 if test -f "$collect2name" &&
14252 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14253 then
14254 # We have reworked collect2
14256 else
14257 # We have old collect2
14258 hardcode_direct_CXX=unsupported
14259 # It fails to find uninstalled libraries when the uninstalled
14260 # path is not listed in the libpath. Setting hardcode_minus_L
14261 # to unsupported forces relinking
14262 hardcode_minus_L_CXX=yes
14263 hardcode_libdir_flag_spec_CXX='-L$libdir'
14264 hardcode_libdir_separator_CXX=
14266 esac
14267 shared_flag='-shared'
14268 if test "$aix_use_runtimelinking" = yes; then
14269 shared_flag="$shared_flag "'${wl}-G'
14271 else
14272 # not using gcc
14273 if test "$host_cpu" = ia64; then
14274 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14275 # chokes on -Wl,-G. The following line is correct:
14276 shared_flag='-G'
14277 else
14278 if test "$aix_use_runtimelinking" = yes; then
14279 shared_flag='${wl}-G'
14280 else
14281 shared_flag='${wl}-bM:SRE'
14286 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14287 # It seems that -bexpall does not export symbols beginning with
14288 # underscore (_), so it is better to generate a list of symbols to
14289 # export.
14290 always_export_symbols_CXX=yes
14291 if test "$aix_use_runtimelinking" = yes; then
14292 # Warning - without using the other runtime loading flags (-brtl),
14293 # -berok will link without error, but may produce a broken library.
14294 allow_undefined_flag_CXX='-berok'
14295 # Determine the default libpath from the value encoded in an empty
14296 # executable.
14297 if test x$gcc_no_link = xyes; then
14298 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301 /* end confdefs.h. */
14304 main ()
14308 return 0;
14310 _ACEOF
14311 if ac_fn_cxx_try_link "$LINENO"; then :
14313 lt_aix_libpath_sed='
14314 /Import File Strings/,/^$/ {
14315 /^0/ {
14316 s/^0 *\(.*\)$/\1/
14320 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14321 # Check for a 64-bit object if we didn't find anything.
14322 if test -z "$aix_libpath"; then
14323 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14326 rm -f core conftest.err conftest.$ac_objext \
14327 conftest$ac_exeext conftest.$ac_ext
14328 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14330 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14332 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14333 else
14334 if test "$host_cpu" = ia64; then
14335 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14336 allow_undefined_flag_CXX="-z nodefs"
14337 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"
14338 else
14339 # Determine the default libpath from the value encoded in an
14340 # empty executable.
14341 if test x$gcc_no_link = xyes; then
14342 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14345 /* end confdefs.h. */
14348 main ()
14352 return 0;
14354 _ACEOF
14355 if ac_fn_cxx_try_link "$LINENO"; then :
14357 lt_aix_libpath_sed='
14358 /Import File Strings/,/^$/ {
14359 /^0/ {
14360 s/^0 *\(.*\)$/\1/
14364 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14365 # Check for a 64-bit object if we didn't find anything.
14366 if test -z "$aix_libpath"; then
14367 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14370 rm -f core conftest.err conftest.$ac_objext \
14371 conftest$ac_exeext conftest.$ac_ext
14372 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14374 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14375 # Warning - without using the other run time loading flags,
14376 # -berok will link without error, but may produce a broken library.
14377 no_undefined_flag_CXX=' ${wl}-bernotok'
14378 allow_undefined_flag_CXX=' ${wl}-berok'
14379 # Exported symbols can be pulled into shared objects from archives
14380 whole_archive_flag_spec_CXX='$convenience'
14381 archive_cmds_need_lc_CXX=yes
14382 # This is similar to how AIX traditionally builds its shared
14383 # libraries.
14384 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'
14389 beos*)
14390 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14391 allow_undefined_flag_CXX=unsupported
14392 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14393 # support --undefined. This deserves some investigation. FIXME
14394 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14395 else
14396 ld_shlibs_CXX=no
14400 chorus*)
14401 case $cc_basename in
14403 # FIXME: insert proper C++ library support
14404 ld_shlibs_CXX=no
14406 esac
14409 cygwin* | mingw* | pw32* | cegcc*)
14410 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14411 # as there is no search path for DLLs.
14412 hardcode_libdir_flag_spec_CXX='-L$libdir'
14413 allow_undefined_flag_CXX=unsupported
14414 always_export_symbols_CXX=no
14415 enable_shared_with_static_runtimes_CXX=yes
14417 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14418 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'
14419 # If the export-symbols file already is a .def file (1st line
14420 # is EXPORTS), use it as is; otherwise, prepend...
14421 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14422 cp $export_symbols $output_objdir/$soname.def;
14423 else
14424 echo EXPORTS > $output_objdir/$soname.def;
14425 cat $export_symbols >> $output_objdir/$soname.def;
14427 $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'
14428 else
14429 ld_shlibs_CXX=no
14432 darwin* | rhapsody*)
14435 archive_cmds_need_lc_CXX=no
14436 hardcode_direct_CXX=no
14437 hardcode_automatic_CXX=yes
14438 hardcode_shlibpath_var_CXX=unsupported
14439 whole_archive_flag_spec_CXX=''
14440 link_all_deplibs_CXX=yes
14441 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14442 case $cc_basename in
14443 ifort*) _lt_dar_can_shared=yes ;;
14444 *) _lt_dar_can_shared=$GCC ;;
14445 esac
14446 if test "$_lt_dar_can_shared" = "yes"; then
14447 output_verbose_link_cmd=echo
14448 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}"
14449 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14450 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}"
14451 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}"
14452 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14453 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}"
14454 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}"
14457 else
14458 ld_shlibs_CXX=no
14463 dgux*)
14464 case $cc_basename in
14465 ec++*)
14466 # FIXME: insert proper C++ library support
14467 ld_shlibs_CXX=no
14469 ghcx*)
14470 # Green Hills C++ Compiler
14471 # FIXME: insert proper C++ library support
14472 ld_shlibs_CXX=no
14475 # FIXME: insert proper C++ library support
14476 ld_shlibs_CXX=no
14478 esac
14481 freebsd[12]*)
14482 # C++ shared libraries reported to be fairly broken before
14483 # switch to ELF
14484 ld_shlibs_CXX=no
14487 freebsd-elf*)
14488 archive_cmds_need_lc_CXX=no
14491 freebsd* | dragonfly*)
14492 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14493 # conventions
14494 ld_shlibs_CXX=yes
14497 gnu*)
14500 hpux9*)
14501 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14502 hardcode_libdir_separator_CXX=:
14503 export_dynamic_flag_spec_CXX='${wl}-E'
14504 hardcode_direct_CXX=yes
14505 hardcode_minus_L_CXX=yes # Not in the search PATH,
14506 # but as the default
14507 # location of the library.
14509 case $cc_basename in
14510 CC*)
14511 # FIXME: insert proper C++ library support
14512 ld_shlibs_CXX=no
14514 aCC*)
14515 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'
14516 # Commands to make compiler produce verbose output that lists
14517 # what "hidden" libraries, object files and flags are used when
14518 # linking a shared library.
14520 # There doesn't appear to be a way to prevent this compiler from
14521 # explicitly linking system object files so we need to strip them
14522 # from the output so that they don't get included in the library
14523 # dependencies.
14524 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; $ECHO "X$list" | $Xsed'
14527 if test "$GXX" = yes; then
14528 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'
14529 else
14530 # FIXME: insert proper C++ library support
14531 ld_shlibs_CXX=no
14534 esac
14537 hpux10*|hpux11*)
14538 if test $with_gnu_ld = no; then
14539 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14540 hardcode_libdir_separator_CXX=:
14542 case $host_cpu in
14543 hppa*64*|ia64*)
14546 export_dynamic_flag_spec_CXX='${wl}-E'
14548 esac
14550 case $host_cpu in
14551 hppa*64*|ia64*)
14552 hardcode_direct_CXX=no
14553 hardcode_shlibpath_var_CXX=no
14556 hardcode_direct_CXX=yes
14557 hardcode_direct_absolute_CXX=yes
14558 hardcode_minus_L_CXX=yes # Not in the search PATH,
14559 # but as the default
14560 # location of the library.
14562 esac
14564 case $cc_basename in
14565 CC*)
14566 # FIXME: insert proper C++ library support
14567 ld_shlibs_CXX=no
14569 aCC*)
14570 case $host_cpu in
14571 hppa*64*)
14572 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14574 ia64*)
14575 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14578 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14580 esac
14581 # Commands to make compiler produce verbose output that lists
14582 # what "hidden" libraries, object files and flags are used when
14583 # linking a shared library.
14585 # There doesn't appear to be a way to prevent this compiler from
14586 # explicitly linking system object files so we need to strip them
14587 # from the output so that they don't get included in the library
14588 # dependencies.
14589 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; $ECHO "X$list" | $Xsed'
14592 if test "$GXX" = yes; then
14593 if test $with_gnu_ld = no; then
14594 case $host_cpu in
14595 hppa*64*)
14596 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14598 ia64*)
14599 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14602 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'
14604 esac
14606 else
14607 # FIXME: insert proper C++ library support
14608 ld_shlibs_CXX=no
14611 esac
14614 interix[3-9]*)
14615 hardcode_direct_CXX=no
14616 hardcode_shlibpath_var_CXX=no
14617 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14618 export_dynamic_flag_spec_CXX='${wl}-E'
14619 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14620 # Instead, shared libraries are loaded at an image base (0x10000000 by
14621 # default) and relocated if they conflict, which is a slow very memory
14622 # consuming and fragmenting process. To avoid this, we pick a random,
14623 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14624 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14625 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'
14626 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'
14628 irix5* | irix6*)
14629 case $cc_basename in
14630 CC*)
14631 # SGI C++
14632 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14634 # Archives containing C++ object files must be created using
14635 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14636 # necessary to make sure instantiated templates are included
14637 # in the archive.
14638 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14641 if test "$GXX" = yes; then
14642 if test "$with_gnu_ld" = no; then
14643 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14644 else
14645 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
14648 link_all_deplibs_CXX=yes
14650 esac
14651 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14652 hardcode_libdir_separator_CXX=:
14653 inherit_rpath_CXX=yes
14656 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14657 case $cc_basename in
14658 KCC*)
14659 # Kuck and Associates, Inc. (KAI) C++ Compiler
14661 # KCC will only create a shared library if the output file
14662 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14663 # to its proper name (with version) after linking.
14664 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'
14665 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'
14666 # Commands to make compiler produce verbose output that lists
14667 # what "hidden" libraries, object files and flags are used when
14668 # linking a shared library.
14670 # There doesn't appear to be a way to prevent this compiler from
14671 # explicitly linking system object files so we need to strip them
14672 # from the output so that they don't get included in the library
14673 # dependencies.
14674 output_verbose_link_cmd='templist=`$CC $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; $ECHO "X$list" | $Xsed'
14676 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14677 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14679 # Archives containing C++ object files must be created using
14680 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14681 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14683 icpc* | ecpc* )
14684 # Intel C++
14685 with_gnu_ld=yes
14686 # version 8.0 and above of icpc choke on multiply defined symbols
14687 # if we add $predep_objects and $postdep_objects, however 7.1 and
14688 # earlier do not add the objects themselves.
14689 case `$CC -V 2>&1` in
14690 *"Version 7."*)
14691 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14692 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'
14694 *) # Version 8.0 or newer
14695 tmp_idyn=
14696 case $host_cpu in
14697 ia64*) tmp_idyn=' -i_dynamic';;
14698 esac
14699 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14700 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'
14702 esac
14703 archive_cmds_need_lc_CXX=no
14704 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14705 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14706 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14708 pgCC* | pgcpp*)
14709 # Portland Group C++ compiler
14710 case `$CC -V` in
14711 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14712 prelink_cmds_CXX='tpldir=Template.dir~
14713 rm -rf $tpldir~
14714 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14715 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14716 old_archive_cmds_CXX='tpldir=Template.dir~
14717 rm -rf $tpldir~
14718 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14719 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14720 $RANLIB $oldlib'
14721 archive_cmds_CXX='tpldir=Template.dir~
14722 rm -rf $tpldir~
14723 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14724 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14725 archive_expsym_cmds_CXX='tpldir=Template.dir~
14726 rm -rf $tpldir~
14727 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14728 $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'
14730 *) # Version 6 will use weak symbols
14731 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14732 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'
14734 esac
14736 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14737 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14738 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14740 cxx*)
14741 # Compaq C++
14742 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14743 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'
14745 runpath_var=LD_RUN_PATH
14746 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14747 hardcode_libdir_separator_CXX=:
14749 # Commands to make compiler produce verbose output that lists
14750 # what "hidden" libraries, object files and flags are used when
14751 # linking a shared library.
14753 # There doesn't appear to be a way to prevent this compiler from
14754 # explicitly linking system object files so we need to strip them
14755 # from the output so that they don't get included in the library
14756 # dependencies.
14757 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14759 xl*)
14760 # IBM XL 8.0 on PPC, with GNU ld
14761 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14762 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14763 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14764 if test "x$supports_anon_versioning" = xyes; then
14765 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14766 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14767 echo "local: *; };" >> $output_objdir/$libname.ver~
14768 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14772 case `$CC -V 2>&1 | sed 5q` in
14773 *Sun\ C*)
14774 # Sun C++ 5.9
14775 no_undefined_flag_CXX=' -zdefs'
14776 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14777 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'
14778 hardcode_libdir_flag_spec_CXX='-R$libdir'
14779 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14780 compiler_needs_object_CXX=yes
14782 # Not sure whether something based on
14783 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14784 # would be better.
14785 output_verbose_link_cmd='echo'
14787 # Archives containing C++ object files must be created using
14788 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14789 # necessary to make sure instantiated templates are included
14790 # in the archive.
14791 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14793 esac
14795 esac
14798 lynxos*)
14799 # FIXME: insert proper C++ library support
14800 ld_shlibs_CXX=no
14803 m88k*)
14804 # FIXME: insert proper C++ library support
14805 ld_shlibs_CXX=no
14808 mvs*)
14809 case $cc_basename in
14810 cxx*)
14811 # FIXME: insert proper C++ library support
14812 ld_shlibs_CXX=no
14815 # FIXME: insert proper C++ library support
14816 ld_shlibs_CXX=no
14818 esac
14821 netbsd*)
14822 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14823 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14824 wlarc=
14825 hardcode_libdir_flag_spec_CXX='-R$libdir'
14826 hardcode_direct_CXX=yes
14827 hardcode_shlibpath_var_CXX=no
14829 # Workaround some broken pre-1.5 toolchains
14830 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14833 *nto* | *qnx*)
14834 ld_shlibs_CXX=yes
14837 openbsd2*)
14838 # C++ shared libraries are fairly broken
14839 ld_shlibs_CXX=no
14842 openbsd*)
14843 if test -f /usr/libexec/ld.so; then
14844 hardcode_direct_CXX=yes
14845 hardcode_shlibpath_var_CXX=no
14846 hardcode_direct_absolute_CXX=yes
14847 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14848 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14849 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14850 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14851 export_dynamic_flag_spec_CXX='${wl}-E'
14852 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14854 output_verbose_link_cmd=echo
14855 else
14856 ld_shlibs_CXX=no
14860 osf3* | osf4* | osf5*)
14861 case $cc_basename in
14862 KCC*)
14863 # Kuck and Associates, Inc. (KAI) C++ Compiler
14865 # KCC will only create a shared library if the output file
14866 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14867 # to its proper name (with version) after linking.
14868 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'
14870 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14871 hardcode_libdir_separator_CXX=:
14873 # Archives containing C++ object files must be created using
14874 # the KAI C++ compiler.
14875 case $host in
14876 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14877 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14878 esac
14880 RCC*)
14881 # Rational C++ 2.4.1
14882 # FIXME: insert proper C++ library support
14883 ld_shlibs_CXX=no
14885 cxx*)
14886 case $host in
14887 osf3*)
14888 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14889 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14890 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14893 allow_undefined_flag_CXX=' -expect_unresolved \*'
14894 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14895 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14896 echo "-hidden">> $lib.exp~
14897 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14898 $RM $lib.exp'
14899 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14901 esac
14903 hardcode_libdir_separator_CXX=:
14905 # Commands to make compiler produce verbose output that lists
14906 # what "hidden" libraries, object files and flags are used when
14907 # linking a shared library.
14909 # There doesn't appear to be a way to prevent this compiler from
14910 # explicitly linking system object files so we need to strip them
14911 # from the output so that they don't get included in the library
14912 # dependencies.
14913 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14916 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14917 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14918 case $host in
14919 osf3*)
14920 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14923 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" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14925 esac
14927 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14928 hardcode_libdir_separator_CXX=:
14930 # Commands to make compiler produce verbose output that lists
14931 # what "hidden" libraries, object files and flags are used when
14932 # linking a shared library.
14933 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
14935 else
14936 # FIXME: insert proper C++ library support
14937 ld_shlibs_CXX=no
14940 esac
14943 psos*)
14944 # FIXME: insert proper C++ library support
14945 ld_shlibs_CXX=no
14948 sunos4*)
14949 case $cc_basename in
14950 CC*)
14951 # Sun C++ 4.x
14952 # FIXME: insert proper C++ library support
14953 ld_shlibs_CXX=no
14955 lcc*)
14956 # Lucid
14957 # FIXME: insert proper C++ library support
14958 ld_shlibs_CXX=no
14961 # FIXME: insert proper C++ library support
14962 ld_shlibs_CXX=no
14964 esac
14967 solaris*)
14968 case $cc_basename in
14969 CC*)
14970 # Sun C++ 4.2, 5.x and Centerline C++
14971 archive_cmds_need_lc_CXX=yes
14972 no_undefined_flag_CXX=' -zdefs'
14973 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14974 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14975 $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'
14977 hardcode_libdir_flag_spec_CXX='-R$libdir'
14978 hardcode_shlibpath_var_CXX=no
14979 case $host_os in
14980 solaris2.[0-5] | solaris2.[0-5].*) ;;
14982 # The compiler driver will combine and reorder linker options,
14983 # but understands `-z linker_flag'.
14984 # Supported since Solaris 2.6 (maybe 2.5.1?)
14985 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14987 esac
14988 link_all_deplibs_CXX=yes
14990 output_verbose_link_cmd='echo'
14992 # Archives containing C++ object files must be created using
14993 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14994 # necessary to make sure instantiated templates are included
14995 # in the archive.
14996 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14998 gcx*)
14999 # Green Hills C++ Compiler
15000 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15002 # The C++ compiler must be used to create the archive.
15003 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15006 # GNU C++ compiler with Solaris linker
15007 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15008 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15009 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15010 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15011 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15012 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15014 # Commands to make compiler produce verbose output that lists
15015 # what "hidden" libraries, object files and flags are used when
15016 # linking a shared library.
15017 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15018 else
15019 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15020 # platform.
15021 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15022 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15023 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15025 # Commands to make compiler produce verbose output that lists
15026 # what "hidden" libraries, object files and flags are used when
15027 # linking a shared library.
15028 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15031 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15032 case $host_os in
15033 solaris2.[0-5] | solaris2.[0-5].*) ;;
15035 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15037 esac
15040 esac
15043 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15044 no_undefined_flag_CXX='${wl}-z,text'
15045 archive_cmds_need_lc_CXX=no
15046 hardcode_shlibpath_var_CXX=no
15047 runpath_var='LD_RUN_PATH'
15049 case $cc_basename in
15050 CC*)
15051 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15052 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15055 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15056 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15058 esac
15061 sysv5* | sco3.2v5* | sco5v6*)
15062 # Note: We can NOT use -z defs as we might desire, because we do not
15063 # link with -lc, and that would cause any symbols used from libc to
15064 # always be unresolved, which means just about no library would
15065 # ever link correctly. If we're not using GNU ld we use -z text
15066 # though, which does catch some bad symbols but isn't as heavy-handed
15067 # as -z defs.
15068 no_undefined_flag_CXX='${wl}-z,text'
15069 allow_undefined_flag_CXX='${wl}-z,nodefs'
15070 archive_cmds_need_lc_CXX=no
15071 hardcode_shlibpath_var_CXX=no
15072 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15073 hardcode_libdir_separator_CXX=':'
15074 link_all_deplibs_CXX=yes
15075 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15076 runpath_var='LD_RUN_PATH'
15078 case $cc_basename in
15079 CC*)
15080 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15081 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15084 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15085 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15087 esac
15090 tandem*)
15091 case $cc_basename in
15092 NCC*)
15093 # NonStop-UX NCC 3.20
15094 # FIXME: insert proper C++ library support
15095 ld_shlibs_CXX=no
15098 # FIXME: insert proper C++ library support
15099 ld_shlibs_CXX=no
15101 esac
15104 vxworks*)
15105 # FIXME: insert proper C++ library support
15106 ld_shlibs_CXX=no
15110 # FIXME: insert proper C++ library support
15111 ld_shlibs_CXX=no
15113 esac
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15116 $as_echo "$ld_shlibs_CXX" >&6; }
15117 test "$ld_shlibs_CXX" = no && can_build_shared=no
15119 GCC_CXX="$GXX"
15120 LD_CXX="$LD"
15122 ## CAVEAT EMPTOR:
15123 ## There is no encapsulation within the following macros, do not change
15124 ## the running order or otherwise move them around unless you know exactly
15125 ## what you are doing...
15126 # Dependencies to place before and after the object being linked:
15127 predep_objects_CXX=
15128 postdep_objects_CXX=
15129 predeps_CXX=
15130 postdeps_CXX=
15131 compiler_lib_search_path_CXX=
15133 cat > conftest.$ac_ext <<_LT_EOF
15134 class Foo
15136 public:
15137 Foo (void) { a = 0; }
15138 private:
15139 int a;
15141 _LT_EOF
15143 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15144 (eval $ac_compile) 2>&5
15145 ac_status=$?
15146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15147 test $ac_status = 0; }; then
15148 # Parse the compiler output and extract the necessary
15149 # objects, libraries and library flags.
15151 # Sentinel used to keep track of whether or not we are before
15152 # the conftest object file.
15153 pre_test_object_deps_done=no
15155 for p in `eval "$output_verbose_link_cmd"`; do
15156 case $p in
15158 -L* | -R* | -l*)
15159 # Some compilers place space between "-{L,R}" and the path.
15160 # Remove the space.
15161 if test $p = "-L" ||
15162 test $p = "-R"; then
15163 prev=$p
15164 continue
15165 else
15166 prev=
15169 if test "$pre_test_object_deps_done" = no; then
15170 case $p in
15171 -L* | -R*)
15172 # Internal compiler library paths should come after those
15173 # provided the user. The postdeps already come after the
15174 # user supplied libs so there is no need to process them.
15175 if test -z "$compiler_lib_search_path_CXX"; then
15176 compiler_lib_search_path_CXX="${prev}${p}"
15177 else
15178 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15181 # The "-l" case would never come before the object being
15182 # linked, so don't bother handling this case.
15183 esac
15184 else
15185 if test -z "$postdeps_CXX"; then
15186 postdeps_CXX="${prev}${p}"
15187 else
15188 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15193 *.$objext)
15194 # This assumes that the test object file only shows up
15195 # once in the compiler output.
15196 if test "$p" = "conftest.$objext"; then
15197 pre_test_object_deps_done=yes
15198 continue
15201 if test "$pre_test_object_deps_done" = no; then
15202 if test -z "$predep_objects_CXX"; then
15203 predep_objects_CXX="$p"
15204 else
15205 predep_objects_CXX="$predep_objects_CXX $p"
15207 else
15208 if test -z "$postdep_objects_CXX"; then
15209 postdep_objects_CXX="$p"
15210 else
15211 postdep_objects_CXX="$postdep_objects_CXX $p"
15216 *) ;; # Ignore the rest.
15218 esac
15219 done
15221 # Clean up.
15222 rm -f a.out a.exe
15223 else
15224 echo "libtool.m4: error: problem compiling CXX test program"
15227 $RM -f confest.$objext
15229 # PORTME: override above test on systems where it is broken
15230 case $host_os in
15231 interix[3-9]*)
15232 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15233 # hack all around it, let's just trust "g++" to DTRT.
15234 predep_objects_CXX=
15235 postdep_objects_CXX=
15236 postdeps_CXX=
15239 linux*)
15240 case `$CC -V 2>&1 | sed 5q` in
15241 *Sun\ C*)
15242 # Sun C++ 5.9
15244 # The more standards-conforming stlport4 library is
15245 # incompatible with the Cstd library. Avoid specifying
15246 # it if it's in CXXFLAGS. Ignore libCrun as
15247 # -library=stlport4 depends on it.
15248 case " $CXX $CXXFLAGS " in
15249 *" -library=stlport4 "*)
15250 solaris_use_stlport4=yes
15252 esac
15254 if test "$solaris_use_stlport4" != yes; then
15255 postdeps_CXX='-library=Cstd -library=Crun'
15258 esac
15261 solaris*)
15262 case $cc_basename in
15263 CC*)
15264 # The more standards-conforming stlport4 library is
15265 # incompatible with the Cstd library. Avoid specifying
15266 # it if it's in CXXFLAGS. Ignore libCrun as
15267 # -library=stlport4 depends on it.
15268 case " $CXX $CXXFLAGS " in
15269 *" -library=stlport4 "*)
15270 solaris_use_stlport4=yes
15272 esac
15274 # Adding this requires a known-good setup of shared libraries for
15275 # Sun compiler versions before 5.6, else PIC objects from an old
15276 # archive will be linked into the output, leading to subtle bugs.
15277 if test "$solaris_use_stlport4" != yes; then
15278 postdeps_CXX='-library=Cstd -library=Crun'
15281 esac
15283 esac
15286 case " $postdeps_CXX " in
15287 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15288 esac
15289 compiler_lib_search_dirs_CXX=
15290 if test -n "${compiler_lib_search_path_CXX}"; then
15291 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15324 lt_prog_compiler_wl_CXX=
15325 lt_prog_compiler_pic_CXX=
15326 lt_prog_compiler_static_CXX=
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15329 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15331 # C++ specific cases for pic, static, wl, etc.
15332 if test "$GXX" = yes; then
15333 lt_prog_compiler_wl_CXX='-Wl,'
15334 lt_prog_compiler_static_CXX='-static'
15336 case $host_os in
15337 aix*)
15338 # All AIX code is PIC.
15339 if test "$host_cpu" = ia64; then
15340 # AIX 5 now supports IA64 processor
15341 lt_prog_compiler_static_CXX='-Bstatic'
15345 amigaos*)
15346 case $host_cpu in
15347 powerpc)
15348 # see comment about AmigaOS4 .so support
15349 lt_prog_compiler_pic_CXX='-fPIC'
15351 m68k)
15352 # FIXME: we need at least 68020 code to build shared libraries, but
15353 # adding the `-m68020' flag to GCC prevents building anything better,
15354 # like `-m68040'.
15355 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15357 esac
15360 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15361 # PIC is the default for these OSes.
15363 mingw* | cygwin* | os2* | pw32* | cegcc*)
15364 # This hack is so that the source file can tell whether it is being
15365 # built for inclusion in a dll (and should export symbols for example).
15366 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15367 # (--disable-auto-import) libraries
15368 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15370 darwin* | rhapsody*)
15371 # PIC is the default on this platform
15372 # Common symbols not allowed in MH_DYLIB files
15373 lt_prog_compiler_pic_CXX='-fno-common'
15375 *djgpp*)
15376 # DJGPP does not support shared libraries at all
15377 lt_prog_compiler_pic_CXX=
15379 interix[3-9]*)
15380 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15381 # Instead, we relocate shared libraries at runtime.
15383 sysv4*MP*)
15384 if test -d /usr/nec; then
15385 lt_prog_compiler_pic_CXX=-Kconform_pic
15388 hpux*)
15389 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15390 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15391 # sets the default TLS model and affects inlining.
15392 case $host_cpu in
15393 hppa*64*)
15396 lt_prog_compiler_pic_CXX='-fPIC'
15398 esac
15400 *qnx* | *nto*)
15401 # QNX uses GNU C++, but need to define -shared option too, otherwise
15402 # it will coredump.
15403 lt_prog_compiler_pic_CXX='-fPIC -shared'
15406 lt_prog_compiler_pic_CXX='-fPIC'
15408 esac
15409 else
15410 case $host_os in
15411 aix[4-9]*)
15412 # All AIX code is PIC.
15413 if test "$host_cpu" = ia64; then
15414 # AIX 5 now supports IA64 processor
15415 lt_prog_compiler_static_CXX='-Bstatic'
15416 else
15417 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15420 chorus*)
15421 case $cc_basename in
15422 cxch68*)
15423 # Green Hills C++ Compiler
15424 # _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"
15426 esac
15428 dgux*)
15429 case $cc_basename in
15430 ec++*)
15431 lt_prog_compiler_pic_CXX='-KPIC'
15433 ghcx*)
15434 # Green Hills C++ Compiler
15435 lt_prog_compiler_pic_CXX='-pic'
15439 esac
15441 freebsd* | dragonfly*)
15442 # FreeBSD uses GNU C++
15444 hpux9* | hpux10* | hpux11*)
15445 case $cc_basename in
15446 CC*)
15447 lt_prog_compiler_wl_CXX='-Wl,'
15448 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15449 if test "$host_cpu" != ia64; then
15450 lt_prog_compiler_pic_CXX='+Z'
15453 aCC*)
15454 lt_prog_compiler_wl_CXX='-Wl,'
15455 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15456 case $host_cpu in
15457 hppa*64*|ia64*)
15458 # +Z the default
15461 lt_prog_compiler_pic_CXX='+Z'
15463 esac
15467 esac
15469 interix*)
15470 # This is c89, which is MS Visual C++ (no shared libs)
15471 # Anyone wants to do a port?
15473 irix5* | irix6* | nonstopux*)
15474 case $cc_basename in
15475 CC*)
15476 lt_prog_compiler_wl_CXX='-Wl,'
15477 lt_prog_compiler_static_CXX='-non_shared'
15478 # CC pic flag -KPIC is the default.
15482 esac
15484 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15485 case $cc_basename in
15486 KCC*)
15487 # KAI C++ Compiler
15488 lt_prog_compiler_wl_CXX='--backend -Wl,'
15489 lt_prog_compiler_pic_CXX='-fPIC'
15491 ecpc* )
15492 # old Intel C++ for x86_64 which still supported -KPIC.
15493 lt_prog_compiler_wl_CXX='-Wl,'
15494 lt_prog_compiler_pic_CXX='-KPIC'
15495 lt_prog_compiler_static_CXX='-static'
15497 icpc* )
15498 # Intel C++, used to be incompatible with GCC.
15499 # ICC 10 doesn't accept -KPIC any more.
15500 lt_prog_compiler_wl_CXX='-Wl,'
15501 lt_prog_compiler_pic_CXX='-fPIC'
15502 lt_prog_compiler_static_CXX='-static'
15504 pgCC* | pgcpp*)
15505 # Portland Group C++ compiler
15506 lt_prog_compiler_wl_CXX='-Wl,'
15507 lt_prog_compiler_pic_CXX='-fpic'
15508 lt_prog_compiler_static_CXX='-Bstatic'
15510 cxx*)
15511 # Compaq C++
15512 # Make sure the PIC flag is empty. It appears that all Alpha
15513 # Linux and Compaq Tru64 Unix objects are PIC.
15514 lt_prog_compiler_pic_CXX=
15515 lt_prog_compiler_static_CXX='-non_shared'
15517 xlc* | xlC*)
15518 # IBM XL 8.0 on PPC
15519 lt_prog_compiler_wl_CXX='-Wl,'
15520 lt_prog_compiler_pic_CXX='-qpic'
15521 lt_prog_compiler_static_CXX='-qstaticlink'
15524 case `$CC -V 2>&1 | sed 5q` in
15525 *Sun\ C*)
15526 # Sun C++ 5.9
15527 lt_prog_compiler_pic_CXX='-KPIC'
15528 lt_prog_compiler_static_CXX='-Bstatic'
15529 lt_prog_compiler_wl_CXX='-Qoption ld '
15531 esac
15533 esac
15535 lynxos*)
15537 m88k*)
15539 mvs*)
15540 case $cc_basename in
15541 cxx*)
15542 lt_prog_compiler_pic_CXX='-W c,exportall'
15546 esac
15548 netbsd*)
15550 *qnx* | *nto*)
15551 # QNX uses GNU C++, but need to define -shared option too, otherwise
15552 # it will coredump.
15553 lt_prog_compiler_pic_CXX='-fPIC -shared'
15555 osf3* | osf4* | osf5*)
15556 case $cc_basename in
15557 KCC*)
15558 lt_prog_compiler_wl_CXX='--backend -Wl,'
15560 RCC*)
15561 # Rational C++ 2.4.1
15562 lt_prog_compiler_pic_CXX='-pic'
15564 cxx*)
15565 # Digital/Compaq C++
15566 lt_prog_compiler_wl_CXX='-Wl,'
15567 # Make sure the PIC flag is empty. It appears that all Alpha
15568 # Linux and Compaq Tru64 Unix objects are PIC.
15569 lt_prog_compiler_pic_CXX=
15570 lt_prog_compiler_static_CXX='-non_shared'
15574 esac
15576 psos*)
15578 solaris*)
15579 case $cc_basename in
15580 CC*)
15581 # Sun C++ 4.2, 5.x and Centerline C++
15582 lt_prog_compiler_pic_CXX='-KPIC'
15583 lt_prog_compiler_static_CXX='-Bstatic'
15584 lt_prog_compiler_wl_CXX='-Qoption ld '
15586 gcx*)
15587 # Green Hills C++ Compiler
15588 lt_prog_compiler_pic_CXX='-PIC'
15592 esac
15594 sunos4*)
15595 case $cc_basename in
15596 CC*)
15597 # Sun C++ 4.x
15598 lt_prog_compiler_pic_CXX='-pic'
15599 lt_prog_compiler_static_CXX='-Bstatic'
15601 lcc*)
15602 # Lucid
15603 lt_prog_compiler_pic_CXX='-pic'
15607 esac
15609 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15610 case $cc_basename in
15611 CC*)
15612 lt_prog_compiler_wl_CXX='-Wl,'
15613 lt_prog_compiler_pic_CXX='-KPIC'
15614 lt_prog_compiler_static_CXX='-Bstatic'
15616 esac
15618 tandem*)
15619 case $cc_basename in
15620 NCC*)
15621 # NonStop-UX NCC 3.20
15622 lt_prog_compiler_pic_CXX='-KPIC'
15626 esac
15628 vxworks*)
15631 lt_prog_compiler_can_build_shared_CXX=no
15633 esac
15636 case $host_os in
15637 # For platforms which do not support PIC, -DPIC is meaningless:
15638 *djgpp*)
15639 lt_prog_compiler_pic_CXX=
15642 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15644 esac
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15646 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15651 # Check to make sure the PIC flag actually works.
15653 if test -n "$lt_prog_compiler_pic_CXX"; then
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15655 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15656 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15657 $as_echo_n "(cached) " >&6
15658 else
15659 lt_cv_prog_compiler_pic_works_CXX=no
15660 ac_outfile=conftest.$ac_objext
15661 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15662 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15663 # Insert the option either (1) after the last *FLAGS variable, or
15664 # (2) before a word containing "conftest.", or (3) at the end.
15665 # Note that $ac_compile itself does not contain backslashes and begins
15666 # with a dollar sign (not a hyphen), so the echo should work correctly.
15667 # The option is referenced via a variable to avoid confusing sed.
15668 lt_compile=`echo "$ac_compile" | $SED \
15669 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15670 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15671 -e 's:$: $lt_compiler_flag:'`
15672 (eval echo "\"\$as_me:15672: $lt_compile\"" >&5)
15673 (eval "$lt_compile" 2>conftest.err)
15674 ac_status=$?
15675 cat conftest.err >&5
15676 echo "$as_me:15676: \$? = $ac_status" >&5
15677 if (exit $ac_status) && test -s "$ac_outfile"; then
15678 # The compiler can only warn and ignore the option if not recognized
15679 # So say no if there are warnings other than the usual output.
15680 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15682 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15683 lt_cv_prog_compiler_pic_works_CXX=yes
15686 $RM conftest*
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15690 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15692 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15693 case $lt_prog_compiler_pic_CXX in
15694 "" | " "*) ;;
15695 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15696 esac
15697 else
15698 lt_prog_compiler_pic_CXX=
15699 lt_prog_compiler_can_build_shared_CXX=no
15707 # Check to make sure the static flag actually works.
15709 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15711 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15712 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15713 $as_echo_n "(cached) " >&6
15714 else
15715 lt_cv_prog_compiler_static_works_CXX=no
15716 save_LDFLAGS="$LDFLAGS"
15717 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15718 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15719 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15720 # The linker can only warn and ignore the option if not recognized
15721 # So say no if there are warnings
15722 if test -s conftest.err; then
15723 # Append any errors to the config.log.
15724 cat conftest.err 1>&5
15725 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15726 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15727 if diff conftest.exp conftest.er2 >/dev/null; then
15728 lt_cv_prog_compiler_static_works_CXX=yes
15730 else
15731 lt_cv_prog_compiler_static_works_CXX=yes
15734 $RM -r conftest*
15735 LDFLAGS="$save_LDFLAGS"
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15739 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15741 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15743 else
15744 lt_prog_compiler_static_CXX=
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15751 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15752 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15753 $as_echo_n "(cached) " >&6
15754 else
15755 lt_cv_prog_compiler_c_o_CXX=no
15756 $RM -r conftest 2>/dev/null
15757 mkdir conftest
15758 cd conftest
15759 mkdir out
15760 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15762 lt_compiler_flag="-o out/conftest2.$ac_objext"
15763 # Insert the option either (1) after the last *FLAGS variable, or
15764 # (2) before a word containing "conftest.", or (3) at the end.
15765 # Note that $ac_compile itself does not contain backslashes and begins
15766 # with a dollar sign (not a hyphen), so the echo should work correctly.
15767 lt_compile=`echo "$ac_compile" | $SED \
15768 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15770 -e 's:$: $lt_compiler_flag:'`
15771 (eval echo "\"\$as_me:15771: $lt_compile\"" >&5)
15772 (eval "$lt_compile" 2>out/conftest.err)
15773 ac_status=$?
15774 cat out/conftest.err >&5
15775 echo "$as_me:15775: \$? = $ac_status" >&5
15776 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15777 then
15778 # The compiler can only warn and ignore the option if not recognized
15779 # So say no if there are warnings
15780 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15781 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15782 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15783 lt_cv_prog_compiler_c_o_CXX=yes
15786 chmod u+w . 2>&5
15787 $RM conftest*
15788 # SGI C++ compiler will create directory out/ii_files/ for
15789 # template instantiation
15790 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15791 $RM out/* && rmdir out
15792 cd ..
15793 $RM -r conftest
15794 $RM conftest*
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15798 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15803 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15804 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15805 $as_echo_n "(cached) " >&6
15806 else
15807 lt_cv_prog_compiler_c_o_CXX=no
15808 $RM -r conftest 2>/dev/null
15809 mkdir conftest
15810 cd conftest
15811 mkdir out
15812 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15814 lt_compiler_flag="-o out/conftest2.$ac_objext"
15815 # Insert the option either (1) after the last *FLAGS variable, or
15816 # (2) before a word containing "conftest.", or (3) at the end.
15817 # Note that $ac_compile itself does not contain backslashes and begins
15818 # with a dollar sign (not a hyphen), so the echo should work correctly.
15819 lt_compile=`echo "$ac_compile" | $SED \
15820 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15821 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15822 -e 's:$: $lt_compiler_flag:'`
15823 (eval echo "\"\$as_me:15823: $lt_compile\"" >&5)
15824 (eval "$lt_compile" 2>out/conftest.err)
15825 ac_status=$?
15826 cat out/conftest.err >&5
15827 echo "$as_me:15827: \$? = $ac_status" >&5
15828 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15829 then
15830 # The compiler can only warn and ignore the option if not recognized
15831 # So say no if there are warnings
15832 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15833 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15834 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15835 lt_cv_prog_compiler_c_o_CXX=yes
15838 chmod u+w . 2>&5
15839 $RM conftest*
15840 # SGI C++ compiler will create directory out/ii_files/ for
15841 # template instantiation
15842 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15843 $RM out/* && rmdir out
15844 cd ..
15845 $RM -r conftest
15846 $RM conftest*
15849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15850 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15855 hard_links="nottested"
15856 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15857 # do not overwrite the value of need_locks provided by the user
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15859 $as_echo_n "checking if we can lock with hard links... " >&6; }
15860 hard_links=yes
15861 $RM conftest*
15862 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15863 touch conftest.a
15864 ln conftest.a conftest.b 2>&5 || hard_links=no
15865 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15867 $as_echo "$hard_links" >&6; }
15868 if test "$hard_links" = no; then
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15870 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15871 need_locks=warn
15873 else
15874 need_locks=no
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15880 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15882 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15883 case $host_os in
15884 aix[4-9]*)
15885 # If we're using GNU nm, then we don't want the "-C" option.
15886 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15887 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15888 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15889 else
15890 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'
15893 pw32*)
15894 export_symbols_cmds_CXX="$ltdll_cmds"
15896 cygwin* | mingw* | cegcc*)
15897 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'
15900 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15902 esac
15903 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15906 $as_echo "$ld_shlibs_CXX" >&6; }
15907 test "$ld_shlibs_CXX" = no && can_build_shared=no
15909 with_gnu_ld_CXX=$with_gnu_ld
15917 # Do we need to explicitly link libc?
15919 case "x$archive_cmds_need_lc_CXX" in
15920 x|xyes)
15921 # Assume -lc should be added
15922 archive_cmds_need_lc_CXX=yes
15924 if test "$enable_shared" = yes && test "$GCC" = yes; then
15925 case $archive_cmds_CXX in
15926 *'~'*)
15927 # FIXME: we may have to deal with multi-command sequences.
15929 '$CC '*)
15930 # Test whether the compiler implicitly links with -lc since on some
15931 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15932 # to ld, don't add -lc before -lgcc.
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15934 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15935 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15936 $as_echo_n "(cached) " >&6
15937 else
15938 $RM conftest*
15939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15942 (eval $ac_compile) 2>&5
15943 ac_status=$?
15944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15945 test $ac_status = 0; } 2>conftest.err; then
15946 soname=conftest
15947 lib=conftest
15948 libobjs=conftest.$ac_objext
15949 deplibs=
15950 wl=$lt_prog_compiler_wl_CXX
15951 pic_flag=$lt_prog_compiler_pic_CXX
15952 compiler_flags=-v
15953 linker_flags=-v
15954 verstring=
15955 output_objdir=.
15956 libname=conftest
15957 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15958 allow_undefined_flag_CXX=
15959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15960 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15961 ac_status=$?
15962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15963 test $ac_status = 0; }
15964 then
15965 lt_cv_archive_cmds_need_lc_CXX=no
15966 else
15967 lt_cv_archive_cmds_need_lc_CXX=yes
15969 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15970 else
15971 cat conftest.err 1>&5
15973 $RM conftest*
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15977 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15978 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15980 esac
15983 esac
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16049 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16051 library_names_spec=
16052 libname_spec='lib$name'
16053 soname_spec=
16054 shrext_cmds=".so"
16055 postinstall_cmds=
16056 postuninstall_cmds=
16057 finish_cmds=
16058 finish_eval=
16059 shlibpath_var=
16060 shlibpath_overrides_runpath=unknown
16061 version_type=none
16062 dynamic_linker="$host_os ld.so"
16063 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16064 need_lib_prefix=unknown
16065 hardcode_into_libs=no
16067 # when you set need_version to no, make sure it does not cause -set_version
16068 # flags to be left without arguments
16069 need_version=unknown
16071 case $host_os in
16072 aix3*)
16073 version_type=linux
16074 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16075 shlibpath_var=LIBPATH
16077 # AIX 3 has no versioning support, so we append a major version to the name.
16078 soname_spec='${libname}${release}${shared_ext}$major'
16081 aix[4-9]*)
16082 version_type=linux
16083 need_lib_prefix=no
16084 need_version=no
16085 hardcode_into_libs=yes
16086 if test "$host_cpu" = ia64; then
16087 # AIX 5 supports IA64
16088 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16089 shlibpath_var=LD_LIBRARY_PATH
16090 else
16091 # With GCC up to 2.95.x, collect2 would create an import file
16092 # for dependence libraries. The import file would start with
16093 # the line `#! .'. This would cause the generated library to
16094 # depend on `.', always an invalid library. This was fixed in
16095 # development snapshots of GCC prior to 3.0.
16096 case $host_os in
16097 aix4 | aix4.[01] | aix4.[01].*)
16098 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16099 echo ' yes '
16100 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16102 else
16103 can_build_shared=no
16106 esac
16107 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16108 # soname into executable. Probably we can add versioning support to
16109 # collect2, so additional links can be useful in future.
16110 if test "$aix_use_runtimelinking" = yes; then
16111 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16112 # instead of lib<name>.a to let people know that these are not
16113 # typical AIX shared libraries.
16114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16115 else
16116 # We preserve .a as extension for shared libraries through AIX4.2
16117 # and later when we are not doing run time linking.
16118 library_names_spec='${libname}${release}.a $libname.a'
16119 soname_spec='${libname}${release}${shared_ext}$major'
16121 shlibpath_var=LIBPATH
16125 amigaos*)
16126 case $host_cpu in
16127 powerpc)
16128 # Since July 2007 AmigaOS4 officially supports .so libraries.
16129 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16132 m68k)
16133 library_names_spec='$libname.ixlibrary $libname.a'
16134 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16135 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
16137 esac
16140 beos*)
16141 library_names_spec='${libname}${shared_ext}'
16142 dynamic_linker="$host_os ld.so"
16143 shlibpath_var=LIBRARY_PATH
16146 bsdi[45]*)
16147 version_type=linux
16148 need_version=no
16149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16150 soname_spec='${libname}${release}${shared_ext}$major'
16151 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16152 shlibpath_var=LD_LIBRARY_PATH
16153 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16154 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16155 # the default ld.so.conf also contains /usr/contrib/lib and
16156 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16157 # libtool to hard-code these into programs
16160 cygwin* | mingw* | pw32* | cegcc*)
16161 version_type=windows
16162 shrext_cmds=".dll"
16163 need_version=no
16164 need_lib_prefix=no
16166 case $GCC,$host_os in
16167 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16168 library_names_spec='$libname.dll.a'
16169 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16170 postinstall_cmds='base_file=`basename \${file}`~
16171 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16172 dldir=$destdir/`dirname \$dlpath`~
16173 test -d \$dldir || mkdir -p \$dldir~
16174 $install_prog $dir/$dlname \$dldir/$dlname~
16175 chmod a+x \$dldir/$dlname~
16176 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16177 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16179 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16180 dlpath=$dir/\$dldll~
16181 $RM \$dlpath'
16182 shlibpath_overrides_runpath=yes
16184 case $host_os in
16185 cygwin*)
16186 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16187 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16188 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16190 mingw* | cegcc*)
16191 # MinGW DLLs use traditional 'lib' prefix
16192 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16193 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16194 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16195 # It is most probably a Windows format PATH printed by
16196 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16197 # path with ; separators, and with drive letters. We can handle the
16198 # drive letters (cygwin fileutils understands them), so leave them,
16199 # especially as we might pass files found there to a mingw objdump,
16200 # which wouldn't understand a cygwinified path. Ahh.
16201 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16202 else
16203 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16206 pw32*)
16207 # pw32 DLLs use 'pw' prefix rather than 'lib'
16208 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16210 esac
16214 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16216 esac
16217 dynamic_linker='Win32 ld.exe'
16218 # FIXME: first we should search . and the directory the executable is in
16219 shlibpath_var=PATH
16222 darwin* | rhapsody*)
16223 dynamic_linker="$host_os dyld"
16224 version_type=darwin
16225 need_lib_prefix=no
16226 need_version=no
16227 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16228 soname_spec='${libname}${release}${major}$shared_ext'
16229 shlibpath_overrides_runpath=yes
16230 shlibpath_var=DYLD_LIBRARY_PATH
16231 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16233 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16236 dgux*)
16237 version_type=linux
16238 need_lib_prefix=no
16239 need_version=no
16240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16241 soname_spec='${libname}${release}${shared_ext}$major'
16242 shlibpath_var=LD_LIBRARY_PATH
16245 freebsd1*)
16246 dynamic_linker=no
16249 freebsd* | dragonfly*)
16250 # DragonFly does not have aout. When/if they implement a new
16251 # versioning mechanism, adjust this.
16252 if test -x /usr/bin/objformat; then
16253 objformat=`/usr/bin/objformat`
16254 else
16255 case $host_os in
16256 freebsd[123]*) objformat=aout ;;
16257 *) objformat=elf ;;
16258 esac
16260 version_type=freebsd-$objformat
16261 case $version_type in
16262 freebsd-elf*)
16263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16264 need_version=no
16265 need_lib_prefix=no
16267 freebsd-*)
16268 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16269 need_version=yes
16271 esac
16272 shlibpath_var=LD_LIBRARY_PATH
16273 case $host_os in
16274 freebsd2*)
16275 shlibpath_overrides_runpath=yes
16277 freebsd3.[01]* | freebsdelf3.[01]*)
16278 shlibpath_overrides_runpath=yes
16279 hardcode_into_libs=yes
16281 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16282 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16283 shlibpath_overrides_runpath=no
16284 hardcode_into_libs=yes
16286 *) # from 4.6 on, and DragonFly
16287 shlibpath_overrides_runpath=yes
16288 hardcode_into_libs=yes
16290 esac
16293 gnu*)
16294 version_type=linux
16295 need_lib_prefix=no
16296 need_version=no
16297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16298 soname_spec='${libname}${release}${shared_ext}$major'
16299 shlibpath_var=LD_LIBRARY_PATH
16300 hardcode_into_libs=yes
16303 hpux9* | hpux10* | hpux11*)
16304 # Give a soname corresponding to the major version so that dld.sl refuses to
16305 # link against other versions.
16306 version_type=sunos
16307 need_lib_prefix=no
16308 need_version=no
16309 case $host_cpu in
16310 ia64*)
16311 shrext_cmds='.so'
16312 hardcode_into_libs=yes
16313 dynamic_linker="$host_os dld.so"
16314 shlibpath_var=LD_LIBRARY_PATH
16315 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
16319 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16320 else
16321 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16323 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16325 hppa*64*)
16326 shrext_cmds='.sl'
16327 hardcode_into_libs=yes
16328 dynamic_linker="$host_os dld.sl"
16329 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16332 soname_spec='${libname}${release}${shared_ext}$major'
16333 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16334 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16337 shrext_cmds='.sl'
16338 dynamic_linker="$host_os dld.sl"
16339 shlibpath_var=SHLIB_PATH
16340 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16342 soname_spec='${libname}${release}${shared_ext}$major'
16344 esac
16345 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16346 postinstall_cmds='chmod 555 $lib'
16349 interix[3-9]*)
16350 version_type=linux
16351 need_lib_prefix=no
16352 need_version=no
16353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16354 soname_spec='${libname}${release}${shared_ext}$major'
16355 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16356 shlibpath_var=LD_LIBRARY_PATH
16357 shlibpath_overrides_runpath=no
16358 hardcode_into_libs=yes
16361 irix5* | irix6* | nonstopux*)
16362 case $host_os in
16363 nonstopux*) version_type=nonstopux ;;
16365 if test "$lt_cv_prog_gnu_ld" = yes; then
16366 version_type=linux
16367 else
16368 version_type=irix
16369 fi ;;
16370 esac
16371 need_lib_prefix=no
16372 need_version=no
16373 soname_spec='${libname}${release}${shared_ext}$major'
16374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16375 case $host_os in
16376 irix5* | nonstopux*)
16377 libsuff= shlibsuff=
16380 case $LD in # libtool.m4 will add one of these switches to LD
16381 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16382 libsuff= shlibsuff= libmagic=32-bit;;
16383 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16384 libsuff=32 shlibsuff=N32 libmagic=N32;;
16385 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16386 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16387 *) libsuff= shlibsuff= libmagic=never-match;;
16388 esac
16390 esac
16391 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16392 shlibpath_overrides_runpath=no
16393 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16394 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16395 hardcode_into_libs=yes
16398 # No shared lib support for Linux oldld, aout, or coff.
16399 linux*oldld* | linux*aout* | linux*coff*)
16400 dynamic_linker=no
16403 # This must be Linux ELF.
16404 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16405 version_type=linux
16406 need_lib_prefix=no
16407 need_version=no
16408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16409 soname_spec='${libname}${release}${shared_ext}$major'
16410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16411 shlibpath_var=LD_LIBRARY_PATH
16412 shlibpath_overrides_runpath=no
16414 # Some binutils ld are patched to set DT_RUNPATH
16415 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16416 $as_echo_n "(cached) " >&6
16417 else
16418 lt_cv_shlibpath_overrides_runpath=no
16419 save_LDFLAGS=$LDFLAGS
16420 save_libdir=$libdir
16421 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16422 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16423 if test x$gcc_no_link = xyes; then
16424 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16427 /* end confdefs.h. */
16430 main ()
16434 return 0;
16436 _ACEOF
16437 if ac_fn_cxx_try_link "$LINENO"; then :
16438 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16439 lt_cv_shlibpath_overrides_runpath=yes
16442 rm -f core conftest.err conftest.$ac_objext \
16443 conftest$ac_exeext conftest.$ac_ext
16444 LDFLAGS=$save_LDFLAGS
16445 libdir=$save_libdir
16449 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16451 # This implies no fast_install, which is unacceptable.
16452 # Some rework will be needed to allow for fast_install
16453 # before this can be enabled.
16454 hardcode_into_libs=yes
16456 # Append ld.so.conf contents to the search path
16457 if test -f /etc/ld.so.conf; then
16458 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;/^$/d' | tr '\n' ' '`
16459 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16462 # We used to test for /lib/ld.so.1 and disable shared libraries on
16463 # powerpc, because MkLinux only supported shared libraries with the
16464 # GNU dynamic linker. Since this was broken with cross compilers,
16465 # most powerpc-linux boxes support dynamic linking these days and
16466 # people can always --disable-shared, the test was removed, and we
16467 # assume the GNU/Linux dynamic linker is in use.
16468 dynamic_linker='GNU/Linux ld.so'
16471 netbsd*)
16472 version_type=sunos
16473 need_lib_prefix=no
16474 need_version=no
16475 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16478 dynamic_linker='NetBSD (a.out) ld.so'
16479 else
16480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16481 soname_spec='${libname}${release}${shared_ext}$major'
16482 dynamic_linker='NetBSD ld.elf_so'
16484 shlibpath_var=LD_LIBRARY_PATH
16485 shlibpath_overrides_runpath=yes
16486 hardcode_into_libs=yes
16489 newsos6)
16490 version_type=linux
16491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492 shlibpath_var=LD_LIBRARY_PATH
16493 shlibpath_overrides_runpath=yes
16496 *nto* | *qnx*)
16497 version_type=qnx
16498 need_lib_prefix=no
16499 need_version=no
16500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16501 soname_spec='${libname}${release}${shared_ext}$major'
16502 shlibpath_var=LD_LIBRARY_PATH
16503 shlibpath_overrides_runpath=no
16504 hardcode_into_libs=yes
16505 dynamic_linker='ldqnx.so'
16508 openbsd*)
16509 version_type=sunos
16510 sys_lib_dlsearch_path_spec="/usr/lib"
16511 need_lib_prefix=no
16512 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16513 case $host_os in
16514 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16515 *) need_version=no ;;
16516 esac
16517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16519 shlibpath_var=LD_LIBRARY_PATH
16520 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16521 case $host_os in
16522 openbsd2.[89] | openbsd2.[89].*)
16523 shlibpath_overrides_runpath=no
16526 shlibpath_overrides_runpath=yes
16528 esac
16529 else
16530 shlibpath_overrides_runpath=yes
16534 os2*)
16535 libname_spec='$name'
16536 shrext_cmds=".dll"
16537 need_lib_prefix=no
16538 library_names_spec='$libname${shared_ext} $libname.a'
16539 dynamic_linker='OS/2 ld.exe'
16540 shlibpath_var=LIBPATH
16543 osf3* | osf4* | osf5*)
16544 version_type=osf
16545 need_lib_prefix=no
16546 need_version=no
16547 soname_spec='${libname}${release}${shared_ext}$major'
16548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16549 shlibpath_var=LD_LIBRARY_PATH
16550 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16551 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16554 rdos*)
16555 dynamic_linker=no
16558 solaris*)
16559 version_type=linux
16560 need_lib_prefix=no
16561 need_version=no
16562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16563 soname_spec='${libname}${release}${shared_ext}$major'
16564 shlibpath_var=LD_LIBRARY_PATH
16565 shlibpath_overrides_runpath=yes
16566 hardcode_into_libs=yes
16567 # ldd complains unless libraries are executable
16568 postinstall_cmds='chmod +x $lib'
16571 sunos4*)
16572 version_type=sunos
16573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16574 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16575 shlibpath_var=LD_LIBRARY_PATH
16576 shlibpath_overrides_runpath=yes
16577 if test "$with_gnu_ld" = yes; then
16578 need_lib_prefix=no
16580 need_version=yes
16583 sysv4 | sysv4.3*)
16584 version_type=linux
16585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16586 soname_spec='${libname}${release}${shared_ext}$major'
16587 shlibpath_var=LD_LIBRARY_PATH
16588 case $host_vendor in
16589 sni)
16590 shlibpath_overrides_runpath=no
16591 need_lib_prefix=no
16592 runpath_var=LD_RUN_PATH
16594 siemens)
16595 need_lib_prefix=no
16597 motorola)
16598 need_lib_prefix=no
16599 need_version=no
16600 shlibpath_overrides_runpath=no
16601 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16603 esac
16606 sysv4*MP*)
16607 if test -d /usr/nec ;then
16608 version_type=linux
16609 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16610 soname_spec='$libname${shared_ext}.$major'
16611 shlibpath_var=LD_LIBRARY_PATH
16615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16616 version_type=freebsd-elf
16617 need_lib_prefix=no
16618 need_version=no
16619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16620 soname_spec='${libname}${release}${shared_ext}$major'
16621 shlibpath_var=LD_LIBRARY_PATH
16622 shlibpath_overrides_runpath=yes
16623 hardcode_into_libs=yes
16624 if test "$with_gnu_ld" = yes; then
16625 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16626 else
16627 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16628 case $host_os in
16629 sco3.2v5*)
16630 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16632 esac
16634 sys_lib_dlsearch_path_spec='/usr/lib'
16637 tpf*)
16638 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16639 version_type=linux
16640 need_lib_prefix=no
16641 need_version=no
16642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16643 shlibpath_var=LD_LIBRARY_PATH
16644 shlibpath_overrides_runpath=no
16645 hardcode_into_libs=yes
16648 uts4*)
16649 version_type=linux
16650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16651 soname_spec='${libname}${release}${shared_ext}$major'
16652 shlibpath_var=LD_LIBRARY_PATH
16656 dynamic_linker=no
16658 esac
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16660 $as_echo "$dynamic_linker" >&6; }
16661 test "$dynamic_linker" = no && can_build_shared=no
16663 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16664 if test "$GCC" = yes; then
16665 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16668 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16669 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16671 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16672 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16711 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16712 hardcode_action_CXX=
16713 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16714 test -n "$runpath_var_CXX" ||
16715 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16717 # We can hardcode non-existent directories.
16718 if test "$hardcode_direct_CXX" != no &&
16719 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16720 # have to relink, otherwise we might link with an installed library
16721 # when we should be linking with a yet-to-be-installed one
16722 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16723 test "$hardcode_minus_L_CXX" != no; then
16724 # Linking always hardcodes the temporary library directory.
16725 hardcode_action_CXX=relink
16726 else
16727 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16728 hardcode_action_CXX=immediate
16730 else
16731 # We cannot hardcode anything, or else we can only hardcode existing
16732 # directories.
16733 hardcode_action_CXX=unsupported
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16736 $as_echo "$hardcode_action_CXX" >&6; }
16738 if test "$hardcode_action_CXX" = relink ||
16739 test "$inherit_rpath_CXX" = yes; then
16740 # Fast installation is not supported
16741 enable_fast_install=no
16742 elif test "$shlibpath_overrides_runpath" = yes ||
16743 test "$enable_shared" = no; then
16744 # Fast installation is not necessary
16745 enable_fast_install=needless
16754 fi # test -n "$compiler"
16756 CC=$lt_save_CC
16757 LDCXX=$LD
16758 LD=$lt_save_LD
16759 GCC=$lt_save_GCC
16760 with_gnu_ld=$lt_save_with_gnu_ld
16761 lt_cv_path_LDCXX=$lt_cv_path_LD
16762 lt_cv_path_LD=$lt_save_path_LD
16763 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16764 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16765 fi # test "$_lt_caught_CXX_error" != yes
16767 ac_ext=c
16768 ac_cpp='$CPP $CPPFLAGS'
16769 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16770 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16771 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16775 # Handle -Werror default case.
16776 if test "$ENABLE_WERROR" = default; then
16777 case "$host_os" in
16778 *linux*)
16779 if test "$GCC" = yes; then
16780 ENABLE_WERROR=yes
16783 esac
16786 if test "x${COMPILE_COLLECTIONS}" = xyes; then
16787 # Extract the first word of "perl", so it can be a program name with args.
16788 set dummy perl; ac_word=$2
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16790 $as_echo_n "checking for $ac_word... " >&6; }
16791 if test "${ac_cv_path_PERL+set}" = set; then :
16792 $as_echo_n "(cached) " >&6
16793 else
16794 case $PERL in
16795 [\\/]* | ?:[\\/]*)
16796 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
16799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16800 for as_dir in $PATH
16802 IFS=$as_save_IFS
16803 test -z "$as_dir" && as_dir=.
16804 for ac_exec_ext in '' $ac_executable_extensions; do
16805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16806 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
16807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16808 break 2
16810 done
16811 done
16812 IFS=$as_save_IFS
16815 esac
16817 PERL=$ac_cv_path_PERL
16818 if test -n "$PERL"; then
16819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16820 $as_echo "$PERL" >&6; }
16821 else
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16823 $as_echo "no" >&6; }
16829 ac_config_files="$ac_config_files lib/mkcollections.pl"
16831 ac_config_commands="$ac_config_commands mkcollections.pl"
16835 if test "x${COMPILE_JNI}" = xyes; then
16839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((,,))" >&5
16840 $as_echo_n "checking __attribute__((,,))... " >&6; }
16841 if test "${gcc_cv_c_gcc_attribute_supported+set}" = set; then :
16842 $as_echo_n "(cached) " >&6
16843 else
16845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16846 /* end confdefs.h. */
16849 main ()
16851 extern int testfunction(int x) __attribute__((,,))
16853 return 0;
16855 _ACEOF
16856 if ac_fn_c_try_compile "$LINENO"; then :
16857 gcc_cv_c_gcc_attribute_supported=yes
16858 else
16859 gcc_cv_c_gcc_attribute_supported=no
16861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16865 if test "x$gcc_cv_c_gcc_attribute_supported" = xyes; then
16866 true
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16868 $as_echo "yes" >&6; }
16870 $as_echo "#define HAVE_GNUC25_ATTRIB /**/" >>confdefs.h
16873 else
16874 true
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16876 $as_echo "no" >&6; }
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((unused))" >&5
16889 $as_echo_n "checking __attribute__((unused))... " >&6; }
16890 if test "${gcc_cv_c_gcc_attribute_unused+set}" = set; then :
16891 $as_echo_n "(cached) " >&6
16892 else
16894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895 /* end confdefs.h. */
16898 main ()
16900 extern int testfunction(int x) __attribute__((unused))
16902 return 0;
16904 _ACEOF
16905 if ac_fn_c_try_compile "$LINENO"; then :
16906 gcc_cv_c_gcc_attribute_unused=yes
16907 else
16908 gcc_cv_c_gcc_attribute_unused=no
16910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16914 if test "x$gcc_cv_c_gcc_attribute_unused" = xyes; then
16915 true
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16917 $as_echo "yes" >&6; }
16919 $as_echo "#define HAVE_GNUC25_UNUSED /**/" >>confdefs.h
16922 else
16923 true
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16925 $as_echo "no" >&6; }
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16934 $as_echo_n "checking for ANSI C header files... " >&6; }
16935 if test "${ac_cv_header_stdc+set}" = set; then :
16936 $as_echo_n "(cached) " >&6
16937 else
16938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16939 /* end confdefs.h. */
16940 #include <stdlib.h>
16941 #include <stdarg.h>
16942 #include <string.h>
16943 #include <float.h>
16946 main ()
16950 return 0;
16952 _ACEOF
16953 if ac_fn_c_try_compile "$LINENO"; then :
16954 ac_cv_header_stdc=yes
16955 else
16956 ac_cv_header_stdc=no
16958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16960 if test $ac_cv_header_stdc = yes; then
16961 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16963 /* end confdefs.h. */
16964 #include <string.h>
16966 _ACEOF
16967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16968 $EGREP "memchr" >/dev/null 2>&1; then :
16970 else
16971 ac_cv_header_stdc=no
16973 rm -f conftest*
16977 if test $ac_cv_header_stdc = yes; then
16978 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16980 /* end confdefs.h. */
16981 #include <stdlib.h>
16983 _ACEOF
16984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16985 $EGREP "free" >/dev/null 2>&1; then :
16987 else
16988 ac_cv_header_stdc=no
16990 rm -f conftest*
16994 if test $ac_cv_header_stdc = yes; then
16995 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16996 if test "$cross_compiling" = yes; then :
16998 else
16999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17000 /* end confdefs.h. */
17001 #include <ctype.h>
17002 #include <stdlib.h>
17003 #if ((' ' & 0x0FF) == 0x020)
17004 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
17005 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
17006 #else
17007 # define ISLOWER(c) \
17008 (('a' <= (c) && (c) <= 'i') \
17009 || ('j' <= (c) && (c) <= 'r') \
17010 || ('s' <= (c) && (c) <= 'z'))
17011 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
17012 #endif
17014 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
17016 main ()
17018 int i;
17019 for (i = 0; i < 256; i++)
17020 if (XOR (islower (i), ISLOWER (i))
17021 || toupper (i) != TOUPPER (i))
17022 return 2;
17023 return 0;
17025 _ACEOF
17026 if ac_fn_c_try_run "$LINENO"; then :
17028 else
17029 ac_cv_header_stdc=no
17031 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17032 conftest.$ac_objext conftest.beam conftest.$ac_ext
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
17038 $as_echo "$ac_cv_header_stdc" >&6; }
17039 if test $ac_cv_header_stdc = yes; then
17041 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
17047 $as_echo_n "checking size of void *... " >&6; }
17048 if test "${ac_cv_sizeof_void_p+set}" = set; then :
17049 $as_echo_n "(cached) " >&6
17050 else
17051 for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence.
17052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17053 /* end confdefs.h. */
17054 #include "confdefs.h"
17055 #include <sys/types.h>
17059 main ()
17061 switch (0) case 0: case (sizeof (void *) == $ac_size):;
17063 return 0;
17065 _ACEOF
17066 if ac_fn_c_try_compile "$LINENO"; then :
17067 ac_cv_sizeof_void_p=$ac_size
17069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17070 if test x$ac_cv_sizeof_void_p != x ; then break; fi
17071 done
17075 if test x$ac_cv_sizeof_void_p = x ; then
17076 as_fn_error "cannot determine a size for void *" "$LINENO" 5
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
17079 $as_echo "$ac_cv_sizeof_void_p" >&6; }
17081 cat >>confdefs.h <<_ACEOF
17082 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
17083 _ACEOF
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
17088 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
17089 if test "${ac_cv_c_bigendian+set}" = set; then :
17090 $as_echo_n "(cached) " >&6
17091 else
17092 ac_cv_c_bigendian=unknown
17093 # See if sys/param.h defines the BYTE_ORDER macro.
17094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17095 /* end confdefs.h. */
17096 #include <sys/types.h>
17097 #include <sys/param.h>
17099 main ()
17102 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
17103 bogus endian macros
17104 #endif
17106 return 0;
17108 _ACEOF
17109 if ac_fn_c_try_compile "$LINENO"; then :
17110 # It does; now see whether it defined to BIG_ENDIAN or not.
17111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17112 /* end confdefs.h. */
17113 #include <sys/types.h>
17114 #include <sys/param.h>
17116 main ()
17119 #if BYTE_ORDER != BIG_ENDIAN
17120 not big endian
17121 #endif
17123 return 0;
17125 _ACEOF
17126 if ac_fn_c_try_compile "$LINENO"; then :
17127 ac_cv_c_bigendian=yes
17128 else
17129 ac_cv_c_bigendian=no
17131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17134 if test $ac_cv_c_bigendian = unknown; then
17135 if test "$cross_compiling" = yes; then :
17136 echo $ac_n "cross-compiling... " 2>&6
17137 else
17138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17139 /* end confdefs.h. */
17140 main () {
17141 /* Are we little or big endian? From Harbison&Steele. */
17142 union
17144 long l;
17145 char c[sizeof (long)];
17146 } u;
17147 u.l = 1;
17148 exit (u.c[sizeof (long) - 1] == 1);
17150 _ACEOF
17151 if ac_fn_c_try_run "$LINENO"; then :
17152 ac_cv_c_bigendian=no
17153 else
17154 ac_cv_c_bigendian=yes
17156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17157 conftest.$ac_objext conftest.beam conftest.$ac_ext
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17163 $as_echo "$ac_cv_c_bigendian" >&6; }
17164 if test $ac_cv_c_bigendian = unknown; then
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
17166 $as_echo_n "checking to probe for byte ordering... " >&6; }
17168 cat >conftest.c <<EOF
17169 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17170 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17171 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
17172 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17173 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17174 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
17175 int main() { _ascii (); _ebcdic (); return 0; }
17177 if test -f conftest.c ; then
17178 if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
17179 if test `grep -l BIGenDianSyS conftest.o` ; then
17180 echo $ac_n ' big endian probe OK, ' 1>&6
17181 ac_cv_c_bigendian=yes
17183 if test `grep -l LiTTleEnDian conftest.o` ; then
17184 echo $ac_n ' little endian probe OK, ' 1>&6
17185 if test $ac_cv_c_bigendian = yes ; then
17186 ac_cv_c_bigendian=unknown;
17187 else
17188 ac_cv_c_bigendian=no
17191 echo $ac_n 'guessing bigendian ... ' >&6
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17195 $as_echo "$ac_cv_c_bigendian" >&6; }
17197 if test $ac_cv_c_bigendian = yes; then
17199 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17202 $as_echo "#define HOST_WORDS_BIG_ENDIAN 1" >>confdefs.h
17204 BYTEORDER=4321
17205 else
17206 BYTEORDER=1234
17209 cat >>confdefs.h <<_ACEOF
17210 #define BYTEORDER $BYTEORDER
17211 _ACEOF
17213 if test $ac_cv_c_bigendian = unknown; then
17214 as_fn_error "unknown endianess - sorry, please pre-set ac_cv_c_bigendian" "$LINENO" 5
17218 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
17219 asm/ioctls.h \
17220 inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
17221 sys/time.h \
17222 sys/select.h \
17223 crt_externs.h \
17224 fcntl.h \
17225 sys/mman.h \
17226 magic.h \
17227 sys/event.h sys/epoll.h \
17228 ifaddrs.h \
17229 netinet/in_systm.h netinet/ip.h net/if.h \
17230 sys/loadavg.h sys/sockio.h
17231 do :
17232 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17233 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17234 eval as_val=\$$as_ac_Header
17235 if test "x$as_val" = x""yes; then :
17236 cat >>confdefs.h <<_ACEOF
17237 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17238 _ACEOF
17242 done
17245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17246 /* end confdefs.h. */
17247 #include <stdint.h>
17249 _ACEOF
17250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17251 $EGREP "uint32_t" >/dev/null 2>&1; then :
17253 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
17256 rm -f conftest*
17258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17259 /* end confdefs.h. */
17260 #include <inttypes.h>
17262 _ACEOF
17263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17264 $EGREP "uint32_t" >/dev/null 2>&1; then :
17266 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
17269 rm -f conftest*
17271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17272 /* end confdefs.h. */
17273 #include <sys/types.h>
17275 _ACEOF
17276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17277 $EGREP "u_int32_t" >/dev/null 2>&1; then :
17279 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
17282 rm -f conftest*
17284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17285 /* end confdefs.h. */
17286 #include <sys/config.h>
17288 _ACEOF
17289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17290 $EGREP "u_int32_t" >/dev/null 2>&1; then :
17292 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
17295 rm -f conftest*
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
17299 $as_echo_n "checking for library containing inet_pton... " >&6; }
17300 if test "${ac_cv_search_inet_pton+set}" = set; then :
17301 $as_echo_n "(cached) " >&6
17302 else
17303 ac_func_search_save_LIBS=$LIBS
17304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17305 /* end confdefs.h. */
17307 /* Override any GCC internal prototype to avoid an error.
17308 Use char because int might match the return type of a GCC
17309 builtin and then its argument prototype would still apply. */
17310 #ifdef __cplusplus
17311 extern "C"
17312 #endif
17313 char inet_pton ();
17315 main ()
17317 return inet_pton ();
17319 return 0;
17321 _ACEOF
17322 for ac_lib in '' nsl; do
17323 if test -z "$ac_lib"; then
17324 ac_res="none required"
17325 else
17326 ac_res=-l$ac_lib
17327 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17329 if test x$gcc_no_link = xyes; then
17330 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17332 if ac_fn_c_try_link "$LINENO"; then :
17333 ac_cv_search_inet_pton=$ac_res
17335 rm -f core conftest.err conftest.$ac_objext \
17336 conftest$ac_exeext
17337 if test "${ac_cv_search_inet_pton+set}" = set; then :
17338 break
17340 done
17341 if test "${ac_cv_search_inet_pton+set}" = set; then :
17343 else
17344 ac_cv_search_inet_pton=no
17346 rm conftest.$ac_ext
17347 LIBS=$ac_func_search_save_LIBS
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
17350 $as_echo "$ac_cv_search_inet_pton" >&6; }
17351 ac_res=$ac_cv_search_inet_pton
17352 if test "$ac_res" != no; then :
17353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
17358 $as_echo_n "checking for gethostname in -lsocket... " >&6; }
17359 if test "${ac_cv_lib_socket_gethostname+set}" = set; then :
17360 $as_echo_n "(cached) " >&6
17361 else
17362 ac_check_lib_save_LIBS=$LIBS
17363 LIBS="-lsocket $LIBS"
17364 if test x$gcc_no_link = xyes; then
17365 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17368 /* end confdefs.h. */
17370 /* Override any GCC internal prototype to avoid an error.
17371 Use char because int might match the return type of a GCC
17372 builtin and then its argument prototype would still apply. */
17373 #ifdef __cplusplus
17374 extern "C"
17375 #endif
17376 char gethostname ();
17378 main ()
17380 return gethostname ();
17382 return 0;
17384 _ACEOF
17385 if ac_fn_c_try_link "$LINENO"; then :
17386 ac_cv_lib_socket_gethostname=yes
17387 else
17388 ac_cv_lib_socket_gethostname=no
17390 rm -f core conftest.err conftest.$ac_objext \
17391 conftest$ac_exeext conftest.$ac_ext
17392 LIBS=$ac_check_lib_save_LIBS
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
17395 $as_echo "$ac_cv_lib_socket_gethostname" >&6; }
17396 if test "x$ac_cv_lib_socket_gethostname" = x""yes; then :
17397 cat >>confdefs.h <<_ACEOF
17398 #define HAVE_LIBSOCKET 1
17399 _ACEOF
17401 LIBS="-lsocket $LIBS"
17405 for ac_func in ftruncate fsync select \
17406 gethostname socket strerror fork pipe execve open close \
17407 lseek fstat read readv write writev htonl memset htons connect \
17408 getsockname getpeername bind listen accept \
17409 recvfrom send sendto setsockopt getsockopt time mktime \
17410 gethostbyname_r localtime_r \
17411 strerror_r \
17412 fcntl \
17413 statvfs \
17414 mmap munmap mincore msync madvise getpagesize sysconf \
17415 lstat readlink \
17416 inet_aton inet_addr inet_pton \
17417 getifaddrs kqueue kevent epoll_create \
17418 getloadavg
17419 do :
17420 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17421 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17422 eval as_val=\$$as_ac_var
17423 if test "x$as_val" = x""yes; then :
17424 cat >>confdefs.h <<_ACEOF
17425 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17426 _ACEOF
17429 done
17432 LIBMAGIC=
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
17434 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
17435 if test "${ac_cv_lib_magic_magic_open+set}" = set; then :
17436 $as_echo_n "(cached) " >&6
17437 else
17438 ac_check_lib_save_LIBS=$LIBS
17439 LIBS="-lmagic $LIBS"
17440 if test x$gcc_no_link = xyes; then
17441 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17444 /* end confdefs.h. */
17446 /* Override any GCC internal prototype to avoid an error.
17447 Use char because int might match the return type of a GCC
17448 builtin and then its argument prototype would still apply. */
17449 #ifdef __cplusplus
17450 extern "C"
17451 #endif
17452 char magic_open ();
17454 main ()
17456 return magic_open ();
17458 return 0;
17460 _ACEOF
17461 if ac_fn_c_try_link "$LINENO"; then :
17462 ac_cv_lib_magic_magic_open=yes
17463 else
17464 ac_cv_lib_magic_magic_open=no
17466 rm -f core conftest.err conftest.$ac_objext \
17467 conftest$ac_exeext conftest.$ac_ext
17468 LIBS=$ac_check_lib_save_LIBS
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
17471 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
17472 if test "x$ac_cv_lib_magic_magic_open" = x""yes; then :
17473 LIBMAGIC=-lmagic
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
17479 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
17480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17481 /* end confdefs.h. */
17482 #include <netinet/in.h>
17484 main ()
17486 struct sockaddr_in6 addr6;
17488 return 0;
17490 _ACEOF
17491 if ac_fn_c_try_compile "$LINENO"; then :
17493 $as_echo "#define HAVE_INET6 1" >>confdefs.h
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17496 $as_echo "yes" >&6; }
17497 else
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17499 $as_echo "no" >&6; }
17501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17504 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17505 if test "${ac_cv_header_time+set}" = set; then :
17506 $as_echo_n "(cached) " >&6
17507 else
17508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17509 /* end confdefs.h. */
17510 #include <sys/types.h>
17511 #include <sys/time.h>
17512 #include <time.h>
17515 main ()
17517 if ((struct tm *) 0)
17518 return 0;
17520 return 0;
17522 _ACEOF
17523 if ac_fn_c_try_compile "$LINENO"; then :
17524 ac_cv_header_time=yes
17525 else
17526 ac_cv_header_time=no
17528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17531 $as_echo "$ac_cv_header_time" >&6; }
17532 if test $ac_cv_header_time = yes; then
17534 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17539 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17540 if test "${ac_cv_struct_tm+set}" = set; then :
17541 $as_echo_n "(cached) " >&6
17542 else
17543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17544 /* end confdefs.h. */
17545 #include <sys/types.h>
17546 #include <time.h>
17549 main ()
17551 struct tm tm;
17552 int *p = &tm.tm_sec;
17553 return !p;
17555 return 0;
17557 _ACEOF
17558 if ac_fn_c_try_compile "$LINENO"; then :
17559 ac_cv_struct_tm=time.h
17560 else
17561 ac_cv_struct_tm=sys/time.h
17563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17566 $as_echo "$ac_cv_struct_tm" >&6; }
17567 if test $ac_cv_struct_tm = sys/time.h; then
17569 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17573 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
17574 #include <$ac_cv_struct_tm>
17577 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
17579 cat >>confdefs.h <<_ACEOF
17580 #define HAVE_STRUCT_TM_TM_ZONE 1
17581 _ACEOF
17586 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17588 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
17590 else
17591 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
17593 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
17594 ac_have_decl=1
17595 else
17596 ac_have_decl=0
17599 cat >>confdefs.h <<_ACEOF
17600 #define HAVE_DECL_TZNAME $ac_have_decl
17601 _ACEOF
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
17604 $as_echo_n "checking for tzname... " >&6; }
17605 if test "${ac_cv_var_tzname+set}" = set; then :
17606 $as_echo_n "(cached) " >&6
17607 else
17608 if test x$gcc_no_link = xyes; then
17609 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17612 /* end confdefs.h. */
17613 #include <time.h>
17614 #if !HAVE_DECL_TZNAME
17615 extern char *tzname[];
17616 #endif
17619 main ()
17621 return tzname[0][0];
17623 return 0;
17625 _ACEOF
17626 if ac_fn_c_try_link "$LINENO"; then :
17627 ac_cv_var_tzname=yes
17628 else
17629 ac_cv_var_tzname=no
17631 rm -f core conftest.err conftest.$ac_objext \
17632 conftest$ac_exeext conftest.$ac_ext
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
17635 $as_echo "$ac_cv_var_tzname" >&6; }
17636 if test $ac_cv_var_tzname = yes; then
17638 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
17645 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
17646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17647 /* end confdefs.h. */
17648 #include <time.h>
17650 main ()
17652 struct tm tim; tim.tm_gmtoff = 0;
17654 return 0;
17656 _ACEOF
17657 if ac_fn_c_try_compile "$LINENO"; then :
17659 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17662 $as_echo "yes" >&6; }
17663 else
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17665 $as_echo "no" >&6; }
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
17667 $as_echo_n "checking for global timezone variable... " >&6; }
17668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17669 /* end confdefs.h. */
17670 #include <time.h>
17672 main ()
17674 void i(){long z2 = 2*timezone;}
17676 return 0;
17678 _ACEOF
17679 if ac_fn_c_try_compile "$LINENO"; then :
17681 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17684 $as_echo "yes" >&6; }
17685 else
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17687 $as_echo "no" >&6; }
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
17689 $as_echo_n "checking for global _timezone variable... " >&6; }
17690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17691 /* end confdefs.h. */
17692 #include <time.h>
17694 main ()
17696 long z2 = _timezone;
17698 return 0;
17700 _ACEOF
17701 if ac_fn_c_try_compile "$LINENO"; then :
17703 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17706 $as_echo "yes" >&6; }
17707 else
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17709 $as_echo "no" >&6; }
17711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17718 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17719 if test "${ac_cv_c_const+set}" = set; then :
17720 $as_echo_n "(cached) " >&6
17721 else
17722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17723 /* end confdefs.h. */
17726 main ()
17728 /* FIXME: Include the comments suggested by Paul. */
17729 #ifndef __cplusplus
17730 /* Ultrix mips cc rejects this. */
17731 typedef int charset[2];
17732 const charset cs;
17733 /* SunOS 4.1.1 cc rejects this. */
17734 char const *const *pcpcc;
17735 char **ppc;
17736 /* NEC SVR4.0.2 mips cc rejects this. */
17737 struct point {int x, y;};
17738 static struct point const zero = {0,0};
17739 /* AIX XL C 1.02.0.0 rejects this.
17740 It does not let you subtract one const X* pointer from another in
17741 an arm of an if-expression whose if-part is not a constant
17742 expression */
17743 const char *g = "string";
17744 pcpcc = &g + (g ? g-g : 0);
17745 /* HPUX 7.0 cc rejects these. */
17746 ++pcpcc;
17747 ppc = (char**) pcpcc;
17748 pcpcc = (char const *const *) ppc;
17749 { /* SCO 3.2v4 cc rejects this. */
17750 char *t;
17751 char const *s = 0 ? (char *) 0 : (char const *) 0;
17753 *t++ = 0;
17754 if (s) return 0;
17756 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
17757 int x[] = {25, 17};
17758 const int *foo = &x[0];
17759 ++foo;
17761 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17762 typedef const int *iptr;
17763 iptr p = 0;
17764 ++p;
17766 { /* AIX XL C 1.02.0.0 rejects this saying
17767 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17768 struct s { int j; const int *ap[3]; };
17769 struct s *b; b->j = 5;
17771 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17772 const int foo = 10;
17773 if (!foo) return 0;
17775 return !cs[0] && !zero.x;
17776 #endif
17779 return 0;
17781 _ACEOF
17782 if ac_fn_c_try_compile "$LINENO"; then :
17783 ac_cv_c_const=yes
17784 else
17785 ac_cv_c_const=no
17787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17790 $as_echo "$ac_cv_c_const" >&6; }
17791 if test $ac_cv_c_const = no; then
17793 $as_echo "#define const /**/" >>confdefs.h
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17798 $as_echo_n "checking for inline... " >&6; }
17799 if test "${ac_cv_c_inline+set}" = set; then :
17800 $as_echo_n "(cached) " >&6
17801 else
17802 ac_cv_c_inline=no
17803 for ac_kw in inline __inline__ __inline; do
17804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17805 /* end confdefs.h. */
17806 #ifndef __cplusplus
17807 typedef int foo_t;
17808 static $ac_kw foo_t static_foo () {return 0; }
17809 $ac_kw foo_t foo () {return 0; }
17810 #endif
17812 _ACEOF
17813 if ac_fn_c_try_compile "$LINENO"; then :
17814 ac_cv_c_inline=$ac_kw
17816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17817 test "$ac_cv_c_inline" != no && break
17818 done
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17822 $as_echo "$ac_cv_c_inline" >&6; }
17824 case $ac_cv_c_inline in
17825 inline | yes) ;;
17827 case $ac_cv_c_inline in
17828 no) ac_val=;;
17829 *) ac_val=$ac_cv_c_inline;;
17830 esac
17831 cat >>confdefs.h <<_ACEOF
17832 #ifndef __cplusplus
17833 #define inline $ac_val
17834 #endif
17835 _ACEOF
17837 esac
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
17840 $as_echo_n "checking for __attribute__... " >&6; }
17841 if test "${ac_cv_c_attribute+set}" = set; then :
17842 $as_echo_n "(cached) " >&6
17843 else
17845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17846 /* end confdefs.h. */
17847 void foo(void) __attribute__ ((__noreturn__));
17849 _ACEOF
17850 if ac_fn_c_try_compile "$LINENO"; then :
17851 ac_cv_c_attribute=yes
17852 else
17853 ac_cv_c_attribute=no
17856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_attribute" >&5
17860 $as_echo "$ac_cv_c_attribute" >&6; }
17862 case $ac_cv_c_attribute in
17863 yes) ;;
17865 cat >>confdefs.h <<_ACEOF
17866 #define __attribute__(x) /* nothing */
17867 _ACEOF
17869 esac
17873 ac_ext=c
17874 ac_cpp='$CPP $CPPFLAGS'
17875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() takes" >&5
17880 $as_echo_n "checking how many arguments gethostbyname_r() takes... " >&6; }
17882 if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then :
17883 $as_echo_n "(cached) " >&6
17884 else
17887 ################################################################
17889 ac_cv_func_which_gethostbyname_r=unknown
17892 # ONE ARGUMENT (sanity check)
17895 # This should fail, as there is no variant of gethostbyname_r() that takes
17896 # a single argument. If it actually compiles, then we can assume that
17897 # netdb.h is not declaring the function, and the compiler is thereby
17898 # assuming an implicit prototype. In which case, we're out of luck.
17900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17901 /* end confdefs.h. */
17902 #include <netdb.h>
17904 main ()
17907 char *name = "www.gnu.org";
17908 (void)gethostbyname_r(name) /* ; */
17911 return 0;
17913 _ACEOF
17914 if ac_fn_c_try_compile "$LINENO"; then :
17915 ac_cv_func_which_gethostbyname_r=no
17917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17920 # SIX ARGUMENTS
17921 # (e.g. Linux)
17924 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17927 /* end confdefs.h. */
17928 #include <netdb.h>
17930 main ()
17933 char *name = "www.gnu.org";
17934 struct hostent ret, *retp;
17935 char buf[1024];
17936 int buflen = 1024;
17937 int my_h_errno;
17938 (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
17941 return 0;
17943 _ACEOF
17944 if ac_fn_c_try_compile "$LINENO"; then :
17945 ac_cv_func_which_gethostbyname_r=six
17947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17952 # FIVE ARGUMENTS
17953 # (e.g. Solaris)
17956 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17959 /* end confdefs.h. */
17960 #include <netdb.h>
17962 main ()
17965 char *name = "www.gnu.org";
17966 struct hostent ret;
17967 char buf[1024];
17968 int buflen = 1024;
17969 int my_h_errno;
17970 (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
17973 return 0;
17975 _ACEOF
17976 if ac_fn_c_try_compile "$LINENO"; then :
17977 ac_cv_func_which_gethostbyname_r=five
17979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17984 # THREE ARGUMENTS
17985 # (e.g. AIX, HP-UX, Tru64)
17988 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991 /* end confdefs.h. */
17992 #include <netdb.h>
17994 main ()
17997 char *name = "www.gnu.org";
17998 struct hostent ret;
17999 struct hostent_data data;
18000 (void)gethostbyname_r(name, &ret, &data) /* ; */
18003 return 0;
18005 _ACEOF
18006 if ac_fn_c_try_compile "$LINENO"; then :
18007 ac_cv_func_which_gethostbyname_r=three
18009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18013 ################################################################
18018 case "$ac_cv_func_which_gethostbyname_r" in
18019 three)
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: three" >&5
18021 $as_echo "three" >&6; }
18023 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_3 1" >>confdefs.h
18027 five)
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: five" >&5
18029 $as_echo "five" >&6; }
18031 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_5 1" >>confdefs.h
18035 six)
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: six" >&5
18037 $as_echo "six" >&6; }
18039 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_6 1" >>confdefs.h
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find function declaration in netdb.h" >&5
18045 $as_echo "cannot find function declaration in netdb.h" >&6; }
18048 unknown)
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't tell" >&5
18050 $as_echo "can't tell" >&6; }
18054 as_fn_error "internal error" "$LINENO" 5
18056 esac
18058 ac_ext=c
18059 ac_cpp='$CPP $CPPFLAGS'
18060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18068 if test "X$prefix" = "XNONE"; then
18069 acl_final_prefix="$ac_default_prefix"
18070 else
18071 acl_final_prefix="$prefix"
18073 if test "X$exec_prefix" = "XNONE"; then
18074 acl_final_exec_prefix='${prefix}'
18075 else
18076 acl_final_exec_prefix="$exec_prefix"
18078 acl_save_prefix="$prefix"
18079 prefix="$acl_final_prefix"
18080 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
18081 prefix="$acl_save_prefix"
18084 # Check whether --with-gnu-ld was given.
18085 if test "${with_gnu_ld+set}" = set; then :
18086 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18087 else
18088 with_gnu_ld=no
18091 # Prepare PATH_SEPARATOR.
18092 # The user is always right.
18093 if test "${PATH_SEPARATOR+set}" != set; then
18094 echo "#! /bin/sh" >conf$$.sh
18095 echo "exit 0" >>conf$$.sh
18096 chmod +x conf$$.sh
18097 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18098 PATH_SEPARATOR=';'
18099 else
18100 PATH_SEPARATOR=:
18102 rm -f conf$$.sh
18104 ac_prog=ld
18105 if test "$GCC" = yes; then
18106 # Check if gcc -print-prog-name=ld gives a path.
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
18108 $as_echo_n "checking for ld used by GCC... " >&6; }
18109 case $host in
18110 *-*-mingw*)
18111 # gcc leaves a trailing carriage return which upsets mingw
18112 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18114 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18115 esac
18116 case $ac_prog in
18117 # Accept absolute paths.
18118 [\\/]* | [A-Za-z]:[\\/]*)
18119 re_direlt='/[^/][^/]*/\.\./'
18120 # Canonicalize the path of ld
18121 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
18122 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
18123 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
18124 done
18125 test -z "$LD" && LD="$ac_prog"
18128 # If it fails, then pretend we aren't using GCC.
18129 ac_prog=ld
18132 # If it is relative, then search for the first ld in PATH.
18133 with_gnu_ld=unknown
18135 esac
18136 elif test "$with_gnu_ld" = yes; then
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18138 $as_echo_n "checking for GNU ld... " >&6; }
18139 else
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18141 $as_echo_n "checking for non-GNU ld... " >&6; }
18143 if test "${acl_cv_path_LD+set}" = set; then :
18144 $as_echo_n "(cached) " >&6
18145 else
18146 if test -z "$LD"; then
18147 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
18148 for ac_dir in $PATH; do
18149 test -z "$ac_dir" && ac_dir=.
18150 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18151 acl_cv_path_LD="$ac_dir/$ac_prog"
18152 # Check to see if the program is GNU ld. I'd rather use --version,
18153 # but apparently some GNU ld's only accept -v.
18154 # Break only if it was the GNU/non-GNU ld that we prefer.
18155 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
18156 test "$with_gnu_ld" != no && break
18157 else
18158 test "$with_gnu_ld" != yes && break
18161 done
18162 IFS="$ac_save_ifs"
18163 else
18164 acl_cv_path_LD="$LD" # Let the user override the test with a path.
18168 LD="$acl_cv_path_LD"
18169 if test -n "$LD"; then
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18171 $as_echo "$LD" >&6; }
18172 else
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18174 $as_echo "no" >&6; }
18176 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18178 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18179 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
18180 $as_echo_n "(cached) " >&6
18181 else
18182 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
18183 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
18184 acl_cv_prog_gnu_ld=yes
18185 else
18186 acl_cv_prog_gnu_ld=no
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18190 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
18191 with_gnu_ld=$acl_cv_prog_gnu_ld
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18196 $as_echo_n "checking for shared library run path origin... " >&6; }
18197 if test "${acl_cv_rpath+set}" = set; then :
18198 $as_echo_n "(cached) " >&6
18199 else
18201 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18202 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18203 . ./conftest.sh
18204 rm -f ./conftest.sh
18205 acl_cv_rpath=done
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18209 $as_echo "$acl_cv_rpath" >&6; }
18210 wl="$acl_cv_wl"
18211 libext="$acl_cv_libext"
18212 shlibext="$acl_cv_shlibext"
18213 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18214 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18215 hardcode_direct="$acl_cv_hardcode_direct"
18216 hardcode_minus_L="$acl_cv_hardcode_minus_L"
18217 # Check whether --enable-rpath was given.
18218 if test "${enable_rpath+set}" = set; then :
18219 enableval=$enable_rpath; :
18220 else
18221 enable_rpath=yes
18231 use_additional=yes
18233 acl_save_prefix="$prefix"
18234 prefix="$acl_final_prefix"
18235 acl_save_exec_prefix="$exec_prefix"
18236 exec_prefix="$acl_final_exec_prefix"
18238 eval additional_includedir=\"$includedir\"
18239 eval additional_libdir=\"$libdir\"
18241 exec_prefix="$acl_save_exec_prefix"
18242 prefix="$acl_save_prefix"
18245 # Check whether --with-libiconv-prefix was given.
18246 if test "${with_libiconv_prefix+set}" = set; then :
18247 withval=$with_libiconv_prefix;
18248 if test "X$withval" = "Xno"; then
18249 use_additional=no
18250 else
18251 if test "X$withval" = "X"; then
18253 acl_save_prefix="$prefix"
18254 prefix="$acl_final_prefix"
18255 acl_save_exec_prefix="$exec_prefix"
18256 exec_prefix="$acl_final_exec_prefix"
18258 eval additional_includedir=\"$includedir\"
18259 eval additional_libdir=\"$libdir\"
18261 exec_prefix="$acl_save_exec_prefix"
18262 prefix="$acl_save_prefix"
18264 else
18265 additional_includedir="$withval/include"
18266 additional_libdir="$withval/lib"
18272 LIBICONV=
18273 LTLIBICONV=
18274 INCICONV=
18275 rpathdirs=
18276 ltrpathdirs=
18277 names_already_handled=
18278 names_next_round='iconv '
18279 while test -n "$names_next_round"; do
18280 names_this_round="$names_next_round"
18281 names_next_round=
18282 for name in $names_this_round; do
18283 already_handled=
18284 for n in $names_already_handled; do
18285 if test "$n" = "$name"; then
18286 already_handled=yes
18287 break
18289 done
18290 if test -z "$already_handled"; then
18291 names_already_handled="$names_already_handled $name"
18292 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18293 eval value=\"\$HAVE_LIB$uppername\"
18294 if test -n "$value"; then
18295 if test "$value" = yes; then
18296 eval value=\"\$LIB$uppername\"
18297 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18298 eval value=\"\$LTLIB$uppername\"
18299 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18300 else
18303 else
18304 found_dir=
18305 found_la=
18306 found_so=
18307 found_a=
18308 if test $use_additional = yes; then
18309 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18310 found_dir="$additional_libdir"
18311 found_so="$additional_libdir/lib$name.$shlibext"
18312 if test -f "$additional_libdir/lib$name.la"; then
18313 found_la="$additional_libdir/lib$name.la"
18315 else
18316 if test -f "$additional_libdir/lib$name.$libext"; then
18317 found_dir="$additional_libdir"
18318 found_a="$additional_libdir/lib$name.$libext"
18319 if test -f "$additional_libdir/lib$name.la"; then
18320 found_la="$additional_libdir/lib$name.la"
18325 if test "X$found_dir" = "X"; then
18326 for x in $LDFLAGS $LTLIBICONV; do
18328 acl_save_prefix="$prefix"
18329 prefix="$acl_final_prefix"
18330 acl_save_exec_prefix="$exec_prefix"
18331 exec_prefix="$acl_final_exec_prefix"
18332 eval x=\"$x\"
18333 exec_prefix="$acl_save_exec_prefix"
18334 prefix="$acl_save_prefix"
18336 case "$x" in
18337 -L*)
18338 dir=`echo "X$x" | sed -e 's/^X-L//'`
18339 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18340 found_dir="$dir"
18341 found_so="$dir/lib$name.$shlibext"
18342 if test -f "$dir/lib$name.la"; then
18343 found_la="$dir/lib$name.la"
18345 else
18346 if test -f "$dir/lib$name.$libext"; then
18347 found_dir="$dir"
18348 found_a="$dir/lib$name.$libext"
18349 if test -f "$dir/lib$name.la"; then
18350 found_la="$dir/lib$name.la"
18355 esac
18356 if test "X$found_dir" != "X"; then
18357 break
18359 done
18361 if test "X$found_dir" != "X"; then
18362 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18363 if test "X$found_so" != "X"; then
18364 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18365 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18366 else
18367 haveit=
18368 for x in $ltrpathdirs; do
18369 if test "X$x" = "X$found_dir"; then
18370 haveit=yes
18371 break
18373 done
18374 if test -z "$haveit"; then
18375 ltrpathdirs="$ltrpathdirs $found_dir"
18377 if test "$hardcode_direct" = yes; then
18378 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18379 else
18380 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18381 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18382 haveit=
18383 for x in $rpathdirs; do
18384 if test "X$x" = "X$found_dir"; then
18385 haveit=yes
18386 break
18388 done
18389 if test -z "$haveit"; then
18390 rpathdirs="$rpathdirs $found_dir"
18392 else
18393 haveit=
18394 for x in $LDFLAGS $LIBICONV; do
18396 acl_save_prefix="$prefix"
18397 prefix="$acl_final_prefix"
18398 acl_save_exec_prefix="$exec_prefix"
18399 exec_prefix="$acl_final_exec_prefix"
18400 eval x=\"$x\"
18401 exec_prefix="$acl_save_exec_prefix"
18402 prefix="$acl_save_prefix"
18404 if test "X$x" = "X-L$found_dir"; then
18405 haveit=yes
18406 break
18408 done
18409 if test -z "$haveit"; then
18410 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18412 if test "$hardcode_minus_L" != no; then
18413 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18414 else
18415 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18420 else
18421 if test "X$found_a" != "X"; then
18422 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18423 else
18424 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18427 additional_includedir=
18428 case "$found_dir" in
18429 */lib | */lib/)
18430 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18431 additional_includedir="$basedir/include"
18433 esac
18434 if test "X$additional_includedir" != "X"; then
18435 if test "X$additional_includedir" != "X/usr/include"; then
18436 haveit=
18437 if test "X$additional_includedir" = "X/usr/local/include"; then
18438 if test -n "$GCC"; then
18439 case $host_os in
18440 linux*) haveit=yes;;
18441 esac
18444 if test -z "$haveit"; then
18445 for x in $CPPFLAGS $INCICONV; do
18447 acl_save_prefix="$prefix"
18448 prefix="$acl_final_prefix"
18449 acl_save_exec_prefix="$exec_prefix"
18450 exec_prefix="$acl_final_exec_prefix"
18451 eval x=\"$x\"
18452 exec_prefix="$acl_save_exec_prefix"
18453 prefix="$acl_save_prefix"
18455 if test "X$x" = "X-I$additional_includedir"; then
18456 haveit=yes
18457 break
18459 done
18460 if test -z "$haveit"; then
18461 if test -d "$additional_includedir"; then
18462 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18468 if test -n "$found_la"; then
18469 save_libdir="$libdir"
18470 case "$found_la" in
18471 */* | *\\*) . "$found_la" ;;
18472 *) . "./$found_la" ;;
18473 esac
18474 libdir="$save_libdir"
18475 for dep in $dependency_libs; do
18476 case "$dep" in
18477 -L*)
18478 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18479 if test "X$additional_libdir" != "X/usr/lib"; then
18480 haveit=
18481 if test "X$additional_libdir" = "X/usr/local/lib"; then
18482 if test -n "$GCC"; then
18483 case $host_os in
18484 linux*) haveit=yes;;
18485 esac
18488 if test -z "$haveit"; then
18489 haveit=
18490 for x in $LDFLAGS $LIBICONV; do
18492 acl_save_prefix="$prefix"
18493 prefix="$acl_final_prefix"
18494 acl_save_exec_prefix="$exec_prefix"
18495 exec_prefix="$acl_final_exec_prefix"
18496 eval x=\"$x\"
18497 exec_prefix="$acl_save_exec_prefix"
18498 prefix="$acl_save_prefix"
18500 if test "X$x" = "X-L$additional_libdir"; then
18501 haveit=yes
18502 break
18504 done
18505 if test -z "$haveit"; then
18506 if test -d "$additional_libdir"; then
18507 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18510 haveit=
18511 for x in $LDFLAGS $LTLIBICONV; do
18513 acl_save_prefix="$prefix"
18514 prefix="$acl_final_prefix"
18515 acl_save_exec_prefix="$exec_prefix"
18516 exec_prefix="$acl_final_exec_prefix"
18517 eval x=\"$x\"
18518 exec_prefix="$acl_save_exec_prefix"
18519 prefix="$acl_save_prefix"
18521 if test "X$x" = "X-L$additional_libdir"; then
18522 haveit=yes
18523 break
18525 done
18526 if test -z "$haveit"; then
18527 if test -d "$additional_libdir"; then
18528 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18534 -R*)
18535 dir=`echo "X$dep" | sed -e 's/^X-R//'`
18536 if test "$enable_rpath" != no; then
18537 haveit=
18538 for x in $rpathdirs; do
18539 if test "X$x" = "X$dir"; then
18540 haveit=yes
18541 break
18543 done
18544 if test -z "$haveit"; then
18545 rpathdirs="$rpathdirs $dir"
18547 haveit=
18548 for x in $ltrpathdirs; do
18549 if test "X$x" = "X$dir"; then
18550 haveit=yes
18551 break
18553 done
18554 if test -z "$haveit"; then
18555 ltrpathdirs="$ltrpathdirs $dir"
18559 -l*)
18560 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18562 *.la)
18563 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18566 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18567 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18569 esac
18570 done
18572 else
18573 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18574 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18578 done
18579 done
18580 if test "X$rpathdirs" != "X"; then
18581 if test -n "$hardcode_libdir_separator"; then
18582 alldirs=
18583 for found_dir in $rpathdirs; do
18584 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18585 done
18586 acl_save_libdir="$libdir"
18587 libdir="$alldirs"
18588 eval flag=\"$hardcode_libdir_flag_spec\"
18589 libdir="$acl_save_libdir"
18590 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18591 else
18592 for found_dir in $rpathdirs; do
18593 acl_save_libdir="$libdir"
18594 libdir="$found_dir"
18595 eval flag=\"$hardcode_libdir_flag_spec\"
18596 libdir="$acl_save_libdir"
18597 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18598 done
18601 if test "X$ltrpathdirs" != "X"; then
18602 for found_dir in $ltrpathdirs; do
18603 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18604 done
18613 am_save_CPPFLAGS="$CPPFLAGS"
18615 for element in $INCICONV; do
18616 haveit=
18617 for x in $CPPFLAGS; do
18619 acl_save_prefix="$prefix"
18620 prefix="$acl_final_prefix"
18621 acl_save_exec_prefix="$exec_prefix"
18622 exec_prefix="$acl_final_exec_prefix"
18623 eval x=\"$x\"
18624 exec_prefix="$acl_save_exec_prefix"
18625 prefix="$acl_save_prefix"
18627 if test "X$x" = "X$element"; then
18628 haveit=yes
18629 break
18631 done
18632 if test -z "$haveit"; then
18633 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18635 done
18638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18639 $as_echo_n "checking for iconv... " >&6; }
18640 if test "${am_cv_func_iconv+set}" = set; then :
18641 $as_echo_n "(cached) " >&6
18642 else
18644 am_cv_func_iconv="no, consider installing GNU libiconv"
18645 am_cv_lib_iconv=no
18646 if test x$gcc_no_link = xyes; then
18647 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18650 /* end confdefs.h. */
18651 #include <stdlib.h>
18652 #include <iconv.h>
18654 main ()
18656 iconv_t cd = iconv_open("","");
18657 iconv(cd,NULL,NULL,NULL,NULL);
18658 iconv_close(cd);
18660 return 0;
18662 _ACEOF
18663 if ac_fn_c_try_link "$LINENO"; then :
18664 am_cv_func_iconv=yes
18666 rm -f core conftest.err conftest.$ac_objext \
18667 conftest$ac_exeext conftest.$ac_ext
18668 if test "$am_cv_func_iconv" != yes; then
18669 am_save_LIBS="$LIBS"
18670 LIBS="$LIBS $LIBICONV"
18671 if test x$gcc_no_link = xyes; then
18672 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18675 /* end confdefs.h. */
18676 #include <stdlib.h>
18677 #include <iconv.h>
18679 main ()
18681 iconv_t cd = iconv_open("","");
18682 iconv(cd,NULL,NULL,NULL,NULL);
18683 iconv_close(cd);
18685 return 0;
18687 _ACEOF
18688 if ac_fn_c_try_link "$LINENO"; then :
18689 am_cv_lib_iconv=yes
18690 am_cv_func_iconv=yes
18692 rm -f core conftest.err conftest.$ac_objext \
18693 conftest$ac_exeext conftest.$ac_ext
18694 LIBS="$am_save_LIBS"
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18699 $as_echo "$am_cv_func_iconv" >&6; }
18700 if test "$am_cv_func_iconv" = yes; then
18702 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18705 if test "$am_cv_lib_iconv" = yes; then
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18707 $as_echo_n "checking how to link with libiconv... " >&6; }
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18709 $as_echo "$LIBICONV" >&6; }
18710 else
18711 CPPFLAGS="$am_save_CPPFLAGS"
18712 LIBICONV=
18713 LTLIBICONV=
18718 if test "$am_cv_func_iconv" = yes; then
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18720 $as_echo_n "checking for iconv declaration... " >&6; }
18721 if test "${am_cv_proto_iconv+set}" = set; then :
18722 $as_echo_n "(cached) " >&6
18723 else
18725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18726 /* end confdefs.h. */
18728 #include <stdlib.h>
18729 #include <iconv.h>
18730 extern
18731 #ifdef __cplusplus
18733 #endif
18734 #if defined(__STDC__) || defined(__cplusplus)
18735 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18736 #else
18737 size_t iconv();
18738 #endif
18741 main ()
18745 return 0;
18747 _ACEOF
18748 if ac_fn_c_try_compile "$LINENO"; then :
18749 am_cv_proto_iconv_arg1=""
18750 else
18751 am_cv_proto_iconv_arg1="const"
18753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18754 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);"
18757 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
18759 }$am_cv_proto_iconv" >&5
18760 $as_echo "${ac_t:-
18761 }$am_cv_proto_iconv" >&6; }
18763 cat >>confdefs.h <<_ACEOF
18764 #define ICONV_CONST $am_cv_proto_iconv_arg1
18765 _ACEOF
18770 if test "x${GCC}" = xyes; then
18772 WARNING_CFLAGS='-W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
18775 EXTRA_CFLAGS='-fexceptions -fasynchronous-unwind-tables'
18778 STRICT_WARNING_CFLAGS='-Wstrict-prototypes -pedantic'
18781 ERROR_CFLAGS=
18782 if test "x${ENABLE_WERROR}" = xyes; then
18783 ERROR_CFLAGS='-Werror'
18788 if test "x${COMPILE_XMLJ}" = xyes; then
18790 succeeded=no
18792 if test -z "$PKG_CONFIG"; then
18793 # Extract the first word of "pkg-config", so it can be a program name with args.
18794 set dummy pkg-config; ac_word=$2
18795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18796 $as_echo_n "checking for $ac_word... " >&6; }
18797 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18798 $as_echo_n "(cached) " >&6
18799 else
18800 case $PKG_CONFIG in
18801 [\\/]* | ?:[\\/]*)
18802 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18806 for as_dir in $PATH
18808 IFS=$as_save_IFS
18809 test -z "$as_dir" && as_dir=.
18810 for ac_exec_ext in '' $ac_executable_extensions; do
18811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18812 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18814 break 2
18816 done
18817 done
18818 IFS=$as_save_IFS
18820 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18822 esac
18824 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18825 if test -n "$PKG_CONFIG"; then
18826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18827 $as_echo "$PKG_CONFIG" >&6; }
18828 else
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18830 $as_echo "no" >&6; }
18836 if test "$PKG_CONFIG" = "no" ; then
18837 echo "*** The pkg-config script could not be found. Make sure it is"
18838 echo "*** in your path, or set the PKG_CONFIG environment variable"
18839 echo "*** to the full path to pkg-config."
18840 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18841 else
18842 PKG_CONFIG_MIN_VERSION=0.9.0
18843 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.8" >&5
18845 $as_echo_n "checking for libxml-2.0 >= 2.6.8... " >&6; }
18847 if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18849 $as_echo "yes" >&6; }
18850 succeeded=yes
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_CFLAGS" >&5
18853 $as_echo_n "checking XML_CFLAGS... " >&6; }
18854 XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_CFLAGS" >&5
18856 $as_echo "$XML_CFLAGS" >&6; }
18858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_LIBS" >&5
18859 $as_echo_n "checking XML_LIBS... " >&6; }
18860 XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_LIBS" >&5
18862 $as_echo "$XML_LIBS" >&6; }
18863 else
18864 XML_CFLAGS=""
18865 XML_LIBS=""
18866 ## If we have a custom action on failure, don't print errors, but
18867 ## do set a variable so people can do so.
18868 XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
18869 echo $XML_PKG_ERRORS
18874 else
18875 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18876 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18880 if test $succeeded = yes; then
18882 else
18883 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
18887 succeeded=no
18889 if test -z "$PKG_CONFIG"; then
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_PKG_CONFIG+set}" = set; then :
18895 $as_echo_n "(cached) " >&6
18896 else
18897 case $PKG_CONFIG in
18898 [\\/]* | ?:[\\/]*)
18899 ac_cv_path_PKG_CONFIG="$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_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
18917 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18919 esac
18921 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18922 if test -n "$PKG_CONFIG"; then
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18924 $as_echo "$PKG_CONFIG" >&6; }
18925 else
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18927 $as_echo "no" >&6; }
18933 if test "$PKG_CONFIG" = "no" ; then
18934 echo "*** The pkg-config script could not be found. Make sure it is"
18935 echo "*** in your path, or set the PKG_CONFIG environment variable"
18936 echo "*** to the full path to pkg-config."
18937 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18938 else
18939 PKG_CONFIG_MIN_VERSION=0.9.0
18940 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt >= 1.1.11" >&5
18942 $as_echo_n "checking for libxslt >= 1.1.11... " >&6; }
18944 if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18946 $as_echo "yes" >&6; }
18947 succeeded=yes
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_CFLAGS" >&5
18950 $as_echo_n "checking XSLT_CFLAGS... " >&6; }
18951 XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
18952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_CFLAGS" >&5
18953 $as_echo "$XSLT_CFLAGS" >&6; }
18955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_LIBS" >&5
18956 $as_echo_n "checking XSLT_LIBS... " >&6; }
18957 XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_LIBS" >&5
18959 $as_echo "$XSLT_LIBS" >&6; }
18960 else
18961 XSLT_CFLAGS=""
18962 XSLT_LIBS=""
18963 ## If we have a custom action on failure, don't print errors, but
18964 ## do set a variable so people can do so.
18965 XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
18966 echo $XSLT_PKG_ERRORS
18971 else
18972 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18973 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18977 if test $succeeded = yes; then
18979 else
18980 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
18989 if test "x${COMPILE_GTK_PEER}" = xyes; then
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18991 $as_echo_n "checking for X... " >&6; }
18994 # Check whether --with-x was given.
18995 if test "${with_x+set}" = set; then :
18996 withval=$with_x;
18999 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19000 if test "x$with_x" = xno; then
19001 # The user explicitly disabled X.
19002 have_x=disabled
19003 else
19004 case $x_includes,$x_libraries in #(
19005 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19006 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19007 $as_echo_n "(cached) " >&6
19008 else
19009 # One or both of the vars are not set, and there is no cached value.
19010 ac_x_includes=no ac_x_libraries=no
19011 rm -f -r conftest.dir
19012 if mkdir conftest.dir; then
19013 cd conftest.dir
19014 cat >Imakefile <<'_ACEOF'
19015 incroot:
19016 @echo incroot='${INCROOT}'
19017 usrlibdir:
19018 @echo usrlibdir='${USRLIBDIR}'
19019 libdir:
19020 @echo libdir='${LIBDIR}'
19021 _ACEOF
19022 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19023 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19024 for ac_var in incroot usrlibdir libdir; do
19025 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19026 done
19027 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19028 for ac_extension in a so sl dylib la dll; do
19029 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19030 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19031 ac_im_usrlibdir=$ac_im_libdir; break
19033 done
19034 # Screen out bogus values from the imake configuration. They are
19035 # bogus both because they are the default anyway, and because
19036 # using them would break gcc on systems where it needs fixed includes.
19037 case $ac_im_incroot in
19038 /usr/include) ac_x_includes= ;;
19039 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19040 esac
19041 case $ac_im_usrlibdir in
19042 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19043 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19044 esac
19046 cd ..
19047 rm -f -r conftest.dir
19050 # Standard set of common directories for X headers.
19051 # Check X11 before X11Rn because it is often a symlink to the current release.
19052 ac_x_header_dirs='
19053 /usr/X11/include
19054 /usr/X11R7/include
19055 /usr/X11R6/include
19056 /usr/X11R5/include
19057 /usr/X11R4/include
19059 /usr/include/X11
19060 /usr/include/X11R7
19061 /usr/include/X11R6
19062 /usr/include/X11R5
19063 /usr/include/X11R4
19065 /usr/local/X11/include
19066 /usr/local/X11R7/include
19067 /usr/local/X11R6/include
19068 /usr/local/X11R5/include
19069 /usr/local/X11R4/include
19071 /usr/local/include/X11
19072 /usr/local/include/X11R7
19073 /usr/local/include/X11R6
19074 /usr/local/include/X11R5
19075 /usr/local/include/X11R4
19077 /usr/X386/include
19078 /usr/x386/include
19079 /usr/XFree86/include/X11
19081 /usr/include
19082 /usr/local/include
19083 /usr/unsupported/include
19084 /usr/athena/include
19085 /usr/local/x11r5/include
19086 /usr/lpp/Xamples/include
19088 /usr/openwin/include
19089 /usr/openwin/share/include'
19091 if test "$ac_x_includes" = no; then
19092 # Guess where to find include files, by looking for Xlib.h.
19093 # First, try using that file with no special directory specified.
19094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19095 /* end confdefs.h. */
19096 #include <X11/Xlib.h>
19097 _ACEOF
19098 if ac_fn_c_try_cpp "$LINENO"; then :
19099 # We can compile using X headers with no special include directory.
19100 ac_x_includes=
19101 else
19102 for ac_dir in $ac_x_header_dirs; do
19103 if test -r "$ac_dir/X11/Xlib.h"; then
19104 ac_x_includes=$ac_dir
19105 break
19107 done
19109 rm -f conftest.err conftest.$ac_ext
19110 fi # $ac_x_includes = no
19112 if test "$ac_x_libraries" = no; then
19113 # Check for the libraries.
19114 # See if we find them without any special options.
19115 # Don't add to $LIBS permanently.
19116 ac_save_LIBS=$LIBS
19117 LIBS="-lX11 $LIBS"
19118 if test x$gcc_no_link = xyes; then
19119 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19122 /* end confdefs.h. */
19123 #include <X11/Xlib.h>
19125 main ()
19127 XrmInitialize ()
19129 return 0;
19131 _ACEOF
19132 if ac_fn_c_try_link "$LINENO"; then :
19133 LIBS=$ac_save_LIBS
19134 # We can link X programs with no special library path.
19135 ac_x_libraries=
19136 else
19137 LIBS=$ac_save_LIBS
19138 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19140 # Don't even attempt the hair of trying to link an X program!
19141 for ac_extension in a so sl dylib la dll; do
19142 if test -r "$ac_dir/libX11.$ac_extension"; then
19143 ac_x_libraries=$ac_dir
19144 break 2
19146 done
19147 done
19149 rm -f core conftest.err conftest.$ac_objext \
19150 conftest$ac_exeext conftest.$ac_ext
19151 fi # $ac_x_libraries = no
19153 case $ac_x_includes,$ac_x_libraries in #(
19154 no,* | *,no | *\'*)
19155 # Didn't find X, or a directory has "'" in its name.
19156 ac_cv_have_x="have_x=no";; #(
19158 # Record where we found X for the cache.
19159 ac_cv_have_x="have_x=yes\
19160 ac_x_includes='$ac_x_includes'\
19161 ac_x_libraries='$ac_x_libraries'"
19162 esac
19164 ;; #(
19165 *) have_x=yes;;
19166 esac
19167 eval "$ac_cv_have_x"
19168 fi # $with_x != no
19170 if test "$have_x" != yes; then
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19172 $as_echo "$have_x" >&6; }
19173 no_x=yes
19174 else
19175 # If each of the values was on the command line, it overrides each guess.
19176 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19177 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19178 # Update the cache value to reflect the command line values.
19179 ac_cv_have_x="have_x=yes\
19180 ac_x_includes='$x_includes'\
19181 ac_x_libraries='$x_libraries'"
19182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19183 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19186 if test "$no_x" = yes; then
19187 # Not all programs may use this symbol, but it does not hurt to define it.
19189 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19191 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19192 else
19193 if test -n "$x_includes"; then
19194 X_CFLAGS="$X_CFLAGS -I$x_includes"
19197 # It would also be nice to do this for all -L options, not just this one.
19198 if test -n "$x_libraries"; then
19199 X_LIBS="$X_LIBS -L$x_libraries"
19200 # For Solaris; some versions of Sun CC require a space after -R and
19201 # others require no space. Words are not sufficient . . . .
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19203 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19204 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19205 ac_xsave_c_werror_flag=$ac_c_werror_flag
19206 ac_c_werror_flag=yes
19207 if test x$gcc_no_link = xyes; then
19208 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19211 /* end confdefs.h. */
19214 main ()
19218 return 0;
19220 _ACEOF
19221 if ac_fn_c_try_link "$LINENO"; then :
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19223 $as_echo "no" >&6; }
19224 X_LIBS="$X_LIBS -R$x_libraries"
19225 else
19226 LIBS="$ac_xsave_LIBS -R $x_libraries"
19227 if test x$gcc_no_link = xyes; then
19228 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19231 /* end confdefs.h. */
19234 main ()
19238 return 0;
19240 _ACEOF
19241 if ac_fn_c_try_link "$LINENO"; then :
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19243 $as_echo "yes" >&6; }
19244 X_LIBS="$X_LIBS -R $x_libraries"
19245 else
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19247 $as_echo "neither works" >&6; }
19249 rm -f core conftest.err conftest.$ac_objext \
19250 conftest$ac_exeext conftest.$ac_ext
19252 rm -f core conftest.err conftest.$ac_objext \
19253 conftest$ac_exeext conftest.$ac_ext
19254 ac_c_werror_flag=$ac_xsave_c_werror_flag
19255 LIBS=$ac_xsave_LIBS
19258 # Check for system-dependent libraries X programs must link with.
19259 # Do this before checking for the system-independent R6 libraries
19260 # (-lICE), since we may need -lsocket or whatever for X linking.
19262 if test "$ISC" = yes; then
19263 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19264 else
19265 # Martyn Johnson says this is needed for Ultrix, if the X
19266 # libraries were built with DECnet support. And Karl Berry says
19267 # the Alpha needs dnet_stub (dnet does not exist).
19268 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19269 if test x$gcc_no_link = xyes; then
19270 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19273 /* end confdefs.h. */
19275 /* Override any GCC internal prototype to avoid an error.
19276 Use char because int might match the return type of a GCC
19277 builtin and then its argument prototype would still apply. */
19278 #ifdef __cplusplus
19279 extern "C"
19280 #endif
19281 char XOpenDisplay ();
19283 main ()
19285 return XOpenDisplay ();
19287 return 0;
19289 _ACEOF
19290 if ac_fn_c_try_link "$LINENO"; then :
19292 else
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19294 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19295 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19296 $as_echo_n "(cached) " >&6
19297 else
19298 ac_check_lib_save_LIBS=$LIBS
19299 LIBS="-ldnet $LIBS"
19300 if test x$gcc_no_link = xyes; then
19301 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19304 /* end confdefs.h. */
19306 /* Override any GCC internal prototype to avoid an error.
19307 Use char because int might match the return type of a GCC
19308 builtin and then its argument prototype would still apply. */
19309 #ifdef __cplusplus
19310 extern "C"
19311 #endif
19312 char dnet_ntoa ();
19314 main ()
19316 return dnet_ntoa ();
19318 return 0;
19320 _ACEOF
19321 if ac_fn_c_try_link "$LINENO"; then :
19322 ac_cv_lib_dnet_dnet_ntoa=yes
19323 else
19324 ac_cv_lib_dnet_dnet_ntoa=no
19326 rm -f core conftest.err conftest.$ac_objext \
19327 conftest$ac_exeext conftest.$ac_ext
19328 LIBS=$ac_check_lib_save_LIBS
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19331 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19332 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
19333 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19336 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19338 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19339 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
19340 $as_echo_n "(cached) " >&6
19341 else
19342 ac_check_lib_save_LIBS=$LIBS
19343 LIBS="-ldnet_stub $LIBS"
19344 if test x$gcc_no_link = xyes; then
19345 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19348 /* end confdefs.h. */
19350 /* Override any GCC internal prototype to avoid an error.
19351 Use char because int might match the return type of a GCC
19352 builtin and then its argument prototype would still apply. */
19353 #ifdef __cplusplus
19354 extern "C"
19355 #endif
19356 char dnet_ntoa ();
19358 main ()
19360 return dnet_ntoa ();
19362 return 0;
19364 _ACEOF
19365 if ac_fn_c_try_link "$LINENO"; then :
19366 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19367 else
19368 ac_cv_lib_dnet_stub_dnet_ntoa=no
19370 rm -f core conftest.err conftest.$ac_objext \
19371 conftest$ac_exeext conftest.$ac_ext
19372 LIBS=$ac_check_lib_save_LIBS
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19375 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19376 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
19377 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19382 rm -f core conftest.err conftest.$ac_objext \
19383 conftest$ac_exeext conftest.$ac_ext
19384 LIBS="$ac_xsave_LIBS"
19386 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19387 # to get the SysV transport functions.
19388 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19389 # needs -lnsl.
19390 # The nsl library prevents programs from opening the X display
19391 # on Irix 5.2, according to T.E. Dickey.
19392 # The functions gethostbyname, getservbyname, and inet_addr are
19393 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19394 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19395 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
19399 if test $ac_cv_func_gethostbyname = no; then
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19401 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19402 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
19403 $as_echo_n "(cached) " >&6
19404 else
19405 ac_check_lib_save_LIBS=$LIBS
19406 LIBS="-lnsl $LIBS"
19407 if test x$gcc_no_link = xyes; then
19408 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19411 /* end confdefs.h. */
19413 /* Override any GCC internal prototype to avoid an error.
19414 Use char because int might match the return type of a GCC
19415 builtin and then its argument prototype would still apply. */
19416 #ifdef __cplusplus
19417 extern "C"
19418 #endif
19419 char gethostbyname ();
19421 main ()
19423 return gethostbyname ();
19425 return 0;
19427 _ACEOF
19428 if ac_fn_c_try_link "$LINENO"; then :
19429 ac_cv_lib_nsl_gethostbyname=yes
19430 else
19431 ac_cv_lib_nsl_gethostbyname=no
19433 rm -f core conftest.err conftest.$ac_objext \
19434 conftest$ac_exeext conftest.$ac_ext
19435 LIBS=$ac_check_lib_save_LIBS
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19438 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19439 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
19440 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19443 if test $ac_cv_lib_nsl_gethostbyname = no; then
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
19445 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
19446 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
19447 $as_echo_n "(cached) " >&6
19448 else
19449 ac_check_lib_save_LIBS=$LIBS
19450 LIBS="-lbsd $LIBS"
19451 if test x$gcc_no_link = xyes; then
19452 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19455 /* end confdefs.h. */
19457 /* Override any GCC internal prototype to avoid an error.
19458 Use char because int might match the return type of a GCC
19459 builtin and then its argument prototype would still apply. */
19460 #ifdef __cplusplus
19461 extern "C"
19462 #endif
19463 char gethostbyname ();
19465 main ()
19467 return gethostbyname ();
19469 return 0;
19471 _ACEOF
19472 if ac_fn_c_try_link "$LINENO"; then :
19473 ac_cv_lib_bsd_gethostbyname=yes
19474 else
19475 ac_cv_lib_bsd_gethostbyname=no
19477 rm -f core conftest.err conftest.$ac_objext \
19478 conftest$ac_exeext conftest.$ac_ext
19479 LIBS=$ac_check_lib_save_LIBS
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
19482 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
19483 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
19484 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19490 # lieder@skyler.mavd.honeywell.com says without -lsocket,
19491 # socket/setsockopt and other routines are undefined under SCO ODT
19492 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
19493 # on later versions), says Simon Leinen: it contains gethostby*
19494 # variants that don't use the name server (or something). -lsocket
19495 # must be given before -lnsl if both are needed. We assume that
19496 # if connect needs -lnsl, so does gethostbyname.
19497 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
19498 if test "x$ac_cv_func_connect" = x""yes; then :
19502 if test $ac_cv_func_connect = no; then
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
19504 $as_echo_n "checking for connect in -lsocket... " >&6; }
19505 if test "${ac_cv_lib_socket_connect+set}" = set; then :
19506 $as_echo_n "(cached) " >&6
19507 else
19508 ac_check_lib_save_LIBS=$LIBS
19509 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19510 if test x$gcc_no_link = xyes; then
19511 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19514 /* end confdefs.h. */
19516 /* Override any GCC internal prototype to avoid an error.
19517 Use char because int might match the return type of a GCC
19518 builtin and then its argument prototype would still apply. */
19519 #ifdef __cplusplus
19520 extern "C"
19521 #endif
19522 char connect ();
19524 main ()
19526 return connect ();
19528 return 0;
19530 _ACEOF
19531 if ac_fn_c_try_link "$LINENO"; then :
19532 ac_cv_lib_socket_connect=yes
19533 else
19534 ac_cv_lib_socket_connect=no
19536 rm -f core conftest.err conftest.$ac_objext \
19537 conftest$ac_exeext conftest.$ac_ext
19538 LIBS=$ac_check_lib_save_LIBS
19540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19541 $as_echo "$ac_cv_lib_socket_connect" >&6; }
19542 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
19543 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19548 # Guillermo Gomez says -lposix is necessary on A/UX.
19549 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
19550 if test "x$ac_cv_func_remove" = x""yes; then :
19554 if test $ac_cv_func_remove = no; then
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19556 $as_echo_n "checking for remove in -lposix... " >&6; }
19557 if test "${ac_cv_lib_posix_remove+set}" = set; then :
19558 $as_echo_n "(cached) " >&6
19559 else
19560 ac_check_lib_save_LIBS=$LIBS
19561 LIBS="-lposix $LIBS"
19562 if test x$gcc_no_link = xyes; then
19563 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19566 /* end confdefs.h. */
19568 /* Override any GCC internal prototype to avoid an error.
19569 Use char because int might match the return type of a GCC
19570 builtin and then its argument prototype would still apply. */
19571 #ifdef __cplusplus
19572 extern "C"
19573 #endif
19574 char remove ();
19576 main ()
19578 return remove ();
19580 return 0;
19582 _ACEOF
19583 if ac_fn_c_try_link "$LINENO"; then :
19584 ac_cv_lib_posix_remove=yes
19585 else
19586 ac_cv_lib_posix_remove=no
19588 rm -f core conftest.err conftest.$ac_objext \
19589 conftest$ac_exeext conftest.$ac_ext
19590 LIBS=$ac_check_lib_save_LIBS
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19593 $as_echo "$ac_cv_lib_posix_remove" >&6; }
19594 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
19595 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19600 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19601 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19602 if test "x$ac_cv_func_shmat" = x""yes; then :
19606 if test $ac_cv_func_shmat = no; then
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19608 $as_echo_n "checking for shmat in -lipc... " >&6; }
19609 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
19610 $as_echo_n "(cached) " >&6
19611 else
19612 ac_check_lib_save_LIBS=$LIBS
19613 LIBS="-lipc $LIBS"
19614 if test x$gcc_no_link = xyes; then
19615 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19618 /* end confdefs.h. */
19620 /* Override any GCC internal prototype to avoid an error.
19621 Use char because int might match the return type of a GCC
19622 builtin and then its argument prototype would still apply. */
19623 #ifdef __cplusplus
19624 extern "C"
19625 #endif
19626 char shmat ();
19628 main ()
19630 return shmat ();
19632 return 0;
19634 _ACEOF
19635 if ac_fn_c_try_link "$LINENO"; then :
19636 ac_cv_lib_ipc_shmat=yes
19637 else
19638 ac_cv_lib_ipc_shmat=no
19640 rm -f core conftest.err conftest.$ac_objext \
19641 conftest$ac_exeext conftest.$ac_ext
19642 LIBS=$ac_check_lib_save_LIBS
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19645 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19646 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
19647 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19653 # Check for libraries that X11R6 Xt/Xaw programs need.
19654 ac_save_LDFLAGS=$LDFLAGS
19655 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19656 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19657 # check for ICE first), but we must link in the order -lSM -lICE or
19658 # we get undefined symbols. So assume we have SM if we have ICE.
19659 # These have to be linked with before -lX11, unlike the other
19660 # libraries we check for below, so use a different variable.
19661 # John Interrante, Karl Berry
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19663 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19664 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
19665 $as_echo_n "(cached) " >&6
19666 else
19667 ac_check_lib_save_LIBS=$LIBS
19668 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19669 if test x$gcc_no_link = xyes; then
19670 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19673 /* end confdefs.h. */
19675 /* Override any GCC internal prototype to avoid an error.
19676 Use char because int might match the return type of a GCC
19677 builtin and then its argument prototype would still apply. */
19678 #ifdef __cplusplus
19679 extern "C"
19680 #endif
19681 char IceConnectionNumber ();
19683 main ()
19685 return IceConnectionNumber ();
19687 return 0;
19689 _ACEOF
19690 if ac_fn_c_try_link "$LINENO"; then :
19691 ac_cv_lib_ICE_IceConnectionNumber=yes
19692 else
19693 ac_cv_lib_ICE_IceConnectionNumber=no
19695 rm -f core conftest.err conftest.$ac_objext \
19696 conftest$ac_exeext conftest.$ac_ext
19697 LIBS=$ac_check_lib_save_LIBS
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19700 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19701 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
19702 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19705 LDFLAGS=$ac_save_LDFLAGS
19709 if test "$no_x" = yes; then
19710 as_fn_error "GTK+ peers requested but no X library available" "$LINENO" 5
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
19713 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
19714 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
19715 $as_echo_n "(cached) " >&6
19716 else
19717 ac_check_lib_save_LIBS=$LIBS
19718 LIBS="-lXtst ${X_LIBS} $LIBS"
19719 if test x$gcc_no_link = xyes; then
19720 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19723 /* end confdefs.h. */
19725 /* Override any GCC internal prototype to avoid an error.
19726 Use char because int might match the return type of a GCC
19727 builtin and then its argument prototype would still apply. */
19728 #ifdef __cplusplus
19729 extern "C"
19730 #endif
19731 char XTestQueryExtension ();
19733 main ()
19735 return XTestQueryExtension ();
19737 return 0;
19739 _ACEOF
19740 if ac_fn_c_try_link "$LINENO"; then :
19741 ac_cv_lib_Xtst_XTestQueryExtension=yes
19742 else
19743 ac_cv_lib_Xtst_XTestQueryExtension=no
19745 rm -f core conftest.err conftest.$ac_objext \
19746 conftest$ac_exeext conftest.$ac_ext
19747 LIBS=$ac_check_lib_save_LIBS
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
19750 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
19751 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
19753 $as_echo "#define HAVE_XTEST 1" >>confdefs.h
19754 XTEST_LIBS="$XTEST_LIBS -X11 -lXtst"
19755 else
19756 true
19762 succeeded=no
19764 if test -z "$PKG_CONFIG"; then
19765 # Extract the first word of "pkg-config", so it can be a program name with args.
19766 set dummy pkg-config; ac_word=$2
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19768 $as_echo_n "checking for $ac_word... " >&6; }
19769 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19770 $as_echo_n "(cached) " >&6
19771 else
19772 case $PKG_CONFIG in
19773 [\\/]* | ?:[\\/]*)
19774 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19778 for as_dir in $PATH
19780 IFS=$as_save_IFS
19781 test -z "$as_dir" && as_dir=.
19782 for ac_exec_ext in '' $ac_executable_extensions; do
19783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19784 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19786 break 2
19788 done
19789 done
19790 IFS=$as_save_IFS
19792 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19794 esac
19796 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19797 if test -n "$PKG_CONFIG"; then
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19799 $as_echo "$PKG_CONFIG" >&6; }
19800 else
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19802 $as_echo "no" >&6; }
19808 if test "$PKG_CONFIG" = "no" ; then
19809 echo "*** The pkg-config script could not be found. Make sure it is"
19810 echo "*** in your path, or set the PKG_CONFIG environment variable"
19811 echo "*** to the full path to pkg-config."
19812 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19813 else
19814 PKG_CONFIG_MIN_VERSION=0.9.0
19815 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
19817 $as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
19819 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19821 $as_echo "yes" >&6; }
19822 succeeded=yes
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
19825 $as_echo_n "checking GTK_CFLAGS... " >&6; }
19826 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
19828 $as_echo "$GTK_CFLAGS" >&6; }
19830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
19831 $as_echo_n "checking GTK_LIBS... " >&6; }
19832 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
19834 $as_echo "$GTK_LIBS" >&6; }
19835 else
19836 GTK_CFLAGS=""
19837 GTK_LIBS=""
19838 ## If we have a custom action on failure, don't print errors, but
19839 ## do set a variable so people can do so.
19840 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19841 echo $GTK_PKG_ERRORS
19846 else
19847 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19848 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19852 if test $succeeded = yes; then
19854 else
19855 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
19859 succeeded=no
19861 if test -z "$PKG_CONFIG"; then
19862 # Extract the first word of "pkg-config", so it can be a program name with args.
19863 set dummy pkg-config; ac_word=$2
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19865 $as_echo_n "checking for $ac_word... " >&6; }
19866 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19867 $as_echo_n "(cached) " >&6
19868 else
19869 case $PKG_CONFIG in
19870 [\\/]* | ?:[\\/]*)
19871 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19875 for as_dir in $PATH
19877 IFS=$as_save_IFS
19878 test -z "$as_dir" && as_dir=.
19879 for ac_exec_ext in '' $ac_executable_extensions; do
19880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19881 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19883 break 2
19885 done
19886 done
19887 IFS=$as_save_IFS
19889 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19891 esac
19893 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19894 if test -n "$PKG_CONFIG"; then
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19896 $as_echo "$PKG_CONFIG" >&6; }
19897 else
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19899 $as_echo "no" >&6; }
19905 if test "$PKG_CONFIG" = "no" ; then
19906 echo "*** The pkg-config script could not be found. Make sure it is"
19907 echo "*** in your path, or set the PKG_CONFIG environment variable"
19908 echo "*** to the full path to pkg-config."
19909 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19910 else
19911 PKG_CONFIG_MIN_VERSION=0.9.0
19912 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
19914 $as_echo_n "checking for freetype2... " >&6; }
19916 if $PKG_CONFIG --exists "freetype2" ; then
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19918 $as_echo "yes" >&6; }
19919 succeeded=yes
19921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_CFLAGS" >&5
19922 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
19923 FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
19924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_CFLAGS" >&5
19925 $as_echo "$FREETYPE2_CFLAGS" >&6; }
19927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_LIBS" >&5
19928 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
19929 FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_LIBS" >&5
19931 $as_echo "$FREETYPE2_LIBS" >&6; }
19932 else
19933 FREETYPE2_CFLAGS=""
19934 FREETYPE2_LIBS=""
19935 ## If we have a custom action on failure, don't print errors, but
19936 ## do set a variable so people can do so.
19937 FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
19938 echo $FREETYPE2_PKG_ERRORS
19943 else
19944 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19945 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19949 if test $succeeded = yes; then
19951 else
19952 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
19956 succeeded=no
19958 if test -z "$PKG_CONFIG"; then
19959 # Extract the first word of "pkg-config", so it can be a program name with args.
19960 set dummy pkg-config; ac_word=$2
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19962 $as_echo_n "checking for $ac_word... " >&6; }
19963 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19964 $as_echo_n "(cached) " >&6
19965 else
19966 case $PKG_CONFIG in
19967 [\\/]* | ?:[\\/]*)
19968 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19972 for as_dir in $PATH
19974 IFS=$as_save_IFS
19975 test -z "$as_dir" && as_dir=.
19976 for ac_exec_ext in '' $ac_executable_extensions; do
19977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19978 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19980 break 2
19982 done
19983 done
19984 IFS=$as_save_IFS
19986 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19988 esac
19990 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19991 if test -n "$PKG_CONFIG"; then
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19993 $as_echo "$PKG_CONFIG" >&6; }
19994 else
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19996 $as_echo "no" >&6; }
20002 if test "$PKG_CONFIG" = "no" ; then
20003 echo "*** The pkg-config script could not be found. Make sure it is"
20004 echo "*** in your path, or set the PKG_CONFIG environment variable"
20005 echo "*** to the full path to pkg-config."
20006 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20007 else
20008 PKG_CONFIG_MIN_VERSION=0.9.0
20009 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pangoft2" >&5
20011 $as_echo_n "checking for pangoft2... " >&6; }
20013 if $PKG_CONFIG --exists "pangoft2" ; then
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20015 $as_echo "yes" >&6; }
20016 succeeded=yes
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_CFLAGS" >&5
20019 $as_echo_n "checking PANGOFT2_CFLAGS... " >&6; }
20020 PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_CFLAGS" >&5
20022 $as_echo "$PANGOFT2_CFLAGS" >&6; }
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_LIBS" >&5
20025 $as_echo_n "checking PANGOFT2_LIBS... " >&6; }
20026 PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_LIBS" >&5
20028 $as_echo "$PANGOFT2_LIBS" >&6; }
20029 else
20030 PANGOFT2_CFLAGS=""
20031 PANGOFT2_LIBS=""
20032 ## If we have a custom action on failure, don't print errors, but
20033 ## do set a variable so people can do so.
20034 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
20035 echo $PANGOFT2_PKG_ERRORS
20040 else
20041 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20042 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20046 if test $succeeded = yes; then
20048 else
20049 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
20053 succeeded=no
20055 if test -z "$PKG_CONFIG"; then
20056 # Extract the first word of "pkg-config", so it can be a program name with args.
20057 set dummy pkg-config; ac_word=$2
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20059 $as_echo_n "checking for $ac_word... " >&6; }
20060 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20061 $as_echo_n "(cached) " >&6
20062 else
20063 case $PKG_CONFIG in
20064 [\\/]* | ?:[\\/]*)
20065 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20069 for as_dir in $PATH
20071 IFS=$as_save_IFS
20072 test -z "$as_dir" && as_dir=.
20073 for ac_exec_ext in '' $ac_executable_extensions; do
20074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20075 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20077 break 2
20079 done
20080 done
20081 IFS=$as_save_IFS
20083 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20085 esac
20087 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20088 if test -n "$PKG_CONFIG"; then
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20090 $as_echo "$PKG_CONFIG" >&6; }
20091 else
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20093 $as_echo "no" >&6; }
20099 if test "$PKG_CONFIG" = "no" ; then
20100 echo "*** The pkg-config script could not be found. Make sure it is"
20101 echo "*** in your path, or set the PKG_CONFIG environment variable"
20102 echo "*** to the full path to pkg-config."
20103 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20104 else
20105 PKG_CONFIG_MIN_VERSION=0.9.0
20106 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo >= 1.1.8" >&5
20108 $as_echo_n "checking for cairo >= 1.1.8... " >&6; }
20110 if $PKG_CONFIG --exists "cairo >= 1.1.8" ; then
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20112 $as_echo "yes" >&6; }
20113 succeeded=yes
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_CFLAGS" >&5
20116 $as_echo_n "checking CAIRO_CFLAGS... " >&6; }
20117 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.1.8"`
20118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_CFLAGS" >&5
20119 $as_echo "$CAIRO_CFLAGS" >&6; }
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_LIBS" >&5
20122 $as_echo_n "checking CAIRO_LIBS... " >&6; }
20123 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.1.8"`
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_LIBS" >&5
20125 $as_echo "$CAIRO_LIBS" >&6; }
20126 else
20127 CAIRO_CFLAGS=""
20128 CAIRO_LIBS=""
20129 ## If we have a custom action on failure, don't print errors, but
20130 ## do set a variable so people can do so.
20131 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.1.8"`
20132 echo $CAIRO_PKG_ERRORS
20137 else
20138 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20139 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20143 if test $succeeded = yes; then
20145 else
20146 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
20149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
20150 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
20151 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
20152 $as_echo_n "(cached) " >&6
20153 else
20154 ac_check_lib_save_LIBS=$LIBS
20155 LIBS="-lXrender ${X_LIBS} $LIBS"
20156 if test x$gcc_no_link = xyes; then
20157 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20160 /* end confdefs.h. */
20162 /* Override any GCC internal prototype to avoid an error.
20163 Use char because int might match the return type of a GCC
20164 builtin and then its argument prototype would still apply. */
20165 #ifdef __cplusplus
20166 extern "C"
20167 #endif
20168 char XRenderQueryExtension ();
20170 main ()
20172 return XRenderQueryExtension ();
20174 return 0;
20176 _ACEOF
20177 if ac_fn_c_try_link "$LINENO"; then :
20178 ac_cv_lib_Xrender_XRenderQueryExtension=yes
20179 else
20180 ac_cv_lib_Xrender_XRenderQueryExtension=no
20182 rm -f core conftest.err conftest.$ac_objext \
20183 conftest$ac_exeext conftest.$ac_ext
20184 LIBS=$ac_check_lib_save_LIBS
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
20187 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
20188 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
20190 $as_echo "#define HAVE_XRENDER 1" >>confdefs.h
20191 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
20192 else
20193 true
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
20198 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
20199 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then :
20200 $as_echo_n "(cached) " >&6
20201 else
20202 ac_check_lib_save_LIBS=$LIBS
20203 LIBS="-lXrandr ${X_LIBS} $LIBS"
20204 if test x$gcc_no_link = xyes; then
20205 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20208 /* end confdefs.h. */
20210 /* Override any GCC internal prototype to avoid an error.
20211 Use char because int might match the return type of a GCC
20212 builtin and then its argument prototype would still apply. */
20213 #ifdef __cplusplus
20214 extern "C"
20215 #endif
20216 char XRRQueryExtension ();
20218 main ()
20220 return XRRQueryExtension ();
20222 return 0;
20224 _ACEOF
20225 if ac_fn_c_try_link "$LINENO"; then :
20226 ac_cv_lib_Xrandr_XRRQueryExtension=yes
20227 else
20228 ac_cv_lib_Xrandr_XRRQueryExtension=no
20230 rm -f core conftest.err conftest.$ac_objext \
20231 conftest$ac_exeext conftest.$ac_ext
20232 LIBS=$ac_check_lib_save_LIBS
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
20235 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
20236 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then :
20238 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
20239 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
20240 else
20241 true
20254 if test "x${COMPILE_GCONF_PEER}" = xyes; then
20256 succeeded=no
20258 if test -z "$PKG_CONFIG"; then
20259 # Extract the first word of "pkg-config", so it can be a program name with args.
20260 set dummy pkg-config; ac_word=$2
20261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20262 $as_echo_n "checking for $ac_word... " >&6; }
20263 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20264 $as_echo_n "(cached) " >&6
20265 else
20266 case $PKG_CONFIG in
20267 [\\/]* | ?:[\\/]*)
20268 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20272 for as_dir in $PATH
20274 IFS=$as_save_IFS
20275 test -z "$as_dir" && as_dir=.
20276 for ac_exec_ext in '' $ac_executable_extensions; do
20277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20278 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20280 break 2
20282 done
20283 done
20284 IFS=$as_save_IFS
20286 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20288 esac
20290 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20291 if test -n "$PKG_CONFIG"; then
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20293 $as_echo "$PKG_CONFIG" >&6; }
20294 else
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20296 $as_echo "no" >&6; }
20302 if test "$PKG_CONFIG" = "no" ; then
20303 echo "*** The pkg-config script could not be found. Make sure it is"
20304 echo "*** in your path, or set the PKG_CONFIG environment variable"
20305 echo "*** to the full path to pkg-config."
20306 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20307 else
20308 PKG_CONFIG_MIN_VERSION=0.9.0
20309 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.6.0" >&5
20311 $as_echo_n "checking for gconf-2.0 >= 2.6.0... " >&6; }
20313 if $PKG_CONFIG --exists "gconf-2.0 >= 2.6.0" ; then
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20315 $as_echo "yes" >&6; }
20316 succeeded=yes
20318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
20319 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
20320 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.6.0"`
20321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
20322 $as_echo "$GCONF_CFLAGS" >&6; }
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
20325 $as_echo_n "checking GCONF_LIBS... " >&6; }
20326 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.6.0"`
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
20328 $as_echo "$GCONF_LIBS" >&6; }
20329 else
20330 GCONF_CFLAGS=""
20331 GCONF_LIBS=""
20332 ## If we have a custom action on failure, don't print errors, but
20333 ## do set a variable so people can do so.
20334 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.6.0"`
20335 echo $GCONF_PKG_ERRORS
20340 else
20341 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20342 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20346 if test $succeeded = yes; then
20348 else
20349 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
20355 succeeded=no
20357 if test -z "$PKG_CONFIG"; then
20358 # Extract the first word of "pkg-config", so it can be a program name with args.
20359 set dummy pkg-config; ac_word=$2
20360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20361 $as_echo_n "checking for $ac_word... " >&6; }
20362 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20363 $as_echo_n "(cached) " >&6
20364 else
20365 case $PKG_CONFIG in
20366 [\\/]* | ?:[\\/]*)
20367 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20371 for as_dir in $PATH
20373 IFS=$as_save_IFS
20374 test -z "$as_dir" && as_dir=.
20375 for ac_exec_ext in '' $ac_executable_extensions; do
20376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20377 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20379 break 2
20381 done
20382 done
20383 IFS=$as_save_IFS
20385 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20387 esac
20389 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20390 if test -n "$PKG_CONFIG"; then
20391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20392 $as_echo "$PKG_CONFIG" >&6; }
20393 else
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20395 $as_echo "no" >&6; }
20401 if test "$PKG_CONFIG" = "no" ; then
20402 echo "*** The pkg-config script could not be found. Make sure it is"
20403 echo "*** in your path, or set the PKG_CONFIG environment variable"
20404 echo "*** to the full path to pkg-config."
20405 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20406 else
20407 PKG_CONFIG_MIN_VERSION=0.9.0
20408 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
20410 $as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
20412 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20414 $as_echo "yes" >&6; }
20415 succeeded=yes
20417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
20418 $as_echo_n "checking GDK_CFLAGS... " >&6; }
20419 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
20421 $as_echo "$GDK_CFLAGS" >&6; }
20423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
20424 $as_echo_n "checking GDK_LIBS... " >&6; }
20425 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
20427 $as_echo "$GDK_LIBS" >&6; }
20428 else
20429 GDK_CFLAGS=""
20430 GDK_LIBS=""
20431 ## If we have a custom action on failure, don't print errors, but
20432 ## do set a variable so people can do so.
20433 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
20434 echo $GDK_PKG_ERRORS
20439 else
20440 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20441 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20445 if test $succeeded = yes; then
20447 else
20448 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
20453 USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
20454 if test "$USE_GCONF_PREFS_PEER" = ""; then
20455 DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
20459 if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
20460 GST_MAJORMINOR=0.10
20461 GST_REQUIRED=0.10.10
20464 succeeded=no
20466 if test -z "$PKG_CONFIG"; then
20467 # Extract the first word of "pkg-config", so it can be a program name with args.
20468 set dummy pkg-config; ac_word=$2
20469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20470 $as_echo_n "checking for $ac_word... " >&6; }
20471 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20472 $as_echo_n "(cached) " >&6
20473 else
20474 case $PKG_CONFIG in
20475 [\\/]* | ?:[\\/]*)
20476 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20480 for as_dir in $PATH
20482 IFS=$as_save_IFS
20483 test -z "$as_dir" && as_dir=.
20484 for ac_exec_ext in '' $ac_executable_extensions; do
20485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20486 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20488 break 2
20490 done
20491 done
20492 IFS=$as_save_IFS
20494 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20496 esac
20498 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20499 if test -n "$PKG_CONFIG"; then
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20501 $as_echo "$PKG_CONFIG" >&6; }
20502 else
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20504 $as_echo "no" >&6; }
20510 if test "$PKG_CONFIG" = "no" ; then
20511 echo "*** The pkg-config script could not be found. Make sure it is"
20512 echo "*** in your path, or set the PKG_CONFIG environment variable"
20513 echo "*** to the full path to pkg-config."
20514 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20515 else
20516 PKG_CONFIG_MIN_VERSION=0.9.0
20517 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20519 $as_echo_n "checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20521 if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20523 $as_echo "yes" >&6; }
20524 succeeded=yes
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_CFLAGS" >&5
20527 $as_echo_n "checking GSTREAMER_CFLAGS... " >&6; }
20528 GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_CFLAGS" >&5
20530 $as_echo "$GSTREAMER_CFLAGS" >&6; }
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_LIBS" >&5
20533 $as_echo_n "checking GSTREAMER_LIBS... " >&6; }
20534 GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_LIBS" >&5
20536 $as_echo "$GSTREAMER_LIBS" >&6; }
20537 else
20538 GSTREAMER_CFLAGS=""
20539 GSTREAMER_LIBS=""
20540 ## If we have a custom action on failure, don't print errors, but
20541 ## do set a variable so people can do so.
20542 GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20543 echo $GSTREAMER_PKG_ERRORS
20548 else
20549 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20550 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20554 if test $succeeded = yes; then
20556 else
20557 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
20564 succeeded=no
20566 if test -z "$PKG_CONFIG"; then
20567 # Extract the first word of "pkg-config", so it can be a program name with args.
20568 set dummy pkg-config; ac_word=$2
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20570 $as_echo_n "checking for $ac_word... " >&6; }
20571 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20572 $as_echo_n "(cached) " >&6
20573 else
20574 case $PKG_CONFIG in
20575 [\\/]* | ?:[\\/]*)
20576 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20580 for as_dir in $PATH
20582 IFS=$as_save_IFS
20583 test -z "$as_dir" && as_dir=.
20584 for ac_exec_ext in '' $ac_executable_extensions; do
20585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20586 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20588 break 2
20590 done
20591 done
20592 IFS=$as_save_IFS
20594 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20596 esac
20598 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20599 if test -n "$PKG_CONFIG"; then
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20601 $as_echo "$PKG_CONFIG" >&6; }
20602 else
20603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20604 $as_echo "no" >&6; }
20610 if test "$PKG_CONFIG" = "no" ; then
20611 echo "*** The pkg-config script could not be found. Make sure it is"
20612 echo "*** in your path, or set the PKG_CONFIG environment variable"
20613 echo "*** to the full path to pkg-config."
20614 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20615 else
20616 PKG_CONFIG_MIN_VERSION=0.9.0
20617 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20619 $as_echo_n "checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20621 if $PKG_CONFIG --exists "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20623 $as_echo "yes" >&6; }
20624 succeeded=yes
20626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_CFLAGS" >&5
20627 $as_echo_n "checking GSTREAMER_BASE_CFLAGS... " >&6; }
20628 GSTREAMER_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_CFLAGS" >&5
20630 $as_echo "$GSTREAMER_BASE_CFLAGS" >&6; }
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_LIBS" >&5
20633 $as_echo_n "checking GSTREAMER_BASE_LIBS... " >&6; }
20634 GSTREAMER_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_LIBS" >&5
20636 $as_echo "$GSTREAMER_BASE_LIBS" >&6; }
20637 else
20638 GSTREAMER_BASE_CFLAGS=""
20639 GSTREAMER_BASE_LIBS=""
20640 ## If we have a custom action on failure, don't print errors, but
20641 ## do set a variable so people can do so.
20642 GSTREAMER_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20643 echo $GSTREAMER_BASE_PKG_ERRORS
20648 else
20649 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20650 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20654 if test $succeeded = yes; then
20656 else
20657 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
20664 succeeded=no
20666 if test -z "$PKG_CONFIG"; then
20667 # Extract the first word of "pkg-config", so it can be a program name with args.
20668 set dummy pkg-config; ac_word=$2
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20670 $as_echo_n "checking for $ac_word... " >&6; }
20671 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20672 $as_echo_n "(cached) " >&6
20673 else
20674 case $PKG_CONFIG in
20675 [\\/]* | ?:[\\/]*)
20676 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20680 for as_dir in $PATH
20682 IFS=$as_save_IFS
20683 test -z "$as_dir" && as_dir=.
20684 for ac_exec_ext in '' $ac_executable_extensions; do
20685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20686 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20688 break 2
20690 done
20691 done
20692 IFS=$as_save_IFS
20694 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20696 esac
20698 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20699 if test -n "$PKG_CONFIG"; then
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20701 $as_echo "$PKG_CONFIG" >&6; }
20702 else
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20704 $as_echo "no" >&6; }
20710 if test "$PKG_CONFIG" = "no" ; then
20711 echo "*** The pkg-config script could not be found. Make sure it is"
20712 echo "*** in your path, or set the PKG_CONFIG environment variable"
20713 echo "*** to the full path to pkg-config."
20714 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20715 else
20716 PKG_CONFIG_MIN_VERSION=0.9.0
20717 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20719 $as_echo_n "checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20721 if $PKG_CONFIG --exists "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20723 $as_echo "yes" >&6; }
20724 succeeded=yes
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
20727 $as_echo_n "checking GSTREAMER_PLUGINS_BASE_CFLAGS... " >&6; }
20728 GSTREAMER_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
20730 $as_echo "$GSTREAMER_PLUGINS_BASE_CFLAGS" >&6; }
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_LIBS" >&5
20733 $as_echo_n "checking GSTREAMER_PLUGINS_BASE_LIBS... " >&6; }
20734 GSTREAMER_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_LIBS" >&5
20736 $as_echo "$GSTREAMER_PLUGINS_BASE_LIBS" >&6; }
20737 else
20738 GSTREAMER_PLUGINS_BASE_CFLAGS=""
20739 GSTREAMER_PLUGINS_BASE_LIBS=""
20740 ## If we have a custom action on failure, don't print errors, but
20741 ## do set a variable so people can do so.
20742 GSTREAMER_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20743 echo $GSTREAMER_PLUGINS_BASE_PKG_ERRORS
20748 else
20749 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20750 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20754 if test $succeeded = yes; then
20756 else
20757 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
20763 GST_PLUGIN_LDFLAGS='-module -avoid-version -Wno-unused-parameter -no-undefined'
20767 succeeded=no
20769 if test -z "$PKG_CONFIG"; then
20770 # Extract the first word of "pkg-config", so it can be a program name with args.
20771 set dummy pkg-config; ac_word=$2
20772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20773 $as_echo_n "checking for $ac_word... " >&6; }
20774 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20775 $as_echo_n "(cached) " >&6
20776 else
20777 case $PKG_CONFIG in
20778 [\\/]* | ?:[\\/]*)
20779 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20783 for as_dir in $PATH
20785 IFS=$as_save_IFS
20786 test -z "$as_dir" && as_dir=.
20787 for ac_exec_ext in '' $ac_executable_extensions; do
20788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20789 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20791 break 2
20793 done
20794 done
20795 IFS=$as_save_IFS
20797 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20799 esac
20801 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20802 if test -n "$PKG_CONFIG"; then
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20804 $as_echo "$PKG_CONFIG" >&6; }
20805 else
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20807 $as_echo "no" >&6; }
20813 if test "$PKG_CONFIG" = "no" ; then
20814 echo "*** The pkg-config script could not be found. Make sure it is"
20815 echo "*** in your path, or set the PKG_CONFIG environment variable"
20816 echo "*** to the full path to pkg-config."
20817 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20818 else
20819 PKG_CONFIG_MIN_VERSION=0.9.0
20820 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
20822 $as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
20824 if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20826 $as_echo "yes" >&6; }
20827 succeeded=yes
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
20830 $as_echo_n "checking GDK_CFLAGS... " >&6; }
20831 GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
20833 $as_echo "$GDK_CFLAGS" >&6; }
20835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
20836 $as_echo_n "checking GDK_LIBS... " >&6; }
20837 GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
20838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
20839 $as_echo "$GDK_LIBS" >&6; }
20840 else
20841 GDK_CFLAGS=""
20842 GDK_LIBS=""
20843 ## If we have a custom action on failure, don't print errors, but
20844 ## do set a variable so people can do so.
20845 GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
20846 echo $GDK_PKG_ERRORS
20851 else
20852 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20853 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20857 if test $succeeded = yes; then
20859 else
20860 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
20866 GSTREAMER_FILE_READER=gnu.javax.sound.sampled.gstreamer.io.GstAudioFileReader
20867 GSTREAMER_MIXER_PROVIDER=gnu.javax.sound.sampled.gstreamer.GStreamerMixerProvider
20872 if test "x${COMPILE_QT_PEER}" = xyes; then
20874 succeeded=no
20876 if test -z "$PKG_CONFIG"; then
20877 # Extract the first word of "pkg-config", so it can be a program name with args.
20878 set dummy pkg-config; ac_word=$2
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20880 $as_echo_n "checking for $ac_word... " >&6; }
20881 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20882 $as_echo_n "(cached) " >&6
20883 else
20884 case $PKG_CONFIG in
20885 [\\/]* | ?:[\\/]*)
20886 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20890 for as_dir in $PATH
20892 IFS=$as_save_IFS
20893 test -z "$as_dir" && as_dir=.
20894 for ac_exec_ext in '' $ac_executable_extensions; do
20895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20896 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20898 break 2
20900 done
20901 done
20902 IFS=$as_save_IFS
20904 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20906 esac
20908 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20909 if test -n "$PKG_CONFIG"; then
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20911 $as_echo "$PKG_CONFIG" >&6; }
20912 else
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20914 $as_echo "no" >&6; }
20920 if test "$PKG_CONFIG" = "no" ; then
20921 echo "*** The pkg-config script could not be found. Make sure it is"
20922 echo "*** in your path, or set the PKG_CONFIG environment variable"
20923 echo "*** to the full path to pkg-config."
20924 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20925 else
20926 PKG_CONFIG_MIN_VERSION=0.9.0
20927 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore QtGui >= 4.1.0" >&5
20929 $as_echo_n "checking for QtCore QtGui >= 4.1.0... " >&6; }
20931 if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20933 $as_echo "yes" >&6; }
20934 succeeded=yes
20936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_CFLAGS" >&5
20937 $as_echo_n "checking QT_CFLAGS... " >&6; }
20938 QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CFLAGS" >&5
20940 $as_echo "$QT_CFLAGS" >&6; }
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_LIBS" >&5
20943 $as_echo_n "checking QT_LIBS... " >&6; }
20944 QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LIBS" >&5
20946 $as_echo "$QT_LIBS" >&6; }
20947 else
20948 QT_CFLAGS=""
20949 QT_LIBS=""
20950 ## If we have a custom action on failure, don't print errors, but
20951 ## do set a variable so people can do so.
20952 QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
20958 else
20959 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20960 echo "*** See http://www.freedesktop.org/software/pkgconfig"
20964 if test $succeeded = yes; then
20965 HAVE_QT4="yes"
20966 else
20967 HAVE_QT4="no"
20970 if test "x$HAVE_QT4" = "xyes"; then
20971 QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
20972 EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
20973 as_ac_File=`$as_echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $QT_INCLUDE_DIR/QWidget" >&5
20975 $as_echo_n "checking for $QT_INCLUDE_DIR/QWidget... " >&6; }
20976 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
20977 $as_echo_n "(cached) " >&6
20978 else
20979 test "$cross_compiling" = yes &&
20980 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20981 if test -r "$QT_INCLUDE_DIR/QWidget"; then
20982 eval "$as_ac_File=yes"
20983 else
20984 eval "$as_ac_File=no"
20987 eval ac_res=\$$as_ac_File
20988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20989 $as_echo "$ac_res" >&6; }
20990 eval as_val=\$$as_ac_File
20991 if test "x$as_val" = x""yes; then :
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: No extra QT_INCLUDE_DIR needed" >&5
20993 $as_echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
20994 else
20995 as_ac_File=`$as_echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
20997 $as_echo_n "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... " >&6; }
20998 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
20999 $as_echo_n "(cached) " >&6
21000 else
21001 test "$cross_compiling" = yes &&
21002 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21003 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
21004 eval "$as_ac_File=yes"
21005 else
21006 eval "$as_ac_File=no"
21009 eval ac_res=\$$as_ac_File
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21011 $as_echo "$ac_res" >&6; }
21012 eval as_val=\$$as_ac_File
21013 if test "x$as_val" = x""yes; then :
21014 QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
21015 else
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: QWidget not found" >&5
21017 $as_echo "$as_me: WARNING: QWidget not found" >&2;}
21022 # Extract the first word of "moc", so it can be a program name with args.
21023 set dummy moc; ac_word=$2
21024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21025 $as_echo_n "checking for $ac_word... " >&6; }
21026 if test "${ac_cv_prog_MOC+set}" = set; then :
21027 $as_echo_n "(cached) " >&6
21028 else
21029 if test -n "$MOC"; then
21030 ac_cv_prog_MOC="$MOC" # Let the user override the test.
21031 else
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_prog_MOC="moc"
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
21049 MOC=$ac_cv_prog_MOC
21050 if test -n "$MOC"; then
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
21052 $as_echo "$MOC" >&6; }
21053 else
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21055 $as_echo "no" >&6; }
21059 # Extract the first word of "moc-qt4", so it can be a program name with args.
21060 set dummy moc-qt4; ac_word=$2
21061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21062 $as_echo_n "checking for $ac_word... " >&6; }
21063 if test "${ac_cv_prog_MOC+set}" = set; then :
21064 $as_echo_n "(cached) " >&6
21065 else
21066 if test -n "$MOC"; then
21067 ac_cv_prog_MOC="$MOC" # Let the user override the test.
21068 else
21069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21070 for as_dir in $PATH
21072 IFS=$as_save_IFS
21073 test -z "$as_dir" && as_dir=.
21074 for ac_exec_ext in '' $ac_executable_extensions; do
21075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21076 ac_cv_prog_MOC="moc-qt4"
21077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21078 break 2
21080 done
21081 done
21082 IFS=$as_save_IFS
21086 MOC=$ac_cv_prog_MOC
21087 if test -n "$MOC"; then
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
21089 $as_echo "$MOC" >&6; }
21090 else
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21092 $as_echo "no" >&6; }
21097 if test "x$HAVE_QT4" = "xno"; then
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
21099 $as_echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
21100 case "$host_os" in
21101 darwin*)
21103 # Check whether --with-qt4dir was given.
21104 if test "${with_qt4dir+set}" = set; then :
21105 withval=$with_qt4dir; QT4DIR=$withval
21109 if test x"$QT4DIR" = x ; then
21110 as_fn_error "*** No path for Qt4 --with-qt4dir option given" "$LINENO" 5
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: QT4DIR... $QT4DIR" >&5
21113 $as_echo "QT4DIR... $QT4DIR" >&6; }
21114 # Extract the first word of "moc", so it can be a program name with args.
21115 set dummy moc; ac_word=$2
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21117 $as_echo_n "checking for $ac_word... " >&6; }
21118 if test "${ac_cv_prog_MOC+set}" = set; then :
21119 $as_echo_n "(cached) " >&6
21120 else
21121 if test -n "$MOC"; then
21122 ac_cv_prog_MOC="$MOC" # Let the user override the test.
21123 else
21124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21125 for as_dir in $QT4DIR/bin
21127 IFS=$as_save_IFS
21128 test -z "$as_dir" && as_dir=.
21129 for ac_exec_ext in '' $ac_executable_extensions; do
21130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21131 ac_cv_prog_MOC="$QT4DIR/bin/moc"
21132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21133 break 2
21135 done
21136 done
21137 IFS=$as_save_IFS
21141 MOC=$ac_cv_prog_MOC
21142 if test -n "$MOC"; then
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
21144 $as_echo "$MOC" >&6; }
21145 else
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21147 $as_echo "no" >&6; }
21151 if test x"$MOC" = x; then
21152 as_fn_error "*** This is not the right Qt installation" "$LINENO" 5
21154 QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
21155 QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
21156 QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
21157 QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
21160 as_fn_error "*** Please check PKG_CONFIG_PATH or the version
21161 of your installed Qt4 installation." "$LINENO" 5
21163 esac
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: Set QT_CFLAGS... $QT_CFLAGS" >&5
21166 $as_echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
21171 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
21172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21173 /* end confdefs.h. */
21174 #include <sys/socket.h>
21176 main ()
21178 int f = MSG_NOSIGNAL;
21180 return 0;
21182 _ACEOF
21183 if ac_fn_c_try_compile "$LINENO"; then :
21184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21185 $as_echo "yes" >&6; }
21187 $as_echo "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
21189 else
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21191 $as_echo "no" >&6; }
21194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_NOSIGPIPE " >&5
21196 $as_echo_n "checking for SO_NOSIGPIPE ... " >&6; }
21197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21198 /* end confdefs.h. */
21199 #include <sys/socket.h>
21201 main ()
21203 int f = SO_NOSIGPIPE;
21205 return 0;
21207 _ACEOF
21208 if ac_fn_c_try_compile "$LINENO"; then :
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21210 $as_echo "yes" >&6; }
21212 $as_echo "#define HAVE_SO_NOSIGPIPE 1" >>confdefs.h
21214 else
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21216 $as_echo "no" >&6; }
21219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_WAITALL" >&5
21221 $as_echo_n "checking for MSG_WAITALL... " >&6; }
21222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21223 /* end confdefs.h. */
21224 #include <sys/socket.h>
21226 main ()
21228 int f = MSG_WAITALL;
21230 return 0;
21232 _ACEOF
21233 if ac_fn_c_try_compile "$LINENO"; then :
21234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21235 $as_echo "yes" >&6; }
21237 $as_echo "#define HAVE_MSG_WAITALL 1" >>confdefs.h
21239 else
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21241 $as_echo "no" >&6; }
21244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21246 if test "x${COMPILE_PLUGIN}" = xyes; then
21248 succeeded=no
21250 if test -z "$PKG_CONFIG"; then
21251 # Extract the first word of "pkg-config", so it can be a program name with args.
21252 set dummy pkg-config; ac_word=$2
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21254 $as_echo_n "checking for $ac_word... " >&6; }
21255 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21256 $as_echo_n "(cached) " >&6
21257 else
21258 case $PKG_CONFIG in
21259 [\\/]* | ?:[\\/]*)
21260 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21264 for as_dir in $PATH
21266 IFS=$as_save_IFS
21267 test -z "$as_dir" && as_dir=.
21268 for ac_exec_ext in '' $ac_executable_extensions; do
21269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21270 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21272 break 2
21274 done
21275 done
21276 IFS=$as_save_IFS
21278 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21280 esac
21282 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21283 if test -n "$PKG_CONFIG"; then
21284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21285 $as_echo "$PKG_CONFIG" >&6; }
21286 else
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21288 $as_echo "no" >&6; }
21294 if test "$PKG_CONFIG" = "no" ; then
21295 echo "*** The pkg-config script could not be found. Make sure it is"
21296 echo "*** in your path, or set the PKG_CONFIG environment variable"
21297 echo "*** to the full path to pkg-config."
21298 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21299 else
21300 PKG_CONFIG_MIN_VERSION=0.9.0
21301 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin libxul-unstable" >&5
21303 $as_echo_n "checking for mozilla-plugin libxul-unstable... " >&6; }
21305 if $PKG_CONFIG --exists "mozilla-plugin libxul-unstable" ; then
21306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21307 $as_echo "yes" >&6; }
21308 succeeded=yes
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21311 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21312 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin libxul-unstable"`
21313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21314 $as_echo "$MOZILLA_CFLAGS" >&6; }
21316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21317 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21318 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin libxul-unstable"`
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21320 $as_echo "$MOZILLA_LIBS" >&6; }
21321 else
21322 MOZILLA_CFLAGS=""
21323 MOZILLA_LIBS=""
21324 ## If we have a custom action on failure, don't print errors, but
21325 ## do set a variable so people can do so.
21326 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin libxul-unstable"`
21332 else
21333 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21334 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21338 if test $succeeded = yes; then
21339 MOZILLA_FOUND=yes
21340 else
21341 MOZILLA_FOUND=no
21344 if test "x${MOZILLA_FOUND}" = xno; then
21346 succeeded=no
21348 if test -z "$PKG_CONFIG"; then
21349 # Extract the first word of "pkg-config", so it can be a program name with args.
21350 set dummy pkg-config; ac_word=$2
21351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21352 $as_echo_n "checking for $ac_word... " >&6; }
21353 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21354 $as_echo_n "(cached) " >&6
21355 else
21356 case $PKG_CONFIG in
21357 [\\/]* | ?:[\\/]*)
21358 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21362 for as_dir in $PATH
21364 IFS=$as_save_IFS
21365 test -z "$as_dir" && as_dir=.
21366 for ac_exec_ext in '' $ac_executable_extensions; do
21367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21368 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21370 break 2
21372 done
21373 done
21374 IFS=$as_save_IFS
21376 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21378 esac
21380 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21381 if test -n "$PKG_CONFIG"; then
21382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21383 $as_echo "$PKG_CONFIG" >&6; }
21384 else
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21386 $as_echo "no" >&6; }
21392 if test "$PKG_CONFIG" = "no" ; then
21393 echo "*** The pkg-config script could not be found. Make sure it is"
21394 echo "*** in your path, or set the PKG_CONFIG environment variable"
21395 echo "*** to the full path to pkg-config."
21396 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21397 else
21398 PKG_CONFIG_MIN_VERSION=0.9.0
21399 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin" >&5
21401 $as_echo_n "checking for mozilla-plugin... " >&6; }
21403 if $PKG_CONFIG --exists "mozilla-plugin" ; then
21404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21405 $as_echo "yes" >&6; }
21406 succeeded=yes
21408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21409 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21410 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21412 $as_echo "$MOZILLA_CFLAGS" >&6; }
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21415 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21416 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21418 $as_echo "$MOZILLA_LIBS" >&6; }
21419 else
21420 MOZILLA_CFLAGS=""
21421 MOZILLA_LIBS=""
21422 ## If we have a custom action on failure, don't print errors, but
21423 ## do set a variable so people can do so.
21424 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
21430 else
21431 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21432 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21436 if test $succeeded = yes; then
21437 MOZILLA_FOUND=yes
21438 else
21439 MOZILLA_FOUND=no
21443 if test "x${MOZILLA_FOUND}" = xno; then
21445 succeeded=no
21447 if test -z "$PKG_CONFIG"; then
21448 # Extract the first word of "pkg-config", so it can be a program name with args.
21449 set dummy pkg-config; ac_word=$2
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21451 $as_echo_n "checking for $ac_word... " >&6; }
21452 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21453 $as_echo_n "(cached) " >&6
21454 else
21455 case $PKG_CONFIG in
21456 [\\/]* | ?:[\\/]*)
21457 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21461 for as_dir in $PATH
21463 IFS=$as_save_IFS
21464 test -z "$as_dir" && as_dir=.
21465 for ac_exec_ext in '' $ac_executable_extensions; do
21466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21467 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21469 break 2
21471 done
21472 done
21473 IFS=$as_save_IFS
21475 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21477 esac
21479 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21480 if test -n "$PKG_CONFIG"; then
21481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21482 $as_echo "$PKG_CONFIG" >&6; }
21483 else
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21485 $as_echo "no" >&6; }
21491 if test "$PKG_CONFIG" = "no" ; then
21492 echo "*** The pkg-config script could not be found. Make sure it is"
21493 echo "*** in your path, or set the PKG_CONFIG environment variable"
21494 echo "*** to the full path to pkg-config."
21495 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21496 else
21497 PKG_CONFIG_MIN_VERSION=0.9.0
21498 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for firefox-plugin firefox-xpcom" >&5
21500 $as_echo_n "checking for firefox-plugin firefox-xpcom... " >&6; }
21502 if $PKG_CONFIG --exists "firefox-plugin firefox-xpcom" ; then
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21504 $as_echo "yes" >&6; }
21505 succeeded=yes
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21508 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21509 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin firefox-xpcom"`
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21511 $as_echo "$MOZILLA_CFLAGS" >&6; }
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21514 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21515 MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin firefox-xpcom"`
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21517 $as_echo "$MOZILLA_LIBS" >&6; }
21518 else
21519 MOZILLA_CFLAGS=""
21520 MOZILLA_LIBS=""
21521 ## If we have a custom action on failure, don't print errors, but
21522 ## do set a variable so people can do so.
21523 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin firefox-xpcom"`
21529 else
21530 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21531 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21535 if test $succeeded = yes; then
21536 MOZILLA_FOUND=yes
21537 else
21538 MOZILLA_FOUND=no
21542 if test "x${MOZILLA_FOUND}" = xno; then
21544 succeeded=no
21546 if test -z "$PKG_CONFIG"; then
21547 # Extract the first word of "pkg-config", so it can be a program name with args.
21548 set dummy pkg-config; ac_word=$2
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21550 $as_echo_n "checking for $ac_word... " >&6; }
21551 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21552 $as_echo_n "(cached) " >&6
21553 else
21554 case $PKG_CONFIG in
21555 [\\/]* | ?:[\\/]*)
21556 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21560 for as_dir in $PATH
21562 IFS=$as_save_IFS
21563 test -z "$as_dir" && as_dir=.
21564 for ac_exec_ext in '' $ac_executable_extensions; do
21565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21566 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21568 break 2
21570 done
21571 done
21572 IFS=$as_save_IFS
21574 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21576 esac
21578 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21579 if test -n "$PKG_CONFIG"; then
21580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21581 $as_echo "$PKG_CONFIG" >&6; }
21582 else
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21584 $as_echo "no" >&6; }
21590 if test "$PKG_CONFIG" = "no" ; then
21591 echo "*** The pkg-config script could not be found. Make sure it is"
21592 echo "*** in your path, or set the PKG_CONFIG environment variable"
21593 echo "*** to the full path to pkg-config."
21594 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21595 else
21596 PKG_CONFIG_MIN_VERSION=0.9.0
21597 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xulrunner-plugin xulrunner-xpcom" >&5
21599 $as_echo_n "checking for xulrunner-plugin xulrunner-xpcom... " >&6; }
21601 if $PKG_CONFIG --exists "xulrunner-plugin xulrunner-xpcom" ; then
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21603 $as_echo "yes" >&6; }
21604 succeeded=yes
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21607 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21608 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin xulrunner-xpcom"`
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21610 $as_echo "$MOZILLA_CFLAGS" >&6; }
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21613 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21614 MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin xulrunner-xpcom"`
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21616 $as_echo "$MOZILLA_LIBS" >&6; }
21617 else
21618 MOZILLA_CFLAGS=""
21619 MOZILLA_LIBS=""
21620 ## If we have a custom action on failure, don't print errors, but
21621 ## do set a variable so people can do so.
21622 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin xulrunner-xpcom"`
21628 else
21629 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21630 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21634 if test $succeeded = yes; then
21635 MOZILLA_FOUND=yes
21636 else
21637 MOZILLA_FOUND=no
21641 if test "x${MOZILLA_FOUND}" = xno; then
21643 succeeded=no
21645 if test -z "$PKG_CONFIG"; then
21646 # Extract the first word of "pkg-config", so it can be a program name with args.
21647 set dummy pkg-config; ac_word=$2
21648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21649 $as_echo_n "checking for $ac_word... " >&6; }
21650 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21651 $as_echo_n "(cached) " >&6
21652 else
21653 case $PKG_CONFIG in
21654 [\\/]* | ?:[\\/]*)
21655 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21659 for as_dir in $PATH
21661 IFS=$as_save_IFS
21662 test -z "$as_dir" && as_dir=.
21663 for ac_exec_ext in '' $ac_executable_extensions; do
21664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21665 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21667 break 2
21669 done
21670 done
21671 IFS=$as_save_IFS
21673 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21675 esac
21677 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21678 if test -n "$PKG_CONFIG"; then
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21680 $as_echo "$PKG_CONFIG" >&6; }
21681 else
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21683 $as_echo "no" >&6; }
21689 if test "$PKG_CONFIG" = "no" ; then
21690 echo "*** The pkg-config script could not be found. Make sure it is"
21691 echo "*** in your path, or set the PKG_CONFIG environment variable"
21692 echo "*** to the full path to pkg-config."
21693 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21694 else
21695 PKG_CONFIG_MIN_VERSION=0.9.0
21696 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-firefox-plugin mozilla-firefox-xpcom" >&5
21698 $as_echo_n "checking for mozilla-firefox-plugin mozilla-firefox-xpcom... " >&6; }
21700 if $PKG_CONFIG --exists "mozilla-firefox-plugin mozilla-firefox-xpcom" ; then
21701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21702 $as_echo "yes" >&6; }
21703 succeeded=yes
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21706 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21707 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21709 $as_echo "$MOZILLA_CFLAGS" >&6; }
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21712 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21713 MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21715 $as_echo "$MOZILLA_LIBS" >&6; }
21716 else
21717 MOZILLA_CFLAGS=""
21718 MOZILLA_LIBS=""
21719 ## If we have a custom action on failure, don't print errors, but
21720 ## do set a variable so people can do so.
21721 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21727 else
21728 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21729 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21733 if test $succeeded = yes; then
21734 MOZILLA_FOUND=yes
21735 else
21736 MOZILLA_FOUND=no
21740 if test "x${MOZILLA_FOUND}" = xno; then
21742 succeeded=no
21744 if test -z "$PKG_CONFIG"; then
21745 # Extract the first word of "pkg-config", so it can be a program name with args.
21746 set dummy pkg-config; ac_word=$2
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21748 $as_echo_n "checking for $ac_word... " >&6; }
21749 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21750 $as_echo_n "(cached) " >&6
21751 else
21752 case $PKG_CONFIG in
21753 [\\/]* | ?:[\\/]*)
21754 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21758 for as_dir in $PATH
21760 IFS=$as_save_IFS
21761 test -z "$as_dir" && as_dir=.
21762 for ac_exec_ext in '' $ac_executable_extensions; do
21763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21764 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21766 break 2
21768 done
21769 done
21770 IFS=$as_save_IFS
21772 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21774 esac
21776 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21777 if test -n "$PKG_CONFIG"; then
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21779 $as_echo "$PKG_CONFIG" >&6; }
21780 else
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21782 $as_echo "no" >&6; }
21788 if test "$PKG_CONFIG" = "no" ; then
21789 echo "*** The pkg-config script could not be found. Make sure it is"
21790 echo "*** in your path, or set the PKG_CONFIG environment variable"
21791 echo "*** to the full path to pkg-config."
21792 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21793 else
21794 PKG_CONFIG_MIN_VERSION=0.9.0
21795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seamonkey-plugin seamonkey-xpcom" >&5
21797 $as_echo_n "checking for seamonkey-plugin seamonkey-xpcom... " >&6; }
21799 if $PKG_CONFIG --exists "seamonkey-plugin seamonkey-xpcom" ; then
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21801 $as_echo "yes" >&6; }
21802 succeeded=yes
21804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21805 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21806 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-plugin seamonkey-xpcom"`
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21808 $as_echo "$MOZILLA_CFLAGS" >&6; }
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21811 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21812 MOZILLA_LIBS=`$PKG_CONFIG --libs "seamonkey-plugin seamonkey-xpcom"`
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21814 $as_echo "$MOZILLA_LIBS" >&6; }
21815 else
21816 MOZILLA_CFLAGS=""
21817 MOZILLA_LIBS=""
21818 ## If we have a custom action on failure, don't print errors, but
21819 ## do set a variable so people can do so.
21820 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "seamonkey-plugin seamonkey-xpcom"`
21826 else
21827 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21828 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21832 if test $succeeded = yes; then
21833 MOZILLA_FOUND=yes
21834 else
21835 MOZILLA_FOUND=no
21839 if test "x${MOZILLA_FOUND}" = xno; then
21841 succeeded=no
21843 if test -z "$PKG_CONFIG"; then
21844 # Extract the first word of "pkg-config", so it can be a program name with args.
21845 set dummy pkg-config; ac_word=$2
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21847 $as_echo_n "checking for $ac_word... " >&6; }
21848 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21849 $as_echo_n "(cached) " >&6
21850 else
21851 case $PKG_CONFIG in
21852 [\\/]* | ?:[\\/]*)
21853 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21857 for as_dir in $PATH
21859 IFS=$as_save_IFS
21860 test -z "$as_dir" && as_dir=.
21861 for ac_exec_ext in '' $ac_executable_extensions; do
21862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21863 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21865 break 2
21867 done
21868 done
21869 IFS=$as_save_IFS
21871 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21873 esac
21875 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21876 if test -n "$PKG_CONFIG"; then
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21878 $as_echo "$PKG_CONFIG" >&6; }
21879 else
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21881 $as_echo "no" >&6; }
21887 if test "$PKG_CONFIG" = "no" ; then
21888 echo "*** The pkg-config script could not be found. Make sure it is"
21889 echo "*** in your path, or set the PKG_CONFIG environment variable"
21890 echo "*** to the full path to pkg-config."
21891 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21892 else
21893 PKG_CONFIG_MIN_VERSION=0.9.0
21894 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iceape-plugin iceape-xpcom" >&5
21896 $as_echo_n "checking for iceape-plugin iceape-xpcom... " >&6; }
21898 if $PKG_CONFIG --exists "iceape-plugin iceape-xpcom" ; then
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21900 $as_echo "yes" >&6; }
21901 succeeded=yes
21903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21904 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21905 MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "iceape-plugin iceape-xpcom"`
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21907 $as_echo "$MOZILLA_CFLAGS" >&6; }
21909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21910 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21911 MOZILLA_LIBS=`$PKG_CONFIG --libs "iceape-plugin iceape-xpcom"`
21912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21913 $as_echo "$MOZILLA_LIBS" >&6; }
21914 else
21915 MOZILLA_CFLAGS=""
21916 MOZILLA_LIBS=""
21917 ## If we have a custom action on failure, don't print errors, but
21918 ## do set a variable so people can do so.
21919 MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "iceape-plugin iceape-xpcom"`
21925 else
21926 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21927 echo "*** See http://www.freedesktop.org/software/pkgconfig"
21931 if test $succeeded = yes; then
21932 MOZILLA_FOUND=yes
21933 else
21934 MOZILLA_FOUND=no
21938 if test "x${MOZILLA_FOUND}" = xno; then
21939 as_fn_error "Couldn't find plugin support headers and libraries, try --disable-plugin" "$LINENO" 5
21943 succeeded=no
21945 if test -z "$PKG_CONFIG"; then
21946 # Extract the first word of "pkg-config", so it can be a program name with args.
21947 set dummy pkg-config; ac_word=$2
21948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21949 $as_echo_n "checking for $ac_word... " >&6; }
21950 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21951 $as_echo_n "(cached) " >&6
21952 else
21953 case $PKG_CONFIG in
21954 [\\/]* | ?:[\\/]*)
21955 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21959 for as_dir in $PATH
21961 IFS=$as_save_IFS
21962 test -z "$as_dir" && as_dir=.
21963 for ac_exec_ext in '' $ac_executable_extensions; do
21964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21965 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21967 break 2
21969 done
21970 done
21971 IFS=$as_save_IFS
21973 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21975 esac
21977 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21978 if test -n "$PKG_CONFIG"; then
21979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21980 $as_echo "$PKG_CONFIG" >&6; }
21981 else
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21983 $as_echo "no" >&6; }
21989 if test "$PKG_CONFIG" = "no" ; then
21990 echo "*** The pkg-config script could not be found. Make sure it is"
21991 echo "*** in your path, or set the PKG_CONFIG environment variable"
21992 echo "*** to the full path to pkg-config."
21993 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21994 else
21995 PKG_CONFIG_MIN_VERSION=0.9.0
21996 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0" >&5
21998 $as_echo_n "checking for glib-2.0... " >&6; }
22000 if $PKG_CONFIG --exists "glib-2.0" ; then
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22002 $as_echo "yes" >&6; }
22003 succeeded=yes
22005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22006 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22007 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22009 $as_echo "$GLIB_CFLAGS" >&6; }
22011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22012 $as_echo_n "checking GLIB_LIBS... " >&6; }
22013 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
22014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22015 $as_echo "$GLIB_LIBS" >&6; }
22016 else
22017 GLIB_CFLAGS=""
22018 GLIB_LIBS=""
22019 ## If we have a custom action on failure, don't print errors, but
22020 ## do set a variable so people can do so.
22021 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
22022 echo $GLIB_PKG_ERRORS
22027 else
22028 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22029 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22033 if test $succeeded = yes; then
22035 else
22036 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
22040 succeeded=no
22042 if test -z "$PKG_CONFIG"; then
22043 # Extract the first word of "pkg-config", so it can be a program name with args.
22044 set dummy pkg-config; ac_word=$2
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22046 $as_echo_n "checking for $ac_word... " >&6; }
22047 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22048 $as_echo_n "(cached) " >&6
22049 else
22050 case $PKG_CONFIG in
22051 [\\/]* | ?:[\\/]*)
22052 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22056 for as_dir in $PATH
22058 IFS=$as_save_IFS
22059 test -z "$as_dir" && as_dir=.
22060 for ac_exec_ext in '' $ac_executable_extensions; do
22061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22062 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22064 break 2
22066 done
22067 done
22068 IFS=$as_save_IFS
22070 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22072 esac
22074 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22075 if test -n "$PKG_CONFIG"; then
22076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22077 $as_echo "$PKG_CONFIG" >&6; }
22078 else
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22080 $as_echo "no" >&6; }
22086 if test "$PKG_CONFIG" = "no" ; then
22087 echo "*** The pkg-config script could not be found. Make sure it is"
22088 echo "*** in your path, or set the PKG_CONFIG environment variable"
22089 echo "*** to the full path to pkg-config."
22090 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22091 else
22092 PKG_CONFIG_MIN_VERSION=0.9.0
22093 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
22095 $as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
22097 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22099 $as_echo "yes" >&6; }
22100 succeeded=yes
22102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22103 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22104 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
22105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22106 $as_echo "$GTK_CFLAGS" >&6; }
22108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22109 $as_echo_n "checking GTK_LIBS... " >&6; }
22110 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22112 $as_echo "$GTK_LIBS" >&6; }
22113 else
22114 GTK_CFLAGS=""
22115 GTK_LIBS=""
22116 ## If we have a custom action on failure, don't print errors, but
22117 ## do set a variable so people can do so.
22118 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
22119 echo $GTK_PKG_ERRORS
22124 else
22125 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22126 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22130 if test $succeeded = yes; then
22132 else
22133 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
22144 PLUGIN_DIR=$HOME/.mozilla/plugins/
22148 if test "x${COMPILE_GMP}" = xyes; then
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_mul_si in -lgmp" >&5
22150 $as_echo_n "checking for __gmpz_mul_si in -lgmp... " >&6; }
22151 if test "${ac_cv_lib_gmp___gmpz_mul_si+set}" = set; then :
22152 $as_echo_n "(cached) " >&6
22153 else
22154 ac_check_lib_save_LIBS=$LIBS
22155 LIBS="-lgmp $LIBS"
22156 if test x$gcc_no_link = xyes; then
22157 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22160 /* end confdefs.h. */
22162 /* Override any GCC internal prototype to avoid an error.
22163 Use char because int might match the return type of a GCC
22164 builtin and then its argument prototype would still apply. */
22165 #ifdef __cplusplus
22166 extern "C"
22167 #endif
22168 char __gmpz_mul_si ();
22170 main ()
22172 return __gmpz_mul_si ();
22174 return 0;
22176 _ACEOF
22177 if ac_fn_c_try_link "$LINENO"; then :
22178 ac_cv_lib_gmp___gmpz_mul_si=yes
22179 else
22180 ac_cv_lib_gmp___gmpz_mul_si=no
22182 rm -f core conftest.err conftest.$ac_objext \
22183 conftest$ac_exeext conftest.$ac_ext
22184 LIBS=$ac_check_lib_save_LIBS
22186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_mul_si" >&5
22187 $as_echo "$ac_cv_lib_gmp___gmpz_mul_si" >&6; }
22188 if test "x$ac_cv_lib_gmp___gmpz_mul_si" = x""yes; then :
22189 GMP_CFLAGS=-I/usr/include
22190 GMP_LIBS=-lgmp
22191 else
22192 GMP_CFLAGS=
22193 GMP_LIBS=
22199 for ac_header in gmp.h
22200 do :
22201 ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
22202 if test "x$ac_cv_header_gmp_h" = x""yes; then :
22203 cat >>confdefs.h <<_ACEOF
22204 #define HAVE_GMP_H 1
22205 _ACEOF
22209 done
22213 else
22214 COMPILE_GMP=no
22217 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
22220 # Check whether --with-javah was given.
22221 if test "${with_javah+set}" = set; then :
22222 withval=$with_javah;
22223 if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
22225 if test "x${withval}" != x; then
22226 if test -f "${withval}"; then
22227 USER_JAVAH="${withval}"
22228 else
22229 # Extract the first word of ""${withval}"", so it can be a program name with args.
22230 set dummy "${withval}"; ac_word=$2
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22232 $as_echo_n "checking for $ac_word... " >&6; }
22233 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22234 $as_echo_n "(cached) " >&6
22235 else
22236 case $USER_JAVAH in
22237 [\\/]* | ?:[\\/]*)
22238 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22242 for as_dir in $PATH
22244 IFS=$as_save_IFS
22245 test -z "$as_dir" && as_dir=.
22246 for ac_exec_ext in '' $ac_executable_extensions; do
22247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22248 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22250 break 2
22252 done
22253 done
22254 IFS=$as_save_IFS
22257 esac
22259 USER_JAVAH=$ac_cv_path_USER_JAVAH
22260 if test -n "$USER_JAVAH"; then
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22262 $as_echo "$USER_JAVAH" >&6; }
22263 else
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22265 $as_echo "no" >&6; }
22270 else
22271 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22273 # Extract the first word of "$ac_prog", so it can be a program name with args.
22274 set dummy $ac_prog; ac_word=$2
22275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22276 $as_echo_n "checking for $ac_word... " >&6; }
22277 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22278 $as_echo_n "(cached) " >&6
22279 else
22280 case $USER_JAVAH in
22281 [\\/]* | ?:[\\/]*)
22282 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22286 for as_dir in $PATH
22288 IFS=$as_save_IFS
22289 test -z "$as_dir" && as_dir=.
22290 for ac_exec_ext in '' $ac_executable_extensions; do
22291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22292 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22294 break 2
22296 done
22297 done
22298 IFS=$as_save_IFS
22301 esac
22303 USER_JAVAH=$ac_cv_path_USER_JAVAH
22304 if test -n "$USER_JAVAH"; then
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22306 $as_echo "$USER_JAVAH" >&6; }
22307 else
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22309 $as_echo "no" >&6; }
22313 test -n "$USER_JAVAH" && break
22314 done
22318 if test "x${USER_JAVAH}" = x; then
22319 as_fn_error "can not find javah" "$LINENO" 5
22322 else
22324 if test "x" != x; then
22325 if test -f ""; then
22326 USER_JAVAH=""
22327 else
22328 # Extract the first word of """", so it can be a program name with args.
22329 set dummy ""; ac_word=$2
22330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22331 $as_echo_n "checking for $ac_word... " >&6; }
22332 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22333 $as_echo_n "(cached) " >&6
22334 else
22335 case $USER_JAVAH in
22336 [\\/]* | ?:[\\/]*)
22337 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22341 for as_dir in $PATH
22343 IFS=$as_save_IFS
22344 test -z "$as_dir" && as_dir=.
22345 for ac_exec_ext in '' $ac_executable_extensions; do
22346 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22347 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22349 break 2
22351 done
22352 done
22353 IFS=$as_save_IFS
22356 esac
22358 USER_JAVAH=$ac_cv_path_USER_JAVAH
22359 if test -n "$USER_JAVAH"; then
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22361 $as_echo "$USER_JAVAH" >&6; }
22362 else
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22364 $as_echo "no" >&6; }
22369 else
22370 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22372 # Extract the first word of "$ac_prog", so it can be a program name with args.
22373 set dummy $ac_prog; ac_word=$2
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22375 $as_echo_n "checking for $ac_word... " >&6; }
22376 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22377 $as_echo_n "(cached) " >&6
22378 else
22379 case $USER_JAVAH in
22380 [\\/]* | ?:[\\/]*)
22381 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22385 for as_dir in $PATH
22387 IFS=$as_save_IFS
22388 test -z "$as_dir" && as_dir=.
22389 for ac_exec_ext in '' $ac_executable_extensions; do
22390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22391 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22393 break 2
22395 done
22396 done
22397 IFS=$as_save_IFS
22400 esac
22402 USER_JAVAH=$ac_cv_path_USER_JAVAH
22403 if test -n "$USER_JAVAH"; then
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22405 $as_echo "$USER_JAVAH" >&6; }
22406 else
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22408 $as_echo "no" >&6; }
22412 test -n "$USER_JAVAH" && break
22413 done
22417 if test "x${USER_JAVAH}" = x; then
22418 as_fn_error "can not find javah" "$LINENO" 5
22423 else
22426 if test "x" != x; then
22427 if test -f ""; then
22428 USER_JAVAH=""
22429 else
22430 # Extract the first word of """", so it can be a program name with args.
22431 set dummy ""; ac_word=$2
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22433 $as_echo_n "checking for $ac_word... " >&6; }
22434 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22435 $as_echo_n "(cached) " >&6
22436 else
22437 case $USER_JAVAH in
22438 [\\/]* | ?:[\\/]*)
22439 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22443 for as_dir in $PATH
22445 IFS=$as_save_IFS
22446 test -z "$as_dir" && as_dir=.
22447 for ac_exec_ext in '' $ac_executable_extensions; do
22448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22449 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22451 break 2
22453 done
22454 done
22455 IFS=$as_save_IFS
22458 esac
22460 USER_JAVAH=$ac_cv_path_USER_JAVAH
22461 if test -n "$USER_JAVAH"; then
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22463 $as_echo "$USER_JAVAH" >&6; }
22464 else
22465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22466 $as_echo "no" >&6; }
22471 else
22472 for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22474 # Extract the first word of "$ac_prog", so it can be a program name with args.
22475 set dummy $ac_prog; ac_word=$2
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22477 $as_echo_n "checking for $ac_word... " >&6; }
22478 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22479 $as_echo_n "(cached) " >&6
22480 else
22481 case $USER_JAVAH in
22482 [\\/]* | ?:[\\/]*)
22483 ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22487 for as_dir in $PATH
22489 IFS=$as_save_IFS
22490 test -z "$as_dir" && as_dir=.
22491 for ac_exec_ext in '' $ac_executable_extensions; do
22492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22493 ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22495 break 2
22497 done
22498 done
22499 IFS=$as_save_IFS
22502 esac
22504 USER_JAVAH=$ac_cv_path_USER_JAVAH
22505 if test -n "$USER_JAVAH"; then
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22507 $as_echo "$USER_JAVAH" >&6; }
22508 else
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22510 $as_echo "no" >&6; }
22514 test -n "$USER_JAVAH" && break
22515 done
22519 if test "x${USER_JAVAH}" = x; then
22520 as_fn_error "can not find javah" "$LINENO" 5
22530 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/jni/native-lib"
22533 if test "x${COMPILE_JNI}" = xyes; then
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking jni_md.h support" >&5
22535 $as_echo_n "checking jni_md.h support... " >&6; }
22536 if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22538 $as_echo "yes" >&6; }
22539 else
22540 target_cpu=x86
22541 target_os=linux-gnu
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no" >&5
22543 $as_echo "$as_me: WARNING: no" >&2;}
22545 ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
22546 ac_dests="include/jni_md.h"
22547 while test -n "$ac_sources"; do
22548 set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22549 set $ac_sources; ac_source=$1; shift; ac_sources=$*
22550 ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
22551 done
22552 ac_config_links="$ac_config_links $ac_config_links_1"
22558 # Check whether --with-vm-classes was given.
22559 if test "${with_vm_classes+set}" = set; then :
22560 withval=$with_vm_classes; vm_classes="$with_vm_classes"
22561 else
22562 vm_classes='${top_srcdir}/vm/reference'
22569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
22570 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
22571 # Check whether --enable-maintainer-mode was given.
22572 if test "${enable_maintainer_mode+set}" = set; then :
22573 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
22574 else
22575 USE_MAINTAINER_MODE=no
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
22579 $as_echo "$USE_MAINTAINER_MODE" >&6; }
22580 if test $USE_MAINTAINER_MODE = yes; then
22581 MAINTAINER_MODE_TRUE=
22582 MAINTAINER_MODE_FALSE='#'
22583 else
22584 MAINTAINER_MODE_TRUE='#'
22585 MAINTAINER_MODE_FALSE=
22588 MAINT=$MAINTAINER_MODE_TRUE
22592 # Check whether --enable-debug was given.
22593 if test "${enable_debug+set}" = set; then :
22594 enableval=$enable_debug; case "${enableval}" in
22595 yes)
22596 LIBDEBUG="true"
22598 $as_echo "#define DEBUG 1" >>confdefs.h
22601 no) LIBDEBUG="false" ;;
22602 *) as_fn_error "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
22603 esac
22604 else
22605 LIBDEBUG="false"
22610 # Check whether --enable-load-library was given.
22611 if test "${enable_load_library+set}" = set; then :
22612 enableval=$enable_load_library; case "${enableval}" in
22613 yes) INIT_LOAD_LIBRARY="true" ;;
22614 no) INIT_LOAD_LIBRARY="false" ;;
22615 *) as_fn_error "bad value ${enableval} for --enable-load-library" "$LINENO" 5 ;;
22616 esac
22617 else
22618 INIT_LOAD_LIBRARY="true"
22625 # Check whether --with-ecj-jar was given.
22626 if test "${with_ecj_jar+set}" = set; then :
22627 withval=$with_ecj_jar; ECJ_JAR=$withval
22628 else
22629 if test -f $multi_basedir/ecj.jar; then
22630 ECJ_JAR='$(jardir)/ecj.jar'
22636 # Check whether --enable-java-lang-system-explicit-initialization was given.
22637 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then :
22638 enableval=$enable_java_lang_system_explicit_initialization; case "${enableval}" in
22639 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
22640 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
22641 *) as_fn_error "bad value ${enableval} for --enable-java-lang-system-explicit-initialization" "$LINENO" 5 ;;
22642 esac
22643 else
22644 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
22650 REMOVE=""
22653 # Extract the first word of "mkdir", so it can be a program name with args.
22654 set dummy mkdir; ac_word=$2
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22656 $as_echo_n "checking for $ac_word... " >&6; }
22657 if test "${ac_cv_path_MKDIR+set}" = set; then :
22658 $as_echo_n "(cached) " >&6
22659 else
22660 case $MKDIR in
22661 [\\/]* | ?:[\\/]*)
22662 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
22665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22666 for as_dir in $PATH
22668 IFS=$as_save_IFS
22669 test -z "$as_dir" && as_dir=.
22670 for ac_exec_ext in '' $ac_executable_extensions; do
22671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22672 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
22673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22674 break 2
22676 done
22677 done
22678 IFS=$as_save_IFS
22681 esac
22683 MKDIR=$ac_cv_path_MKDIR
22684 if test -n "$MKDIR"; then
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
22686 $as_echo "$MKDIR" >&6; }
22687 else
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22689 $as_echo "no" >&6; }
22693 # Extract the first word of "cp", so it can be a program name with args.
22694 set dummy cp; ac_word=$2
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22696 $as_echo_n "checking for $ac_word... " >&6; }
22697 if test "${ac_cv_path_CP+set}" = set; then :
22698 $as_echo_n "(cached) " >&6
22699 else
22700 case $CP in
22701 [\\/]* | ?:[\\/]*)
22702 ac_cv_path_CP="$CP" # Let the user override the test with a path.
22705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22706 for as_dir in $PATH
22708 IFS=$as_save_IFS
22709 test -z "$as_dir" && as_dir=.
22710 for ac_exec_ext in '' $ac_executable_extensions; do
22711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22712 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
22713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22714 break 2
22716 done
22717 done
22718 IFS=$as_save_IFS
22721 esac
22723 CP=$ac_cv_path_CP
22724 if test -n "$CP"; then
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
22726 $as_echo "$CP" >&6; }
22727 else
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22729 $as_echo "no" >&6; }
22733 # Extract the first word of "date", so it can be a program name with args.
22734 set dummy date; ac_word=$2
22735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22736 $as_echo_n "checking for $ac_word... " >&6; }
22737 if test "${ac_cv_path_DATE+set}" = set; then :
22738 $as_echo_n "(cached) " >&6
22739 else
22740 case $DATE in
22741 [\\/]* | ?:[\\/]*)
22742 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
22745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22746 for as_dir in $PATH
22748 IFS=$as_save_IFS
22749 test -z "$as_dir" && as_dir=.
22750 for ac_exec_ext in '' $ac_executable_extensions; do
22751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22752 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
22753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22754 break 2
22756 done
22757 done
22758 IFS=$as_save_IFS
22761 esac
22763 DATE=$ac_cv_path_DATE
22764 if test -n "$DATE"; then
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
22766 $as_echo "$DATE" >&6; }
22767 else
22768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22769 $as_echo "no" >&6; }
22774 # Extract the first word of "find", so it can be a program name with args.
22775 set dummy find; ac_word=$2
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22777 $as_echo_n "checking for $ac_word... " >&6; }
22778 if test "${ac_cv_path_FIND+set}" = set; then :
22779 $as_echo_n "(cached) " >&6
22780 else
22781 case $FIND in
22782 [\\/]* | ?:[\\/]*)
22783 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
22786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22787 for as_dir in $PATH
22789 IFS=$as_save_IFS
22790 test -z "$as_dir" && as_dir=.
22791 for ac_exec_ext in '' $ac_executable_extensions; do
22792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22793 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
22794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22795 break 2
22797 done
22798 done
22799 IFS=$as_save_IFS
22802 esac
22804 FIND=$ac_cv_path_FIND
22805 if test -n "$FIND"; then
22806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
22807 $as_echo "$FIND" >&6; }
22808 else
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22810 $as_echo "no" >&6; }
22816 # Extract the first word of "zip", so it can be a program name with args.
22817 set dummy zip; ac_word=$2
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22819 $as_echo_n "checking for $ac_word... " >&6; }
22820 if test "${ac_cv_path_ZIP+set}" = set; then :
22821 $as_echo_n "(cached) " >&6
22822 else
22823 case $ZIP in
22824 [\\/]* | ?:[\\/]*)
22825 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
22828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22829 for as_dir in $PATH
22831 IFS=$as_save_IFS
22832 test -z "$as_dir" && as_dir=.
22833 for ac_exec_ext in '' $ac_executable_extensions; do
22834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22835 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
22836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22837 break 2
22839 done
22840 done
22841 IFS=$as_save_IFS
22844 esac
22846 ZIP=$ac_cv_path_ZIP
22847 if test -n "$ZIP"; then
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
22849 $as_echo "$ZIP" >&6; }
22850 else
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22852 $as_echo "no" >&6; }
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a jar-like tool" >&5
22858 $as_echo_n "checking for a jar-like tool... " >&6; }
22860 # Check whether --with-jar was given.
22861 if test "${with_jar+set}" = set; then :
22862 withval=$with_jar;
22863 case "${withval}" in
22864 yes)
22865 JAR=yes
22868 JAR=no
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
22870 $as_echo "${JAR}" >&6; }
22873 if test -f "${withval}"; then
22874 JAR="${withval}"
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
22876 $as_echo "${JAR}" >&6; }
22877 else
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22879 $as_echo "not found" >&6; }
22880 as_fn_error "The jar tool ${withval} was not found." "$LINENO" 5
22883 esac
22885 else
22887 JAR=yes
22891 if test x"${JAR}" = "xyes"; then
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying fastjar, gjar and jar" >&5
22893 $as_echo "trying fastjar, gjar and jar" >&6; }
22894 for ac_prog in fastjar gjar jar
22896 # Extract the first word of "$ac_prog", so it can be a program name with args.
22897 set dummy $ac_prog; ac_word=$2
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22899 $as_echo_n "checking for $ac_word... " >&6; }
22900 if test "${ac_cv_path_JAR+set}" = set; then :
22901 $as_echo_n "(cached) " >&6
22902 else
22903 case $JAR in
22904 [\\/]* | ?:[\\/]*)
22905 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
22908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22909 for as_dir in $PATH
22911 IFS=$as_save_IFS
22912 test -z "$as_dir" && as_dir=.
22913 for ac_exec_ext in '' $ac_executable_extensions; do
22914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22915 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
22916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22917 break 2
22919 done
22920 done
22921 IFS=$as_save_IFS
22924 esac
22926 JAR=$ac_cv_path_JAR
22927 if test -n "$JAR"; then
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
22929 $as_echo "$JAR" >&6; }
22930 else
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22932 $as_echo "no" >&6; }
22936 test -n "$JAR" && break
22937 done
22939 if test x"${RHINO_JAR}" = "xyes"; then
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22941 $as_echo "not found" >&6; }
22944 if test x"${JAR}" = "xno" && test x"${ZIP}" = ""; then
22945 as_fn_error "No zip or jar tool found." "$LINENO" 5
22947 if test x"${JAR}" != "xno" && test x"${JAR}" != "xyes"; then
22948 WITH_JAR_TRUE=
22949 WITH_JAR_FALSE='#'
22950 else
22951 WITH_JAR_TRUE='#'
22952 WITH_JAR_FALSE=
22958 # Check whether --with-glibj was given.
22959 if test "${with_glibj+set}" = set; then :
22960 withval=$with_glibj;
22961 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
22962 install_class_files=no
22963 build_class_files=yes
22964 use_zip=yes
22965 elif test "x${withval}" = xboth; then
22966 install_class_files=yes
22967 build_class_files=yes
22968 use_zip=yes
22969 elif test "x${withval}" = xflat; then
22970 install_class_files=yes
22971 build_class_files=yes
22972 use_zip=no
22973 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
22974 install_class_files=no
22975 build_class_files=no
22976 use_zip=no
22977 elif test "x${withval}" = xbuild; then
22978 install_class_files=no
22979 build_class_files=yes
22980 use_zip=no
22981 else
22982 as_fn_error "unknown value given to --with-glibj" "$LINENO" 5
22985 else
22987 install_class_files=no
22988 use_zip=yes
22992 if test "x${use_zip}" = xyes; then
22993 INSTALL_GLIBJ_ZIP_TRUE=
22994 INSTALL_GLIBJ_ZIP_FALSE='#'
22995 else
22996 INSTALL_GLIBJ_ZIP_TRUE='#'
22997 INSTALL_GLIBJ_ZIP_FALSE=
23000 if test "x${install_class_files}" = xyes; then
23001 INSTALL_CLASS_FILES_TRUE=
23002 INSTALL_CLASS_FILES_FALSE='#'
23003 else
23004 INSTALL_CLASS_FILES_TRUE='#'
23005 INSTALL_CLASS_FILES_FALSE=
23008 if test "x${build_class_files}" = xyes; then
23009 BUILD_CLASS_FILES_TRUE=
23010 BUILD_CLASS_FILES_FALSE='#'
23011 else
23012 BUILD_CLASS_FILES_TRUE='#'
23013 BUILD_CLASS_FILES_FALSE=
23017 # Check whether --enable-examples was given.
23018 if test "${enable_examples+set}" = set; then :
23019 enableval=$enable_examples; case "${enableval}" in
23020 yes) EXAMPLESDIR="examples" ;;
23021 no) EXAMPLESDIR="" ;;
23022 *) as_fn_error "bad value ${enableval} for --enable-examples" "$LINENO" 5 ;;
23023 esac
23024 else
23025 EXAMPLESDIR="examples"
23028 if test "x${build_class_files}" = xno; then
23029 EXAMPLESDIR=""
23033 # Check whether --enable-tools was given.
23034 if test "${enable_tools+set}" = set; then :
23035 enableval=$enable_tools; case "${enableval}" in
23036 yes) TOOLSDIR="tools" ;;
23037 no) TOOLSDIR="" ;;
23038 *) as_fn_error "bad value ${enableval} for --enable-tools" "$LINENO" 5 ;;
23039 esac
23040 else
23041 TOOLSDIR="tools"
23044 if test "x${build_class_files}" = xno; then
23045 TOOLSDIR=""
23052 # Check whether --with-gjdoc was given.
23053 if test "${with_gjdoc+set}" = set; then :
23054 withval=$with_gjdoc; if test "x${withval}" = xno; then
23055 WITH_GJDOC=no;
23056 elif test "x${withval}" = xyes -o "x{withval}" = x; then
23057 WITH_GJDOC=yes;
23058 # Extract the first word of "gjdoc", so it can be a program name with args.
23059 set dummy gjdoc; ac_word=$2
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23061 $as_echo_n "checking for $ac_word... " >&6; }
23062 if test "${ac_cv_path_GJDOC+set}" = set; then :
23063 $as_echo_n "(cached) " >&6
23064 else
23065 case $GJDOC in
23066 [\\/]* | ?:[\\/]*)
23067 ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
23070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23071 for as_dir in $PATH
23073 IFS=$as_save_IFS
23074 test -z "$as_dir" && as_dir=.
23075 for ac_exec_ext in '' $ac_executable_extensions; do
23076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23077 ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
23078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23079 break 2
23081 done
23082 done
23083 IFS=$as_save_IFS
23085 test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
23087 esac
23089 GJDOC=$ac_cv_path_GJDOC
23090 if test -n "$GJDOC"; then
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GJDOC" >&5
23092 $as_echo "$GJDOC" >&6; }
23093 else
23094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23095 $as_echo "no" >&6; }
23099 if test "x${GJDOC}" = xno; then
23100 as_fn_error "\"gjdoc executable not found\"" "$LINENO" 5;
23102 else
23103 WITH_GJDOC=yes
23104 GJDOC="${withval}"
23105 as_ac_File=`$as_echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${GJDOC}" >&5
23107 $as_echo_n "checking for ${GJDOC}... " >&6; }
23108 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
23109 $as_echo_n "(cached) " >&6
23110 else
23111 test "$cross_compiling" = yes &&
23112 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
23113 if test -r "${GJDOC}"; then
23114 eval "$as_ac_File=yes"
23115 else
23116 eval "$as_ac_File=no"
23119 eval ac_res=\$$as_ac_File
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23121 $as_echo "$ac_res" >&6; }
23122 eval as_val=\$$as_ac_File
23123 if test "x$as_val" = x""yes; then :
23125 else
23126 as_fn_error "\"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" "$LINENO" 5
23130 else
23131 WITH_GJDOC=no
23134 if test "x${WITH_GJDOC}" = xyes; then
23135 CREATE_API_DOCS_TRUE=
23136 CREATE_API_DOCS_FALSE='#'
23137 else
23138 CREATE_API_DOCS_TRUE='#'
23139 CREATE_API_DOCS_FALSE=
23142 if test "x${WITH_GJDOC}" = xyes; then
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of GJDoc" >&5
23144 $as_echo_n "checking version of GJDoc... " >&6; }
23145 gjdoc_version=$(${GJDOC} --version|cut -d ' ' -f2)
23146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gjdoc_version}" >&5
23147 $as_echo "${gjdoc_version}" >&6; }
23148 case ${gjdoc_version} in
23149 0.7.9) ;;
23150 0.8*) ;;
23151 *) as_fn_error "Building documentation requires GJDoc >= 0.7.9, ${gjdoc_version} found." "$LINENO" 5 ;;
23152 esac
23158 # Check whether --with-jay was given.
23159 if test "${with_jay+set}" = set; then :
23160 withval=$with_jay;
23161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
23162 $as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
23163 JAY_FOUND=no
23164 JAY_DIR_PATH=
23165 if test "x${withval}" = xno; then
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23167 $as_echo "no" >&6; }
23168 elif test "x${withval}" = xyes; then
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23170 $as_echo "yes" >&6; }
23171 JAY_DIR_PATH="/usr/share/jay"
23172 elif test -d "${withval}"; then
23173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23174 $as_echo "yes" >&6; }
23175 JAY_DIR_PATH="${withval}"
23176 elif test -f "${withval}"; then
23177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23178 $as_echo "yes" >&6; }
23179 JAY_DIR_PATH=`dirname "${withval}"`
23180 JAY="${withval}"
23181 else
23182 as_fn_error "jay not found at ${withval}" "$LINENO" 5
23185 if test "x${JAY_DIR_PATH}" != x; then
23186 # Extract the first word of "jay", so it can be a program name with args.
23187 set dummy jay; ac_word=$2
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23189 $as_echo_n "checking for $ac_word... " >&6; }
23190 if test "${ac_cv_path_JAY+set}" = set; then :
23191 $as_echo_n "(cached) " >&6
23192 else
23193 case $JAY in
23194 [\\/]* | ?:[\\/]*)
23195 ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
23198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23199 as_dummy="${JAY_DIR_PATH}:${PATH}"
23200 for as_dir in $as_dummy
23202 IFS=$as_save_IFS
23203 test -z "$as_dir" && as_dir=.
23204 for ac_exec_ext in '' $ac_executable_extensions; do
23205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23206 ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
23207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23208 break 2
23210 done
23211 done
23212 IFS=$as_save_IFS
23214 test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
23216 esac
23218 JAY=$ac_cv_path_JAY
23219 if test -n "$JAY"; then
23220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAY" >&5
23221 $as_echo "$JAY" >&6; }
23222 else
23223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23224 $as_echo "no" >&6; }
23228 if test "x${JAY}" = xno; then
23229 as_fn_error "jay executable not found" "$LINENO" 5;
23231 JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
23232 as_ac_File=`$as_echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
23233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${JAY_SKELETON}" >&5
23234 $as_echo_n "checking for ${JAY_SKELETON}... " >&6; }
23235 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
23236 $as_echo_n "(cached) " >&6
23237 else
23238 test "$cross_compiling" = yes &&
23239 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
23240 if test -r "${JAY_SKELETON}"; then
23241 eval "$as_ac_File=yes"
23242 else
23243 eval "$as_ac_File=no"
23246 eval ac_res=\$$as_ac_File
23247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23248 $as_echo "$ac_res" >&6; }
23249 eval as_val=\$$as_ac_File
23250 if test "x$as_val" = x""yes; then :
23252 else
23253 as_fn_error "Expected skeleton file in ${JAY_DIR_PATH}" "$LINENO" 5
23256 JAY_FOUND=yes
23259 else
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
23262 $as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23264 $as_echo "no" >&6; }
23265 JAY_FOUND=no
23269 if test "x${JAY_FOUND}" = xyes; then
23270 REGEN_PARSERS_TRUE=
23271 REGEN_PARSERS_FALSE='#'
23272 else
23273 REGEN_PARSERS_TRUE='#'
23274 REGEN_PARSERS_FALSE=
23279 # Check whether --enable-portable-native-sync was given.
23280 if test "${enable_portable_native_sync+set}" = set; then :
23281 enableval=$enable_portable_native_sync; case "${enableval}" in
23282 yes)
23284 $as_echo "#define PORTABLE_NATIVE_SYNC 1" >>confdefs.h
23287 no) ;;
23289 as_fn_error "bad value ${enableval} for --enable-portable-native-sync" "$LINENO" 5
23291 esac
23295 # ------ AX CREATE STDINT H -------------------------------------
23296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
23297 $as_echo_n "checking for stdint types... " >&6; }
23298 ac_stdint_h=`echo include/config-int.h`
23299 # try to shortcircuit - if the default include path of the compiler
23300 # can find a "stdint.h" header then we assume that all compilers can.
23301 if test "${ac_cv_header_stdint_t+set}" = set; then :
23302 $as_echo_n "(cached) " >&6
23303 else
23305 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
23306 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
23307 old_CFLAGS="$CFLAGS" ; CFLAGS=""
23308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23309 /* end confdefs.h. */
23310 #include <stdint.h>
23312 main ()
23314 int_least32_t v = 0;
23316 return 0;
23318 _ACEOF
23319 if ac_fn_c_try_compile "$LINENO"; then :
23320 ac_cv_stdint_result="(assuming C99 compatible system)"
23321 ac_cv_header_stdint_t="stdint.h";
23322 else
23323 ac_cv_header_stdint_t=""
23325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23326 CXXFLAGS="$old_CXXFLAGS"
23327 CPPFLAGS="$old_CPPFLAGS"
23328 CFLAGS="$old_CFLAGS"
23332 v="... $ac_cv_header_stdint_h"
23333 if test "$ac_stdint_h" = "stdint.h" ; then
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
23335 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
23336 elif test "$ac_stdint_h" = "inttypes.h" ; then
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
23338 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
23339 elif test "_$ac_cv_header_stdint_t" = "_" ; then
23340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
23341 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
23342 else
23343 ac_cv_header_stdint="$ac_cv_header_stdint_t"
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
23345 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
23348 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
23351 inttype_headers=`echo | sed -e 's/,/ /g'`
23353 ac_cv_stdint_result="(no helpful system typedefs seen)"
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
23356 $as_echo_n "checking for stdint uintptr_t... " >&6; }
23357 if test "${ac_cv_header_stdint_x+set}" = set; then :
23358 $as_echo_n "(cached) " >&6
23359 else
23361 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23363 $as_echo "(..)" >&6; }
23364 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
23365 unset ac_cv_type_uintptr_t
23366 unset ac_cv_type_uint64_t
23367 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
23369 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
23370 ac_cv_header_stdint_x=$i
23371 else
23372 continue
23375 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23377 if test "x$ac_cv_type_uint64_t" = x""yes; then :
23378 and64="/uint64_t"
23379 else
23380 and64=""
23383 stdint.h inttypes.h sys/inttypes.h $inttype_headers
23384 break
23385 done
23386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
23387 $as_echo_n "checking for stdint uintptr_t... " >&6; }
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
23391 $as_echo "$ac_cv_header_stdint_x" >&6; }
23394 if test "_$ac_cv_header_stdint_x" = "_" ; then
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
23397 $as_echo_n "checking for stdint uint32_t... " >&6; }
23398 if test "${ac_cv_header_stdint_o+set}" = set; then :
23399 $as_echo_n "(cached) " >&6
23400 else
23402 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
23403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23404 $as_echo "(..)" >&6; }
23405 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
23406 unset ac_cv_type_uint32_t
23407 unset ac_cv_type_uint64_t
23408 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
23410 if test "x$ac_cv_type_uint32_t" = x""yes; then :
23411 ac_cv_header_stdint_o=$i
23412 else
23413 continue
23416 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23418 if test "x$ac_cv_type_uint64_t" = x""yes; then :
23419 and64="/uint64_t"
23420 else
23421 and64=""
23424 inttypes.h sys/inttypes.h stdint.h $inttype_headers
23425 break
23426 break;
23427 done
23428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
23429 $as_echo_n "checking for stdint uint32_t... " >&6; }
23432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
23433 $as_echo "$ac_cv_header_stdint_o" >&6; }
23437 if test "_$ac_cv_header_stdint_x" = "_" ; then
23438 if test "_$ac_cv_header_stdint_o" = "_" ; then
23440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
23441 $as_echo_n "checking for stdint u_int32_t... " >&6; }
23442 if test "${ac_cv_header_stdint_u+set}" = set; then :
23443 $as_echo_n "(cached) " >&6
23444 else
23446 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23448 $as_echo "(..)" >&6; }
23449 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
23450 unset ac_cv_type_u_int32_t
23451 unset ac_cv_type_u_int64_t
23452 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
23454 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
23455 ac_cv_header_stdint_u=$i
23456 else
23457 continue
23460 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
23462 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
23463 and64="/u_int64_t"
23464 else
23465 and64=""
23468 sys/types.h inttypes.h sys/inttypes.h $inttype_headers
23469 break
23470 break;
23471 done
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
23473 $as_echo_n "checking for stdint u_int32_t... " >&6; }
23476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
23477 $as_echo "$ac_cv_header_stdint_u" >&6; }
23479 fi fi
23481 if test "_$ac_cv_header_stdint_x" = "_" ; then
23482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
23483 $as_echo_n "checking for stdint datatype model... " >&6; }
23484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23485 $as_echo "(..)" >&6; }
23487 # The cast to long int works around a bug in the HP C Compiler
23488 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23489 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23490 # This bug is HP SR number 8606223364.
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
23492 $as_echo_n "checking size of char... " >&6; }
23493 if test "${ac_cv_sizeof_char+set}" = set; then :
23494 $as_echo_n "(cached) " >&6
23495 else
23496 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
23498 else
23499 if test "$ac_cv_type_char" = yes; then
23500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23502 { as_fn_set_status 77
23503 as_fn_error "cannot compute sizeof (char)
23504 See \`config.log' for more details." "$LINENO" 5; }; }
23505 else
23506 ac_cv_sizeof_char=0
23511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
23512 $as_echo "$ac_cv_sizeof_char" >&6; }
23516 cat >>confdefs.h <<_ACEOF
23517 #define SIZEOF_CHAR $ac_cv_sizeof_char
23518 _ACEOF
23521 # The cast to long int works around a bug in the HP C Compiler
23522 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23523 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23524 # This bug is HP SR number 8606223364.
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23526 $as_echo_n "checking size of short... " >&6; }
23527 if test "${ac_cv_sizeof_short+set}" = set; then :
23528 $as_echo_n "(cached) " >&6
23529 else
23530 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
23532 else
23533 if test "$ac_cv_type_short" = yes; then
23534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23536 { as_fn_set_status 77
23537 as_fn_error "cannot compute sizeof (short)
23538 See \`config.log' for more details." "$LINENO" 5; }; }
23539 else
23540 ac_cv_sizeof_short=0
23545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23546 $as_echo "$ac_cv_sizeof_short" >&6; }
23550 cat >>confdefs.h <<_ACEOF
23551 #define SIZEOF_SHORT $ac_cv_sizeof_short
23552 _ACEOF
23555 # The cast to long int works around a bug in the HP C Compiler
23556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23558 # This bug is HP SR number 8606223364.
23559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23560 $as_echo_n "checking size of int... " >&6; }
23561 if test "${ac_cv_sizeof_int+set}" = set; then :
23562 $as_echo_n "(cached) " >&6
23563 else
23564 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
23566 else
23567 if test "$ac_cv_type_int" = yes; then
23568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23570 { as_fn_set_status 77
23571 as_fn_error "cannot compute sizeof (int)
23572 See \`config.log' for more details." "$LINENO" 5; }; }
23573 else
23574 ac_cv_sizeof_int=0
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23580 $as_echo "$ac_cv_sizeof_int" >&6; }
23584 cat >>confdefs.h <<_ACEOF
23585 #define SIZEOF_INT $ac_cv_sizeof_int
23586 _ACEOF
23589 # The cast to long int works around a bug in the HP C Compiler
23590 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23591 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23592 # This bug is HP SR number 8606223364.
23593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23594 $as_echo_n "checking size of long... " >&6; }
23595 if test "${ac_cv_sizeof_long+set}" = set; then :
23596 $as_echo_n "(cached) " >&6
23597 else
23598 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
23600 else
23601 if test "$ac_cv_type_long" = yes; then
23602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23604 { as_fn_set_status 77
23605 as_fn_error "cannot compute sizeof (long)
23606 See \`config.log' for more details." "$LINENO" 5; }; }
23607 else
23608 ac_cv_sizeof_long=0
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23614 $as_echo "$ac_cv_sizeof_long" >&6; }
23618 cat >>confdefs.h <<_ACEOF
23619 #define SIZEOF_LONG $ac_cv_sizeof_long
23620 _ACEOF
23623 # The cast to long int works around a bug in the HP C Compiler
23624 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23625 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23626 # This bug is HP SR number 8606223364.
23627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
23628 $as_echo_n "checking size of void*... " >&6; }
23629 if test "${ac_cv_sizeof_voidp+set}" = set; then :
23630 $as_echo_n "(cached) " >&6
23631 else
23632 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
23634 else
23635 if test "$ac_cv_type_voidp" = yes; then
23636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23638 { as_fn_set_status 77
23639 as_fn_error "cannot compute sizeof (void*)
23640 See \`config.log' for more details." "$LINENO" 5; }; }
23641 else
23642 ac_cv_sizeof_voidp=0
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
23648 $as_echo "$ac_cv_sizeof_voidp" >&6; }
23652 cat >>confdefs.h <<_ACEOF
23653 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
23654 _ACEOF
23657 ac_cv_char_data_model=""
23658 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
23659 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
23660 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
23661 ac_cv_long_data_model=""
23662 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
23663 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
23664 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
23665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
23666 $as_echo_n "checking data model... " >&6; }
23667 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
23668 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
23669 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
23670 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
23671 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
23672 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
23673 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
23674 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
23675 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
23676 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
23677 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
23678 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
23679 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
23680 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
23681 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
23682 222/*|333/*|444/*|666/*|888/*) :
23683 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
23684 *) ac_cv_data_model="none" ; n="very unusual model" ;;
23685 esac
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
23687 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
23691 if test "_$ac_cv_header_stdint_x" != "_" ; then
23692 ac_cv_header_stdint="$ac_cv_header_stdint_x"
23693 elif test "_$ac_cv_header_stdint_o" != "_" ; then
23694 ac_cv_header_stdint="$ac_cv_header_stdint_o"
23695 elif test "_$ac_cv_header_stdint_u" != "_" ; then
23696 ac_cv_header_stdint="$ac_cv_header_stdint_u"
23697 else
23698 ac_cv_header_stdint="stddef.h"
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
23702 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
23704 $as_echo "($ac_cv_header_stdint)" >&6; }
23705 unset ac_cv_type_int_least32_t
23706 unset ac_cv_type_int_fast32_t
23707 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
23709 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
23713 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
23715 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
23719 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
23721 if test "x$ac_cv_type_intmax_t" = x""yes; then :
23726 fi # shortcircut to system "stdint.h"
23727 # ------------------ PREPARE VARIABLES ------------------------------
23728 if test "$GCC" = "yes" ; then
23729 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
23730 else
23731 ac_cv_stdint_message="using $CC"
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
23735 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
23737 # ----------------- DONE inttypes.h checks START header -------------
23738 ac_config_commands="$ac_config_commands $ac_stdint_h"
23743 # Check whether --with-glibj_zip was given.
23744 if test "${with_glibj_zip+set}" = set; then :
23745 withval=$with_glibj_zip;
23749 case "$with_glibj_zip" in
23751 use_glibj_zip=false
23753 "no" )
23754 use_glibj_zip=false
23756 "yes")
23757 as_fn_error "Please suply an absolute path to a prebuilt glibj.zip" "$LINENO" 5
23760 use_glibj_zip=true
23761 PATH_TO_GLIBJ_ZIP=$with_glibj_zip
23763 esac;
23765 if test x$use_glibj_zip = xtrue; then
23766 USE_PREBUILT_GLIBJ_ZIP_TRUE=
23767 USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
23768 else
23769 USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
23770 USE_PREBUILT_GLIBJ_ZIP_FALSE=
23775 if test "x${TOOLSDIR}" != x; then
23776 if test "x${COMPILE_WRAPPERS}" = xno && test "x${enable_java_maintainer_mode}" = xyes; then
23779 if test "x$JAVAPREFIX" = x; then
23780 test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
23782 # Extract the first word of "$ac_prog", so it can be a program name with args.
23783 set dummy $ac_prog; ac_word=$2
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23785 $as_echo_n "checking for $ac_word... " >&6; }
23786 if test "${ac_cv_prog_JAVA+set}" = set; then :
23787 $as_echo_n "(cached) " >&6
23788 else
23789 if test -n "$JAVA"; then
23790 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
23791 else
23792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23793 for as_dir in $PATH
23795 IFS=$as_save_IFS
23796 test -z "$as_dir" && as_dir=.
23797 for ac_exec_ext in '' $ac_executable_extensions; do
23798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23799 ac_cv_prog_JAVA="$ac_prog"
23800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23801 break 2
23803 done
23804 done
23805 IFS=$as_save_IFS
23809 JAVA=$ac_cv_prog_JAVA
23810 if test -n "$JAVA"; then
23811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
23812 $as_echo "$JAVA" >&6; }
23813 else
23814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23815 $as_echo "no" >&6; }
23819 test -n "$JAVA" && break
23820 done
23822 else
23823 test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
23825 # Extract the first word of "$ac_prog", so it can be a program name with args.
23826 set dummy $ac_prog; ac_word=$2
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23828 $as_echo_n "checking for $ac_word... " >&6; }
23829 if test "${ac_cv_prog_JAVA+set}" = set; then :
23830 $as_echo_n "(cached) " >&6
23831 else
23832 if test -n "$JAVA"; then
23833 ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
23834 else
23835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23836 for as_dir in $PATH
23838 IFS=$as_save_IFS
23839 test -z "$as_dir" && as_dir=.
23840 for ac_exec_ext in '' $ac_executable_extensions; do
23841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23842 ac_cv_prog_JAVA="$ac_prog"
23843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23844 break 2
23846 done
23847 done
23848 IFS=$as_save_IFS
23852 JAVA=$ac_cv_prog_JAVA
23853 if test -n "$JAVA"; then
23854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
23855 $as_echo "$JAVA" >&6; }
23856 else
23857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23858 $as_echo "no" >&6; }
23862 test -n "$JAVA" && break
23863 done
23864 test -n "$JAVA" || JAVA="$JAVAPREFIX"
23867 test "x$JAVA" = x && as_fn_error "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
23869 # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
23870 set dummy uudecode$EXEEXT; ac_word=$2
23871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23872 $as_echo_n "checking for $ac_word... " >&6; }
23873 if test "${ac_cv_prog_uudecode+set}" = set; then :
23874 $as_echo_n "(cached) " >&6
23875 else
23876 if test -n "$uudecode"; then
23877 ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
23878 else
23879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23880 for as_dir in $PATH
23882 IFS=$as_save_IFS
23883 test -z "$as_dir" && as_dir=.
23884 for ac_exec_ext in '' $ac_executable_extensions; do
23885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23886 ac_cv_prog_uudecode="yes"
23887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23888 break 2
23890 done
23891 done
23892 IFS=$as_save_IFS
23896 uudecode=$ac_cv_prog_uudecode
23897 if test -n "$uudecode"; then
23898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
23899 $as_echo "$uudecode" >&6; }
23900 else
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23902 $as_echo "no" >&6; }
23906 if test x$uudecode = xyes; then
23907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
23908 $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
23909 if test "${ac_cv_prog_uudecode_base64+set}" = set; then :
23910 $as_echo_n "(cached) " >&6
23911 else
23913 cat << \EOF > Test.uue
23914 begin-base64 644 Test.class
23915 yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
23916 bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
23917 bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
23918 YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
23919 aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
23920 AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
23921 AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
23922 ====
23924 if uudecode$EXEEXT Test.uue; then
23925 ac_cv_prog_uudecode_base64=yes
23926 else
23927 echo "configure: 23927: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
23928 echo "configure: failed file was:" >&5
23929 cat Test.uue >&5
23930 ac_cv_prog_uudecode_base64=no
23932 rm -f Test.uue
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
23935 $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
23937 if test x$ac_cv_prog_uudecode_base64 != xyes; then
23938 rm -f Test.class
23939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
23940 $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
23941 if test x$ac_cv_prog_javac_works = xno; then
23942 as_fn_error "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
23944 if test x$ac_cv_prog_javac_works = x; then
23946 ECJ_OPTS="-warn:-deprecation,serial,unusedImport"
23947 JAVAC_OPTS="-Xlint:unchecked,cast,divzero,empty,finally,overrides"
23948 GCJ_OPTS="-g"
23949 if test "x$JAVAPREFIX" = x; then
23950 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"
23952 # Extract the first word of "$ac_prog", so it can be a program name with args.
23953 set dummy $ac_prog; ac_word=$2
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23955 $as_echo_n "checking for $ac_word... " >&6; }
23956 if test "${ac_cv_prog_JAVAC+set}" = set; then :
23957 $as_echo_n "(cached) " >&6
23958 else
23959 if test -n "$JAVAC"; then
23960 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
23961 else
23962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23963 for as_dir in $PATH
23965 IFS=$as_save_IFS
23966 test -z "$as_dir" && as_dir=.
23967 for ac_exec_ext in '' $ac_executable_extensions; do
23968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23969 ac_cv_prog_JAVAC="$ac_prog"
23970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23971 break 2
23973 done
23974 done
23975 IFS=$as_save_IFS
23979 JAVAC=$ac_cv_prog_JAVAC
23980 if test -n "$JAVAC"; then
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
23982 $as_echo "$JAVAC" >&6; }
23983 else
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23985 $as_echo "no" >&6; }
23989 test -n "$JAVAC" && break
23990 done
23992 else
23993 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"
23995 # Extract the first word of "$ac_prog", so it can be a program name with args.
23996 set dummy $ac_prog; ac_word=$2
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23998 $as_echo_n "checking for $ac_word... " >&6; }
23999 if test "${ac_cv_prog_JAVAC+set}" = set; then :
24000 $as_echo_n "(cached) " >&6
24001 else
24002 if test -n "$JAVAC"; then
24003 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
24004 else
24005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24006 for as_dir in $PATH
24008 IFS=$as_save_IFS
24009 test -z "$as_dir" && as_dir=.
24010 for ac_exec_ext in '' $ac_executable_extensions; do
24011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24012 ac_cv_prog_JAVAC="$ac_prog"
24013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24014 break 2
24016 done
24017 done
24018 IFS=$as_save_IFS
24022 JAVAC=$ac_cv_prog_JAVAC
24023 if test -n "$JAVAC"; then
24024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
24025 $as_echo "$JAVAC" >&6; }
24026 else
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24028 $as_echo "no" >&6; }
24032 test -n "$JAVAC" && break
24033 done
24034 test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
24037 test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC is a version of gcj" >&5
24039 $as_echo_n "checking if $JAVAC is a version of gcj... " >&6; }
24040 if test "${ac_cv_prog_javac_is_gcj+set}" = set; then :
24041 $as_echo_n "(cached) " >&6
24042 else
24044 if $JAVAC --version | grep gcj > /dev/null; then
24045 ac_cv_prog_javac_is_gcj=yes;
24046 JAVAC="$JAVAC $GCJ_OPTS";
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_is_gcj" >&5
24050 $as_echo "$ac_cv_prog_javac_is_gcj" >&6; }
24051 JAVAC_IS_GCJ=$ac_cv_prog_javac_is_gcj
24053 if test x"${JAVAC_IS_GCJ}" = xyes; then
24054 GCJ_JAVAC_TRUE=
24055 GCJ_JAVAC_FALSE='#'
24056 else
24057 GCJ_JAVAC_TRUE='#'
24058 GCJ_JAVAC_FALSE=
24061 if test "$enable_java_maintainer_mode" = yes; then
24063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
24064 $as_echo_n "checking if $JAVAC works... " >&6; }
24065 if test "${ac_cv_prog_javac_works+set}" = set; then :
24066 $as_echo_n "(cached) " >&6
24067 else
24069 JAVA_TEST=Object.java
24070 CLASS_TEST=Object.class
24071 cat << \EOF > $JAVA_TEST
24072 /* #line 24072 "configure" */
24073 package java.lang;
24075 public class Object
24077 static <T> void doStuff()
24082 if test x$JAVAC_IS_GCJ = xyes; then
24083 CMD="$JAVAC $JAVACFLAGS -fsource=1.5 -ftarget=1.5 $JAVA_TEST"
24084 else
24085 CMD="$JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST"
24087 if { ac_try='$CMD'
24088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24089 (eval $ac_try) 2>&5
24090 ac_status=$?
24091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24092 test $ac_status = 0; }; } >/dev/null 2>&1; then
24093 ac_cv_prog_javac_works=yes
24094 else
24095 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
24096 echo "configure: failed program was:" >&5
24097 cat $JAVA_TEST >&5
24099 rm -f $JAVA_TEST $CLASS_TEST
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
24103 $as_echo "$ac_cv_prog_javac_works" >&6; }
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
24110 $as_echo_n "checking if $JAVA works... " >&6; }
24111 if test "${ac_cv_prog_java_works+set}" = set; then :
24112 $as_echo_n "(cached) " >&6
24113 else
24115 JAVA_TEST=Test.java
24116 CLASS_TEST=Test.class
24117 TEST=Test
24118 cat << \EOF > $JAVA_TEST
24119 /* [#]line 24119 "configure" */
24120 public class Test {
24121 public static void main (String args[]) {
24122 System.exit (0);
24125 if test x$ac_cv_prog_uudecode_base64 != xyes; then
24126 if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
24127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24128 (eval $ac_try) 2>&5
24129 ac_status=$?
24130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24131 test $ac_status = 0; }; } && test -s $CLASS_TEST; then
24133 else
24134 echo "configure: failed program was:" >&5
24135 cat $JAVA_TEST >&5
24136 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
24139 if { ac_try='CLASSPATH=.:$CLASSPATH $JAVA $JAVAFLAGS $TEST'
24140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24141 (eval $ac_try) 2>&5
24142 ac_status=$?
24143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24144 test $ac_status = 0; }; } >/dev/null 2>&1; then
24145 ac_cv_prog_java_works=yes
24146 else
24147 echo "configure: failed program was:" >&5
24148 cat $JAVA_TEST >&5
24149 as_fn_error "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
24151 rm -fr $JAVA_TEST $CLASS_TEST Test.uue
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
24155 $as_echo "$ac_cv_prog_java_works" >&6; }
24160 if test "x${COMPILE_GJDOC}" = xyes; then
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ANTLR parser generator JAR file" >&5
24163 $as_echo_n "checking for the ANTLR parser generator JAR file... " >&6; }
24164 if test -z "$ANTLR_JAR"; then
24165 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
24166 /usr/share/antlr/lib /usr/share/java /usr/lib;
24168 if test -f "$antlr_lib_home/antlr.jar"; then
24169 ANTLR_JAR="$antlr_lib_home/antlr.jar"
24170 break
24172 done
24174 test -f $ANTLR_JAR || as_fn_error "specified ANTLR jar file $ANTLR_JAR not found." "$LINENO" 5 \
24175 && { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
24176 $as_echo "$ANTLR_JAR" >&6; }
24179 if test "x${REGENERATE_GJDOC_PARSER}" = xyes && test "x${enable_java_maintainer_mode}" = xyes; then
24181 if test -n "$ac_tool_prefix"; then
24182 for ac_prog in cantlr runantlr antlr
24184 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24185 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24187 $as_echo_n "checking for $ac_word... " >&6; }
24188 if test "${ac_cv_prog_ANTLR+set}" = set; then :
24189 $as_echo_n "(cached) " >&6
24190 else
24191 if test -n "$ANTLR"; then
24192 ac_cv_prog_ANTLR="$ANTLR" # Let the user override the test.
24193 else
24194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24195 for as_dir in $PATH
24197 IFS=$as_save_IFS
24198 test -z "$as_dir" && as_dir=.
24199 for ac_exec_ext in '' $ac_executable_extensions; do
24200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24201 ac_cv_prog_ANTLR="$ac_tool_prefix$ac_prog"
24202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24203 break 2
24205 done
24206 done
24207 IFS=$as_save_IFS
24211 ANTLR=$ac_cv_prog_ANTLR
24212 if test -n "$ANTLR"; then
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR" >&5
24214 $as_echo "$ANTLR" >&6; }
24215 else
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24217 $as_echo "no" >&6; }
24221 test -n "$ANTLR" && break
24222 done
24224 if test -z "$ANTLR"; then
24225 ac_ct_ANTLR=$ANTLR
24226 for ac_prog in cantlr runantlr antlr
24228 # Extract the first word of "$ac_prog", so it can be a program name with args.
24229 set dummy $ac_prog; ac_word=$2
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24231 $as_echo_n "checking for $ac_word... " >&6; }
24232 if test "${ac_cv_prog_ac_ct_ANTLR+set}" = set; then :
24233 $as_echo_n "(cached) " >&6
24234 else
24235 if test -n "$ac_ct_ANTLR"; then
24236 ac_cv_prog_ac_ct_ANTLR="$ac_ct_ANTLR" # Let the user override the test.
24237 else
24238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24239 for as_dir in $PATH
24241 IFS=$as_save_IFS
24242 test -z "$as_dir" && as_dir=.
24243 for ac_exec_ext in '' $ac_executable_extensions; do
24244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24245 ac_cv_prog_ac_ct_ANTLR="$ac_prog"
24246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24247 break 2
24249 done
24250 done
24251 IFS=$as_save_IFS
24255 ac_ct_ANTLR=$ac_cv_prog_ac_ct_ANTLR
24256 if test -n "$ac_ct_ANTLR"; then
24257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ANTLR" >&5
24258 $as_echo "$ac_ct_ANTLR" >&6; }
24259 else
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24261 $as_echo "no" >&6; }
24265 test -n "$ac_ct_ANTLR" && break
24266 done
24268 if test "x$ac_ct_ANTLR" = x; then
24269 ANTLR=""
24270 else
24271 case $cross_compiling:$ac_tool_warned in
24272 yes:)
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24275 ac_tool_warned=yes ;;
24276 esac
24277 ANTLR=$ac_ct_ANTLR
24281 if test "x$ANTLR" = x; then
24282 if test -z "$JAVA"; then
24283 as_fn_error "Failed to find either an antlr binary or a suitable Java runtime for ANTLR." "$LINENO" 5
24284 else
24285 ANTLR="$JAVA -classpath $ANTLR_JAR antlr.Tool"
24289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr 2.7.1 or better" >&5
24290 $as_echo_n "checking for antlr 2.7.1 or better... " >&6; }
24291 antlr_version_str=`$ANTLR 2>&1 | head -n 1 | sed '/.*Version */!d; s///;q'`
24292 if test "$antlr_version_str"; then
24293 antlr_version_regex='s/\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\).*$/'
24294 antlr_version_major=`echo $antlr_version_str | sed "$antlr_version_regex\\1/"`
24295 antlr_version_minor=`echo $antlr_version_str | sed "$antlr_version_regex\\2/"`
24296 antlr_version_micro=`echo $antlr_version_str | sed "$antlr_version_regex\\3/"`
24297 (test $antlr_version_major -gt 2 || \
24298 (test $antlr_version_major -eq 2 && \
24299 test $antlr_version_minor -gt 7) || \
24300 (test $antlr_version_major -eq 2 && \
24301 test $antlr_version_minor -eq 7 && \
24302 test $antlr_version_micro -ge 1))
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&5
24305 $as_echo "$antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&6; }
24312 # Check for javac if we need to build either the class library,
24313 # the examples or the tools
24314 if test "x${use_glibj_zip}" = xfalse || \
24315 test "x${EXAMPLESDIR}" != x || \
24316 test "x${TOOLSDIR}" != x && \
24317 test "x${build_class_files}" != xno; then
24319 ECJ_OPTS="-warn:-deprecation,serial,unusedImport"
24320 JAVAC_OPTS="-Xlint:unchecked,cast,divzero,empty,finally,overrides"
24321 GCJ_OPTS="-g"
24322 if test "x$JAVAPREFIX" = x; then
24323 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"
24325 # Extract the first word of "$ac_prog", so it can be a program name with args.
24326 set dummy $ac_prog; ac_word=$2
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24328 $as_echo_n "checking for $ac_word... " >&6; }
24329 if test "${ac_cv_prog_JAVAC+set}" = set; then :
24330 $as_echo_n "(cached) " >&6
24331 else
24332 if test -n "$JAVAC"; then
24333 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
24334 else
24335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24336 for as_dir in $PATH
24338 IFS=$as_save_IFS
24339 test -z "$as_dir" && as_dir=.
24340 for ac_exec_ext in '' $ac_executable_extensions; do
24341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24342 ac_cv_prog_JAVAC="$ac_prog"
24343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24344 break 2
24346 done
24347 done
24348 IFS=$as_save_IFS
24352 JAVAC=$ac_cv_prog_JAVAC
24353 if test -n "$JAVAC"; then
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
24355 $as_echo "$JAVAC" >&6; }
24356 else
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24358 $as_echo "no" >&6; }
24362 test -n "$JAVAC" && break
24363 done
24365 else
24366 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"
24368 # Extract the first word of "$ac_prog", so it can be a program name with args.
24369 set dummy $ac_prog; ac_word=$2
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24371 $as_echo_n "checking for $ac_word... " >&6; }
24372 if test "${ac_cv_prog_JAVAC+set}" = set; then :
24373 $as_echo_n "(cached) " >&6
24374 else
24375 if test -n "$JAVAC"; then
24376 ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
24377 else
24378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24379 for as_dir in $PATH
24381 IFS=$as_save_IFS
24382 test -z "$as_dir" && as_dir=.
24383 for ac_exec_ext in '' $ac_executable_extensions; do
24384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24385 ac_cv_prog_JAVAC="$ac_prog"
24386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24387 break 2
24389 done
24390 done
24391 IFS=$as_save_IFS
24395 JAVAC=$ac_cv_prog_JAVAC
24396 if test -n "$JAVAC"; then
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
24398 $as_echo "$JAVAC" >&6; }
24399 else
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24401 $as_echo "no" >&6; }
24405 test -n "$JAVAC" && break
24406 done
24407 test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
24410 test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC is a version of gcj" >&5
24412 $as_echo_n "checking if $JAVAC is a version of gcj... " >&6; }
24413 if test "${ac_cv_prog_javac_is_gcj+set}" = set; then :
24414 $as_echo_n "(cached) " >&6
24415 else
24417 if $JAVAC --version | grep gcj > /dev/null; then
24418 ac_cv_prog_javac_is_gcj=yes;
24419 JAVAC="$JAVAC $GCJ_OPTS";
24422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_is_gcj" >&5
24423 $as_echo "$ac_cv_prog_javac_is_gcj" >&6; }
24424 JAVAC_IS_GCJ=$ac_cv_prog_javac_is_gcj
24426 if test x"${JAVAC_IS_GCJ}" = xyes; then
24427 GCJ_JAVAC_TRUE=
24428 GCJ_JAVAC_FALSE='#'
24429 else
24430 GCJ_JAVAC_TRUE='#'
24431 GCJ_JAVAC_FALSE=
24434 if test "$enable_java_maintainer_mode" = yes; then
24436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
24437 $as_echo_n "checking if $JAVAC works... " >&6; }
24438 if test "${ac_cv_prog_javac_works+set}" = set; then :
24439 $as_echo_n "(cached) " >&6
24440 else
24442 JAVA_TEST=Object.java
24443 CLASS_TEST=Object.class
24444 cat << \EOF > $JAVA_TEST
24445 /* #line 24445 "configure" */
24446 package java.lang;
24448 public class Object
24450 static <T> void doStuff()
24455 if test x$JAVAC_IS_GCJ = xyes; then
24456 CMD="$JAVAC $JAVACFLAGS -fsource=1.5 -ftarget=1.5 $JAVA_TEST"
24457 else
24458 CMD="$JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST"
24460 if { ac_try='$CMD'
24461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24462 (eval $ac_try) 2>&5
24463 ac_status=$?
24464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24465 test $ac_status = 0; }; } >/dev/null 2>&1; then
24466 ac_cv_prog_javac_works=yes
24467 else
24468 as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
24469 echo "configure: failed program was:" >&5
24470 cat $JAVA_TEST >&5
24472 rm -f $JAVA_TEST $CLASS_TEST
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
24476 $as_echo "$ac_cv_prog_javac_works" >&6; }
24481 JAVA_TEST=Test.java
24482 CLASS_TEST=Test.class
24483 cat << \EOF > $JAVA_TEST
24484 /* #line 24484 "configure" */
24485 public class Test
24487 public static void main(String args)
24489 System.out.println("Hello World");
24493 if test x$JAVAC_IS_GCJ != xyes; then
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether javac supports -J" >&5
24495 $as_echo_n "checking whether javac supports -J... " >&6; }
24496 $JAVAC $JAVACFLAGS -J-Xmx768M -sourcepath '' $JAVA_TEST
24497 javac_result=$?
24498 if test "x$javac_result" = "x0"; then
24499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24500 $as_echo "yes" >&6; }
24501 JAVAC_MEM_OPT="-J-Xmx768M"
24502 else
24503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24504 $as_echo "no" >&6; }
24507 rm -f $JAVA_TEST $CLASS_TEST
24513 # Check whether --with-escher was given.
24514 if test "${with_escher+set}" = set; then :
24515 withval=$with_escher;
24518 case "$with_escher" in
24520 use_escher=false
24522 "no")
24523 use_escher=false
24525 "yes")
24526 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
24529 use_escher=true
24530 PATH_TO_ESCHER=$with_escher
24532 esac
24534 if test x$use_escher = xtrue; then
24535 USE_ESCHER_TRUE=
24536 USE_ESCHER_FALSE='#'
24537 else
24538 USE_ESCHER_TRUE='#'
24539 USE_ESCHER_FALSE=
24544 # Check whether --enable-local-sockets was given.
24545 if test "${enable_local_sockets+set}" = set; then :
24546 enableval=$enable_local_sockets; case "${enableval}" in
24547 yes)
24548 ENABLE_LOCAL_SOCKETS=yes
24551 ENABLE_LOCAL_SOCKETS=no
24553 esac
24556 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
24557 then
24558 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
24559 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
24564 for ac_func in read write bind listen accept shutdown
24565 do :
24566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24567 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24568 eval as_val=\$$as_ac_var
24569 if test "x$as_val" = x""yes; then :
24570 cat >>confdefs.h <<_ACEOF
24571 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24572 _ACEOF
24574 else
24575 as_fn_error "networking support not available" "$LINENO" 5
24577 done
24580 $as_echo "#define ENABLE_LOCAL_SOCKETS 1" >>confdefs.h
24583 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
24584 ENABLE_LOCAL_SOCKETS_TRUE=
24585 ENABLE_LOCAL_SOCKETS_FALSE='#'
24586 else
24587 ENABLE_LOCAL_SOCKETS_TRUE='#'
24588 ENABLE_LOCAL_SOCKETS_FALSE=
24594 WANT_NATIVE_BIG_INTEGER=false
24595 if test "x${COMPILE_GMP}" = xyes; then
24596 if test "x${ac_cv_lib_gmp___gmpz_mul_si}" = xyes; then
24597 if test "x${ac_cv_header_gmp_h}" = xyes; then
24598 WANT_NATIVE_BIG_INTEGER=true
24600 $as_echo "#define WITH_GNU_MP 1" >>confdefs.h
24602 else
24603 COMPILE_GMP=no
24605 else
24606 COMPILE_GMP=no
24610 if test "x${COMPILE_GMP}" = xyes; then
24611 CREATE_GMPBI_LIBRARY_TRUE=
24612 CREATE_GMPBI_LIBRARY_FALSE='#'
24613 else
24614 CREATE_GMPBI_LIBRARY_TRUE='#'
24615 CREATE_GMPBI_LIBRARY_FALSE=
24619 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"
24622 if test "x${COMPILE_WRAPPERS}" = xyes; then
24624 else
24625 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"
24628 ac_config_commands="$ac_config_commands gappletviewer"
24630 ac_config_commands="$ac_config_commands gjarsigner"
24632 ac_config_commands="$ac_config_commands gkeytool"
24634 ac_config_commands="$ac_config_commands gjar"
24636 ac_config_commands="$ac_config_commands gnative2ascii"
24638 ac_config_commands="$ac_config_commands gserialver"
24640 ac_config_commands="$ac_config_commands grmiregistry"
24642 ac_config_commands="$ac_config_commands gtnameserv"
24644 ac_config_commands="$ac_config_commands gorbd"
24646 ac_config_commands="$ac_config_commands grmid"
24648 ac_config_commands="$ac_config_commands grmic"
24650 ac_config_commands="$ac_config_commands gjavah"
24655 if test "x${COMPILE_GJDOC}" = xyes
24656 then
24657 ac_config_files="$ac_config_files tools/gjdoc"
24659 ac_config_commands="$ac_config_commands gjdoc"
24663 ac_config_commands="$ac_config_commands gen-classlist"
24665 ac_config_commands="$ac_config_commands copy-vmresources"
24667 cat >confcache <<\_ACEOF
24668 # This file is a shell script that caches the results of configure
24669 # tests run on this system so they can be shared between configure
24670 # scripts and configure runs, see configure's option --config-cache.
24671 # It is not useful on other systems. If it contains results you don't
24672 # want to keep, you may remove or edit it.
24674 # config.status only pays attention to the cache file if you give it
24675 # the --recheck option to rerun configure.
24677 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24678 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24679 # following values.
24681 _ACEOF
24683 # The following way of writing the cache mishandles newlines in values,
24684 # but we know of no workaround that is simple, portable, and efficient.
24685 # So, we kill variables containing newlines.
24686 # Ultrix sh set writes to stderr and can't be redirected directly,
24687 # and sets the high bit in the cache file unless we assign to the vars.
24689 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24690 eval ac_val=\$$ac_var
24691 case $ac_val in #(
24692 *${as_nl}*)
24693 case $ac_var in #(
24694 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24695 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24696 esac
24697 case $ac_var in #(
24698 _ | IFS | as_nl) ;; #(
24699 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24700 *) { eval $ac_var=; unset $ac_var;} ;;
24701 esac ;;
24702 esac
24703 done
24705 (set) 2>&1 |
24706 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24707 *${as_nl}ac_space=\ *)
24708 # `set' does not quote correctly, so add quotes: double-quote
24709 # substitution turns \\\\ into \\, and sed turns \\ into \.
24710 sed -n \
24711 "s/'/'\\\\''/g;
24712 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24713 ;; #(
24715 # `set' quotes correctly as required by POSIX, so do not add quotes.
24716 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24718 esac |
24719 sort
24721 sed '
24722 /^ac_cv_env_/b end
24723 t clear
24724 :clear
24725 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24726 t end
24727 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24728 :end' >>confcache
24729 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24730 if test -w "$cache_file"; then
24731 test "x$cache_file" != "x/dev/null" &&
24732 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24733 $as_echo "$as_me: updating cache $cache_file" >&6;}
24734 cat confcache >$cache_file
24735 else
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24737 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24740 rm -f confcache
24742 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24743 # Let make expand exec_prefix.
24744 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24746 DEFS=-DHAVE_CONFIG_H
24748 ac_libobjs=
24749 ac_ltlibobjs=
24750 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24751 # 1. Remove the extension, and $U if already installed.
24752 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24753 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24754 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24755 # will be set to the directory where LIBOBJS objects are built.
24756 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24757 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24758 done
24759 LIBOBJS=$ac_libobjs
24761 LTLIBOBJS=$ac_ltlibobjs
24764 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24765 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24768 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
24769 as_fn_error "conditional \"GENINSRC\" was never defined.
24770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24772 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
24773 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
24774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24776 if test -n "$EXEEXT"; then
24777 am__EXEEXT_TRUE=
24778 am__EXEEXT_FALSE='#'
24779 else
24780 am__EXEEXT_TRUE='#'
24781 am__EXEEXT_FALSE=
24784 if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
24785 as_fn_error "conditional \"CREATE_COLLECTIONS\" was never defined.
24786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24788 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
24789 as_fn_error "conditional \"CREATE_JNI_LIBRARIES\" was never defined.
24790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24792 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
24793 as_fn_error "conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
24794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24796 if test -z "${CREATE_GCONF_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GCONF_PEER_LIBRARIES_FALSE}"; then
24797 as_fn_error "conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
24798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24800 if test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_FALSE}"; then
24801 as_fn_error "conditional \"CREATE_GSTREAMER_PEER_LIBRARIES\" was never defined.
24802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24804 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
24805 as_fn_error "conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
24806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24808 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24809 as_fn_error "conditional \"AMDEP\" was never defined.
24810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24812 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24813 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24816 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
24817 as_fn_error "conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
24818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24820 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
24821 as_fn_error "conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
24822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24824 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
24825 as_fn_error "conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
24826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24828 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
24829 as_fn_error "conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
24830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24832 if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
24833 as_fn_error "conditional \"CREATE_PLUGIN\" was never defined.
24834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24836 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24837 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24840 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
24841 as_fn_error "conditional \"CREATE_JNI_HEADERS\" was never defined.
24842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24844 if test -z "${CREATE_GJDOC_PARSER_TRUE}" && test -z "${CREATE_GJDOC_PARSER_FALSE}"; then
24845 as_fn_error "conditional \"CREATE_GJDOC_PARSER\" was never defined.
24846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24848 if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
24849 as_fn_error "conditional \"CREATE_WRAPPERS\" was never defined.
24850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24852 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24853 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24856 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24857 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24860 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24861 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24864 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24865 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24868 if test -z "${WITH_JAR_TRUE}" && test -z "${WITH_JAR_FALSE}"; then
24869 as_fn_error "conditional \"WITH_JAR\" was never defined.
24870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24872 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
24873 as_fn_error "conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
24874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24876 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
24877 as_fn_error "conditional \"INSTALL_CLASS_FILES\" was never defined.
24878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24880 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
24881 as_fn_error "conditional \"BUILD_CLASS_FILES\" was never defined.
24882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24884 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
24885 as_fn_error "conditional \"CREATE_API_DOCS\" was never defined.
24886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24888 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
24889 as_fn_error "conditional \"REGEN_PARSERS\" was never defined.
24890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24892 if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
24893 as_fn_error "conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
24894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24896 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
24897 as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
24898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24900 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
24901 as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
24902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24904 if test -z "${USE_ESCHER_TRUE}" && test -z "${USE_ESCHER_FALSE}"; then
24905 as_fn_error "conditional \"USE_ESCHER\" was never defined.
24906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24908 if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
24909 as_fn_error "conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
24910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24912 if test -z "${CREATE_GMPBI_LIBRARY_TRUE}" && test -z "${CREATE_GMPBI_LIBRARY_FALSE}"; then
24913 as_fn_error "conditional \"CREATE_GMPBI_LIBRARY\" was never defined.
24914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24917 : ${CONFIG_STATUS=./config.status}
24918 ac_write_fail=0
24919 ac_clean_files_save=$ac_clean_files
24920 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24922 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24923 as_write_fail=0
24924 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24925 #! $SHELL
24926 # Generated by $as_me.
24927 # Run this file to recreate the current configuration.
24928 # Compiler output produced by configure, useful for debugging
24929 # configure, is in config.log if it exists.
24931 debug=false
24932 ac_cs_recheck=false
24933 ac_cs_silent=false
24935 SHELL=\${CONFIG_SHELL-$SHELL}
24936 export SHELL
24937 _ASEOF
24938 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24939 ## -------------------- ##
24940 ## M4sh Initialization. ##
24941 ## -------------------- ##
24943 # Be more Bourne compatible
24944 DUALCASE=1; export DUALCASE # for MKS sh
24945 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24946 emulate sh
24947 NULLCMD=:
24948 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24949 # is contrary to our usage. Disable this feature.
24950 alias -g '${1+"$@"}'='"$@"'
24951 setopt NO_GLOB_SUBST
24952 else
24953 case `(set -o) 2>/dev/null` in #(
24954 *posix*) :
24955 set -o posix ;; #(
24956 *) :
24958 esac
24962 as_nl='
24964 export as_nl
24965 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24966 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24967 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24968 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24969 # Prefer a ksh shell builtin over an external printf program on Solaris,
24970 # but without wasting forks for bash or zsh.
24971 if test -z "$BASH_VERSION$ZSH_VERSION" \
24972 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24973 as_echo='print -r --'
24974 as_echo_n='print -rn --'
24975 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24976 as_echo='printf %s\n'
24977 as_echo_n='printf %s'
24978 else
24979 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24980 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24981 as_echo_n='/usr/ucb/echo -n'
24982 else
24983 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24984 as_echo_n_body='eval
24985 arg=$1;
24986 case $arg in #(
24987 *"$as_nl"*)
24988 expr "X$arg" : "X\\(.*\\)$as_nl";
24989 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24990 esac;
24991 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24993 export as_echo_n_body
24994 as_echo_n='sh -c $as_echo_n_body as_echo'
24996 export as_echo_body
24997 as_echo='sh -c $as_echo_body as_echo'
25000 # The user is always right.
25001 if test "${PATH_SEPARATOR+set}" != set; then
25002 PATH_SEPARATOR=:
25003 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25004 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25005 PATH_SEPARATOR=';'
25010 # IFS
25011 # We need space, tab and new line, in precisely that order. Quoting is
25012 # there to prevent editors from complaining about space-tab.
25013 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25014 # splitting by setting IFS to empty value.)
25015 IFS=" "" $as_nl"
25017 # Find who we are. Look in the path if we contain no directory separator.
25018 case $0 in #((
25019 *[\\/]* ) as_myself=$0 ;;
25020 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25021 for as_dir in $PATH
25023 IFS=$as_save_IFS
25024 test -z "$as_dir" && as_dir=.
25025 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25026 done
25027 IFS=$as_save_IFS
25030 esac
25031 # We did not find ourselves, most probably we were run as `sh COMMAND'
25032 # in which case we are not to be found in the path.
25033 if test "x$as_myself" = x; then
25034 as_myself=$0
25036 if test ! -f "$as_myself"; then
25037 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25038 exit 1
25041 # Unset variables that we do not need and which cause bugs (e.g. in
25042 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25043 # suppresses any "Segmentation fault" message there. '((' could
25044 # trigger a bug in pdksh 5.2.14.
25045 for as_var in BASH_ENV ENV MAIL MAILPATH
25046 do eval test x\${$as_var+set} = xset \
25047 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25048 done
25049 PS1='$ '
25050 PS2='> '
25051 PS4='+ '
25053 # NLS nuisances.
25054 LC_ALL=C
25055 export LC_ALL
25056 LANGUAGE=C
25057 export LANGUAGE
25059 # CDPATH.
25060 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25063 # as_fn_error ERROR [LINENO LOG_FD]
25064 # ---------------------------------
25065 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25066 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25067 # script with status $?, using 1 if that was 0.
25068 as_fn_error ()
25070 as_status=$?; test $as_status -eq 0 && as_status=1
25071 if test "$3"; then
25072 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25073 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25075 $as_echo "$as_me: error: $1" >&2
25076 as_fn_exit $as_status
25077 } # as_fn_error
25080 # as_fn_set_status STATUS
25081 # -----------------------
25082 # Set $? to STATUS, without forking.
25083 as_fn_set_status ()
25085 return $1
25086 } # as_fn_set_status
25088 # as_fn_exit STATUS
25089 # -----------------
25090 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25091 as_fn_exit ()
25093 set +e
25094 as_fn_set_status $1
25095 exit $1
25096 } # as_fn_exit
25098 # as_fn_unset VAR
25099 # ---------------
25100 # Portably unset VAR.
25101 as_fn_unset ()
25103 { eval $1=; unset $1;}
25105 as_unset=as_fn_unset
25106 # as_fn_append VAR VALUE
25107 # ----------------------
25108 # Append the text in VALUE to the end of the definition contained in VAR. Take
25109 # advantage of any shell optimizations that allow amortized linear growth over
25110 # repeated appends, instead of the typical quadratic growth present in naive
25111 # implementations.
25112 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25113 eval 'as_fn_append ()
25115 eval $1+=\$2
25117 else
25118 as_fn_append ()
25120 eval $1=\$$1\$2
25122 fi # as_fn_append
25124 # as_fn_arith ARG...
25125 # ------------------
25126 # Perform arithmetic evaluation on the ARGs, and store the result in the
25127 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25128 # must be portable across $(()) and expr.
25129 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25130 eval 'as_fn_arith ()
25132 as_val=$(( $* ))
25134 else
25135 as_fn_arith ()
25137 as_val=`expr "$@" || test $? -eq 1`
25139 fi # as_fn_arith
25142 if expr a : '\(a\)' >/dev/null 2>&1 &&
25143 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25144 as_expr=expr
25145 else
25146 as_expr=false
25149 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25150 as_basename=basename
25151 else
25152 as_basename=false
25155 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25156 as_dirname=dirname
25157 else
25158 as_dirname=false
25161 as_me=`$as_basename -- "$0" ||
25162 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25163 X"$0" : 'X\(//\)$' \| \
25164 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25165 $as_echo X/"$0" |
25166 sed '/^.*\/\([^/][^/]*\)\/*$/{
25167 s//\1/
25170 /^X\/\(\/\/\)$/{
25171 s//\1/
25174 /^X\/\(\/\).*/{
25175 s//\1/
25178 s/.*/./; q'`
25180 # Avoid depending upon Character Ranges.
25181 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25182 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25183 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25184 as_cr_digits='0123456789'
25185 as_cr_alnum=$as_cr_Letters$as_cr_digits
25187 ECHO_C= ECHO_N= ECHO_T=
25188 case `echo -n x` in #(((((
25189 -n*)
25190 case `echo 'xy\c'` in
25191 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25192 xy) ECHO_C='\c';;
25193 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25194 ECHO_T=' ';;
25195 esac;;
25197 ECHO_N='-n';;
25198 esac
25200 rm -f conf$$ conf$$.exe conf$$.file
25201 if test -d conf$$.dir; then
25202 rm -f conf$$.dir/conf$$.file
25203 else
25204 rm -f conf$$.dir
25205 mkdir conf$$.dir 2>/dev/null
25207 if (echo >conf$$.file) 2>/dev/null; then
25208 if ln -s conf$$.file conf$$ 2>/dev/null; then
25209 as_ln_s='ln -s'
25210 # ... but there are two gotchas:
25211 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25212 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25213 # In both cases, we have to default to `cp -p'.
25214 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25215 as_ln_s='cp -p'
25216 elif ln conf$$.file conf$$ 2>/dev/null; then
25217 as_ln_s=ln
25218 else
25219 as_ln_s='cp -p'
25221 else
25222 as_ln_s='cp -p'
25224 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25225 rmdir conf$$.dir 2>/dev/null
25228 # as_fn_mkdir_p
25229 # -------------
25230 # Create "$as_dir" as a directory, including parents if necessary.
25231 as_fn_mkdir_p ()
25234 case $as_dir in #(
25235 -*) as_dir=./$as_dir;;
25236 esac
25237 test -d "$as_dir" || eval $as_mkdir_p || {
25238 as_dirs=
25239 while :; do
25240 case $as_dir in #(
25241 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25242 *) as_qdir=$as_dir;;
25243 esac
25244 as_dirs="'$as_qdir' $as_dirs"
25245 as_dir=`$as_dirname -- "$as_dir" ||
25246 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25247 X"$as_dir" : 'X\(//\)[^/]' \| \
25248 X"$as_dir" : 'X\(//\)$' \| \
25249 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25250 $as_echo X"$as_dir" |
25251 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25252 s//\1/
25255 /^X\(\/\/\)[^/].*/{
25256 s//\1/
25259 /^X\(\/\/\)$/{
25260 s//\1/
25263 /^X\(\/\).*/{
25264 s//\1/
25267 s/.*/./; q'`
25268 test -d "$as_dir" && break
25269 done
25270 test -z "$as_dirs" || eval "mkdir $as_dirs"
25271 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25274 } # as_fn_mkdir_p
25275 if mkdir -p . 2>/dev/null; then
25276 as_mkdir_p='mkdir -p "$as_dir"'
25277 else
25278 test -d ./-p && rmdir ./-p
25279 as_mkdir_p=false
25282 if test -x / >/dev/null 2>&1; then
25283 as_test_x='test -x'
25284 else
25285 if ls -dL / >/dev/null 2>&1; then
25286 as_ls_L_option=L
25287 else
25288 as_ls_L_option=
25290 as_test_x='
25291 eval sh -c '\''
25292 if test -d "$1"; then
25293 test -d "$1/.";
25294 else
25295 case $1 in #(
25296 -*)set "./$1";;
25297 esac;
25298 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25299 ???[sx]*):;;*)false;;esac;fi
25300 '\'' sh
25303 as_executable_p=$as_test_x
25305 # Sed expression to map a string onto a valid CPP name.
25306 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25308 # Sed expression to map a string onto a valid variable name.
25309 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25312 exec 6>&1
25313 ## ----------------------------------- ##
25314 ## Main body of $CONFIG_STATUS script. ##
25315 ## ----------------------------------- ##
25316 _ASEOF
25317 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25319 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25320 # Save the log message, to keep $0 and so on meaningful, and to
25321 # report actual input values of CONFIG_FILES etc. instead of their
25322 # values after options handling.
25323 ac_log="
25324 This file was extended by GNU Classpath $as_me 0.98, which was
25325 generated by GNU Autoconf 2.64. Invocation command line was
25327 CONFIG_FILES = $CONFIG_FILES
25328 CONFIG_HEADERS = $CONFIG_HEADERS
25329 CONFIG_LINKS = $CONFIG_LINKS
25330 CONFIG_COMMANDS = $CONFIG_COMMANDS
25331 $ $0 $@
25333 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25336 _ACEOF
25338 case $ac_config_files in *"
25339 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25340 esac
25342 case $ac_config_headers in *"
25343 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25344 esac
25347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25348 # Files that config.status was made for.
25349 config_files="$ac_config_files"
25350 config_headers="$ac_config_headers"
25351 config_links="$ac_config_links"
25352 config_commands="$ac_config_commands"
25354 _ACEOF
25356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25357 ac_cs_usage="\
25358 \`$as_me' instantiates files and other configuration actions
25359 from templates according to the current configuration. Unless the files
25360 and actions are specified as TAGs, all are instantiated by default.
25362 Usage: $0 [OPTION]... [TAG]...
25364 -h, --help print this help, then exit
25365 -V, --version print version number and configuration settings, then exit
25366 -q, --quiet, --silent
25367 do not print progress messages
25368 -d, --debug don't remove temporary files
25369 --recheck update $as_me by reconfiguring in the same conditions
25370 --file=FILE[:TEMPLATE]
25371 instantiate the configuration file FILE
25372 --header=FILE[:TEMPLATE]
25373 instantiate the configuration header FILE
25375 Configuration files:
25376 $config_files
25378 Configuration headers:
25379 $config_headers
25381 Configuration links:
25382 $config_links
25384 Configuration commands:
25385 $config_commands
25387 Report bugs to <classpath@gnu.org>.
25388 GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
25389 General help using GNU software: <http://www.gnu.org/gethelp/>."
25391 _ACEOF
25392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25393 ac_cs_version="\\
25394 GNU Classpath config.status 0.98
25395 configured by $0, generated by GNU Autoconf 2.64,
25396 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25398 Copyright (C) 2009 Free Software Foundation, Inc.
25399 This config.status script is free software; the Free Software Foundation
25400 gives unlimited permission to copy, distribute and modify it."
25402 ac_pwd='$ac_pwd'
25403 srcdir='$srcdir'
25404 INSTALL='$INSTALL'
25405 MKDIR_P='$MKDIR_P'
25406 AWK='$AWK'
25407 test -n "\$AWK" || AWK=awk
25408 _ACEOF
25410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25411 # The default lists apply if the user does not specify any file.
25412 ac_need_defaults=:
25413 while test $# != 0
25415 case $1 in
25416 --*=*)
25417 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25418 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25419 ac_shift=:
25422 ac_option=$1
25423 ac_optarg=$2
25424 ac_shift=shift
25426 esac
25428 case $ac_option in
25429 # Handling of the options.
25430 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25431 ac_cs_recheck=: ;;
25432 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25433 $as_echo "$ac_cs_version"; exit ;;
25434 --debug | --debu | --deb | --de | --d | -d )
25435 debug=: ;;
25436 --file | --fil | --fi | --f )
25437 $ac_shift
25438 case $ac_optarg in
25439 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25440 esac
25441 as_fn_append CONFIG_FILES " '$ac_optarg'"
25442 ac_need_defaults=false;;
25443 --header | --heade | --head | --hea )
25444 $ac_shift
25445 case $ac_optarg in
25446 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25447 esac
25448 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25449 ac_need_defaults=false;;
25450 --he | --h)
25451 # Conflict between --help and --header
25452 as_fn_error "ambiguous option: \`$1'
25453 Try \`$0 --help' for more information.";;
25454 --help | --hel | -h )
25455 $as_echo "$ac_cs_usage"; exit ;;
25456 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25457 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25458 ac_cs_silent=: ;;
25460 # This is an error.
25461 -*) as_fn_error "unrecognized option: \`$1'
25462 Try \`$0 --help' for more information." ;;
25464 *) as_fn_append ac_config_targets " $1"
25465 ac_need_defaults=false ;;
25467 esac
25468 shift
25469 done
25471 ac_configure_extra_args=
25473 if $ac_cs_silent; then
25474 exec 6>/dev/null
25475 ac_configure_extra_args="$ac_configure_extra_args --silent"
25478 _ACEOF
25479 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25480 if \$ac_cs_recheck; then
25481 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25482 shift
25483 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25484 CONFIG_SHELL='$SHELL'
25485 export CONFIG_SHELL
25486 exec "\$@"
25489 _ACEOF
25490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25491 exec 5>>config.log
25493 echo
25494 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25495 ## Running $as_me. ##
25496 _ASBOX
25497 $as_echo "$ac_log"
25498 } >&5
25500 _ACEOF
25501 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25503 # INIT-COMMANDS
25506 srcdir="$srcdir"
25507 host="$host"
25508 target="$target"
25509 with_multisubdir="$with_multisubdir"
25510 with_multisrctop="$with_multisrctop"
25511 with_target_subdir="$with_target_subdir"
25512 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25513 multi_basedir="$multi_basedir"
25514 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25515 CC="$CC"
25516 CXX="$CXX"
25517 GFORTRAN="$GFORTRAN"
25518 GCJ="$GCJ"
25519 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25522 # The HP-UX ksh and POSIX shell print the target directory to stdout
25523 # if CDPATH is set.
25524 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25526 sed_quote_subst='$sed_quote_subst'
25527 double_quote_subst='$double_quote_subst'
25528 delay_variable_subst='$delay_variable_subst'
25529 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
25530 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
25531 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
25532 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
25533 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
25534 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
25535 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
25536 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
25537 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
25538 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
25539 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
25540 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
25541 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
25542 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
25543 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
25544 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
25545 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
25546 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
25547 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
25548 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
25549 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
25550 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
25551 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
25552 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
25553 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
25554 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
25555 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
25556 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25557 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
25558 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
25559 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
25560 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
25561 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25562 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
25563 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
25564 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25565 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25566 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25567 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
25568 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25569 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
25570 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
25571 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
25572 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
25573 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
25574 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25575 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
25576 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
25577 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
25578 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
25579 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
25580 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
25581 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
25582 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
25583 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
25584 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
25585 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
25586 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
25587 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
25588 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
25589 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
25590 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
25591 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25592 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25593 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
25594 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
25595 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25596 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25597 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
25598 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25599 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25600 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25601 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25602 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25603 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25604 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
25605 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25606 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25607 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25608 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
25609 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
25610 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
25611 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
25612 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
25613 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25614 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
25615 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
25616 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
25617 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
25618 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
25619 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25620 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25621 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25622 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25623 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
25624 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
25625 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25626 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
25627 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
25628 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25629 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25630 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
25631 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25632 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
25633 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25634 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25635 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25636 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25637 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
25638 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
25639 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25640 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25641 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
25642 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
25643 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
25644 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
25645 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
25646 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
25647 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
25648 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
25649 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
25650 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
25651 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
25652 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
25653 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25654 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25655 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25656 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25657 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25658 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25659 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25660 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25661 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25662 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25663 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25664 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25665 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25666 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25667 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25668 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25669 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25670 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25671 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25672 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25673 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25674 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25675 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25676 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25677 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25678 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25679 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25680 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25681 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25682 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25683 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25684 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25685 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25686 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25687 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25688 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25689 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25690 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25691 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25692 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25693 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25694 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25695 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25696 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25697 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25698 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25699 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25701 LTCC='$LTCC'
25702 LTCFLAGS='$LTCFLAGS'
25703 compiler='$compiler_DEFAULT'
25705 # Quote evaled strings.
25706 for var in SED \
25707 GREP \
25708 EGREP \
25709 FGREP \
25710 LD \
25711 NM \
25712 LN_S \
25713 lt_SP2NL \
25714 lt_NL2SP \
25715 reload_flag \
25716 OBJDUMP \
25717 deplibs_check_method \
25718 file_magic_cmd \
25719 AR \
25720 AR_FLAGS \
25721 STRIP \
25722 RANLIB \
25723 CC \
25724 CFLAGS \
25725 compiler \
25726 lt_cv_sys_global_symbol_pipe \
25727 lt_cv_sys_global_symbol_to_cdecl \
25728 lt_cv_sys_global_symbol_to_c_name_address \
25729 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25730 SHELL \
25731 ECHO \
25732 lt_prog_compiler_no_builtin_flag \
25733 lt_prog_compiler_wl \
25734 lt_prog_compiler_pic \
25735 lt_prog_compiler_static \
25736 lt_cv_prog_compiler_c_o \
25737 need_locks \
25738 DSYMUTIL \
25739 NMEDIT \
25740 LIPO \
25741 OTOOL \
25742 OTOOL64 \
25743 shrext_cmds \
25744 export_dynamic_flag_spec \
25745 whole_archive_flag_spec \
25746 compiler_needs_object \
25747 with_gnu_ld \
25748 allow_undefined_flag \
25749 no_undefined_flag \
25750 hardcode_libdir_flag_spec \
25751 hardcode_libdir_flag_spec_ld \
25752 hardcode_libdir_separator \
25753 fix_srcfile_path \
25754 exclude_expsyms \
25755 include_expsyms \
25756 file_list_spec \
25757 variables_saved_for_relink \
25758 libname_spec \
25759 library_names_spec \
25760 soname_spec \
25761 finish_eval \
25762 old_striplib \
25763 striplib \
25764 compiler_lib_search_dirs \
25765 predep_objects \
25766 postdep_objects \
25767 predeps \
25768 postdeps \
25769 compiler_lib_search_path \
25770 LD_CXX \
25771 compiler_CXX \
25772 lt_prog_compiler_no_builtin_flag_CXX \
25773 lt_prog_compiler_wl_CXX \
25774 lt_prog_compiler_pic_CXX \
25775 lt_prog_compiler_static_CXX \
25776 lt_cv_prog_compiler_c_o_CXX \
25777 export_dynamic_flag_spec_CXX \
25778 whole_archive_flag_spec_CXX \
25779 compiler_needs_object_CXX \
25780 with_gnu_ld_CXX \
25781 allow_undefined_flag_CXX \
25782 no_undefined_flag_CXX \
25783 hardcode_libdir_flag_spec_CXX \
25784 hardcode_libdir_flag_spec_ld_CXX \
25785 hardcode_libdir_separator_CXX \
25786 fix_srcfile_path_CXX \
25787 exclude_expsyms_CXX \
25788 include_expsyms_CXX \
25789 file_list_spec_CXX \
25790 compiler_lib_search_dirs_CXX \
25791 predep_objects_CXX \
25792 postdep_objects_CXX \
25793 predeps_CXX \
25794 postdeps_CXX \
25795 compiler_lib_search_path_CXX; do
25796 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25797 *[\\\\\\\`\\"\\\$]*)
25798 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25801 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25803 esac
25804 done
25806 # Double-quote double-evaled strings.
25807 for var in reload_cmds \
25808 old_postinstall_cmds \
25809 old_postuninstall_cmds \
25810 old_archive_cmds \
25811 extract_expsyms_cmds \
25812 old_archive_from_new_cmds \
25813 old_archive_from_expsyms_cmds \
25814 archive_cmds \
25815 archive_expsym_cmds \
25816 module_cmds \
25817 module_expsym_cmds \
25818 export_symbols_cmds \
25819 prelink_cmds \
25820 postinstall_cmds \
25821 postuninstall_cmds \
25822 finish_cmds \
25823 sys_lib_search_path_spec \
25824 sys_lib_dlsearch_path_spec \
25825 old_archive_cmds_CXX \
25826 old_archive_from_new_cmds_CXX \
25827 old_archive_from_expsyms_cmds_CXX \
25828 archive_cmds_CXX \
25829 archive_expsym_cmds_CXX \
25830 module_cmds_CXX \
25831 module_expsym_cmds_CXX \
25832 export_symbols_cmds_CXX \
25833 prelink_cmds_CXX; do
25834 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25835 *[\\\\\\\`\\"\\\$]*)
25836 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25839 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25841 esac
25842 done
25844 # Fix-up fallback echo if it was mangled by the above quoting rules.
25845 case \$lt_ECHO in
25846 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
25848 esac
25850 ac_aux_dir='$ac_aux_dir'
25851 xsi_shell='$xsi_shell'
25852 lt_shell_append='$lt_shell_append'
25854 # See if we are running on zsh, and set the options which allow our
25855 # commands through without removal of \ escapes INIT.
25856 if test -n "\${ZSH_VERSION+set}" ; then
25857 setopt NO_GLOB_SUBST
25861 PACKAGE='$PACKAGE'
25862 VERSION='$VERSION'
25863 TIMESTAMP='$TIMESTAMP'
25864 RM='$RM'
25865 ofile='$ofile'
25871 # variables for create stdint.h replacement
25872 PACKAGE="$PACKAGE"
25873 VERSION="$VERSION"
25874 ac_stdint_h="$ac_stdint_h"
25875 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
25876 ac_cv_stdint_message="$ac_cv_stdint_message"
25877 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
25878 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
25879 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
25880 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
25881 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
25882 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
25883 ac_cv_char_data_model="$ac_cv_char_data_model"
25884 ac_cv_long_data_model="$ac_cv_long_data_model"
25885 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
25886 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
25887 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
25890 _ACEOF
25892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25894 # Handling of arguments.
25895 for ac_config_target in $ac_config_targets
25897 case $ac_config_target in
25898 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25899 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25900 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25901 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25902 "lib/mkcollections.pl") CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
25903 "mkcollections.pl") CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
25904 "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
25905 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
25906 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25907 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25908 "doc/api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
25909 "external/Makefile") CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
25910 "external/sax/Makefile") CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
25911 "external/w3c_dom/Makefile") CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
25912 "external/relaxngDatatype/Makefile") CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
25913 "external/jsr166/Makefile") CONFIG_FILES="$CONFIG_FILES external/jsr166/Makefile" ;;
25914 "gnu/classpath/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
25915 "gnu/java/security/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/java/security/Configuration.java" ;;
25916 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25917 "native/Makefile") CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
25918 "native/fdlibm/Makefile") CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
25919 "native/jawt/Makefile") CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
25920 "native/jni/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
25921 "native/jni/classpath/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
25922 "native/jni/java-io/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
25923 "native/jni/java-lang/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
25924 "native/jni/java-math/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-math/Makefile" ;;
25925 "native/jni/java-net/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
25926 "native/jni/java-nio/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
25927 "native/jni/java-util/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
25928 "native/jni/gtk-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
25929 "native/jni/gconf-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gconf-peer/Makefile" ;;
25930 "native/jni/gstreamer-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gstreamer-peer/Makefile" ;;
25931 "native/jni/qt-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
25932 "native/jni/xmlj/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
25933 "native/jni/midi-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
25934 "native/jni/midi-dssi/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
25935 "native/jni/native-lib/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/native-lib/Makefile" ;;
25936 "native/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
25937 "resource/Makefile") CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
25938 "resource/META-INF/services/java.util.prefs.PreferencesFactory") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/java.util.prefs.PreferencesFactory" ;;
25939 "resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader" ;;
25940 "resource/META-INF/services/javax.sound.sampled.spi.MixerProvider") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.MixerProvider" ;;
25941 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
25942 "scripts/classpath.spec") CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
25943 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25944 "lib/gen-classlist.sh") CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
25945 "lib/copy-vmresources.sh") CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
25946 "scripts/check_jni_methods.sh") CONFIG_FILES="$CONFIG_FILES scripts/check_jni_methods.sh" ;;
25947 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
25948 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
25949 "examples/Makefile.jawt") CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
25950 "examples/Makefile.java2d") CONFIG_FILES="$CONFIG_FILES examples/Makefile.java2d" ;;
25951 "tools/gappletviewer") CONFIG_FILES="$CONFIG_FILES tools/gappletviewer" ;;
25952 "tools/gjarsigner") CONFIG_FILES="$CONFIG_FILES tools/gjarsigner" ;;
25953 "tools/gkeytool") CONFIG_FILES="$CONFIG_FILES tools/gkeytool" ;;
25954 "tools/gjar") CONFIG_FILES="$CONFIG_FILES tools/gjar" ;;
25955 "tools/gnative2ascii") CONFIG_FILES="$CONFIG_FILES tools/gnative2ascii" ;;
25956 "tools/gserialver") CONFIG_FILES="$CONFIG_FILES tools/gserialver" ;;
25957 "tools/grmiregistry") CONFIG_FILES="$CONFIG_FILES tools/grmiregistry" ;;
25958 "tools/gtnameserv") CONFIG_FILES="$CONFIG_FILES tools/gtnameserv" ;;
25959 "tools/gorbd") CONFIG_FILES="$CONFIG_FILES tools/gorbd" ;;
25960 "tools/grmid") CONFIG_FILES="$CONFIG_FILES tools/grmid" ;;
25961 "tools/grmic") CONFIG_FILES="$CONFIG_FILES tools/grmic" ;;
25962 "tools/gjavah") CONFIG_FILES="$CONFIG_FILES tools/gjavah" ;;
25963 "gappletviewer") CONFIG_COMMANDS="$CONFIG_COMMANDS gappletviewer" ;;
25964 "gjarsigner") CONFIG_COMMANDS="$CONFIG_COMMANDS gjarsigner" ;;
25965 "gkeytool") CONFIG_COMMANDS="$CONFIG_COMMANDS gkeytool" ;;
25966 "gjar") CONFIG_COMMANDS="$CONFIG_COMMANDS gjar" ;;
25967 "gnative2ascii") CONFIG_COMMANDS="$CONFIG_COMMANDS gnative2ascii" ;;
25968 "gserialver") CONFIG_COMMANDS="$CONFIG_COMMANDS gserialver" ;;
25969 "grmiregistry") CONFIG_COMMANDS="$CONFIG_COMMANDS grmiregistry" ;;
25970 "gtnameserv") CONFIG_COMMANDS="$CONFIG_COMMANDS gtnameserv" ;;
25971 "gorbd") CONFIG_COMMANDS="$CONFIG_COMMANDS gorbd" ;;
25972 "grmid") CONFIG_COMMANDS="$CONFIG_COMMANDS grmid" ;;
25973 "grmic") CONFIG_COMMANDS="$CONFIG_COMMANDS grmic" ;;
25974 "gjavah") CONFIG_COMMANDS="$CONFIG_COMMANDS gjavah" ;;
25975 "tools/gjdoc") CONFIG_FILES="$CONFIG_FILES tools/gjdoc" ;;
25976 "gjdoc") CONFIG_COMMANDS="$CONFIG_COMMANDS gjdoc" ;;
25977 "gen-classlist") CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
25978 "copy-vmresources") CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
25980 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25981 esac
25982 done
25985 # If the user did not use the arguments to specify the items to instantiate,
25986 # then the envvar interface is used. Set only those that are not.
25987 # We use the long form for the default assignment because of an extremely
25988 # bizarre bug on SunOS 4.1.3.
25989 if $ac_need_defaults; then
25990 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25991 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25992 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25993 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25996 # Have a temporary directory for convenience. Make it in the build tree
25997 # simply because there is no reason against having it here, and in addition,
25998 # creating and moving files from /tmp can sometimes cause problems.
25999 # Hook for its removal unless debugging.
26000 # Note that there is a small window in which the directory will not be cleaned:
26001 # after its creation but before its name has been assigned to `$tmp'.
26002 $debug ||
26004 tmp=
26005 trap 'exit_status=$?
26006 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26008 trap 'as_fn_exit 1' 1 2 13 15
26010 # Create a (secure) tmp directory for tmp files.
26013 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26014 test -n "$tmp" && test -d "$tmp"
26015 } ||
26017 tmp=./conf$$-$RANDOM
26018 (umask 077 && mkdir "$tmp")
26019 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26021 # Set up the scripts for CONFIG_FILES section.
26022 # No need to generate them if there are no CONFIG_FILES.
26023 # This happens for instance with `./config.status config.h'.
26024 if test -n "$CONFIG_FILES"; then
26027 ac_cr=`echo X | tr X '\015'`
26028 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26029 # But we know of no other shell where ac_cr would be empty at this
26030 # point, so we can use a bashism as a fallback.
26031 if test "x$ac_cr" = x; then
26032 eval ac_cr=\$\'\\r\'
26034 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26035 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26036 ac_cs_awk_cr='\r'
26037 else
26038 ac_cs_awk_cr=$ac_cr
26041 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26042 _ACEOF
26046 echo "cat >conf$$subs.awk <<_ACEOF" &&
26047 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26048 echo "_ACEOF"
26049 } >conf$$subs.sh ||
26050 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26051 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26052 ac_delim='%!_!# '
26053 for ac_last_try in false false false false false :; do
26054 . ./conf$$subs.sh ||
26055 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26057 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26058 if test $ac_delim_n = $ac_delim_num; then
26059 break
26060 elif $ac_last_try; then
26061 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26062 else
26063 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26065 done
26066 rm -f conf$$subs.sh
26068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26069 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26070 _ACEOF
26071 sed -n '
26073 s/^/S["/; s/!.*/"]=/
26076 s/^[^!]*!//
26077 :repl
26078 t repl
26079 s/'"$ac_delim"'$//
26080 t delim
26083 s/\(.\{148\}\).*/\1/
26084 t more1
26085 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26088 b repl
26089 :more1
26090 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26093 s/.\{148\}//
26094 t nl
26095 :delim
26097 s/\(.\{148\}\).*/\1/
26098 t more2
26099 s/["\\]/\\&/g; s/^/"/; s/$/"/
26102 :more2
26103 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26106 s/.\{148\}//
26107 t delim
26108 ' <conf$$subs.awk | sed '
26109 /^[^""]/{
26111 s/\n//
26113 ' >>$CONFIG_STATUS || ac_write_fail=1
26114 rm -f conf$$subs.awk
26115 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26116 _ACAWK
26117 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26118 for (key in S) S_is_set[key] = 1
26119 FS = "\a"
26123 line = $ 0
26124 nfields = split(line, field, "@")
26125 substed = 0
26126 len = length(field[1])
26127 for (i = 2; i < nfields; i++) {
26128 key = field[i]
26129 keylen = length(key)
26130 if (S_is_set[key]) {
26131 value = S[key]
26132 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26133 len += length(value) + length(field[++i])
26134 substed = 1
26135 } else
26136 len += 1 + keylen
26139 print line
26142 _ACAWK
26143 _ACEOF
26144 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26145 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26146 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26147 else
26149 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26150 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26151 _ACEOF
26153 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26154 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26155 # trailing colons and then remove the whole line if VPATH becomes empty
26156 # (actually we leave an empty line to preserve line numbers).
26157 if test "x$srcdir" = x.; then
26158 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26159 s/:*\$(srcdir):*/:/
26160 s/:*\${srcdir}:*/:/
26161 s/:*@srcdir@:*/:/
26162 s/^\([^=]*=[ ]*\):*/\1/
26163 s/:*$//
26164 s/^[^=]*=[ ]*$//
26168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26169 fi # test -n "$CONFIG_FILES"
26171 # Set up the scripts for CONFIG_HEADERS section.
26172 # No need to generate them if there are no CONFIG_HEADERS.
26173 # This happens for instance with `./config.status Makefile'.
26174 if test -n "$CONFIG_HEADERS"; then
26175 cat >"$tmp/defines.awk" <<\_ACAWK ||
26176 BEGIN {
26177 _ACEOF
26179 # Transform confdefs.h into an awk script `defines.awk', embedded as
26180 # here-document in config.status, that substitutes the proper values into
26181 # config.h.in to produce config.h.
26183 # Create a delimiter string that does not exist in confdefs.h, to ease
26184 # handling of long lines.
26185 ac_delim='%!_!# '
26186 for ac_last_try in false false :; do
26187 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26188 if test -z "$ac_t"; then
26189 break
26190 elif $ac_last_try; then
26191 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26192 else
26193 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26195 done
26197 # For the awk script, D is an array of macro values keyed by name,
26198 # likewise P contains macro parameters if any. Preserve backslash
26199 # newline sequences.
26201 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26202 sed -n '
26203 s/.\{148\}/&'"$ac_delim"'/g
26204 t rset
26205 :rset
26206 s/^[ ]*#[ ]*define[ ][ ]*/ /
26207 t def
26209 :def
26210 s/\\$//
26211 t bsnl
26212 s/["\\]/\\&/g
26213 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26214 D["\1"]=" \3"/p
26215 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26217 :bsnl
26218 s/["\\]/\\&/g
26219 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26220 D["\1"]=" \3\\\\\\n"\\/p
26221 t cont
26222 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26223 t cont
26225 :cont
26227 s/.\{148\}/&'"$ac_delim"'/g
26228 t clear
26229 :clear
26230 s/\\$//
26231 t bsnlc
26232 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26234 :bsnlc
26235 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26236 b cont
26237 ' <confdefs.h | sed '
26238 s/'"$ac_delim"'/"\\\
26239 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26242 for (key in D) D_is_set[key] = 1
26243 FS = "\a"
26245 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26246 line = \$ 0
26247 split(line, arg, " ")
26248 if (arg[1] == "#") {
26249 defundef = arg[2]
26250 mac1 = arg[3]
26251 } else {
26252 defundef = substr(arg[1], 2)
26253 mac1 = arg[2]
26255 split(mac1, mac2, "(") #)
26256 macro = mac2[1]
26257 prefix = substr(line, 1, index(line, defundef) - 1)
26258 if (D_is_set[macro]) {
26259 # Preserve the white space surrounding the "#".
26260 print prefix "define", macro P[macro] D[macro]
26261 next
26262 } else {
26263 # Replace #undef with comments. This is necessary, for example,
26264 # in the case of _POSIX_SOURCE, which is predefined and required
26265 # on some systems where configure will not decide to define it.
26266 if (defundef == "undef") {
26267 print "/*", prefix defundef, macro, "*/"
26268 next
26272 { print }
26273 _ACAWK
26274 _ACEOF
26275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26276 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26277 fi # test -n "$CONFIG_HEADERS"
26280 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26281 shift
26282 for ac_tag
26284 case $ac_tag in
26285 :[FHLC]) ac_mode=$ac_tag; continue;;
26286 esac
26287 case $ac_mode$ac_tag in
26288 :[FHL]*:*);;
26289 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26290 :[FH]-) ac_tag=-:-;;
26291 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26292 esac
26293 ac_save_IFS=$IFS
26294 IFS=:
26295 set x $ac_tag
26296 IFS=$ac_save_IFS
26297 shift
26298 ac_file=$1
26299 shift
26301 case $ac_mode in
26302 :L) ac_source=$1;;
26303 :[FH])
26304 ac_file_inputs=
26305 for ac_f
26307 case $ac_f in
26308 -) ac_f="$tmp/stdin";;
26309 *) # Look for the file first in the build tree, then in the source tree
26310 # (if the path is not absolute). The absolute path cannot be DOS-style,
26311 # because $ac_f cannot contain `:'.
26312 test -f "$ac_f" ||
26313 case $ac_f in
26314 [\\/$]*) false;;
26315 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26316 esac ||
26317 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26318 esac
26319 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26320 as_fn_append ac_file_inputs " '$ac_f'"
26321 done
26323 # Let's still pretend it is `configure' which instantiates (i.e., don't
26324 # use $as_me), people would be surprised to read:
26325 # /* config.h. Generated by config.status. */
26326 configure_input='Generated from '`
26327 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26328 `' by configure.'
26329 if test x"$ac_file" != x-; then
26330 configure_input="$ac_file. $configure_input"
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26332 $as_echo "$as_me: creating $ac_file" >&6;}
26334 # Neutralize special characters interpreted by sed in replacement strings.
26335 case $configure_input in #(
26336 *\&* | *\|* | *\\* )
26337 ac_sed_conf_input=`$as_echo "$configure_input" |
26338 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26339 *) ac_sed_conf_input=$configure_input;;
26340 esac
26342 case $ac_tag in
26343 *:-:* | *:-) cat >"$tmp/stdin" \
26344 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26345 esac
26347 esac
26349 ac_dir=`$as_dirname -- "$ac_file" ||
26350 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26351 X"$ac_file" : 'X\(//\)[^/]' \| \
26352 X"$ac_file" : 'X\(//\)$' \| \
26353 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26354 $as_echo X"$ac_file" |
26355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26356 s//\1/
26359 /^X\(\/\/\)[^/].*/{
26360 s//\1/
26363 /^X\(\/\/\)$/{
26364 s//\1/
26367 /^X\(\/\).*/{
26368 s//\1/
26371 s/.*/./; q'`
26372 as_dir="$ac_dir"; as_fn_mkdir_p
26373 ac_builddir=.
26375 case "$ac_dir" in
26376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26378 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26379 # A ".." for each directory in $ac_dir_suffix.
26380 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26381 case $ac_top_builddir_sub in
26382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26384 esac ;;
26385 esac
26386 ac_abs_top_builddir=$ac_pwd
26387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26388 # for backward compatibility:
26389 ac_top_builddir=$ac_top_build_prefix
26391 case $srcdir in
26392 .) # We are building in place.
26393 ac_srcdir=.
26394 ac_top_srcdir=$ac_top_builddir_sub
26395 ac_abs_top_srcdir=$ac_pwd ;;
26396 [\\/]* | ?:[\\/]* ) # Absolute name.
26397 ac_srcdir=$srcdir$ac_dir_suffix;
26398 ac_top_srcdir=$srcdir
26399 ac_abs_top_srcdir=$srcdir ;;
26400 *) # Relative name.
26401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26402 ac_top_srcdir=$ac_top_build_prefix$srcdir
26403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26404 esac
26405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26408 case $ac_mode in
26411 # CONFIG_FILE
26414 case $INSTALL in
26415 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26416 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26417 esac
26418 ac_MKDIR_P=$MKDIR_P
26419 case $MKDIR_P in
26420 [\\/$]* | ?:[\\/]* ) ;;
26421 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26422 esac
26423 _ACEOF
26425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26426 # If the template does not know about datarootdir, expand it.
26427 # FIXME: This hack should be removed a few years after 2.60.
26428 ac_datarootdir_hack=; ac_datarootdir_seen=
26429 ac_sed_dataroot='
26430 /datarootdir/ {
26434 /@datadir@/p
26435 /@docdir@/p
26436 /@infodir@/p
26437 /@localedir@/p
26438 /@mandir@/p'
26439 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26440 *datarootdir*) ac_datarootdir_seen=yes;;
26441 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26443 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26444 _ACEOF
26445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26446 ac_datarootdir_hack='
26447 s&@datadir@&$datadir&g
26448 s&@docdir@&$docdir&g
26449 s&@infodir@&$infodir&g
26450 s&@localedir@&$localedir&g
26451 s&@mandir@&$mandir&g
26452 s&\\\${datarootdir}&$datarootdir&g' ;;
26453 esac
26454 _ACEOF
26456 # Neutralize VPATH when `$srcdir' = `.'.
26457 # Shell code in configure.ac might set extrasub.
26458 # FIXME: do we really want to maintain this feature?
26459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26460 ac_sed_extra="$ac_vpsub
26461 $extrasub
26462 _ACEOF
26463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26465 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26466 s|@configure_input@|$ac_sed_conf_input|;t t
26467 s&@top_builddir@&$ac_top_builddir_sub&;t t
26468 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26469 s&@srcdir@&$ac_srcdir&;t t
26470 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26471 s&@top_srcdir@&$ac_top_srcdir&;t t
26472 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26473 s&@builddir@&$ac_builddir&;t t
26474 s&@abs_builddir@&$ac_abs_builddir&;t t
26475 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26476 s&@INSTALL@&$ac_INSTALL&;t t
26477 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26478 $ac_datarootdir_hack
26480 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26481 || as_fn_error "could not create $ac_file" "$LINENO" 5
26483 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26484 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26485 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26487 which seems to be undefined. Please make sure it is defined." >&5
26488 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26489 which seems to be undefined. Please make sure it is defined." >&2;}
26491 rm -f "$tmp/stdin"
26492 case $ac_file in
26493 -) cat "$tmp/out" && rm -f "$tmp/out";;
26494 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26495 esac \
26496 || as_fn_error "could not create $ac_file" "$LINENO" 5
26500 # CONFIG_HEADER
26502 if test x"$ac_file" != x-; then
26504 $as_echo "/* $configure_input */" \
26505 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26506 } >"$tmp/config.h" \
26507 || as_fn_error "could not create $ac_file" "$LINENO" 5
26508 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26509 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26510 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26511 else
26512 rm -f "$ac_file"
26513 mv "$tmp/config.h" "$ac_file" \
26514 || as_fn_error "could not create $ac_file" "$LINENO" 5
26516 else
26517 $as_echo "/* $configure_input */" \
26518 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26519 || as_fn_error "could not create -" "$LINENO" 5
26521 # Compute "$ac_file"'s index in $config_headers.
26522 _am_arg="$ac_file"
26523 _am_stamp_count=1
26524 for _am_header in $config_headers :; do
26525 case $_am_header in
26526 $_am_arg | $_am_arg:* )
26527 break ;;
26529 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26530 esac
26531 done
26532 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26533 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26534 X"$_am_arg" : 'X\(//\)[^/]' \| \
26535 X"$_am_arg" : 'X\(//\)$' \| \
26536 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26537 $as_echo X"$_am_arg" |
26538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26539 s//\1/
26542 /^X\(\/\/\)[^/].*/{
26543 s//\1/
26546 /^X\(\/\/\)$/{
26547 s//\1/
26550 /^X\(\/\).*/{
26551 s//\1/
26554 s/.*/./; q'`/stamp-h$_am_stamp_count
26558 # CONFIG_LINK
26561 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26563 else
26564 # Prefer the file from the source tree if names are identical.
26565 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26566 ac_source=$srcdir/$ac_source
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26570 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26572 if test ! -r "$ac_source"; then
26573 as_fn_error "$ac_source: file not found" "$LINENO" 5
26575 rm -f "$ac_file"
26577 # Try a relative symlink, then a hard link, then a copy.
26578 case $srcdir in
26579 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26580 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26581 esac
26582 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26583 ln "$ac_source" "$ac_file" 2>/dev/null ||
26584 cp -p "$ac_source" "$ac_file" ||
26585 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26588 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26589 $as_echo "$as_me: executing $ac_file commands" >&6;}
26591 esac
26594 case $ac_file$ac_mode in
26595 "default-1":C)
26596 # Only add multilib support code if we just rebuilt the top-level
26597 # Makefile.
26598 case " $CONFIG_FILES " in
26599 *" Makefile "*)
26600 ac_file=Makefile . ${multi_basedir}/config-ml.in
26602 esac ;;
26603 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26604 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26605 # are listed without --file. Let's play safe and only enable the eval
26606 # if we detect the quoting.
26607 case $CONFIG_FILES in
26608 *\'*) eval set x "$CONFIG_FILES" ;;
26609 *) set x $CONFIG_FILES ;;
26610 esac
26611 shift
26612 for mf
26614 # Strip MF so we end up with the name of the file.
26615 mf=`echo "$mf" | sed -e 's/:.*$//'`
26616 # Check whether this is an Automake generated Makefile or not.
26617 # We used to match only the files named `Makefile.in', but
26618 # some people rename them; so instead we look at the file content.
26619 # Grep'ing the first line is not enough: some people post-process
26620 # each Makefile.in and add a new line on top of each file to say so.
26621 # Grep'ing the whole file is not good either: AIX grep has a line
26622 # limit of 2048, but all sed's we know have understand at least 4000.
26623 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26624 dirpart=`$as_dirname -- "$mf" ||
26625 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26626 X"$mf" : 'X\(//\)[^/]' \| \
26627 X"$mf" : 'X\(//\)$' \| \
26628 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26629 $as_echo X"$mf" |
26630 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26631 s//\1/
26634 /^X\(\/\/\)[^/].*/{
26635 s//\1/
26638 /^X\(\/\/\)$/{
26639 s//\1/
26642 /^X\(\/\).*/{
26643 s//\1/
26646 s/.*/./; q'`
26647 else
26648 continue
26650 # Extract the definition of DEPDIR, am__include, and am__quote
26651 # from the Makefile without running `make'.
26652 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26653 test -z "$DEPDIR" && continue
26654 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26655 test -z "am__include" && continue
26656 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26657 # When using ansi2knr, U may be empty or an underscore; expand it
26658 U=`sed -n 's/^U = //p' < "$mf"`
26659 # Find all dependency output files, they are included files with
26660 # $(DEPDIR) in their names. We invoke sed twice because it is the
26661 # simplest approach to changing $(DEPDIR) to its actual value in the
26662 # expansion.
26663 for file in `sed -n "
26664 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26665 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26666 # Make sure the directory exists.
26667 test -f "$dirpart/$file" && continue
26668 fdir=`$as_dirname -- "$file" ||
26669 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26670 X"$file" : 'X\(//\)[^/]' \| \
26671 X"$file" : 'X\(//\)$' \| \
26672 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26673 $as_echo X"$file" |
26674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26675 s//\1/
26678 /^X\(\/\/\)[^/].*/{
26679 s//\1/
26682 /^X\(\/\/\)$/{
26683 s//\1/
26686 /^X\(\/\).*/{
26687 s//\1/
26690 s/.*/./; q'`
26691 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26692 # echo "creating $dirpart/$file"
26693 echo '# dummy' > "$dirpart/$file"
26694 done
26695 done
26698 "libtool":C)
26700 # See if we are running on zsh, and set the options which allow our
26701 # commands through without removal of \ escapes.
26702 if test -n "${ZSH_VERSION+set}" ; then
26703 setopt NO_GLOB_SUBST
26706 cfgfile="${ofile}T"
26707 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26708 $RM "$cfgfile"
26710 cat <<_LT_EOF >> "$cfgfile"
26711 #! $SHELL
26713 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26714 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26715 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26716 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26718 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26719 # 2006, 2007, 2008 Free Software Foundation, Inc.
26720 # Written by Gordon Matzigkeit, 1996
26722 # This file is part of GNU Libtool.
26724 # GNU Libtool is free software; you can redistribute it and/or
26725 # modify it under the terms of the GNU General Public License as
26726 # published by the Free Software Foundation; either version 2 of
26727 # the License, or (at your option) any later version.
26729 # As a special exception to the GNU General Public License,
26730 # if you distribute this file as part of a program or library that
26731 # is built using GNU Libtool, you may include this file under the
26732 # same distribution terms that you use for the rest of that program.
26734 # GNU Libtool is distributed in the hope that it will be useful,
26735 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26736 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26737 # GNU General Public License for more details.
26739 # You should have received a copy of the GNU General Public License
26740 # along with GNU Libtool; see the file COPYING. If not, a copy
26741 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26742 # obtained by writing to the Free Software Foundation, Inc.,
26743 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26746 # The names of the tagged configurations supported by this script.
26747 available_tags="CXX "
26749 # ### BEGIN LIBTOOL CONFIG
26751 # Whether or not to build static libraries.
26752 build_old_libs=$enable_static
26754 # Which release of libtool.m4 was used?
26755 macro_version=$macro_version
26756 macro_revision=$macro_revision
26758 # Whether or not to build shared libraries.
26759 build_libtool_libs=$enable_shared
26761 # What type of objects to build.
26762 pic_mode=$pic_mode
26764 # Whether or not to optimize for fast installation.
26765 fast_install=$enable_fast_install
26767 # The host system.
26768 host_alias=$host_alias
26769 host=$host
26770 host_os=$host_os
26772 # The build system.
26773 build_alias=$build_alias
26774 build=$build
26775 build_os=$build_os
26777 # A sed program that does not truncate output.
26778 SED=$lt_SED
26780 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26781 Xsed="\$SED -e 1s/^X//"
26783 # A grep program that handles long lines.
26784 GREP=$lt_GREP
26786 # An ERE matcher.
26787 EGREP=$lt_EGREP
26789 # A literal string matcher.
26790 FGREP=$lt_FGREP
26792 # A BSD- or MS-compatible name lister.
26793 NM=$lt_NM
26795 # Whether we need soft or hard links.
26796 LN_S=$lt_LN_S
26798 # What is the maximum length of a command?
26799 max_cmd_len=$max_cmd_len
26801 # Object file suffix (normally "o").
26802 objext=$ac_objext
26804 # Executable file suffix (normally "").
26805 exeext=$exeext
26807 # whether the shell understands "unset".
26808 lt_unset=$lt_unset
26810 # turn spaces into newlines.
26811 SP2NL=$lt_lt_SP2NL
26813 # turn newlines into spaces.
26814 NL2SP=$lt_lt_NL2SP
26816 # How to create reloadable object files.
26817 reload_flag=$lt_reload_flag
26818 reload_cmds=$lt_reload_cmds
26820 # An object symbol dumper.
26821 OBJDUMP=$lt_OBJDUMP
26823 # Method to check whether dependent libraries are shared objects.
26824 deplibs_check_method=$lt_deplibs_check_method
26826 # Command to use when deplibs_check_method == "file_magic".
26827 file_magic_cmd=$lt_file_magic_cmd
26829 # The archiver.
26830 AR=$lt_AR
26831 AR_FLAGS=$lt_AR_FLAGS
26833 # A symbol stripping program.
26834 STRIP=$lt_STRIP
26836 # Commands used to install an old-style archive.
26837 RANLIB=$lt_RANLIB
26838 old_postinstall_cmds=$lt_old_postinstall_cmds
26839 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26841 # A C compiler.
26842 LTCC=$lt_CC
26844 # LTCC compiler flags.
26845 LTCFLAGS=$lt_CFLAGS
26847 # Take the output of nm and produce a listing of raw symbols and C names.
26848 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26850 # Transform the output of nm in a proper C declaration.
26851 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26853 # Transform the output of nm in a C name address pair.
26854 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26856 # Transform the output of nm in a C name address pair when lib prefix is needed.
26857 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26859 # The name of the directory that contains temporary libtool files.
26860 objdir=$objdir
26862 # Shell to use when invoking shell scripts.
26863 SHELL=$lt_SHELL
26865 # An echo program that does not interpret backslashes.
26866 ECHO=$lt_ECHO
26868 # Used to examine libraries when file_magic_cmd begins with "file".
26869 MAGIC_CMD=$MAGIC_CMD
26871 # Must we lock files when doing compilation?
26872 need_locks=$lt_need_locks
26874 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26875 DSYMUTIL=$lt_DSYMUTIL
26877 # Tool to change global to local symbols on Mac OS X.
26878 NMEDIT=$lt_NMEDIT
26880 # Tool to manipulate fat objects and archives on Mac OS X.
26881 LIPO=$lt_LIPO
26883 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26884 OTOOL=$lt_OTOOL
26886 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26887 OTOOL64=$lt_OTOOL64
26889 # Old archive suffix (normally "a").
26890 libext=$libext
26892 # Shared library suffix (normally ".so").
26893 shrext_cmds=$lt_shrext_cmds
26895 # The commands to extract the exported symbol list from a shared archive.
26896 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26898 # Variables whose values should be saved in libtool wrapper scripts and
26899 # restored at link time.
26900 variables_saved_for_relink=$lt_variables_saved_for_relink
26902 # Do we need the "lib" prefix for modules?
26903 need_lib_prefix=$need_lib_prefix
26905 # Do we need a version for libraries?
26906 need_version=$need_version
26908 # Library versioning type.
26909 version_type=$version_type
26911 # Shared library runtime path variable.
26912 runpath_var=$runpath_var
26914 # Shared library path variable.
26915 shlibpath_var=$shlibpath_var
26917 # Is shlibpath searched before the hard-coded library search path?
26918 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26920 # Format of library name prefix.
26921 libname_spec=$lt_libname_spec
26923 # List of archive names. First name is the real one, the rest are links.
26924 # The last name is the one that the linker finds with -lNAME
26925 library_names_spec=$lt_library_names_spec
26927 # The coded name of the library, if different from the real name.
26928 soname_spec=$lt_soname_spec
26930 # Command to use after installation of a shared archive.
26931 postinstall_cmds=$lt_postinstall_cmds
26933 # Command to use after uninstallation of a shared archive.
26934 postuninstall_cmds=$lt_postuninstall_cmds
26936 # Commands used to finish a libtool library installation in a directory.
26937 finish_cmds=$lt_finish_cmds
26939 # As "finish_cmds", except a single script fragment to be evaled but
26940 # not shown.
26941 finish_eval=$lt_finish_eval
26943 # Whether we should hardcode library paths into libraries.
26944 hardcode_into_libs=$hardcode_into_libs
26946 # Compile-time system search path for libraries.
26947 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26949 # Run-time system search path for libraries.
26950 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26952 # Whether dlopen is supported.
26953 dlopen_support=$enable_dlopen
26955 # Whether dlopen of programs is supported.
26956 dlopen_self=$enable_dlopen_self
26958 # Whether dlopen of statically linked programs is supported.
26959 dlopen_self_static=$enable_dlopen_self_static
26961 # Commands to strip libraries.
26962 old_striplib=$lt_old_striplib
26963 striplib=$lt_striplib
26966 # The linker used to build libraries.
26967 LD=$lt_LD
26969 # Commands used to build an old-style archive.
26970 old_archive_cmds=$lt_old_archive_cmds
26972 # A language specific compiler.
26973 CC=$lt_compiler
26975 # Is the compiler the GNU compiler?
26976 with_gcc=$GCC
26978 # Compiler flag to turn off builtin functions.
26979 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26981 # How to pass a linker flag through the compiler.
26982 wl=$lt_lt_prog_compiler_wl
26984 # Additional compiler flags for building library objects.
26985 pic_flag=$lt_lt_prog_compiler_pic
26987 # Compiler flag to prevent dynamic linking.
26988 link_static_flag=$lt_lt_prog_compiler_static
26990 # Does compiler simultaneously support -c and -o options?
26991 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26993 # Whether or not to add -lc for building shared libraries.
26994 build_libtool_need_lc=$archive_cmds_need_lc
26996 # Whether or not to disallow shared libs when runtime libs are static.
26997 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26999 # Compiler flag to allow reflexive dlopens.
27000 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27002 # Compiler flag to generate shared objects directly from archives.
27003 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27005 # Whether the compiler copes with passing no objects directly.
27006 compiler_needs_object=$lt_compiler_needs_object
27008 # Create an old-style archive from a shared archive.
27009 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27011 # Create a temporary old-style archive to link instead of a shared archive.
27012 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27014 # Commands used to build a shared archive.
27015 archive_cmds=$lt_archive_cmds
27016 archive_expsym_cmds=$lt_archive_expsym_cmds
27018 # Commands used to build a loadable module if different from building
27019 # a shared archive.
27020 module_cmds=$lt_module_cmds
27021 module_expsym_cmds=$lt_module_expsym_cmds
27023 # Whether we are building with GNU ld or not.
27024 with_gnu_ld=$lt_with_gnu_ld
27026 # Flag that allows shared libraries with undefined symbols to be built.
27027 allow_undefined_flag=$lt_allow_undefined_flag
27029 # Flag that enforces no undefined symbols.
27030 no_undefined_flag=$lt_no_undefined_flag
27032 # Flag to hardcode \$libdir into a binary during linking.
27033 # This must work even if \$libdir does not exist
27034 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27036 # If ld is used when linking, flag to hardcode \$libdir into a binary
27037 # during linking. This must work even if \$libdir does not exist.
27038 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27040 # Whether we need a single "-rpath" flag with a separated argument.
27041 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27043 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27044 # DIR into the resulting binary.
27045 hardcode_direct=$hardcode_direct
27047 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27048 # DIR into the resulting binary and the resulting library dependency is
27049 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27050 # library is relocated.
27051 hardcode_direct_absolute=$hardcode_direct_absolute
27053 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27054 # into the resulting binary.
27055 hardcode_minus_L=$hardcode_minus_L
27057 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27058 # into the resulting binary.
27059 hardcode_shlibpath_var=$hardcode_shlibpath_var
27061 # Set to "yes" if building a shared library automatically hardcodes DIR
27062 # into the library and all subsequent libraries and executables linked
27063 # against it.
27064 hardcode_automatic=$hardcode_automatic
27066 # Set to yes if linker adds runtime paths of dependent libraries
27067 # to runtime path list.
27068 inherit_rpath=$inherit_rpath
27070 # Whether libtool must link a program against all its dependency libraries.
27071 link_all_deplibs=$link_all_deplibs
27073 # Fix the shell variable \$srcfile for the compiler.
27074 fix_srcfile_path=$lt_fix_srcfile_path
27076 # Set to "yes" if exported symbols are required.
27077 always_export_symbols=$always_export_symbols
27079 # The commands to list exported symbols.
27080 export_symbols_cmds=$lt_export_symbols_cmds
27082 # Symbols that should not be listed in the preloaded symbols.
27083 exclude_expsyms=$lt_exclude_expsyms
27085 # Symbols that must always be exported.
27086 include_expsyms=$lt_include_expsyms
27088 # Commands necessary for linking programs (against libraries) with templates.
27089 prelink_cmds=$lt_prelink_cmds
27091 # Specify filename containing input files.
27092 file_list_spec=$lt_file_list_spec
27094 # How to hardcode a shared library path into an executable.
27095 hardcode_action=$hardcode_action
27097 # The directories searched by this compiler when creating a shared library.
27098 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27100 # Dependencies to place before and after the objects being linked to
27101 # create a shared library.
27102 predep_objects=$lt_predep_objects
27103 postdep_objects=$lt_postdep_objects
27104 predeps=$lt_predeps
27105 postdeps=$lt_postdeps
27107 # The library search path used internally by the compiler when linking
27108 # a shared library.
27109 compiler_lib_search_path=$lt_compiler_lib_search_path
27111 # ### END LIBTOOL CONFIG
27113 _LT_EOF
27115 case $host_os in
27116 aix3*)
27117 cat <<\_LT_EOF >> "$cfgfile"
27118 # AIX sometimes has problems with the GCC collect2 program. For some
27119 # reason, if we set the COLLECT_NAMES environment variable, the problems
27120 # vanish in a puff of smoke.
27121 if test "X${COLLECT_NAMES+set}" != Xset; then
27122 COLLECT_NAMES=
27123 export COLLECT_NAMES
27125 _LT_EOF
27127 esac
27130 ltmain="$ac_aux_dir/ltmain.sh"
27133 # We use sed instead of cat because bash on DJGPP gets confused if
27134 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27135 # text mode, it properly converts lines to CR/LF. This bash problem
27136 # is reportedly fixed, but why not run on old versions too?
27137 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27138 || (rm -f "$cfgfile"; exit 1)
27140 case $xsi_shell in
27141 yes)
27142 cat << \_LT_EOF >> "$cfgfile"
27144 # func_dirname file append nondir_replacement
27145 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27146 # otherwise set result to NONDIR_REPLACEMENT.
27147 func_dirname ()
27149 case ${1} in
27150 */*) func_dirname_result="${1%/*}${2}" ;;
27151 * ) func_dirname_result="${3}" ;;
27152 esac
27155 # func_basename file
27156 func_basename ()
27158 func_basename_result="${1##*/}"
27161 # func_dirname_and_basename file append nondir_replacement
27162 # perform func_basename and func_dirname in a single function
27163 # call:
27164 # dirname: Compute the dirname of FILE. If nonempty,
27165 # add APPEND to the result, otherwise set result
27166 # to NONDIR_REPLACEMENT.
27167 # value returned in "$func_dirname_result"
27168 # basename: Compute filename of FILE.
27169 # value retuned in "$func_basename_result"
27170 # Implementation must be kept synchronized with func_dirname
27171 # and func_basename. For efficiency, we do not delegate to
27172 # those functions but instead duplicate the functionality here.
27173 func_dirname_and_basename ()
27175 case ${1} in
27176 */*) func_dirname_result="${1%/*}${2}" ;;
27177 * ) func_dirname_result="${3}" ;;
27178 esac
27179 func_basename_result="${1##*/}"
27182 # func_stripname prefix suffix name
27183 # strip PREFIX and SUFFIX off of NAME.
27184 # PREFIX and SUFFIX must not contain globbing or regex special
27185 # characters, hashes, percent signs, but SUFFIX may contain a leading
27186 # dot (in which case that matches only a dot).
27187 func_stripname ()
27189 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27190 # positional parameters, so assign one to ordinary parameter first.
27191 func_stripname_result=${3}
27192 func_stripname_result=${func_stripname_result#"${1}"}
27193 func_stripname_result=${func_stripname_result%"${2}"}
27196 # func_opt_split
27197 func_opt_split ()
27199 func_opt_split_opt=${1%%=*}
27200 func_opt_split_arg=${1#*=}
27203 # func_lo2o object
27204 func_lo2o ()
27206 case ${1} in
27207 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27208 *) func_lo2o_result=${1} ;;
27209 esac
27212 # func_xform libobj-or-source
27213 func_xform ()
27215 func_xform_result=${1%.*}.lo
27218 # func_arith arithmetic-term...
27219 func_arith ()
27221 func_arith_result=$(( $* ))
27224 # func_len string
27225 # STRING may not start with a hyphen.
27226 func_len ()
27228 func_len_result=${#1}
27231 _LT_EOF
27233 *) # Bourne compatible functions.
27234 cat << \_LT_EOF >> "$cfgfile"
27236 # func_dirname file append nondir_replacement
27237 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27238 # otherwise set result to NONDIR_REPLACEMENT.
27239 func_dirname ()
27241 # Extract subdirectory from the argument.
27242 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27243 if test "X$func_dirname_result" = "X${1}"; then
27244 func_dirname_result="${3}"
27245 else
27246 func_dirname_result="$func_dirname_result${2}"
27250 # func_basename file
27251 func_basename ()
27253 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
27257 # func_stripname prefix suffix name
27258 # strip PREFIX and SUFFIX off of NAME.
27259 # PREFIX and SUFFIX must not contain globbing or regex special
27260 # characters, hashes, percent signs, but SUFFIX may contain a leading
27261 # dot (in which case that matches only a dot).
27262 # func_strip_suffix prefix name
27263 func_stripname ()
27265 case ${2} in
27266 .*) func_stripname_result=`$ECHO "X${3}" \
27267 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27268 *) func_stripname_result=`$ECHO "X${3}" \
27269 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27270 esac
27273 # sed scripts:
27274 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27275 my_sed_long_arg='1s/^-[^=]*=//'
27277 # func_opt_split
27278 func_opt_split ()
27280 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
27281 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
27284 # func_lo2o object
27285 func_lo2o ()
27287 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
27290 # func_xform libobj-or-source
27291 func_xform ()
27293 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
27296 # func_arith arithmetic-term...
27297 func_arith ()
27299 func_arith_result=`expr "$@"`
27302 # func_len string
27303 # STRING may not start with a hyphen.
27304 func_len ()
27306 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27309 _LT_EOF
27310 esac
27312 case $lt_shell_append in
27313 yes)
27314 cat << \_LT_EOF >> "$cfgfile"
27316 # func_append var value
27317 # Append VALUE to the end of shell variable VAR.
27318 func_append ()
27320 eval "$1+=\$2"
27322 _LT_EOF
27325 cat << \_LT_EOF >> "$cfgfile"
27327 # func_append var value
27328 # Append VALUE to the end of shell variable VAR.
27329 func_append ()
27331 eval "$1=\$$1\$2"
27334 _LT_EOF
27336 esac
27339 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27340 || (rm -f "$cfgfile"; exit 1)
27342 mv -f "$cfgfile" "$ofile" ||
27343 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27344 chmod +x "$ofile"
27347 cat <<_LT_EOF >> "$ofile"
27349 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27351 # The linker used to build libraries.
27352 LD=$lt_LD_CXX
27354 # Commands used to build an old-style archive.
27355 old_archive_cmds=$lt_old_archive_cmds_CXX
27357 # A language specific compiler.
27358 CC=$lt_compiler_CXX
27360 # Is the compiler the GNU compiler?
27361 with_gcc=$GCC_CXX
27363 # Compiler flag to turn off builtin functions.
27364 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27366 # How to pass a linker flag through the compiler.
27367 wl=$lt_lt_prog_compiler_wl_CXX
27369 # Additional compiler flags for building library objects.
27370 pic_flag=$lt_lt_prog_compiler_pic_CXX
27372 # Compiler flag to prevent dynamic linking.
27373 link_static_flag=$lt_lt_prog_compiler_static_CXX
27375 # Does compiler simultaneously support -c and -o options?
27376 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27378 # Whether or not to add -lc for building shared libraries.
27379 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27381 # Whether or not to disallow shared libs when runtime libs are static.
27382 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27384 # Compiler flag to allow reflexive dlopens.
27385 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27387 # Compiler flag to generate shared objects directly from archives.
27388 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27390 # Whether the compiler copes with passing no objects directly.
27391 compiler_needs_object=$lt_compiler_needs_object_CXX
27393 # Create an old-style archive from a shared archive.
27394 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27396 # Create a temporary old-style archive to link instead of a shared archive.
27397 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27399 # Commands used to build a shared archive.
27400 archive_cmds=$lt_archive_cmds_CXX
27401 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27403 # Commands used to build a loadable module if different from building
27404 # a shared archive.
27405 module_cmds=$lt_module_cmds_CXX
27406 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27408 # Whether we are building with GNU ld or not.
27409 with_gnu_ld=$lt_with_gnu_ld_CXX
27411 # Flag that allows shared libraries with undefined symbols to be built.
27412 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27414 # Flag that enforces no undefined symbols.
27415 no_undefined_flag=$lt_no_undefined_flag_CXX
27417 # Flag to hardcode \$libdir into a binary during linking.
27418 # This must work even if \$libdir does not exist
27419 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27421 # If ld is used when linking, flag to hardcode \$libdir into a binary
27422 # during linking. This must work even if \$libdir does not exist.
27423 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27425 # Whether we need a single "-rpath" flag with a separated argument.
27426 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27428 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27429 # DIR into the resulting binary.
27430 hardcode_direct=$hardcode_direct_CXX
27432 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27433 # DIR into the resulting binary and the resulting library dependency is
27434 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27435 # library is relocated.
27436 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27438 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27439 # into the resulting binary.
27440 hardcode_minus_L=$hardcode_minus_L_CXX
27442 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27443 # into the resulting binary.
27444 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27446 # Set to "yes" if building a shared library automatically hardcodes DIR
27447 # into the library and all subsequent libraries and executables linked
27448 # against it.
27449 hardcode_automatic=$hardcode_automatic_CXX
27451 # Set to yes if linker adds runtime paths of dependent libraries
27452 # to runtime path list.
27453 inherit_rpath=$inherit_rpath_CXX
27455 # Whether libtool must link a program against all its dependency libraries.
27456 link_all_deplibs=$link_all_deplibs_CXX
27458 # Fix the shell variable \$srcfile for the compiler.
27459 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27461 # Set to "yes" if exported symbols are required.
27462 always_export_symbols=$always_export_symbols_CXX
27464 # The commands to list exported symbols.
27465 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27467 # Symbols that should not be listed in the preloaded symbols.
27468 exclude_expsyms=$lt_exclude_expsyms_CXX
27470 # Symbols that must always be exported.
27471 include_expsyms=$lt_include_expsyms_CXX
27473 # Commands necessary for linking programs (against libraries) with templates.
27474 prelink_cmds=$lt_prelink_cmds_CXX
27476 # Specify filename containing input files.
27477 file_list_spec=$lt_file_list_spec_CXX
27479 # How to hardcode a shared library path into an executable.
27480 hardcode_action=$hardcode_action_CXX
27482 # The directories searched by this compiler when creating a shared library.
27483 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27485 # Dependencies to place before and after the objects being linked to
27486 # create a shared library.
27487 predep_objects=$lt_predep_objects_CXX
27488 postdep_objects=$lt_postdep_objects_CXX
27489 predeps=$lt_predeps_CXX
27490 postdeps=$lt_postdeps_CXX
27492 # The library search path used internally by the compiler when linking
27493 # a shared library.
27494 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27496 # ### END LIBTOOL TAG CONFIG: CXX
27497 _LT_EOF
27500 "mkcollections.pl":C) chmod 755 lib/mkcollections.pl ;;
27501 "$ac_stdint_h":C)
27502 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
27503 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
27504 ac_stdint=$tmp/_stdint.h
27506 echo "#ifndef" $_ac_stdint_h >$ac_stdint
27507 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
27508 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
27509 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
27510 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
27511 if test "_$ac_cv_header_stdint_t" != "_" ; then
27512 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
27513 echo "#include <stdint.h>" >>$ac_stdint
27514 echo "#endif" >>$ac_stdint
27515 echo "#endif" >>$ac_stdint
27516 else
27518 cat >>$ac_stdint <<STDINT_EOF
27520 /* ................... shortcircuit part ........................... */
27522 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
27523 #include <stdint.h>
27524 #else
27525 #include <stddef.h>
27527 /* .................... configured part ............................ */
27529 STDINT_EOF
27531 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
27532 if test "_$ac_cv_header_stdint_x" != "_" ; then
27533 ac_header="$ac_cv_header_stdint_x"
27534 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
27535 else
27536 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
27539 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
27540 if test "_$ac_cv_header_stdint_o" != "_" ; then
27541 ac_header="$ac_cv_header_stdint_o"
27542 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
27543 else
27544 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
27547 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
27548 if test "_$ac_cv_header_stdint_u" != "_" ; then
27549 ac_header="$ac_cv_header_stdint_u"
27550 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
27551 else
27552 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
27555 echo "" >>$ac_stdint
27557 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
27558 echo "#include <$ac_header>" >>$ac_stdint
27559 echo "" >>$ac_stdint
27560 fi fi
27562 echo "/* which 64bit typedef has been found */" >>$ac_stdint
27563 if test "$ac_cv_type_uint64_t" = "yes" ; then
27564 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
27565 else
27566 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
27568 if test "$ac_cv_type_u_int64_t" = "yes" ; then
27569 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
27570 else
27571 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
27573 echo "" >>$ac_stdint
27575 echo "/* which type model has been detected */" >>$ac_stdint
27576 if test "_$ac_cv_char_data_model" != "_" ; then
27577 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
27578 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
27579 else
27580 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
27581 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
27583 echo "" >>$ac_stdint
27585 echo "/* whether int_least types were detected */" >>$ac_stdint
27586 if test "$ac_cv_type_int_least32_t" = "yes"; then
27587 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
27588 else
27589 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
27591 echo "/* whether int_fast types were detected */" >>$ac_stdint
27592 if test "$ac_cv_type_int_fast32_t" = "yes"; then
27593 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
27594 else
27595 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
27597 echo "/* whether intmax_t type was detected */" >>$ac_stdint
27598 if test "$ac_cv_type_intmax_t" = "yes"; then
27599 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
27600 else
27601 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
27603 echo "" >>$ac_stdint
27605 cat >>$ac_stdint <<STDINT_EOF
27606 /* .................... detections part ............................ */
27608 /* whether we need to define bitspecific types from compiler base types */
27609 #ifndef _STDINT_HEADER_INTPTR
27610 #ifndef _STDINT_HEADER_UINT32
27611 #ifndef _STDINT_HEADER_U_INT32
27612 #define _STDINT_NEED_INT_MODEL_T
27613 #else
27614 #define _STDINT_HAVE_U_INT_TYPES
27615 #endif
27616 #endif
27617 #endif
27619 #ifdef _STDINT_HAVE_U_INT_TYPES
27620 #undef _STDINT_NEED_INT_MODEL_T
27621 #endif
27623 #ifdef _STDINT_CHAR_MODEL
27624 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
27625 #ifndef _STDINT_BYTE_MODEL
27626 #define _STDINT_BYTE_MODEL 12
27627 #endif
27628 #endif
27629 #endif
27631 #ifndef _STDINT_HAVE_INT_LEAST32_T
27632 #define _STDINT_NEED_INT_LEAST_T
27633 #endif
27635 #ifndef _STDINT_HAVE_INT_FAST32_T
27636 #define _STDINT_NEED_INT_FAST_T
27637 #endif
27639 #ifndef _STDINT_HEADER_INTPTR
27640 #define _STDINT_NEED_INTPTR_T
27641 #ifndef _STDINT_HAVE_INTMAX_T
27642 #define _STDINT_NEED_INTMAX_T
27643 #endif
27644 #endif
27647 /* .................... definition part ............................ */
27649 /* some system headers have good uint64_t */
27650 #ifndef _HAVE_UINT64_T
27651 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
27652 #define _HAVE_UINT64_T
27653 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
27654 #define _HAVE_UINT64_T
27655 typedef u_int64_t uint64_t;
27656 #endif
27657 #endif
27659 #ifndef _HAVE_UINT64_T
27660 /* .. here are some common heuristics using compiler runtime specifics */
27661 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
27662 #define _HAVE_UINT64_T
27663 #define _HAVE_LONGLONG_UINT64_T
27664 typedef long long int64_t;
27665 typedef unsigned long long uint64_t;
27667 #elif !defined __STRICT_ANSI__
27668 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
27669 #define _HAVE_UINT64_T
27670 typedef __int64 int64_t;
27671 typedef unsigned __int64 uint64_t;
27673 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
27674 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
27675 #if !defined _NO_LONGLONG
27676 #define _HAVE_UINT64_T
27677 #define _HAVE_LONGLONG_UINT64_T
27678 typedef long long int64_t;
27679 typedef unsigned long long uint64_t;
27680 #endif
27682 #elif defined __alpha || (defined __mips && defined _ABIN32)
27683 #if !defined _NO_LONGLONG
27684 typedef long int64_t;
27685 typedef unsigned long uint64_t;
27686 #endif
27687 /* compiler/cpu type to define int64_t */
27688 #endif
27689 #endif
27690 #endif
27692 #if defined _STDINT_HAVE_U_INT_TYPES
27693 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
27694 typedef u_int8_t uint8_t;
27695 typedef u_int16_t uint16_t;
27696 typedef u_int32_t uint32_t;
27698 /* glibc compatibility */
27699 #ifndef __int8_t_defined
27700 #define __int8_t_defined
27701 #endif
27702 #endif
27704 #ifdef _STDINT_NEED_INT_MODEL_T
27705 /* we must guess all the basic types. Apart from byte-adressable system, */
27706 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
27707 /* (btw, those nibble-addressable systems are way off, or so we assume) */
27710 #if defined _STDINT_BYTE_MODEL
27711 #if _STDINT_LONG_MODEL+0 == 242
27712 /* 2:4:2 = IP16 = a normal 16-bit system */
27713 typedef unsigned char uint8_t;
27714 typedef unsigned short uint16_t;
27715 typedef unsigned long uint32_t;
27716 #ifndef __int8_t_defined
27717 #define __int8_t_defined
27718 typedef char int8_t;
27719 typedef short int16_t;
27720 typedef long int32_t;
27721 #endif
27722 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
27723 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
27724 /* 4:4:4 = ILP32 = a normal 32-bit system */
27725 typedef unsigned char uint8_t;
27726 typedef unsigned short uint16_t;
27727 typedef unsigned int uint32_t;
27728 #ifndef __int8_t_defined
27729 #define __int8_t_defined
27730 typedef char int8_t;
27731 typedef short int16_t;
27732 typedef int int32_t;
27733 #endif
27734 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
27735 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
27736 /* 4:8:8 = LP64 = a normal 64-bit system */
27737 typedef unsigned char uint8_t;
27738 typedef unsigned short uint16_t;
27739 typedef unsigned int uint32_t;
27740 #ifndef __int8_t_defined
27741 #define __int8_t_defined
27742 typedef char int8_t;
27743 typedef short int16_t;
27744 typedef int int32_t;
27745 #endif
27746 /* this system has a "long" of 64bit */
27747 #ifndef _HAVE_UINT64_T
27748 #define _HAVE_UINT64_T
27749 typedef unsigned long uint64_t;
27750 typedef long int64_t;
27751 #endif
27752 #elif _STDINT_LONG_MODEL+0 == 448
27753 /* LLP64 a 64-bit system derived from a 32-bit system */
27754 typedef unsigned char uint8_t;
27755 typedef unsigned short uint16_t;
27756 typedef unsigned int uint32_t;
27757 #ifndef __int8_t_defined
27758 #define __int8_t_defined
27759 typedef char int8_t;
27760 typedef short int16_t;
27761 typedef int int32_t;
27762 #endif
27763 /* assuming the system has a "long long" */
27764 #ifndef _HAVE_UINT64_T
27765 #define _HAVE_UINT64_T
27766 #define _HAVE_LONGLONG_UINT64_T
27767 typedef unsigned long long uint64_t;
27768 typedef long long int64_t;
27769 #endif
27770 #else
27771 #define _STDINT_NO_INT32_T
27772 #endif
27773 #else
27774 #define _STDINT_NO_INT8_T
27775 #define _STDINT_NO_INT32_T
27776 #endif
27777 #endif
27780 * quote from SunOS-5.8 sys/inttypes.h:
27781 * Use at your own risk. As of February 1996, the committee is squarely
27782 * behind the fixed sized types; the "least" and "fast" types are still being
27783 * discussed. The probability that the "fast" types may be removed before
27784 * the standard is finalized is high enough that they are not currently
27785 * implemented.
27788 #if defined _STDINT_NEED_INT_LEAST_T
27789 typedef int8_t int_least8_t;
27790 typedef int16_t int_least16_t;
27791 typedef int32_t int_least32_t;
27792 #ifdef _HAVE_UINT64_T
27793 typedef int64_t int_least64_t;
27794 #endif
27796 typedef uint8_t uint_least8_t;
27797 typedef uint16_t uint_least16_t;
27798 typedef uint32_t uint_least32_t;
27799 #ifdef _HAVE_UINT64_T
27800 typedef uint64_t uint_least64_t;
27801 #endif
27802 /* least types */
27803 #endif
27805 #if defined _STDINT_NEED_INT_FAST_T
27806 typedef int8_t int_fast8_t;
27807 typedef int int_fast16_t;
27808 typedef int32_t int_fast32_t;
27809 #ifdef _HAVE_UINT64_T
27810 typedef int64_t int_fast64_t;
27811 #endif
27813 typedef uint8_t uint_fast8_t;
27814 typedef unsigned uint_fast16_t;
27815 typedef uint32_t uint_fast32_t;
27816 #ifdef _HAVE_UINT64_T
27817 typedef uint64_t uint_fast64_t;
27818 #endif
27819 /* fast types */
27820 #endif
27822 #ifdef _STDINT_NEED_INTMAX_T
27823 #ifdef _HAVE_UINT64_T
27824 typedef int64_t intmax_t;
27825 typedef uint64_t uintmax_t;
27826 #else
27827 typedef long intmax_t;
27828 typedef unsigned long uintmax_t;
27829 #endif
27830 #endif
27832 #ifdef _STDINT_NEED_INTPTR_T
27833 #ifndef __intptr_t_defined
27834 #define __intptr_t_defined
27835 /* we encourage using "long" to store pointer values, never use "int" ! */
27836 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
27837 typedef unsigned int uintptr_t;
27838 typedef int intptr_t;
27839 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
27840 typedef unsigned long uintptr_t;
27841 typedef long intptr_t;
27842 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
27843 typedef uint64_t uintptr_t;
27844 typedef int64_t intptr_t;
27845 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
27846 typedef unsigned long uintptr_t;
27847 typedef long intptr_t;
27848 #endif
27849 #endif
27850 #endif
27852 /* The ISO C99 standard specifies that in C++ implementations these
27853 should only be defined if explicitly requested. */
27854 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
27855 #ifndef UINT32_C
27857 /* Signed. */
27858 # define INT8_C(c) c
27859 # define INT16_C(c) c
27860 # define INT32_C(c) c
27861 # ifdef _HAVE_LONGLONG_UINT64_T
27862 # define INT64_C(c) c ## L
27863 # else
27864 # define INT64_C(c) c ## LL
27865 # endif
27867 /* Unsigned. */
27868 # define UINT8_C(c) c ## U
27869 # define UINT16_C(c) c ## U
27870 # define UINT32_C(c) c ## U
27871 # ifdef _HAVE_LONGLONG_UINT64_T
27872 # define UINT64_C(c) c ## UL
27873 # else
27874 # define UINT64_C(c) c ## ULL
27875 # endif
27877 /* Maximal type. */
27878 # ifdef _HAVE_LONGLONG_UINT64_T
27879 # define INTMAX_C(c) c ## L
27880 # define UINTMAX_C(c) c ## UL
27881 # else
27882 # define INTMAX_C(c) c ## LL
27883 # define UINTMAX_C(c) c ## ULL
27884 # endif
27886 /* literalnumbers */
27887 #endif
27888 #endif
27890 /* These limits are merily those of a two complement byte-oriented system */
27892 /* Minimum of signed integral types. */
27893 #ifndef INT8_MIN
27894 # define INT8_MIN (-128)
27895 #endif
27896 #ifndef INT16_MIN
27897 # define INT16_MIN (-32767-1)
27898 #endif
27899 #ifndef INT32_MIN
27900 # define INT32_MIN (-2147483647-1)
27901 #endif
27902 #ifndef INT64_MIN
27903 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
27904 #endif
27906 /* Maximum of signed integral types. */
27907 #ifndef INT8_MAX
27908 # define INT8_MAX (127)
27909 #endif
27910 #ifndef INT16_MAX
27911 # define INT16_MAX (32767)
27912 #endif
27913 #ifndef INT32_MAX
27914 # define INT32_MAX (2147483647)
27915 #endif
27916 #ifndef INT64_MAX
27917 # define INT64_MAX (__INT64_C(9223372036854775807))
27918 #endif
27920 /* Maximum of unsigned integral types. */
27921 #ifndef UINT8_MAX
27922 # define UINT8_MAX (255)
27923 #endif
27924 #ifndef UINT16_MAX
27925 # define UINT16_MAX (65535)
27926 #endif
27927 #ifndef UINT32_MAX
27928 # define UINT32_MAX (4294967295U)
27929 #endif
27930 #ifndef UINT64_MAX
27931 # define UINT64_MAX (__UINT64_C(18446744073709551615))
27932 #endif
27934 /* Minimum of signed integral types having a minimum size. */
27935 # define INT_LEAST8_MIN INT8_MIN
27936 # define INT_LEAST16_MIN INT16_MIN
27937 # define INT_LEAST32_MIN INT32_MIN
27938 # define INT_LEAST64_MIN INT64_MIN
27939 /* Maximum of signed integral types having a minimum size. */
27940 # define INT_LEAST8_MAX INT8_MAX
27941 # define INT_LEAST16_MAX INT16_MAX
27942 # define INT_LEAST32_MAX INT32_MAX
27943 # define INT_LEAST64_MAX INT64_MAX
27945 /* Maximum of unsigned integral types having a minimum size. */
27946 # define UINT_LEAST8_MAX UINT8_MAX
27947 # define UINT_LEAST16_MAX UINT16_MAX
27948 # define UINT_LEAST32_MAX UINT32_MAX
27949 # define UINT_LEAST64_MAX UINT64_MAX
27951 /* shortcircuit*/
27952 #endif
27953 /* once */
27954 #endif
27955 #endif
27956 STDINT_EOF
27958 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
27959 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
27960 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
27961 else
27962 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
27963 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27964 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
27965 X"$ac_stdint_h" : 'X\(//\)$' \| \
27966 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
27967 $as_echo X"$ac_stdint_h" |
27968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27969 s//\1/
27972 /^X\(\/\/\)[^/].*/{
27973 s//\1/
27976 /^X\(\/\/\)$/{
27977 s//\1/
27980 /^X\(\/\).*/{
27981 s//\1/
27984 s/.*/./; q'`
27985 as_dir="$ac_dir"; as_fn_mkdir_p
27986 rm -f $ac_stdint_h
27987 mv $ac_stdint $ac_stdint_h
27990 "gappletviewer":C) chmod 755 tools/gappletviewer ;;
27991 "gjarsigner":C) chmod 755 tools/gjarsigner ;;
27992 "gkeytool":C) chmod 755 tools/gkeytool ;;
27993 "gjar":C) chmod 755 tools/gjar ;;
27994 "gnative2ascii":C) chmod 755 tools/gnative2ascii ;;
27995 "gserialver":C) chmod 755 tools/gserialver ;;
27996 "grmiregistry":C) chmod 755 tools/grmiregistry ;;
27997 "gtnameserv":C) chmod 755 tools/gtnameserv ;;
27998 "gorbd":C) chmod 755 tools/gorbd ;;
27999 "grmid":C) chmod 755 tools/grmid ;;
28000 "grmic":C) chmod 755 tools/grmic ;;
28001 "gjavah":C) chmod 755 tools/gjavah ;;
28002 "gjdoc":C) chmod 755 tools/gjdoc ;;
28003 "gen-classlist":C) chmod 755 lib/gen-classlist.sh ;;
28004 "copy-vmresources":C) chmod 755 lib/copy-vmresources.sh ;;
28006 esac
28007 done # for ac_tag
28010 as_fn_exit 0
28011 _ACEOF
28012 ac_clean_files=$ac_clean_files_save
28014 test $ac_write_fail = 0 ||
28015 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28018 # configure is writing to config.log, and then calls config.status.
28019 # config.status does its own redirection, appending to config.log.
28020 # Unfortunately, on DOS this fails, as config.log is still kept open
28021 # by configure, so config.status won't be able to write to it; its
28022 # output is simply discarded. So we exec the FD to /dev/null,
28023 # effectively closing config.log, so it can be properly (re)opened and
28024 # appended to by config.status. When coming back to configure, we
28025 # need to make the FD available again.
28026 if test "$no_create" != yes; then
28027 ac_cs_success=:
28028 ac_config_status_args=
28029 test "$silent" = yes &&
28030 ac_config_status_args="$ac_config_status_args --quiet"
28031 exec 5>/dev/null
28032 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28033 exec 5>>config.log
28034 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28035 # would make configure fail if this is the last instruction.
28036 $ac_cs_success || as_fn_exit $?
28038 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28040 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28044 # Create standard.omit based on decisions we just made.
28045 cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
28046 if test x$use_escher != xtrue; then
28047 echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit